:root {
  --bg: #fbf8f4;
  --fg: #2b2622;
  --muted: #6b625a;
  --accent: #b5452f;
  --card: #ffffff;
  --line: #e8e1d8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1715;
    --fg: #f1ebe4;
    --muted: #b3a89d;
    --accent: #e98a72;
    --card: #24201d;
    --line: #3a3430;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main, header, footer { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }
header { padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
header a.brand { color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.15rem; display: inline-flex; align-items: center; gap: .5rem; }
nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; font-size: .95rem; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.15; margin: 2.5rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 .5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .25rem; }
p, li { color: var(--fg); }
.lead { font-size: 1.2rem; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.badge { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem; color: var(--muted); font-size: .9rem; }
a { color: var(--accent); }
ul { padding-left: 1.2rem; }
footer { padding: 3rem 1.25rem 2.5rem; color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); margin-right: 1rem; }
.form label { display: block; font-weight: 600; margin: 1rem 0 .35rem; }
.form label:first-child { margin-top: 0; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form button {
  margin-top: 1rem; font: inherit; font-weight: 600; color: #fff; background: var(--accent);
  border: 0; border-radius: 999px; padding: .75rem 1.5rem; cursor: pointer;
}
.story .teaser img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); margin: 1rem 0; }
.comic-page { max-width: 52rem; }
.comic { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.5rem 0 1rem; }
.panel { position: relative; margin: 0; background: var(--card); border: 3px solid var(--fg); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.panel.wide { grid-column: 1 / -1; }
.panel img { display: block; width: 100%; height: auto; }
.panel.text { padding: 1.25rem; justify-content: center; gap: .75rem; }
.caption { margin: 0; align-self: flex-start; background: #f6e7b8; color: #2b2622; border: 2px solid var(--fg); padding: .35rem .7rem; font-weight: 600; font-size: .98rem; line-height: 1.4; }
.panel > .caption:first-child:not(:only-child) { border-width: 0 2px 2px 0; }
figure.panel > .caption { position: absolute; top: 0; left: 0; max-width: 75%; border-width: 0 2px 2px 0; z-index: 1; }
figure.panel > .caption.bottom { top: auto; bottom: 0; left: auto; right: 0; border-width: 2px 0 0 2px; }
.panel.text > .caption { border-width: 2px; }
.bubble { position: relative; align-self: center; margin: .75rem 0 1.25rem; background: #fff; color: #2b2622; border: 3px solid var(--fg); border-radius: 50% / 40%; padding: 1.1rem 1.6rem; font-weight: 800; font-size: clamp(1.15rem, 4vw, 1.5rem); text-align: center; }
.bubble::after { content: ""; position: absolute; left: 22%; bottom: -18px; border: 9px solid transparent; border-top: 14px solid var(--fg); border-left-width: 2px; }
.bubble.overlay { position: absolute; top: 3.2rem; left: 68%; transform: translateX(-50%); margin: 0; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.phone-note { align-self: center; width: min(100%, 22rem); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: .7rem .9rem; box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: .92rem; display: flex; flex-direction: column; }
.phone-note strong { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.phone-note.overlay { position: absolute; top: 3.4rem; left: 1rem; width: min(46%, 20rem); }
.panel.tall-side { justify-content: flex-start; }
.finale { margin-top: auto; display: flex; flex-direction: column; gap: .6rem; }
.finale .caption { font-weight: 500; }
.signature { margin: 0; color: var(--muted); font-style: italic; }
@media (max-width: 560px) {
  .comic { grid-template-columns: 1fr; }
  .panel.tall-side { justify-content: center; }
  figure.panel > .caption, figure.panel > .caption.bottom { position: static; max-width: none; align-self: stretch; border-width: 0 0 2px; }
  figure.panel > .caption.bottom { border-width: 2px 0 0; }
  .phone-note.overlay { position: static; width: auto; margin: .9rem 1rem 1.1rem; }
  .bubble.overlay { position: static; transform: none; white-space: normal; align-self: center; margin: .9rem 1rem 1.4rem; }
}
.hint { color: var(--muted); font-weight: 400; font-size: .92rem; }
.notice { border-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.shot { display: block; width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.12); background: var(--card); }
.hero { display: grid; grid-template-columns: 1fr 13rem; gap: 2rem; align-items: center; }
.hero h1 { margin-top: 2rem; }
.feature { display: grid; grid-template-columns: 11rem 1fr; gap: 1.75rem; align-items: center; margin: 2.25rem 0; }
.feature:nth-of-type(odd) { grid-template-columns: 1fr 11rem; }
.feature:nth-of-type(odd) .shot { order: 2; }
.feature h3 { margin-top: 0; font-size: 1.15rem; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2.5rem 0 1rem; }
.strip figure { margin: 0; }
.strip figcaption { margin-top: .75rem; font-size: .92rem; color: var(--muted); }
.strip figcaption strong { display: block; color: var(--fg); }
ul.checks { list-style: none; padding: 0; }
ul.checks li { position: relative; padding-left: 1.6rem; margin: .6rem 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; }
  .hero .shot { width: 62%; margin: 0 auto; }
  .feature, .feature:nth-of-type(odd) { grid-template-columns: 1fr; gap: 1rem; }
  .feature .shot, .feature:nth-of-type(odd) .shot { order: 0; width: 58%; margin: 0 auto; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip figure:last-child { grid-column: 1 / -1; width: 50%; margin: 0 auto; }
}
