/* ==========================================================================
   Studio Saewa · site styles
   Every color, size and spacing value below is taken from Kat's
   SAEWA Website V2 prototype (Claude Design). If a value changes here,
   it should change in the design file too, and the reverse.
   ========================================================================== */

/* ---------- Fonts (self-hosted; licences in /assets/fonts) ---------- */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Zen Kaku Gothic New is subset to the characters the site uses.
   Re-run tools/build-fonts.py after changing any copy. */
@font-face {
  font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/zen-kaku-gothic-new-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Zen Kaku Gothic New'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/zen-kaku-gothic-new-500.woff2') format('woff2');
}

/* ---------- Tokens (from the prototype) ---------- */
:root {
  --paper: #EFEDE7;        /* page background */
  --paper-2: #F3F1EB;      /* card background (Field Notes grid) */
  --cream: #F3EADB;        /* cream bands */
  --cream-rule: #D8CBB4;
  --ink: #1A1B19;          /* body text, dark buttons */
  --ink-2: #3A3B38;        /* paragraph text */
  --ink-3: #5A5953;        /* secondary text, labels */
  --ink-4: #8C8A83;        /* tertiary text (see REVIEW.md: contrast) */
  --rule: #C9C4B8;
  --rule-2: #DAD5CA;
  --rule-3: #D6D1C6;
  --indigo: #1E2A3A;       /* navy bands, links */
  --indigo-hover: #3E5878;
  --indigo-2: #3A4658;
  --slate: #9FB0C8;
  --mist: #BFC6D1;
  --mist-2: #C9D0DA;
  --on-indigo: #E4E0D6;
  --gold: #D8B46A;         /* accent on dark */
  --gold-2: #B8862B;       /* accent dot on light */
  --rust: #8A5A1E;         /* kicker on cream; placeholder notes */
  --night: #101113;        /* footer */
  --night-2: #0F1012;      /* top bar */
  --on-night: #E9E6DE;
  --on-night-2: #BDBAB1;
  --night-rule: #2A2C30;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Zen Kaku Gothic New', system-ui, -apple-system, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --max: 1360px;
  --gutter: clamp(20px, 3vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-hover); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.tab { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; font-size: 13px; letter-spacing: .12em; }
.skip-link:focus { top: 12px; color: var(--paper); }

/* Type helpers */
.label { font-size: 12px; letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }
.label--tight { letter-spacing: .14em; }
.serif { font-family: var(--serif); font-weight: 400; }
.h-section { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; }
.h-display { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 520px; }
.body { font-size: 16px; color: var(--ink-2); }
.link-u { border-bottom: 1px solid var(--indigo); font-size: 14px; padding: 4px 0; }

/* Buttons (prototype: 16px 24px, 13px, .16em tracking, 44px min) */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 16px 24px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--indigo); color: var(--paper); }
.btn--line { border: 1px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--on-indigo); color: var(--indigo); }
.btn--light:hover { background: #fff; color: var(--indigo); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Section title row with rule above (prototype pattern) */
.section { padding-top: 104px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; border-top: 1px solid var(--ink); padding-top: 16px; margin-bottom: 32px; }
.section-head .note { font-size: 13px; color: var(--ink-3); }

/* 12-col grid */
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .g12 > * { grid-column: 1 / -1 !important; } }

/* ---------- Preview bar (remove at launch: see README) ---------- */
.preview-bar { background: var(--night-2); color: #A9A69E; font-size: 11.5px; letter-spacing: .08em; text-align: center; padding: 7px 16px; }
.preview-bar strong { color: var(--gold); font-weight: 400; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule-3); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.site-header .brand { display: block; line-height: 0; flex: none; }
.site-header .brand img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px 28px; font-size: 14.5px; letter-spacing: .06em; }
.site-nav a { color: var(--ink); padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--indigo-hover); }
.site-nav .lang { font-size: 13px; letter-spacing: .08em; color: var(--ink-3); }
.exchange { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; color: var(--ink-3); white-space: nowrap; }
.exchange svg { width: 28px; height: 16px; flex: none; }
.exchange svg path { fill: none; stroke: currentColor; stroke-width: 1.3px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .site-header .exchange { display: none; } }
@media (max-width: 520px) {
  .site-header .wrap { flex-wrap: wrap; gap: 6px 16px; padding-bottom: 6px; }
  .site-header .brand img { height: 26px; }
  .site-nav { gap: 4px 22px; font-size: 14px; }
}

/* ---------- Home: hero ---------- */
.hero { padding-top: 64px; }
.hero .g12 { align-items: end; }
.hero-copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 22px; padding-bottom: 12px; }
.hero-lockup { margin: 0; line-height: 0; }
.hero-lockup img { width: clamp(260px, 40vw, 560px); }
.hero-say { font-size: 12px; letter-spacing: .14em; color: var(--ink-4); margin-top: -8px; }
.hero-panel { grid-column: 7 / span 6; }
.principle-panel {
  background: var(--indigo); color: var(--on-indigo); aspect-ratio: 5 / 4;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 3vw, 40px);
}
.principle-panel .label { color: var(--gold); }
.principle-panel blockquote { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.08; }
.principle-panel blockquote span { display: block; }
.principle-panel blockquote span + span { color: var(--mist); font-style: italic; }
.principle-panel .exchange { color: var(--mist); }
@media (max-width: 860px) { .principle-panel { aspect-ratio: auto; min-height: 340px; } }

/* ---------- How it moves (stepper) ---------- */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.cycle::before { content: ""; position: absolute; left: 10%; right: 10%; top: 6px; height: 1px; background: var(--ink); }
.cycle li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 8px; }
.cycle .dot { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); position: relative; z-index: 1; margin-bottom: 10px; }
.cycle li:first-child .dot { background: var(--gold-2); border-color: var(--gold-2); }
.cycle li.is-us .dot { background: var(--ink); }
.cycle .step { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.cycle .desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; max-width: 150px; }
.cycle-return { margin: 26px 10% 0; border: 1px solid var(--gold-2); border-top: 0; height: 18px; position: relative; }
.cycle-return::before { content: ""; position: absolute; left: -5px; top: -8px; border: 5px solid transparent; border-bottom: 7px solid var(--gold-2); border-top: 0; }
.cycle-caption { text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-2); margin-top: 18px; }
@media (max-width: 760px) {
  .cycle { grid-template-columns: 1fr; gap: 0; }
  .cycle::before { left: 6px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .cycle li { flex-direction: row; align-items: baseline; text-align: left; gap: 16px; padding: 0 0 22px; }
  .cycle .dot { flex: none; margin: 0; top: 2px; }
  .cycle .desc { max-width: none; }
  .cycle-return { display: none; }
  .cycle-caption { text-align: left; font-size: 20px; margin-top: 4px; }
}

/* ---------- Cream band (places) ---------- */
.band-cream { background: var(--cream); margin-top: 112px; }
.band-cream > .wrap { padding-top: 88px; padding-bottom: 88px; }
.kicker-rust { font-size: 12px; letter-spacing: .16em; color: var(--rust); text-transform: uppercase; }
.places-intro { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 18px; }
.places-intro .h-display small { font-size: .5em; color: var(--ink-3); margin-left: .2em; }
.places-list { grid-column: 7 / span 6; display: flex; flex-direction: column; }
.place { border-top: 1px solid var(--cream-rule); padding: 22px 0; display: grid; grid-template-columns: 150px 1fr; gap: 6px 24px; }
.place:last-child { border-bottom: 1px solid var(--cream-rule); }
.place-name { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.place-name span { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--ink-3); letter-spacing: .08em; margin-top: 6px; }
.place p { font-size: 15.5px; color: var(--ink-2); }
.place .src { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; display: inline-block; border-bottom: 1px solid var(--rule); }
.place .src:hover { color: var(--indigo); border-color: var(--indigo); }
.categories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.categories span { border: 1px solid #A39F94; padding: 8px 14px; font-size: 13px; color: var(--ink); }
@media (max-width: 520px) { .place { grid-template-columns: 1fr; } }

/* ---------- Navy band (trip) ---------- */
.band-indigo { background: var(--indigo); color: var(--on-indigo); }
.band-indigo > .wrap { padding-top: 88px; padding-bottom: 88px; }
.band-indigo .label { color: var(--gold); }
.band-indigo .note { color: var(--slate); }
.band-indigo p { color: var(--mist-2); font-size: 16px; }
.trip-head { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 22px; }
.trip-side { grid-column: 9 / span 4; align-self: end; display: flex; flex-direction: column; gap: 18px; }
.trip-head .h-display { font-size: clamp(40px, 4.6vw, 68px); }

/* ---------- Exchange band ---------- */
.exchange-band { padding-top: 120px; padding-bottom: 112px; }
.exchange-band .inner { border-top: 1px solid var(--rule); padding-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.exchange-band .exchange { font-size: clamp(20px, 2.6vw, 30px); gap: 18px; color: var(--ink-2); }
.exchange-band .exchange svg { width: 56px; height: 32px; }
.exchange-band p { max-width: 560px; font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink-2); }

/* ---------- Inner pages ---------- */
.page-head { padding-top: 72px; }
.page-head .g12 { align-items: start; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; }
.about-main { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 22px; }
.about-main .label { margin-bottom: 4px; }
.about-main p { font-size: 17px; color: var(--ink-2); max-width: 620px; }
.about-side { grid-column: 9 / span 4; border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.about-side p { font-size: 15.5px; color: var(--ink-2); }
.about-side .closing { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.2; color: var(--ink); }
.principle-band { margin-top: 112px; }
.principle-band blockquote { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; max-width: 980px; }
.principle-band blockquote span { display: block; }
.principle-band blockquote span + span { color: var(--mist); font-style: italic; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-2); }
.steps li { padding: 22px 20px 6px 0; display: flex; flex-direction: column; gap: 8px; }
.steps .n { font-size: 12.5px; letter-spacing: .14em; color: var(--ink-3); }
.steps .t { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.steps p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { border-bottom: 1px solid var(--rule-2); padding-bottom: 20px; } }

.status { border: 1px solid var(--ink); padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px 40px; }
.status .next { border-left: 1px solid var(--rule); padding-left: 32px; }
.status .next .serif { font-size: 30px; line-height: 1.15; margin-top: 8px; }
@media (max-width: 760px) { .status { grid-template-columns: 1fr; } .status .next { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; } }

.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.founder { border-top: 1px solid var(--rule-2); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.founder .name { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.founder .role { font-size: 12px; letter-spacing: .14em; color: var(--ink-3); }
.founder p { font-size: 15.5px; color: var(--ink-2); margin-top: 6px; max-width: 460px; }

/* Contact */
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.route { border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.route .t { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.route .ja { font-size: 15px; color: var(--ink-2); }
.route p { font-size: 15px; color: var(--ink-2); }
.route .mail { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule-2); font-size: 14px; }
.pending { color: var(--rust); font-size: 13px; letter-spacing: .02em; }
.contact-facts { display: grid; grid-template-columns: 140px 1fr; gap: 6px 18px; font-size: 15px; border-top: 1px solid var(--rule-2); padding-top: 16px; max-width: 560px; }
.contact-facts dt { color: var(--ink-3); }
.contact-facts dd { margin: 0; }

/* Japanese page */
:lang(ja) body, body:lang(ja) { line-height: 1.9; }
.ja-title { font-family: var(--sans); font-weight: 500; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.35; letter-spacing: .02em; }
.ja-lede { font-size: 17px; color: var(--ink-2); max-width: 640px; }
.draft-note { border: 1px dashed var(--rust); color: var(--rust); padding: 12px 16px; font-size: 13.5px; line-height: 1.6; max-width: 720px; }
.principle-band .ja-quote { margin: 0; font-family: var(--sans); font-weight: 500; font-size: clamp(22px, 2.8vw, 36px); line-height: 1.7; }
.ja-steps .t { font-family: var(--sans); font-weight: 500; font-size: 22px; }
.facts { display: grid; grid-template-columns: 160px 1fr; gap: 0; border-top: 1px solid var(--ink); max-width: 820px; }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rule-2); font-size: 15.5px; }
.facts dt { color: var(--ink-3); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* 404 */
.notfound { padding: 120px 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); font-size: 14px; line-height: 1.7; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-lockup { display: inline-flex; flex-direction: column; align-items: center; align-self: flex-start; gap: 10px; }
.footer-lockup img { height: 50px; width: auto; }
.footer-lockup span { font-size: 9px; letter-spacing: .34em; margin-right: -.34em; color: var(--on-night); }
.footer-brand p { color: var(--on-night-2); max-width: 440px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a { color: var(--on-night); }
.footer-nav a:hover { color: var(--gold); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-4); border-top: 1px solid var(--night-rule); padding-top: 20px; }
.footer-base .exchange { font-size: 11px; color: var(--ink-4); }

/* ---------- Motion: restrained, and off for reduced-motion users ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a, a { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
}

/* ---------- About: Saya's story ---------- */
.story .g12 { align-items: start; gap: 24px 40px; }
.story-photo { grid-column: 1 / span 5; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.story-photo img { width: 100%; max-width: 100%; aspect-ratio: 768 / 1365; object-fit: cover; background: var(--rule-2); }
.story-photo figcaption { font-size: 13px; color: var(--ink-3); }
.story-text { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.story-part { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--rule-2); padding-top: 16px; }
.story-part p { font-size: 17px; color: var(--ink-2); max-width: 600px; }
.story-part .story-invite { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.25; color: var(--ink); }
@media (min-width: 861px) { .story-photo { position: sticky; top: 24px; } }
@media (max-width: 860px) { .story .g12 { gap: 28px 24px; } .story-photo { max-width: 460px; } }

/* Brand name in a heading or diagram uses the SÆWA wordmark image, never typeset text */
.h-wordmark { line-height: 0; }
.h-wordmark img { height: 34px; width: auto; }
.cycle .step-mark { line-height: 0; display: flex; align-items: center; min-height: 30px; }
.cycle .step-mark img { height: 21px; width: auto; }
@media (max-width: 760px) { .cycle .step-mark { min-height: 0; padding-top: 4px; } }
