:root {
  color-scheme: dark light;
  --ink: #f1e8da;
  --ink-soft: #c9beb0;
  --ink-faint: #93887c;
  --paper: #11181c;
  --paper-raised: #192126;
  --paper-deep: #0a0f12;
  --coffee: #8f4d2e;
  --coffee-dark: #532b20;
  --amber: #e2a45a;
  --amber-bright: #ffc274;
  --sage: #88a49c;
  --button-ink: #21150c;
  --skip-ink: #15100b;
  --line: rgba(241, 232, 218, 0.15);
  --line-strong: rgba(241, 232, 218, 0.28);
  --shadow: rgba(0, 0, 0, 0.42);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1160px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 300px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 7%, rgba(226, 164, 90, 0.09), transparent 25rem),
    linear-gradient(180deg, var(--paper-deep) 0, var(--paper) 24rem, var(--paper) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: repeating-linear-gradient(
    112deg,
    transparent 0,
    transparent 7px,
    rgba(255, 255, 255, 0.012) 8px
  );
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  transform: translateY(-160%);
  border-radius: 5px;
  background: var(--amber-bright);
  color: var(--skip-ink);
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--amber-bright);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: var(--shell);
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-cup {
  position: relative;
  width: 22px;
  height: 16px;
  border: 2px solid var(--amber);
  border-top-width: 1px;
  border-radius: 3px 3px 9px 9px;
}

.wordmark-cup::after {
  position: absolute;
  top: 2px;
  right: -8px;
  width: 7px;
  height: 8px;
  border: 2px solid var(--amber);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  content: "";
}

.language-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.77rem;
  font-weight: 680;
}

.language-nav a {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-faint);
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.language-nav a:hover {
  color: var(--ink);
}

.language-nav a[aria-current="page"] {
  border-color: var(--line-strong);
  background: rgba(226, 164, 90, 0.08);
  color: var(--amber-bright);
}

.sources-back {
  color: var(--amber-bright);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.sources-main {
  width: min(880px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) 0 110px;
}

.sources-hero {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.sources-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.sources-hero h1 em {
  color: var(--amber-bright);
  font-weight: 400;
}

.sources-deck {
  max-width: 62ch;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.disclosure,
.correction-note {
  margin: 48px 0;
  padding: 28px 30px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--amber);
  background: var(--paper-raised);
}

.disclosure h2,
.correction-note h2,
.source-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
}

.disclosure p,
.correction-note p {
  margin: 13px 0 0;
  color: var(--ink-soft);
}

.source-section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.source-section ul {
  margin: 24px 0 0;
  padding-left: 1.25rem;
}

.source-section li {
  margin: 0 0 15px;
  color: var(--ink-soft);
}

.source-section a {
  color: var(--amber-bright);
  font-weight: 700;
}

.hero {
  display: grid;
  width: var(--shell);
  min-height: min(760px, calc(100vh - 76px));
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  margin: 0 auto;
  padding: 76px 0 96px;
}

.hero-art {
  position: relative;
  width: min(100%, 560px);
  justify-self: end;
}

.cover-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 194, 116, 0.3);
  border-radius: 3px;
  background: #0b1013;
  box-shadow:
    0 35px 80px var(--shadow),
    0 0 80px rgba(226, 164, 90, 0.08);
}

.cover-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  content: "";
  pointer-events: none;
}

.cover-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.cover-note {
  position: absolute;
  right: -30px;
  bottom: -32px;
  margin: 0;
  padding: 13px 16px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 24, 28, 0.94);
  box-shadow: 0 16px 34px var(--shadow);
  color: var(--amber-bright);
  font-family: var(--mono);
  font-size: clamp(0.66rem, 1vw, 0.77rem);
  letter-spacing: 0.05em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 24px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: currentColor;
  content: "";
}

.hero h1,
.section-intro h2,
.method h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(3.35rem, 6.2vw, 6.4rem);
}

.hero h1 em {
  color: var(--amber-bright);
  font-weight: 400;
}

.hero-lede {
  max-width: 55ch;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.16rem, 1.8vw, 1.42rem);
  line-height: 1.5;
}

.language-line {
  margin: 20px 0 0;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--button-ink);
}

.button-primary:hover {
  border-color: var(--amber-bright);
  background: var(--amber-bright);
}

.button-quiet:hover {
  border-color: var(--amber);
  background: rgba(226, 164, 90, 0.08);
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.menu {
  padding: 112px 0 128px;
  border-top: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  column-gap: clamp(40px, 8vw, 120px);
  align-items: end;
  margin-bottom: 52px;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
}

.section-intro h2,
.method h2 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.section-intro > p:last-child {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.menu-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 24px 23px 26px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--card-color);
  border-radius: 3px;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--card-color) 9%, transparent), transparent 45%),
    var(--paper-raised);
  transition: transform 180ms ease, border-color 180ms ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-color) 72%, var(--line));
}

.menu-card.espresso {
  --card-color: #d67a43;
}

.menu-card.latte {
  --card-color: #e3ba7f;
}

.menu-card.cake {
  --card-color: #86a49b;
}

.menu-card.news {
  --card-color: #ad7e94;
}

.menu-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--card-color);
}

.format-mark {
  font-size: 1.1rem;
}

.duration {
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.menu-card h3 {
  margin: 80px 0 15px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.1vw, 1.88rem);
  font-weight: 500;
  line-height: 1.08;
}

.menu-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.62;
}

.method {
  position: relative;
  display: grid;
  min-height: 590px;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: clamp(30px, 8vw, 120px);
  padding: 94px clamp(32px, 6vw, 86px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(circle at 9% 50%, rgba(226, 164, 90, 0.15), transparent 28%),
    linear-gradient(125deg, #191d1e, var(--paper-raised));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.method-number {
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(10rem, 24vw, 20rem);
  font-weight: 700;
  letter-spacing: -0.14em;
  line-height: 0.7;
  -webkit-text-stroke: 1px rgba(226, 164, 90, 0.42);
  user-select: none;
}

.method-copy {
  position: relative;
  z-index: 1;
}

.method-copy > p:not(.eyebrow) {
  max-width: 63ch;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.method-copy .plain-note {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--amber-bright) !important;
  font-family: var(--mono);
  font-size: 0.75rem !important;
  font-weight: 650;
  letter-spacing: 0.035em;
}

.listen {
  padding: 132px 0 120px;
}

.section-intro.compact {
  max-width: 900px;
}

.subscribe-panel {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-raised);
}

.platform-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.platform-link {
  display: flex;
  min-height: 94px;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.platform-link[href]:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
  background: rgba(226, 164, 90, 0.07);
}

.platform-link span {
  font-weight: 760;
}

.platform-link small {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.platform-link[aria-disabled="true"] {
  border-style: dashed;
  color: var(--ink-faint);
  cursor: not-allowed;
}

.rss-box {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.rss-box label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.8rem;
  font-weight: 750;
}

.rss-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.rss-control input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.rss-control input::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

.rss-control button {
  padding: 10px 18px;
  border: 1px solid var(--amber);
  border-radius: 3px;
  background: var(--amber);
  color: var(--button-ink);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.rss-control button:hover:not(:disabled) {
  border-color: var(--amber-bright);
  background: var(--amber-bright);
}

.rss-control button:disabled {
  border-color: var(--line);
  background: transparent;
  color: var(--ink-faint);
  cursor: not-allowed;
}

.copy-status {
  display: block;
  min-height: 1.5em;
  margin-top: 6px;
  color: var(--sage);
  font-size: 0.74rem;
}

.app-help {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.app-help summary {
  padding: 20px 2px 4px;
  color: var(--amber-bright);
  font-size: 0.84rem;
  font-weight: 760;
  cursor: pointer;
}

.app-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  background: var(--line);
  border: 1px solid var(--line);
}

.app-help-grid > div {
  min-height: 176px;
  padding: 20px;
  background: var(--paper-raised);
}

.app-help-grid h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.app-help-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

.app-help-grid a {
  display: inline-block;
  margin-top: 14px;
  color: var(--amber-bright);
  font-size: 0.75rem;
  font-weight: 750;
}

.app-help-grid a[aria-disabled="true"] {
  color: var(--ink-faint);
  text-decoration: none;
}

.site-footer {
  display: flex;
  width: var(--shell);
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  padding: 36px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.site-footer > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
}

.footer-links {
  align-items: flex-end;
}

.footer-links a:hover {
  color: var(--amber-bright);
}

.noscript-note {
  position: fixed;
  z-index: 50;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 760px;
  margin: auto;
  padding: 14px 18px;
  border: 1px solid var(--amber);
  border-radius: 3px;
  background: var(--paper-deep);
  box-shadow: 0 15px 40px var(--shadow);
  color: var(--ink);
  font-size: 0.82rem;
}

html[data-site-status="opening-soon"] .only-live,
html[data-site-status="live"] .only-opening {
  display: none !important;
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 38px, 760px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 18px;
  }

  .language-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 58px;
    padding: 58px 0 92px;
  }

  .hero-art {
    width: min(82vw, 520px);
    justify-self: center;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .menu-card {
    min-height: 270px;
  }

  .method {
    grid-template-columns: 0.55fr 1.45fr;
    padding-inline: 42px;
  }

  .app-help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 30px);
  }

  html {
    scroll-padding-top: 22px;
  }

  .site-header {
    min-height: 0;
  }

  .language-nav {
    gap: 1px;
    margin-left: -7px;
  }

  .language-nav a {
    padding: 7px;
    font-size: 0.7rem;
  }

  .hero {
    gap: 48px;
    padding-top: 38px;
  }

  .hero-art {
    width: calc(100% - 24px);
  }

  .cover-note {
    right: -12px;
    bottom: -25px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15.5vw, 4.25rem);
  }

  .hero-lede {
    margin-top: 25px;
  }

  .button {
    width: 100%;
  }

  .menu {
    padding: 84px 0 94px;
  }

  .menu-grid,
  .platform-links,
  .app-help-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    min-height: 240px;
  }

  .menu-card h3 {
    margin-top: 57px;
  }

  .method {
    display: block;
    min-height: 0;
    padding: 44px 24px 52px;
  }

  .method-number {
    position: absolute;
    top: 55px;
    right: 25px;
    font-size: 9rem;
    opacity: 0.36;
  }

  .method-copy {
    padding-top: 20px;
  }

  .listen {
    padding: 96px 0 84px;
  }

  .subscribe-panel {
    padding: 18px;
  }

  .rss-control {
    grid-template-columns: 1fr;
  }

  .rss-control button {
    min-height: 45px;
  }

  .app-help-grid > div {
    min-height: 0;
  }

  .site-footer,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #261d18;
    --ink-soft: #5f534a;
    --ink-faint: #6b5e54;
    --paper: #f3ede3;
    --paper-raised: #fbf7ef;
    --paper-deep: #e8dfd1;
    --coffee: #8c4728;
    --coffee-dark: #5c2f20;
    --amber: #9c5c22;
    --amber-bright: #7c4317;
    --sage: #466b62;
    --button-ink: #fffaf2;
    --skip-ink: #fffaf2;
    --line: rgba(64, 44, 33, 0.16);
    --line-strong: rgba(64, 44, 33, 0.3);
    --shadow: rgba(49, 35, 27, 0.2);
  }

  body {
    background:
      radial-gradient(circle at 82% 7%, rgba(156, 92, 34, 0.12), transparent 25rem),
      linear-gradient(180deg, #e9e0d3 0, var(--paper) 24rem, var(--paper) 100%);
  }

  body::before {
    background-image: repeating-linear-gradient(
      112deg,
      transparent 0,
      transparent 7px,
      rgba(63, 43, 30, 0.018) 8px
    );
  }

  .cover-note {
    background: rgba(251, 247, 239, 0.96);
  }

  .button-primary,
  .rss-control button {
    color: #fffaf1;
  }

  .method {
    background:
      radial-gradient(circle at 9% 50%, rgba(156, 92, 34, 0.13), transparent 28%),
      linear-gradient(125deg, #eee4d7, var(--paper-raised));
  }
}
