/* ==========================================================================
   Popolux — site styles
   Ink #293238 (logo) · Ivory #F5F2EC · Amber #F2B134 · Accent text #8A5A00
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL 1.1 — see /fonts) ---------- */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-wght-normal.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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ink: #293238;
  --ink-deep: #1C262A;
  --ink-line: #45555C;
  --ground: #F5F2EC;
  --ground-2: #EDE8DF;
  --card: #FBFAF7;
  --rule: #DDD6CA;
  --body: #3B4A51;
  --muted: #55646B;
  --on-dark: #DCE2E4;
  --on-dark-muted: #B9C3C7;
  --accent: #F2B134;
  --accent-text: #8A5A00;
  --heart: #B3402F;

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gutter: 20px;
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, blockquote { margin: 0; }
[id] { scroll-margin-top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-weight: 400; }
.italic { font-style: italic; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow--accent { color: var(--accent-text); }
.lede { color: var(--body); }
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:focus { left: 8px; color: var(--ground); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.2;
  padding: 16px 26px; border-radius: 999px; text-align: center;
}
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { color: var(--ink); background: #F5BF55; }
.btn--ink { background: var(--ink); color: var(--ground); }
.btn--ink:hover { color: var(--ground); background: var(--ink-deep); }

/* ---------- Header / nav ---------- */
.site-header { border-bottom: 1px solid var(--rule); position: relative; }
.site-header .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 143px; height: 30px; }
.menu-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); padding: 0; cursor: pointer;
}
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.site-nav { display: none; }
.site-nav.is-open {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: var(--ground); border-bottom: 1px solid var(--rule); padding: 12px var(--gutter) 24px;
  box-shadow: 0 12px 24px rgba(41, 50, 56, 0.08);
}
.site-nav a { text-decoration: none; font-weight: 500; font-size: 18px; padding: 12px 0; }
.site-nav .nav-cta { margin-top: 8px; padding: 14px 22px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: flex; flex-direction: column; gap: 24px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.hero h1 .serif { letter-spacing: -0.01em; }
.hero .lede { font-size: 18px; line-height: 1.55; max-width: 600px; }
.hero-actions { display: flex; flex-direction: column; gap: 8px; }
.hero-actions .link { font-weight: 600; font-size: 16px; padding: 14px 8px; text-align: center; }
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 16px; }
.pair { display: flex; align-items: center; justify-content: center; gap: 16px; }
.pair figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pair img { display: block; width: 104px; height: 104px; }
.pair .word { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; }
.pair .gloss { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pair .plus { font-size: 30px; font-weight: 300; color: var(--muted); padding-bottom: 60px; }
.hero-art .tagline { display: none; }

/* ---------- The name ---------- */
.name { background: var(--ink); color: var(--ground); padding: 64px 0; }
.name .wrap { display: flex; flex-direction: column; gap: 32px; }
.name-head { display: flex; flex-direction: column; gap: 12px; }
.name .eyebrow { color: var(--accent); }
.wordmark {
  font-family: var(--serif); font-size: 84px; line-height: 0.95; letter-spacing: -0.01em; white-space: nowrap;
}
/* The circle and star separators keep their reference boxes; size scales with the type. */
.wordmark .sep {
  display: inline-block; width: 0.1905em; height: 0.1905em; vertical-align: middle;
  margin: 0 -0.0179em 0 2.5px;
}
.say { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.say .phonetic-simple { font-size: 28px; font-weight: 700; letter-spacing: 0.02em; }
.say .ipa { font-size: 13px; color: var(--on-dark-muted); }
.roots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.root { border: 1px solid var(--ink-line); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.root-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.root-head img { display: block; width: 44px; height: 44px; flex-shrink: 0; }
.root-head .word { font-family: var(--serif); font-style: italic; font-size: 38px; line-height: 1; }
.root .origin { font-size: 13px; color: var(--on-dark-muted); }
.root p { font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.how-to-say { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--ink-deep); font-size: 16px; line-height: 1.55; color: var(--on-dark); }
.how-to-say svg { flex-shrink: 0; margin-top: 1px; }
.how-to-say strong { color: var(--ground); }

/* ---------- What we do ---------- */
.what { padding: 64px 0; }
.what .wrap { display: flex; flex-direction: column; gap: 28px; }
.what-head { display: flex; flex-direction: column; gap: 28px; }
.what-title { display: flex; flex-direction: column; gap: 16px; }
.section-title { font-size: 36px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.what-aside { display: flex; flex-direction: column; gap: 28px; }
.ux-note { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ux-note img { display: block; width: 132px; height: 60px; flex-shrink: 0; }
.ux-note p { font-size: 15px; line-height: 1.5; color: var(--body); }
.ux-note strong { color: var(--ink); }
.what-aside .lede { font-size: 17px; line-height: 1.6; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step .num { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent-text); }
.step h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.step p { font-size: 16px; line-height: 1.6; color: var(--body); }
.who { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.who-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; border-top: 2px solid var(--ink); padding-top: 20px; }
.who-grid h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.who-grid p { font-size: 16px; line-height: 1.6; color: var(--body); }

/* ---------- Story ---------- */
.story { background: var(--ground-2); padding: 64px 0; }
.story .wrap { display: flex; flex-direction: column; gap: 32px; }
.story-copy { display: flex; flex-direction: column; gap: 20px; }
.story-copy p { font-size: 17px; line-height: 1.65; color: var(--body); }
.story-side { display: flex; flex-direction: column; gap: 24px; }
.quote { background: var(--ink); color: var(--ground); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.quote img { display: block; width: 44px; height: 44px; margin: -6px 0 -6px -6px; }
.quote blockquote { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.place { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--body); }

/* ---------- How we work ---------- */
.how { padding: 64px 0; }
.how .wrap { display: flex; flex-direction: column; gap: 28px; }
.how-head { display: flex; flex-direction: column; gap: 8px; }
.how-head h2 { font-size: 32px; line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.how-head .sub { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); }
.habits { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.habit { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.habit h3 { font-size: 20px; font-weight: 700; }
.habit p { font-size: 16px; line-height: 1.6; color: var(--body); }

/* ---------- Contact ---------- */
.contact-panel { background: var(--accent); padding: 40px 24px; display: flex; flex-direction: column; gap: 20px; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact-panel h2 { font-size: 40px; line-height: 1.02; font-weight: 700; letter-spacing: -0.03em; }
.contact-panel p { font-size: 17px; line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 40px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 20px; }
.foot-top { display: flex; flex-direction: column; gap: 20px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand img { display: block; width: 162px; height: 34px; }
.foot-brand p { font-size: 15px; line-height: 1.5; color: var(--body); }
.foot-brand .serif { font-style: italic; font-size: 1.2em; }
.foot-brand .muted { color: var(--muted); }
.made { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding-top: 18px; font-size: 13px; color: var(--muted); }
.foot-bottom a { color: var(--muted); }

/* ==========================================================================
   Desktop (≥ 960px)
   ========================================================================== */
@media (min-width: 960px) {
  :root { --gutter: 64px; }
  body { font-size: 18px; }
  .eyebrow { font-size: 14px; }

  .site-header .wrap { height: 96px; }
  .brand img { width: 162px; height: 34px; }
  .menu-btn { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; flex-direction: row; align-items: center; gap: 40px;
    position: static; padding: 0; background: none; border: 0; box-shadow: none;
  }
  .site-nav a { font-size: 16px; padding: 0; }
  .site-nav .nav-cta { margin: 0; padding: 12px 22px; }

  .hero { padding: 0; }
  .hero .wrap {
    min-height: 700px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  }
  .hero-copy { grid-column: span 7; gap: 32px; }
  .hero h1 { font-size: clamp(72px, 6.4vw, 92px); line-height: 0.98; }
  .hero .lede { font-size: 21px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 16px; padding-top: 8px; }
  .hero-actions .btn { padding: 18px 30px; }
  .hero-actions .link { font-size: 17px; padding: 18px 8px; }
  .hero-art { grid-column: 9 / span 4; gap: 28px; padding: 0; }
  .pair { gap: 22px; }
  .pair figure { gap: 14px; }
  .pair img { width: 150px; height: 150px; }
  .pair .word { font-size: 30px; }
  .pair .gloss { font-size: 13px; }
  .pair .plus { font-size: 40px; padding-bottom: 76px; }
  .hero-art .tagline { display: block; width: 100%; border-top: 1px solid var(--rule); padding-top: 20px; text-align: center; font-size: 16px; color: var(--body); }

  .name { padding: 110px 0; }
  .name .wrap { gap: 56px; }
  .name-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
  .name-title { display: flex; flex-direction: column; gap: 16px; }
  .wordmark { font-size: clamp(120px, 11.7vw, 168px); line-height: 0.9; }
  .wordmark .sep { margin-left: 1px; }
  .say { flex-direction: column-reverse; align-items: flex-end; gap: 10px; padding-bottom: 18px; }
  .say .phonetic-simple { font-size: 44px; }
  .say .ipa { font-size: 15px; letter-spacing: 0.04em; }
  .roots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .root { padding: 40px; gap: 18px; }
  .root-head { gap: 18px; flex-wrap: nowrap; }
  .root-head img { width: 56px; height: 56px; }
  .root-head .word { font-size: 48px; }
  .root .origin { font-size: 14px; padding-top: 10px; }
  .root p { font-size: 19px; }
  .how-to-say { align-items: center; gap: 20px; padding: 24px 28px; font-size: 18px; line-height: 1.5; }

  .what { padding: 120px 0 100px; }
  .what .wrap { gap: 64px; }
  .what-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .what-title { grid-column: span 5; }
  .section-title { font-size: 60px; line-height: 1.02; }
  .what-aside { grid-column: 7 / span 6; gap: 32px; }
  .ux-note { gap: 28px; padding: 0 0 28px; border-top: 0; }
  .ux-note img { width: 220px; height: 100px; }
  .ux-note p { font-size: 17px; line-height: 1.55; }
  .what-aside .lede { font-size: 20px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step { padding: 36px; gap: 16px; }
  .step .num { font-size: 44px; }
  .step h3 { font-size: 26px; }
  .step p { font-size: 18px; }
  .who { gap: 24px; padding: 0; }
  .who-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 28px; }
  .who-grid h3 { font-size: 22px; margin-bottom: 10px; }
  .who-grid p { font-size: 17px; }

  .story { padding: 110px 0; }
  .story .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .story-copy { grid-column: span 6; gap: 24px; }
  .story-copy p { font-size: 19px; }
  .story-side { grid-column: 8 / span 5; gap: 28px; padding-top: 44px; }
  .quote { padding: 48px; gap: 28px; }
  .quote img { width: 56px; height: 56px; margin: -8px 0 -8px -8px; }
  .quote blockquote { font-size: 40px; line-height: 1.18; }
  .place { font-size: 16px; gap: 14px; }

  .how { padding: 110px 0; }
  .how .wrap { gap: 48px; }
  .how-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .how-head h2 { font-size: 44px; }
  .how-head .sub { font-size: 26px; }
  .habits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
  .habit { padding-top: 24px; gap: 14px; }
  .habit h3 { font-size: 24px; }
  .habit p { font-size: 18px; }

  .contact-panel { min-height: 500px; padding: 80px 88px; flex-direction: row; justify-content: space-between; align-items: center; gap: 64px; }
  .contact-copy { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
  .contact-panel h2 { font-size: clamp(56px, 5vw, 72px); line-height: 1; letter-spacing: -0.035em; }
  .contact-panel p { font-size: 21px; }
  .contact-panel .btn { flex-shrink: 0; font-size: 20px; padding: 22px 34px; }

  .site-footer { padding: 72px 0 56px; }
  .site-footer .wrap { gap: 28px; }
  .foot-top { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
  .foot-brand img { width: 210px; height: 44px; }
  .foot-brand p { font-size: 16px; }
  .made { font-size: 15px; }
  .foot-bottom { padding-top: 22px; font-size: 14px; }
}

@media (min-width: 960px) and (max-width: 1180px) {
  .hero-art { grid-column: 8 / span 5; }
  .pair img { width: 120px; height: 120px; }
  .pair .plus { padding-bottom: 66px; }
}
