/* Shalina at shalina.az.dev: the site's whole look, in her linen, terracotta
   and espresso, with a sage band. Served from /static/ on the channel host. */

/* Every color is a semantic token: the light values here, the dark ones under
   .dark on <html>, which the head's script sets before the first paint. A new
   color is a new token in both blocks, and its pairings join the contrast test
   (web/src/__tests__/shalina-theme-contrast.test.ts). Terracotta is a fill,
   never body text: it measures 3.64:1 on --s-sunken. The type is ui-rounded
   where the browser has it (Safari), and the system font elsewhere; her own
   lines are set in Source Serif 4 italic, served from fonts/ beside this file.
   The layout steps wider from 760px and 860px.
   (No comments inside a token block: the contrast test reads them bare.) */
:root {
  --s-bg: #efe9df;
  --s-surface: #fbf8f2;
  --s-sunken: #e5ddd0;
  --s-ink: #2a211c;
  --s-soft: #5d5048;
  --s-link: #9c4524;
  --s-terracotta: #b4552e;
  --s-terracotta-ink: #fbf8f2;
  --s-band: #3f5e50;
  --s-band-ink: #f7f3ec;
  --s-band-soft: #cfe0d6;
  --s-border: #dcd2c3;
  --s-control: #968779;
  --s-focus: #9c4524;
  --s-gold: #d4a574;
  --s-her: #9c4524;
  --s-her-ink: #fbf8f2;
  --s-said: #e5ddd0;
  --s-usual: #3f5e50;
  --s-shadow: 0 2px 4px rgb(42 33 28 / 0.1), 0 28px 56px -24px rgb(90 45 25 / 0.42);
  --s-step-shadow: 0 8px 18px -12px rgb(42 33 28 / 0.5);
  --s-disc-shadow: 0 2px 3px rgb(0 0 0 / 0.25);
  color-scheme: light;
  --s-font: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s-voice: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* On screen only: a page prints light whatever the theme. */
@media screen {
  .dark {
    --s-bg: #1c1916;
    --s-surface: #27231f;
    --s-sunken: #2f2a25;
    --s-ink: #f5f1e8;
    --s-soft: #cdbfae;
    --s-link: #e7a083;
    --s-terracotta: #e08b6d;
    --s-terracotta-ink: #2a211c;
    --s-band: #2c3d35;
    --s-band-ink: #f5f1e8;
    --s-band-soft: #a9c4b6;
    --s-border: #3d3631;
    --s-control: #857769;
    --s-focus: #e7a083;
    --s-gold: #e0b888;
    --s-her: #e08b6d;
    --s-her-ink: #2a211c;
    --s-said: #3d3631;
    --s-usual: #8fbfa6;
    --s-shadow: 0 2px 4px rgb(0 0 0 / 0.4), 0 28px 56px -24px rgb(0 0 0 / 0.75);
    --s-step-shadow: 0 8px 18px -12px rgb(0 0 0 / 0.7);
    --s-disc-shadow: 0 2px 3px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

/* Her lines: the Latin subset of Source Serif 4's italic, under the SIL Open
   Font License (fonts/OFL-source-serif-4.txt). */
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

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

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

body {
  margin: 0;
  font-family: var(--s-font);
  background: var(--s-bg);
  color: var(--s-ink);
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--s-link);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--s-focus);
  outline-offset: 3px;
}

:where(h1, h2, h3, p, ul, dl, dd) {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* The container every row shares. */
.s-in {
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* The mark in each theme. A page with scripting off is light, so it shows the light one. */
.only-dark {
  display: none;
}

@media screen {
  .dark .only-dark {
    display: block;
  }

  .dark .only-light {
    display: none;
  }
}

/* Read by a screen reader, never seen. */
.s-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Header: the mark and the name, linking home, and the language switch. */
.s-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
}

.s-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--s-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.s-mark {
  width: 36px;
  height: 36px;
  border-radius: 22.5%;
}

.s-lang {
  display: inline-flex;
  border: 1.5px solid var(--s-border);
  border-radius: 999px;
  padding: 2px;
  font-size: 14px;
  font-weight: 700;
}

.s-lang a,
.s-lang span {
  padding: 3px 12px;
  border-radius: 999px;
  text-decoration: none;
}

.s-lang span {
  background: var(--s-ink);
  color: var(--s-bg);
}

.s-lang a {
  color: var(--s-ink);
}

.s-h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.s-lede {
  font-size: 1.2rem;
  color: var(--s-soft);
  max-width: 36ch;
}

.s-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 0;
  background: var(--s-terracotta);
  color: var(--s-terracotta-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  justify-self: start;
  cursor: pointer;
}

/* Home: the hero, its store line, and the toy. */
.s-hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: 24px 64px;
}

.s-hero-copy {
  display: grid;
  gap: 22px;
  align-content: start;
  min-width: 0;
}

.s-store {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.s-soon {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  border: 2px solid var(--s-soft);
  color: var(--s-ink);
  font-weight: 700;
  font-size: 16px;
}

/* The toy: her portrait, and the dial that sets how much Spanish she speaks. */
.s-toy {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
}

.s-card {
  position: relative;
  width: min(100%, 460px);
  background: var(--s-surface);
  border-radius: 28px;
  box-shadow: var(--s-shadow);
  padding: 14px 14px 22px;
  display: grid;
  gap: 18px;
}

.s-portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  background: var(--s-sunken);
}

.s-say {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-inline: 8px;
}

.s-play {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--s-terracotta);
  color: var(--s-terracotta-ink);
  display: grid;
  place-items: center;
}

.s-play svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.s-play .s-stop-icon,
.s-play[aria-pressed="true"] .s-play-icon {
  display: none;
}

.s-play[aria-pressed="true"] .s-stop-icon {
  display: block;
}

.s-her-line {
  font-family: var(--s-voice);
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.3;
  color: var(--s-ink);
  min-height: 2.6em;
  display: flex;
  align-items: center;
  min-width: 0;
}

.s-dial {
  padding-inline: 8px;
  display: grid;
  gap: 8px;
}

.s-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
}

.s-track::before {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: var(--s-border);
  border-radius: 2px;
}

.s-dot {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  border: 3px solid var(--s-control);
  background: var(--s-surface);
}

.s-dot[aria-checked="true"] {
  border-color: var(--s-terracotta);
  background: var(--s-terracotta);
  box-shadow:
    0 0 0 5px var(--s-surface),
    0 0 0 7px var(--s-terracotta);
}

.s-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--s-soft);
}

.s-toy-line {
  font-size: 15px;
  color: var(--s-soft);
  text-align: center;
  max-width: 40ch;
}

/* The three commitments, on the band under the hero, each after a sage disc. */
.s-promise {
  background: var(--s-band);
  color: var(--s-band-ink);
  padding-block: 36px;
}

.s-promise h2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px 24px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.s-promise span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.s-promise span::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--s-band-soft);
  box-shadow: var(--s-disc-shadow);
}

/* Home: the sections below the hero. */
.s-section {
  padding-block: 64px;
  display: grid;
  gap: 24px;
}

.s-sunken {
  background: var(--s-sunken);
}

.s-h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.3rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.s-sub {
  color: var(--s-soft);
  margin-top: -16px;
  max-width: 60ch;
}

/* The rooms: each card has a drawing of the room, its tag, its name and its line. */
.s-rooms {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

/* Each card spans two of the grid's rows, so the drawings in a row of cards
   share one height, the tallest's, where the browser has subgrid. */
.s-room {
  background: var(--s-surface);
  border: 1px solid var(--s-border);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  gap: 0;
  min-width: 0;
}

.s-room-art {
  min-height: 160px;
  display: grid;
  place-items: center;
  background: var(--s-sunken);
  padding: 14px;
  overflow: hidden;
}

.s-room-story {
  padding: 0;
}

.s-room-body {
  padding: 16px 18px 20px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.s-tag {
  justify-self: start;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--s-soft);
  border: 1.5px solid var(--s-border);
  border-radius: 999px;
  padding: 2px 10px;
}

.s-room h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 4px;
}

.s-room p {
  color: var(--s-soft);
  font-size: 15.5px;
}

/* Learn: the listing's topics, and the button to talk. */
.s-topics {
  display: grid;
  gap: 7px;
  justify-items: start;
  width: 100%;
  max-width: 220px;
}

.s-topics span {
  background: var(--s-surface);
  border: 1.5px solid var(--s-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--s-ink);
}

.s-topics .s-talk {
  justify-self: center;
  margin-top: 4px;
  background: var(--s-terracotta);
  border-color: var(--s-terracotta);
  color: var(--s-terracotta-ink);
  padding: 6px 16px;
}

/* Practice: the three scenes' characters. */
.s-scenes {
  display: flex;
}

.s-scenes figure {
  margin: 0 -6px;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--s-soft);
}

.s-scenes img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  box-shadow: 0 0 0 4px var(--s-sunken);
}

/* Cook: a step in cook mode, and what you can say. */
.s-step {
  width: 100%;
  max-width: 220px;
  background: var(--s-surface);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  box-shadow: var(--s-step-shadow);
}

.s-step small {
  font-size: 11px;
  font-weight: 800;
  color: var(--s-soft);
}

.s-room .s-step p {
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--s-ink);
  font-weight: 600;
}

.s-cmds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.s-cmds kbd {
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  color: var(--s-ink);
  border: 1.5px solid var(--s-border);
  border-radius: 6px;
  padding: 1px 6px;
}

/* Story: one of her stories' covers. */
.s-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* What's free, what's Premium. */
.s-cost {
  display: grid;
  gap: 16px;
}

.s-cost-col {
  border: 1.5px solid var(--s-border);
  border-radius: 22px;
  padding: 18px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.s-cost-col ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 4px;
}

.s-cost-col li::marker {
  color: var(--s-terracotta);
}

.s-cost-col p {
  color: var(--s-soft);
  font-size: 15.5px;
}

.s-tag-free {
  color: var(--s-usual);
  border-color: var(--s-usual);
}

.s-tag-premium {
  color: var(--s-link);
  border-color: var(--s-link);
}

/* How she talks with you: the recast, then what it means. */
.s-talk-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.s-recast {
  background: var(--s-surface);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.s-who {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-soft);
}

.s-bubble {
  max-width: 88%;
  display: grid;
  gap: 4px;
}

.s-bubble p {
  font-family: var(--s-voice);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.35;
  padding: 10px 14px;
  border-radius: 16px;
}

.s-you p {
  background: var(--s-said);
  color: var(--s-ink);
  border-bottom-left-radius: 4px;
}

.s-her {
  justify-self: end;
  justify-items: end;
}

.s-her p {
  background: var(--s-her);
  color: var(--s-her-ink);
  border-bottom-right-radius: 4px;
}

.s-after {
  border-top: 1px solid var(--s-border);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.s-after dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 15px;
}

.s-after dt {
  color: var(--s-soft);
  font-weight: 700;
  font-size: 13px;
  padding-top: 2px;
}

.s-after dd {
  font-family: var(--s-voice);
  font-style: italic;
  font-size: 1.05rem;
}

.s-after .s-usual {
  color: var(--s-usual);
}

.s-after .s-why {
  font-family: var(--s-font);
  font-style: normal;
  font-size: 15px;
}

.s-talk-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.s-talk-copy h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.s-talk-copy p {
  color: var(--s-soft);
  max-width: 52ch;
}

.s-cards {
  display: grid;
  gap: 16px;
}

.s-note-card {
  background: var(--s-surface);
  border-radius: 22px;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
}

.s-note-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.s-note-card p {
  color: var(--s-soft);
}

/* The AI line, set apart. */
.s-ai {
  max-width: 62ch;
  padding-left: 16px;
  border-left: 3px solid var(--s-gold);
  color: var(--s-ink);
}

/* The 404 and the error page: her portrait, the line, and the way home. */
.s-lost {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-block: 48px 72px;
}

.s-lost img {
  width: 160px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.s-lost .s-lede {
  max-width: none;
}

.s-lost .s-button {
  justify-self: center;
  margin-top: 8px;
}

/* The reading pages: privacy and support. */
.s-read {
  max-width: 40rem;
  padding-block: 20px 64px;
}

.s-read .s-h1 {
  font-size: 38px;
}

.s-read .s-lede {
  max-width: none;
  font-size: 19px;
  margin-top: 16px;
}

.s-read .s-date {
  font-size: 15px;
  color: var(--s-soft);
  margin-top: 8px;
}

.s-read h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 36px 0 8px;
  letter-spacing: -0.01em;
}

.s-read p + p {
  margin-top: 12px;
}

.s-read ul {
  padding-left: 1.2em;
  margin: 0;
  display: grid;
  gap: 10px;
}

.s-read ul + p {
  margin-top: 12px;
}

/* Support: the address, and the button the page's script adds to copy it. */
.s-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  background: var(--s-surface);
  border: 1px solid var(--s-border);
  border-radius: 20px;
  padding: 20px;
  margin: 28px 0;
}

.s-address strong {
  font-size: 24px;
  font-weight: 800;
  overflow-wrap: anywhere;
  user-select: all;
}

.s-quiet {
  background: transparent;
  color: var(--s-ink);
  border: 2px solid var(--s-soft);
  min-height: 44px;
  padding: 0 16px;
}

/* Footer: the site's links and the theme picker, then the maker's and family lines. */
.s-foot {
  border-top: 1px solid var(--s-border);
  padding-block: 32px 40px;
  display: grid;
  gap: 14px;
  font-size: 15px;
}

.s-foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.s-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 700;
}

.s-links a {
  color: var(--s-ink);
}

.s-theme {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--s-soft);
  font-size: 14px;
}

.s-theme[hidden] {
  display: none;
}

.s-theme button {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--s-border);
  background: transparent;
  color: var(--s-ink);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}

.s-theme button[aria-pressed="true"] {
  background: var(--s-ink);
  color: var(--s-bg);
  border-color: var(--s-ink);
}

.s-made,
.s-family {
  color: var(--s-soft);
  max-width: 70ch;
}

/* The family line: the sister sites linked, this one in plain words. Each
   name stays on one line, so a narrow footer wraps between names. */
.s-family a,
.s-family [aria-current] {
  white-space: nowrap;
}

.s-family a {
  font-weight: 700;
}

.s-family [aria-current] {
  color: var(--s-ink);
  font-weight: 700;
}

@media (min-width: 520px) {
  .s-rooms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .s-promise h2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .s-cost,
  .s-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s-read {
    padding-block: 40px 96px;
  }

  .s-read .s-h1 {
    font-size: 52px;
  }
}

@media (min-width: 860px) {
  .s-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }

  .s-talk-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
}

@media (min-width: 900px) {
  .s-rooms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media print {
  .s-theme,
  .s-play,
  .s-dial,
  .s-toy-line,
  .s-quiet {
    display: none;
  }
}
