/* =========================================================
   between places — shared styles for every page
   Colors, fonts and reusable pieces live here, so a change
   in one place updates the whole site.
   ========================================================= */

:root {
  /* Page backgrounds */
  --bg-cream: #f4e8d9;        /* home */
  --bg-cream-light: #fcf2e4;  /* region pages */
  --bg-mint: #e0f0f1;         /* feature articles */

  /* Accents */
  --red: #d15353;
  --red-dark: #a04242;
  --teal: #369196;
  --teal-dark: #246164;
  --teal-light: #63c9ce;

  /* Text */
  --ink: #000;
  --ink-soft: #424242;
  --ink-muted: #767676;
  --placeholder: #d9d9d9;

  /* Fonts */
  --font-latin: "Manrope", "Zen Kaku Gothic New", sans-serif;
  --font-jp: "Zen Kaku Gothic New", sans-serif;
  --font-jp-display: "Zen Kaku Gothic Antique", "Zen Kaku Gothic New", sans-serif;

  /* Layout */
  --page-width: 1280px;
  --radius-card: 27px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-jp);
  line-height: normal;
  background: var(--page-bg, var(--bg-cream));
}

/* Full-width wrapper: lets background blobs spill past the 1280px
   canvas on wide screens, but never creates sideways scrolling. */
.canvas { overflow: clip; }

h1, h2, h3, h4, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }

/* Centered 1280px canvas — the Figma frame width */
.page {
  position: relative;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
}

/* Soft, grainy background blobs (exported from Figma) */
.blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--rot, -34.15deg));
}
.page > *:not(.blobs) { position: relative; z-index: 1; }

/* ---------- Site header (rendered by assets/js/site.js) ---------- */
site-header { display: block; }

.site-title {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 60.2px;
  white-space: nowrap;
}
.site-tagline {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 34.57px;
}
.site-nav ul { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 4px; }
.site-nav a {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 28.24px;
  white-space: nowrap;
}
.site-nav a:hover,
.site-title a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Compact header for inner pages */
.site-header--compact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 24px 60px 0;
}
.site-header--compact .site-title { font-size: 32px; }
.site-header--compact .site-nav a { font-size: 22px; }

/* ---------- Reusable pieces ---------- */

/* Section heading: big latin word + small Japanese line under it */
.section-title {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 60.2px;
}
.section-sub {
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 34.57px;
}

/* Rounded outline pill used for places and links */
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 321px;
  height: 78px;
  border: 1.13px solid var(--ink);
  border-radius: 29.5px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 36px;
  text-align: center;
}
a.pill:hover { background: rgba(0, 0, 0, 0.04); }

/* Teal hashtag chip */
.tag {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--teal);
  border-radius: 11px;
  color: var(--teal-dark);
  font-family: var(--font-latin);
  font-weight: 700;
}

/* Horizontal scroller for card rows wider than the screen */
.scroll-row {
  display: flex;
  overflow-x: auto;
  scrollbar-width: thin;
}
.scroll-row > * { flex: none; }

/* Visually hidden but readable by screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .blob { transform: translate(-50%, -50%) rotate(var(--rot, -34.15deg)) scale(0.5); }
  .site-header--compact { padding: 16px 16px 0; }
  .site-header--compact .site-title { font-size: 24px; }
  .site-header--compact .site-nav a { font-size: 17px; }
  .site-nav ul { column-gap: 16px; }
  .section-title { font-size: 40px; }
  .section-sub { font-size: 22px; }
  .pill { width: 100%; max-width: 321px; height: 64px; font-size: 26px; }
}
