/* Storybound static site. Same look as the main site: paper, ink, one maroon accent,
   Playfair for headlines, Inter for text, IBM Plex Mono for small labels. */
:root {
  --paper: #f6f0e5; --paper-2: #ece3d3; --ink: #17120f; --muted: #6b6058; --line: #e2d7c6;
  --accent: #8f1d2c; --accent-soft: #f2b8a8; --deep: #1b120e; --white: #fff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1120px; --gutter: 24px; --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #17120f; --paper-2: #211a16; --ink: #f3ece1; --muted: #b3a597; --line: #3a302a; --accent: #d4606f; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { text-wrap: pretty; }
em.hl { font-style: italic; font-weight: 500; color: var(--accent); }
.mono { font: 500 .78rem/1.4 var(--mono); letter-spacing: .03em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius);
       background: var(--accent); color: #fff; font: 600 1rem var(--sans); text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.small { padding: 9px 16px; font-size: .92rem; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter);
             max-width: var(--wrap); margin: 0 auto; }
.brand { font: 600 1.5rem var(--serif); text-decoration: none; }
.brand span { color: var(--accent); }
.site-head nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.site-head nav a { text-decoration: none; }
.site-head nav a:not(.btn):hover { color: var(--accent); }
.home .site-head { position: absolute; left: 0; right: 0; top: 0; z-index: 5; color: #fff; }
.home .site-head .brand span { color: var(--accent-soft); }
@media (max-width: 760px) { .site-head nav a:not(.btn) { display: none; } }

/* cover */
.cover { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff; background: var(--deep); overflow: hidden; }
.cover img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.cover::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,18,14,.55) 0%, rgba(27,18,14,.05) 30%, rgba(27,18,14,.2) 50%, rgba(27,18,14,.92) 88%); }
.cover-inner { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 56px; }
.masthead { font: 600 clamp(3.4rem, 11vw, 8.6rem)/.9 var(--serif); letter-spacing: -.02em; }
.masthead span { color: var(--accent-soft); }
.issue { border-top: 1px solid rgba(255,255,255,.55); margin-top: 14px; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.cover h1 { margin-top: 30vh; max-width: 760px; }
.cover h1 em { color: var(--accent-soft); font-style: italic; font-weight: 500; }
.cover .lead { max-width: 560px; margin-top: 16px; font-size: 1.1rem; color: rgba(255,255,255,.88); }
.cover .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cover .btn.ghost { color: #fff; }
.home .site-head .brand { visibility: hidden; }  /* the masthead already says Storybound */
@media (max-width: 760px) {
  /* phones: photo on top (faces clear), text below on the dark background */
  .cover { min-height: 0; }
  .cover img.bg { top: 240px; height: 110vw; bottom: auto; object-position: 50% 50%; }
  .cover::after { top: 240px; height: 110vw; bottom: auto;
    background: linear-gradient(180deg, #1b120e 0%, rgba(27,18,14,0) 14%, rgba(27,18,14,0) 70%, #1b120e 100%); }
  .cover h1 { margin-top: calc(110vw - 30px); }
}
.cover-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 22px; color: rgba(255,255,255,.85); }
.note-fiction { color: rgba(255,255,255,.6); }

/* barcode signature */
.barcode { display: inline-flex; gap: 12px; background: #fff; color: #17120f; padding: 10px 14px; border-radius: 2px; }
.barcode .bars { width: 96px; background: repeating-linear-gradient(90deg,#17120f 0 2px,transparent 2px 4px,#17120f 4px 5px,transparent 5px 8px,#17120f 8px 11px,transparent 11px 13px); }
.barcode .meta { font: 500 .7rem/1.2 var(--mono); display: flex; flex-direction: column; justify-content: center; }
.barcode .meta b { font-size: 1.15rem; }

/* sections */
section.sec { padding: 88px 0; }
section.alt { background: var(--paper-2); }
.sec-head { border-top: 3px solid var(--ink); padding-top: 16px; margin-bottom: 40px; max-width: 760px; }
.sec-head .folio { display: block; margin-bottom: 14px; color: var(--accent); }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* contents strip */
.contents { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.contents a { padding: 18px 16px 18px 0; text-decoration: none; border-right: 1px solid var(--line); }
.contents a:last-child { border-right: 0; }
.contents a span { display: block; color: var(--accent); }
.contents a b { font: 600 1.05rem var(--serif); }
@media (max-width: 760px) { .contents { grid-template-columns: 1fr 1fr; } .contents a:nth-child(2) { border-right: 0; } }

/* sample pages */
.pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pages figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 18px 36px rgba(23,18,15,.18), 0 2px 6px rgba(23,18,15,.12); }
.pages figcaption { margin-top: 10px; color: var(--muted); }
@media (max-width: 900px) { .pages { grid-template-columns: repeat(2, 1fr); } }
.flip { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; margin-top: 64px; }
.flip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: #000; }
@media (max-width: 760px) { .flip { grid-template-columns: 1fr; } .flip video { max-width: 320px; } }

/* steps */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.steps li { border-top: 1px solid var(--line); padding: 22px 0 26px; display: grid; grid-template-columns: 56px 1fr; }
.steps li b { font: 500 1rem var(--mono); color: var(--accent); padding-top: 4px; }
.steps p { color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* two ways to send photos */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.way { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.way h3 { margin-bottom: 10px; }
.way ol { padding-left: 20px; color: var(--muted); }
.way ol li { margin: 6px 0; }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }

/* pull quote */
.pull { border-top: 3px solid var(--accent); padding-top: 22px; max-width: 760px; }
.pull blockquote { font: italic 500 clamp(1.6rem, 3.2vw, 2.4rem)/1.25 var(--serif); color: var(--accent); }
.pull figcaption { margin-top: 14px; color: var(--muted); }

/* pricing */
.prices { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
table.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table td { padding: 13px 0; border-bottom: 1px solid var(--line); }
.price-table td:last-child { text-align: right; font: 600 1.15rem var(--serif); }
.price-box { background: var(--accent); color: #fff; padding: 32px; border-radius: var(--radius); }
.price-box .big { font: 600 3rem/1 var(--serif); margin: 10px 0 14px; }
.price-box ul { list-style: none; margin: 18px 0 24px; }
.price-box li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.25); }
.price-box .btn { background: #fff; color: var(--accent); }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }

/* privacy band */
.band { background: var(--accent); color: #fff; }
.band .sec-head { border-color: #fff; }
.band .sec-head .folio, .band .sec-head p { color: rgba(255,255,255,.85); }
.band ul { list-style: none; max-width: 760px; }
.band li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.3); }
.band a { color: #fff; }

/* faq */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 1.15rem var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* order page */
.order-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; border-top: 3px solid var(--ink); padding-top: 18px; margin-bottom: 44px; }
legend { font: 600 1.5rem var(--serif); padding-right: 12px; }
legend .mono { display: block; color: var(--accent); margin-bottom: 6px; }
.field { margin-top: 18px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .88rem; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=url], input[type=date], input[type=tel], select, textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: var(--radius);
                 padding: 9px 14px; cursor: pointer; font-weight: 500; margin: 0; }
.choices input { accent-color: var(--accent); }
.choices label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.summary { position: sticky; top: 20px; background: var(--paper-2); border-radius: var(--radius); padding: 26px; }
.summary h3 { margin-bottom: 14px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.summary .total b { font: 600 1.8rem var(--serif); }
.summary .btn { width: 100%; justify-content: center; margin-top: 12px; }
.summary pre { white-space: pre-wrap; font: 400 .82rem/1.5 var(--mono); background: var(--paper); border: 1px solid var(--line);
               border-radius: var(--radius); padding: 12px; max-height: 220px; overflow: auto; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper);
         padding: 12px 18px; border-radius: var(--radius); font-weight: 500; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 20; }
.toast.show { opacity: 1; }
.hidden { display: none !important; }

/* prose pages */
.prose h2 { margin: 40px 0 12px; font-size: 1.7rem; }
.prose p, .prose li { color: var(--muted); margin-top: 10px; }
.prose ul { padding-left: 20px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 60px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid a { display: block; text-decoration: none; margin: 4px 0; }
.foot-grid a:hover { color: var(--accent); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
