:root {
  color-scheme: light;
  --grove: #064C37;
  --grove-deep: #043628;
  --grove-ink: #064C37;
  --cream: #f7f4ee;
  --cream-2: #fffdf8;
  --ink: #1c1917;
  --muted: #5c564e;
  --line: #1c191726;
  --pill: #fff;
  --cover-ph: #e8e2d7;
  --cover-ridge: #1c19170f;
  --danger: #9b2c2c;
  --shadow: 0 18px 40px #0e2a2124;
  --bar: 60px;
  --serif: "Iowan Old Style", "Songti SC", "Source Han Serif SC", "Noto Serif SC", "Songti TC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --grove: #064C37;
    --grove-deep: #03281c;
    --grove-ink: #6fc7a4;
    --cream: #14110e;
    --cream-2: #1c1814;
    --ink: #f7f4ee;
    --muted: #c9c0b4;
    --line: #f7f4ee24;
    --pill: #f7f4ee;
    --cover-ph: #241f1a;
    --cover-ridge: #f7f4ee0d;
    --danger: #fca5a5;
    --shadow: 0 18px 40px #00000055;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  background: var(--cream);
  color: var(--ink);
  -webkit-tap-highlight-color: #c8a15a33;
}

::selection { background: #c8a15a; color: #1c1917; }

a { color: inherit; text-underline-offset: 3px; }

button, input, textarea, summary { font: inherit; color: inherit; }

button { cursor: pointer; }

button:disabled { opacity: .55; cursor: wait; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #c8a15a;
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  background: var(--cream);
  color: var(--grove);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--bar);
  padding-top: env(safe-area-inset-top);
  background-color: var(--grove);
  color: #f7f4ee;
  transition: background-color .2s var(--ease);
}

.bar.bar-hero:not(.is-scrolled) {
  background-color: transparent;
}

.bar-inner, .site-footer {
  width: min(1120px, calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin-inline: auto;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}

main { width: min(1120px, calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); margin-inline: auto; }

.bar-inner {
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav-desktop { display: flex; align-items: center; gap: 4px; }

.nav-desktop a, .nav-pop a {
  color: inherit;
  text-decoration: none;
  border-radius: 999px;
}

.nav-desktop a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
}

.nav-desktop a[aria-current="page"] {
  background: #f7f4ee1f;
}

.nav-pop a[aria-current="page"] {
  background: var(--line);
}

.nav-desktop a:hover { background: #f7f4ee14; }

.nav-menu { display: none; position: relative; }

.nav-menu summary {
  list-style: none;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
}

.nav-menu summary::-webkit-details-marker { display: none; }

.nav-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 8px;
  border-radius: 16px;
  background: var(--cream-2);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.nav-pop a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
}

main { flex: 1; }

.hero {
  position: relative;
  display: grid;
  gap: 28px;
  margin: calc(0px - var(--bar)) calc(50% - 50vw) 0;
  padding: calc(var(--bar) + 28px) max(24px, calc(50vw - 600px)) 0;
  background: var(--grove);
  color: #f7f4ee;
  overflow: hidden;
  isolation: isolate;
}

.hero-geometry {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-geometry svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy,
.hero-art,
.shelf-marquee { position: relative; z-index: 1; }

.hero-copy {
  display: flex;
  flex-direction: column;
  max-width: 320px;
  width: 100%;
  gap: 14px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin: 0; }

.hero h1 {
  max-width: none;
  font-size: 46px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.22;
}

.lead, .deck { color: var(--muted); }

.hero .lead {
  max-width: none;
  margin: 0;
  color: #f7f4ee;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

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

.hero .actions { margin-top: 10px; }

.button, button.primary, button.secondary, button.contact-dev, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: transform .2s var(--ease);
}

.button, button.primary {
  background: var(--pill);
  color: var(--grove);
}

.button.tonal, button.secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.button:hover, button.primary:hover, button.contact-dev:hover { transform: translateY(-1px); }

.button:active, button.primary:active, button.secondary:active, button.contact-dev:active { transform: translateY(0); }

button.contact-dev {
  background: #111110;
  color: #fffdf8;
  border-color: #111110;
}

@media (prefers-color-scheme: dark) {
  button.contact-dev {
    background: #000;
    color: #fffdf8;
    border-color: #f7f4ee40;
  }
}

.text-button {
  background: transparent;
  color: var(--grove-ink);
  padding-inline: 0;
  border-radius: 0;
  text-decoration: underline;
}

.button svg, button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero-art {
  position: relative;
  width: min(100%, 312px);
  height: 268px;
  margin: 10px auto 0;
}

.cover-slot {
  position: relative;
  overflow: hidden;
  background-color: var(--grove-deep);
  background-image:
    linear-gradient(90deg, #f7f4ee14 0%, #f7f4ee14 7%, transparent 7.5%, transparent 100%),
    linear-gradient(155deg, #ffffff0f 0%, #0000002e 100%);
  box-shadow: inset 0 0 0 1px #f7f4ee14;
}

.cover-slot-paper {
  background-color: var(--cover-ph);
  background-image:
    linear-gradient(90deg, var(--cover-ridge) 0%, var(--cover-ridge) 7%, transparent 7.5%, transparent 100%),
    linear-gradient(155deg, #ffffff0a 0%, #0000000f 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cover-slot.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, #ffffff16 50%, transparent 75%);
  transform: translateX(-100%);
  animation: cover-sheen 1.6s var(--ease) infinite;
}

.cover-slot img {
  position: relative;
  z-index: 1;
  transition: opacity .32s var(--ease);
}

.cover-slot img.is-pending { opacity: 0; }

.shot {
  display: block;
  position: absolute;
  padding: 0;
  border: 2px solid #f7f4eeb8;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transform-origin: center center;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}

.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shot-back {
  width: 48.6%;
  right: 5%;
  top: 4px;
  z-index: 1;
  transform: rotate(5deg);
  box-shadow: 0 18px 40px #03150f99;
}

.shot-front {
  width: 49.68%;
  left: 8%;
  top: 10px;
  z-index: 2;
  transform: rotate(-2.5deg);
  box-shadow: 0 24px 52px #03150fd9;
}

.shot-back:hover { transform: rotate(6.5deg) translateY(-4px); }

.shot-front:hover { transform: rotate(-1.5deg) translateY(-4px); }

.shot-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: #b82e24;
  color: #fffdf8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .04em;
  border: 1px solid #fffdf838;
  box-shadow: 0 4px 12px #0000004d;
  pointer-events: none;
}

.shelf-marquee {
  grid-column: 1 / -1;
  width: 100vw;
  margin-top: 54px;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding-bottom: 28px;
}

.shelf-track {
  display: flex;
  width: max-content;
  animation: shelf 68s linear infinite;
}

.shelf-set { display: flex; gap: 12px; padding-right: 12px; }

.shelf-card {
  flex: none;
  width: 120px;
  height: 180px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.shelf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shelf-marquee:hover .shelf-track { animation-play-state: paused; }

.section { margin-top: 72px; }

.section h2, .page-intro h1, .article h1 { margin: 0; }

.section > .deck { margin: 12px 0 0; max-width: 42ch; }

.phones {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.phone { flex: 0 0 250px; scroll-snap-align: start; margin: 0; }

.bezel {
  background: var(--grove-deep);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.screen {
  background: var(--cream-2);
  color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  padding: 16px;
}

.kicker { margin: 0; font-size: 11px; letter-spacing: .14em; color: var(--muted); }

.screen-title { margin: 8px 0 0; font-family: var(--serif); font-size: 22px; }

.screen-meta { margin: 4px 0 12px; color: var(--muted); font-size: 13px; }

.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.cover { border-radius: 8px; aspect-ratio: 2 / 3; }

.cover img { width: 100%; height: 100%; object-fit: cover; }

.cover-name { margin: 6px 0 0; font-size: 12px; }

.reader, .reader.screen { display: flex; flex-direction: column; height: 520px; min-height: 520px; }

.reader-chapter { margin: 8px 0; font-family: var(--serif); }

.reader-body { font-family: var(--serif); font-size: 15px; line-height: 1.85; }

.reader-foot { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.comic-screen { padding: 0; display: flex; flex-direction: column; }

.comic-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 12px;
}

.comic-screen img { width: 100%; height: auto; margin-top: auto; }

.phone figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

.spread { display: grid; gap: 16px; margin-top: 28px; }

.cell {
  padding: 24px;
  border-radius: 24px;
  background: var(--cream-2);
  box-shadow: 0 1px 0 var(--line);
}

.cell h3 { margin: 0 0 8px; font-size: 1.7rem; }

.cell p { margin: 0; color: var(--muted); }

.reader-specs {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.reader-specs li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 14px;
}

.reader-specs strong {
  color: var(--grove-ink);
  font-weight: 600;
  flex: none;
}

.reader-specs span {
  color: var(--muted);
}

.comic-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 70%);
  gap: 16px;
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.comic-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.comic-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease);
}

.comic-card:hover .comic-thumb { transform: translateY(-4px); }

.comic-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comic-card h3 { margin: 0; font-size: 1.25rem; }

.comic-card p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.source-spotlight {
  margin: 72px calc(50% - 50vw) 0;
  padding: 56px max(16px, calc(50vw - 560px));
  background: var(--grove);
  color: #f7f4ee;
}

.source-spotlight .deck { color: #f7f4eed4; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1120px, calc(100% - 32px));
  margin: 48px auto 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer > span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  letter-spacing: 0.06em;
}

.site-footer nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 14px;
}

.site-footer a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }

.page-intro, .article { max-width: 68ch; padding-top: 36px; }

.page-intro p, .article p { color: var(--muted); }

.article h2 { margin: 1.6em 0 .4em; font-size: 1.6rem; }

.form-layout { display: grid; gap: 20px; margin-top: 28px; }

.form-panel, .contact-panel {
  padding: 24px;
  border-radius: 24px;
  background: var(--cream-2);
}

.contact-panel {
  max-width: 68ch;
  display: grid;
  gap: 28px;
  padding: 28px 24px;
}

.contact-panel > .contact-dev { justify-self: start; }

.form-side h2 { margin: 0 0 12px; font-size: 1.5rem; }

.segmented { display: flex; gap: 8px; margin-bottom: 16px; }

.segment { flex: 1; }

.segment input { position: absolute; opacity: 0; }

.segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
}

.segment svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.segment input:checked + span { background: var(--grove); color: #f7f4ee; border-color: var(--grove); }

label.field { display: grid; gap: 6px; margin-top: 14px; }

input[type="text"], textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  caret-color: var(--grove-ink);
}

textarea { min-height: 120px; resize: vertical; }

input::placeholder, textarea::placeholder { color: var(--muted); }

.dropzone {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 16px;
  border-radius: 20px;
  border: 1.5px dashed var(--line);
  text-align: center;
  cursor: pointer;
}

.dropzone svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.dropzone small, .hint { color: var(--muted); font-size: 14px; }

.dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.dropzone:hover, .dropzone.dragover { background: #c8a15a22; }

.file-list { list-style: none; margin: 12px 0; padding: 0; }

.file-list li { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; }

.file-list button { background: transparent; border: 0; text-decoration: underline; min-height: 44px; }

details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

button.full { width: 100%; margin-top: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.steps li { display: flex; gap: 12px; align-items: center; }

.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--grove);
  color: #f7f4ee;
  font-family: var(--serif);
}

#status { min-height: 1.4em; }

#status.error { color: var(--danger); }

.faq { margin-top: 36px; }

.faq details { border-top: 1px solid var(--line); }

.faq summary { font-family: var(--serif); font-size: 1.15rem; }

.faq p { color: var(--muted); }

#redeem-form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: none;
}

#redeem-form h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 1.2rem;
}

#redeem-code {
  width: 100%;
  min-width: 0;
  text-transform: uppercase;
}

#redeem-code:not(:placeholder-shown) {
  letter-spacing: 0.14em;
}

#redeem-form button[type="submit"] {
  padding-inline: 18px;
  height: 100%;
}

#redeem-status,
#open-bookbox {
  grid-column: 1 / -1;
}

#redeem-status:empty {
  display: none;
}

dialog { border: 0; padding: 0; background: transparent; max-width: calc(100% - 32px); }

dialog::backdrop { background: #0e2a21aa; }

.dialog-panel {
  width: min(440px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog h2 { margin: 0 0 8px; }

dialog p { margin: 0 0 16px; color: var(--muted); }

#pro-comic-dialog .button {
  background: #141210;
  color: #fffdf8;
  border-color: #f7f4ee2e;
}

#wechat-contact img { width: min(100%, 280px); height: auto; margin-top: 16px; border-radius: 12px; }

[hidden] { display: none !important; }

.reader-demo-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.focus-toggle { padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px; background: transparent; min-height: 44px; }
.focus-toggle[aria-pressed="true"] { background: var(--grove); color: #f7f4ee; border-color: var(--grove); }
.reader-window { position: relative; overflow: hidden; }
[data-focus-active="true"] .reader-body > p { opacity: .28; }
[data-focus-active="true"] .reader-body > p:nth-child(2) { opacity: 1; }
.reader-body p { margin: 0 0 14px; text-indent: 2em; }
.reader .reader-window { flex: 1; min-height: 0; }
.cell .page-sample { margin-top: 20px; padding: 16px; border-radius: 16px; background: var(--cream); }
.page-sample .reader-window { height: 300px; margin-top: 16px; }
.page-sample .reader-body { font-size: 16px; line-height: 1.9; }
.cell .focus-hint { margin: 0 0 12px; font-size: 13px; color: var(--muted); }

@media (max-width: 799px) {
  .hero-geometry svg {
    width: 100%;
    height: 100%;
  }
}

@media (min-width: 548px) {
  .hero { padding-top: 130px; }
}

@media (min-width: 768px) {
  .hero-copy {
    gap: 20px;
    max-width: 500px;
  }

  .hero h1 {
    font-size: 72px;
    line-height: 1.15;
  }

  .hero .lead {
    font-size: 24px;
    line-height: 34px;
  }

  .hero .actions { margin-top: 12px; }
}

@media (min-width: 800px) {
  .bar-inner, main, .site-footer { width: min(1120px, calc(100% - 80px)); }

  .hero {
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
    min-height: 560px;
    padding-bottom: 48px;
  }

  .hero-art {
    align-self: center;
    width: 100%;
    height: auto;
    margin: 0;
    min-height: 368px;
  }

  .shot-back, .shot-front { position: absolute; height: auto; }

  .shot-back {
    width: 45%;
    right: 7%;
    top: 0;
  }

  .shot-front {
    width: 46.44%;
    left: 12%;
    top: 8px;
    margin: 0;
  }

  .shot-badge {
    right: 10px;
    bottom: 10px;
    padding: 4px 11px;
    font-size: 12px;
  }

  .shelf-card { width: 151px; height: 225px; }

  .spread { grid-template-columns: 1.35fr .85fr; }

  .cell-main { grid-row: span 2; }

  .form-layout { grid-template-columns: minmax(0, 1fr) 280px; }

  .comic-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (min-width: 1040px) {
  .phones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .phone { flex-basis: auto; }

  .phone:nth-child(2) { transform: translateY(28px); }

  .comic-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 799px) {
  .nav-desktop { display: none; }

  .nav-menu { display: block; }

  .hero-copy { max-width: none; }

  .hero .actions,
  .source-spotlight .actions {
    flex-wrap: nowrap;
  }

  .hero .actions .button,
  .source-spotlight .actions .button {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 14px;
  }

  .phones {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    gap: 24px;
  }

  .phone { flex: none; width: min(100%, 340px); margin-inline: auto; }

  .comic-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    grid-auto-columns: unset;
  }

  .section { margin-top: 48px; }

  .source-spotlight { padding-block: 40px; }

  .site-footer { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, button.primary, button.contact-dev, .comic-thumb, .cover-slot img, .shot { transition: none; }
  .cover-slot.is-loading::after { animation: none; }
  .rise { animation: none !important; }
  .shelf-track { animation: none; }
  .shelf-marquee { overflow-x: auto; }
  .shelf-set[aria-hidden="true"] { display: none; }
}

@keyframes cover-sheen {
  to { transform: translateX(100%); }
}

@keyframes shelf {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s var(--ease) both; }
  .hero h1 { animation-delay: .04s; }
  .hero .lead { animation-delay: .1s; }
  .hero .actions { animation-delay: .16s; }
}

.share-card-page {
  max-width: 560px;
  margin: 44px auto 24px;
}

.share-sheet {
  padding: 32px 28px;
  border-radius: 28px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.share-kicker {
  margin: 0 0 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--grove-ink);
}

.share-sheet h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.share-author {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.share-desc {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.share-actions .button-primary {
  background: var(--grove);
  color: #f7f4ee;
  border-color: var(--grove);
}

.share-browser-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.browser-guide {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(env(safe-area-inset-top) + 16px) 20px calc(env(safe-area-inset-bottom) + 24px);
  background: #0e2a21cc;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.browser-guide-arrow {
  align-self: flex-end;
  width: 56px;
  height: 56px;
  margin-right: 6px;
  margin-bottom: 12px;
  color: #f7f4ee;
}

.browser-guide-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.browser-guide-panel {
  width: min(380px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.browser-guide-panel h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.browser-guide-panel p {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--muted);
}

.browser-guide-panel .button-primary {
  width: 100%;
  background: var(--grove);
  color: #f7f4ee;
  border-color: var(--grove);
}

@media (max-width: 799px) {
  .share-card-page {
    margin: 24px auto 16px;
  }

  .share-sheet {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .share-actions {
    flex-direction: column;
  }

  .share-actions .button {
    width: 100%;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
