/* samomalo.app — one stylesheet for every page.
   Design: Claude Design hand-off, 2026-09-27 (jackson-work/…Website v1 Hand-off Package).
   Every colour is a token below. The palette is a placeholder: the designer's finals replace
   this block and nothing else. */

:root {
  --violet:     #3A1D6E; /* headings, primary buttons, companion band, links */
  --violet-2:   #5B34A3; /* eyebrows, numbers, glosses, link hover */
  --lavender:   #C9B8F0; /* phonetic on violet */
  --lavender-2: #E6DCF8; /* postcard window, widget panel, body on violet */
  --lavender-3: #EFE9FB; /* alternate feature panels, support panel, pills */
  --yellow:     #F4C542; /* stamp, gloss on violet, icons on violet */
  --paper:      #F6F0E4; /* page background */
  --card:       #FFFDF8; /* cards, postcard, alternate panels */
  --ink:        #1D1530; /* primary text */
  --body:       #3A3148; /* long-form body text */
  --muted:      #6B6180; /* captions, meta, legal */
  --white:      #FFFFFF;
  --bezel:      #161518; /* device frames */

  --rule:        rgba(58, 29, 110, 0.10);
  --card-border: rgba(58, 29, 110, 0.28);
  --stamp-line:  rgba(58, 29, 110, 0.50);
  --shadow-postcard: 0 30px 60px -30px rgba(40, 20, 70, 0.35), 0 2px 6px rgba(40, 20, 70, 0.08);
  --shadow-stamp:    0 6px 14px rgba(40, 20, 70, 0.18);
  --shadow-widget:   0 10px 28px rgba(40, 20, 70, 0.18);
  --shadow-device:   0 24px 48px -24px rgba(40, 20, 70, 0.45);

  --display: "Newsreader", Georgia, serif;
  --sans: -apple-system, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, Menlo, monospace;

  --max: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
}

/* Newsreader, self-hosted (SIL OFL 1.1, fonts/OFL.txt). Variable: opsz 6–72, wght 200–800. */
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-roman-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: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-roman-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-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: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 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);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--violet); }
a:hover { color: var(--violet-2); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 13px; line-height: 1.5; letter-spacing: 0.08em; color: var(--violet-2); }

/* ---------- Header and footer ---------- */

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 24px; padding-bottom: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 12px; }
.wordmark { font-family: var(--display); font-size: 36px; font-weight: 500; color: var(--violet); white-space: nowrap; }
.site-header nav a { font-size: 15px; color: var(--ink); text-decoration: none; }
.site-header nav a:hover { color: var(--violet-2); }

.site-footer {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 44px; padding-bottom: 52px; font-size: 15px;
}
.site-footer .row { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.site-footer .name { font-family: var(--display); font-size: 22px; color: var(--violet); }
.site-footer nav { display: flex; gap: 12px 26px; flex-wrap: wrap; }
.site-footer .legal {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-size: 12px; line-height: 1.5; color: var(--muted);
}
/* Sub-pages: one compact row. */
.site-footer.compact { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 32px; padding-bottom: 44px; font-size: 14px; }
.site-footer.compact span { color: var(--muted); }
.site-footer.compact nav { gap: 12px 24px; }

/* ---------- Device frames ---------- */

.device { background: var(--bezel); box-shadow: var(--shadow-device); }
.device img { width: 100%; }
.device.phone { border-radius: 15% / 7%; padding: 4.2%; }
.device.phone img { border-radius: 11.5% / 5.3%; }
.device.tablet { border-radius: 7% / 5%; padding: 3.4%; }
.device.tablet img { border-radius: 4% / 2.8%; }

/* ---------- Home: hero ---------- */

.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(48px, 6vw, 72px); align-items: center;
  padding-top: clamp(20px, 4vw, 40px); padding-bottom: clamp(64px, 9vw, 110px);
}
.hero-copy { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 26px); }

.word-cards { display: flex; gap: 10px; flex-wrap: wrap; font-weight: inherit; }
.word-card {
  /* Never shrink below the word: a card wraps to the next row instead. */
  flex: 1 0 auto; min-width: 96px;
  background: var(--card); border: 1.5px solid var(--card-border); border-radius: 20px;
  padding: 16px 15px; display: flex; flex-direction: column; gap: 8px;
}
.word-card.wide { flex: 1.5 0 auto; min-width: 170px; background: var(--violet); border-color: var(--violet); }
.word-card .word {
  font-family: var(--display); font-weight: 500; font-size: 36px;
  line-height: 1; letter-spacing: -0.02em; color: var(--violet); white-space: nowrap;
}
.word-card .phon { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.word-card .gloss { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 17px; color: var(--violet-2); }
.word-card.wide .word { color: var(--white); }
.word-card.wide .phon { color: var(--lavender); }
.word-card.wide .gloss { color: var(--yellow); }

.lede { font-size: clamp(18px, 2vw, 20px); line-height: 1.5; max-width: 30em; text-wrap: pretty; }

.cta { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.badge { flex: none; display: block; line-height: 0; text-decoration: none; border-radius: 8px; }
.badge img { width: 150px; height: 50px; }
.cta-note { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }

.postcard-wrap {
  position: relative; justify-self: center; width: 100%; max-width: 520px;
  padding: 20px clamp(14px, 3vw, 30px) 20px 0;
}
.postcard {
  background: var(--card); transform: rotate(2deg); box-shadow: var(--shadow-postcard);
  padding: clamp(12px, 1.6vw, 18px) clamp(12px, 1.6vw, 18px) 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.postcard-window {
  background: var(--lavender-2); height: clamp(380px, 40vw, 460px); overflow: hidden;
  display: flex; justify-content: center; padding-top: 44px;
}
.postcard-window .device { width: min(250px, 64%); align-self: flex-start; }
.postcard-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.postcard-caption .hr { font-family: var(--display); font-style: italic; font-size: clamp(19px, 2vw, 22px); color: var(--violet); }
.postcard-caption .en { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.stamp {
  position: absolute; top: 0; right: 0; width: clamp(72px, 8vw, 92px); aspect-ratio: 92 / 108;
  background: var(--yellow); transform: rotate(-7deg); padding: 6px; box-shadow: var(--shadow-stamp);
}
.stamp div {
  width: 100%; height: 100%; border: 1.5px dashed var(--stamp-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--violet);
}
.stamp .big { font-family: var(--display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; }
.stamp .small { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; }

/* ---------- Home: features ---------- */

.features {
  display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 28px);
  padding-left: clamp(12px, 3vw, 40px); padding-right: clamp(12px, 3vw, 40px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
.panel {
  border-radius: 28px; padding: clamp(32px, 5vw, 56px) clamp(22px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(36px, 5vw, 56px); align-items: center;
}
.panel.lavender { background: var(--lavender-3); }
.panel.cream { background: var(--card); }
.panel .text { display: flex; flex-direction: column; gap: 14px; }
.panel .num { font-family: var(--mono); font-size: 13px; color: var(--violet-2); }
.panel h2, .section-head h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1.05; color: var(--violet);
}
.panel p, .section-head p { font-size: clamp(17px, 1.7vw, 18px); line-height: 1.55; max-width: 26em; }
.panel .media { display: flex; justify-content: center; }
.panel .media .device.phone { width: min(260px, 78%); }
.panel .media .device.tablet { width: min(420px, 100%); }
.tag {
  align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--violet); background: var(--lavender-2); border-radius: 999px; padding: 4px 10px;
}
.hr-quote { font-family: var(--display); font-style: italic; color: var(--violet); }
.widget-panel {
  background: var(--lavender-2); border-radius: 24px; width: 100%;
  padding: clamp(24px, 4vw, 40px) clamp(14px, 3vw, 32px);
  display: flex; justify-content: center;
}
.widget-panel img { width: min(360px, 100%); border-radius: 8.8% / 18.7%; box-shadow: var(--shadow-widget); }

/* ---------- Home: what's inside ---------- */

.inside {
  display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px);
  padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(64px, 8vw, 96px);
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 40px; flex-wrap: wrap; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(12px, 2vw, 20px); }
.category { background: var(--card); border-radius: 22px; padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; }
.category h3 { font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.15; color: var(--violet); }
.category ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.category li { display: flex; flex-direction: column; gap: 3px; padding-top: 14px; border-top: 1px solid var(--rule); }
.category .hr { font-size: 17px; font-weight: 600; color: var(--violet); }
.category .phon { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.category .en { font-size: 15px; color: var(--body); }
.also { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; list-style: none; padding: 0; }
.also .label { font-size: 15px; color: var(--muted); margin-right: 4px; }
.also .pill { font-size: 15px; color: var(--violet); background: var(--lavender-3); border-radius: 18px; padding: 7px 14px; }

/* ---------- Home: companion band ---------- */

.band { background: var(--violet); color: var(--white); }
.band .wrap { display: flex; flex-direction: column; gap: 28px; padding-top: clamp(64px, 9vw, 96px); padding-bottom: clamp(64px, 9vw, 96px); }
.band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; max-width: 16em; text-wrap: balance; }
.band p { font-size: clamp(17px, 1.8vw, 19px); line-height: 1.55; max-width: 34em; color: var(--lavender-2); }
.band ul { list-style: none; padding: 8px 0 0; display: flex; gap: 14px 36px; flex-wrap: wrap; font-size: 16px; }
.band li { display: flex; align-items: center; gap: 8px; }
.band svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sub-pages ---------- */

.page { display: flex; flex-direction: column; min-height: 100vh; }
.reading {
  flex: 1; width: 100%; max-width: 720px; margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) var(--gutter) 80px;
  display: flex; flex-direction: column; gap: 32px;
}
.reading .title { display: flex; flex-direction: column; gap: 12px; }
.reading h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 64px); line-height: 1; letter-spacing: -0.02em; color: var(--violet); }
.reading .effective { font-size: 15px; color: var(--muted); }
.reading section { display: flex; flex-direction: column; gap: 10px; }
.reading h2 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 28px); line-height: 1.15; color: var(--violet); }
.reading p, .reading li { font-size: 17px; line-height: 1.65; color: var(--body); }
.reading .lede-text { font-size: 19px; line-height: 1.6; color: var(--ink); }
.reading ol { margin: 0; padding-left: 1.4em; }
.button {
  align-self: flex-start; max-width: 100%; overflow-wrap: anywhere;
  background: var(--violet); color: var(--white); border-radius: 14px; padding: 14px 20px;
  font-size: 17px; font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--violet-2); color: var(--white); }
.contact-panel { background: var(--lavender-3); border-radius: 24px; padding: clamp(22px, 4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.contact-panel p { font-size: 18px; line-height: 1.55; color: var(--ink); }
.contact-panel .note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.credits { border-top: 1px solid var(--rule); padding-top: 32px; }
.credits h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.credits p { font-size: 15px; line-height: 1.6; }
