/* Storycall: a family heirloom. Bone paper, bookcloth green, gilt only on the cover. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=Lora:ital,wght@0,400;0,500;1,400&family=Caveat:wght@500;600&display=swap');

:root {
  --bg: #f2efe6;
  --paper: #faf8f2;
  --ink: #1f2a23;
  --muted: #56645a;
  --line: #d9d6c8;
  --accent: #2e4a3b;
  --accent-ink: #f6f3ea;
  --soft: #e7e6da;
  --gilt: #b58a3c;
  --cloth: #26402f;
  --cloth-ink: #efe9d8;
  --note: #6b4a2e;
  --ok: #3c6b47;
  --err: #a1402c;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Lora', Georgia, serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --art-blend: multiply;
  --art-mat: transparent;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a16;
    --paper: #1b231e;
    --ink: #ece7d8;
    --muted: #a7ae9f;
    --line: #2f3a32;
    --accent: #d7b46a;
    --accent-ink: #18201b;
    --soft: #222c25;
    --cloth: #1f3326;
    --cloth-ink: #efe9d8;
    --note: #e3c18a;
    --ok: #9cc7a4;
    --err: #ec9a84;
    --art-blend: normal;
    --art-mat: #f4f1e8;
  }
}

body { font: 18px/1.65 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(42px, 5.4vw, 68px); line-height: 1.04; padding-bottom: 4px; }
h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; }
h3 { font-size: 26px; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
.btn { border-radius: 4px; font: 600 16px var(--sans); letter-spacing: .01em; transition: transform .2s cubic-bezier(.16, 1, .3, 1), background .2s; }
.btn:active { transform: translateY(1px); }
.btn.quiet, .tabs button { border-radius: 4px; }
input, select, textarea { border-radius: 4px; }
.card, .item, form.box { border-radius: 6px; }

/* Paper grain, fixed so it never repaints on scroll. */
body.story::before, html.story body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 30; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body.story::before, html.story body::before { mix-blend-mode: screen; opacity: .12; } }

/* ---------- landing ---------- */
.s-nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.s-nav .mark { font: italic 600 30px var(--serif); color: var(--ink); text-decoration: none; }
.s-nav nav { display: flex; align-items: center; gap: 28px; }
.s-nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 16px; }
.s-nav nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 760px) { .s-nav nav a:not(.btn) { display: none; } }

.s-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 24px 0 88px; min-height: min(680px, calc(100dvh - 76px)); }
.s-hero .lead { font-size: 20px; color: var(--muted); max-width: 30em; margin: 22px 0 34px; }
.s-hero .ctas { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.s-hero .link { color: var(--ink); font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.art { position: relative; margin: 0; }
.art img { width: 100%; height: auto; display: block; mix-blend-mode: var(--art-blend); background: var(--art-mat); }
@media (prefers-color-scheme: dark) { .art img { padding: 18px; border-radius: 3px; box-shadow: 0 30px 60px -30px #000a; } }
.note { font: 600 27px/1.15 var(--hand); color: var(--note); position: absolute; transform: rotate(-4deg); }
.s-hero .note { position: relative; display: block; margin: 18px 0 0 6%; max-width: 15em; }
.s-hero .note::before { content: ''; display: block; width: 74px; height: 2px; background: currentColor; opacity: .5; margin: 0 0 8px 10px; transform: rotate(-8deg); border-radius: 2px; }
@media (max-width: 860px) {
  .s-hero { grid-template-columns: 1fr; padding-top: 16px; min-height: 0; gap: 28px; }
}

/* The call, written out like a transcript. */
.s-call { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; padding: 88px 0; border-top: 1px solid var(--line); }
.s-call .side { position: sticky; top: 32px; align-self: start; }
.s-call .side p { color: var(--muted); max-width: 26em; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { padding-left: 30px; position: relative; }
.facts li::before { content: '❧'; position: absolute; left: 0; top: -2px; color: var(--accent); font-size: 20px; }
.script { display: grid; gap: 22px; }
.when { font: 600 24px var(--hand); color: var(--note); }
.line { max-width: 34em; }
.line .who { font: italic 500 15px var(--sans); color: var(--muted); display: block; margin-bottom: 4px; }
.line.caller p { font: italic 400 19px/1.6 var(--sans); color: var(--muted); border-left: 2px solid var(--line); padding-left: 18px; margin: 0; }
.line.teller p { font: 500 28px/1.32 var(--serif); margin: 0; }
.letter { background: var(--paper); border: 1px solid var(--line); padding: 26px 28px; box-shadow: 0 1px 0 var(--line), 0 24px 40px -28px #2a3a2e55; transform: rotate(.6deg); max-width: 32em; }
.letter .from { font-size: 14px; color: var(--muted); }
.letter h3 { margin: 6px 0 4px; }
@media (max-width: 860px) { .s-call { grid-template-columns: 1fr; gap: 36px; padding: 64px 0; } .s-call .side { position: static; } }

/* One story, three books: an open spread. */
.s-books { padding: 96px 0; text-align: center; }
.s-books > p { color: var(--muted); max-width: 34em; margin: 0 auto 30px; }
.ribbons { display: inline-flex; gap: 6px; padding: 6px; background: var(--soft); border-radius: 6px; margin-bottom: 34px; }
.ribbons button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: 500 16px var(--sans); cursor: pointer; }
.ribbons button[aria-pressed='true'] { background: var(--paper); box-shadow: 0 1px 2px #0002; color: var(--accent); }
.spread {
  display: grid; grid-template-columns: 1fr 1fr; text-align: left; max-width: 1040px; margin: 0 auto;
  background: var(--paper); box-shadow: 0 2px 0 var(--line), 0 50px 80px -50px #1f2a2399; position: relative;
}
.spread::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 60px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, #0000000f 45%, #00000022 50%, #0000000f 55%, transparent); pointer-events: none; }
.spread .page { padding: 44px 48px; min-height: 460px; }
.spread .page.pic { display: grid; place-items: center; padding: 36px; }
.spread img { width: 100%; height: auto; border-radius: 2px; display: block; transition: opacity .35s; }
.spread .num { font: italic 500 16px var(--serif); color: var(--muted); }
.spread h3 { font-size: 34px; margin: 4px 0 18px; }
.spread .body p { font-size: 17.5px; line-height: 1.75; }
.spread.kids .body p { font: 500 23px/1.5 var(--serif); }
.spread.coloring img { filter: grayscale(1) contrast(1.1); }
.spread .page.text { transition: opacity .35s; }
.spread.swap .page.text, .spread.swap img { opacity: 0; }
.spread .body p:first-child::first-letter { font: 600 64px/.8 var(--serif); float: left; margin: 8px 10px 0 0; color: var(--accent); }
@media (max-width: 820px) { .spread { grid-template-columns: 1fr; } .spread::after { display: none; } .spread .page { padding: 28px 22px; min-height: 0; } }

/* Shelf */
.s-shelf { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; padding: 40px 0 96px; }
.s-shelf .art { max-width: 420px; justify-self: center; }
.s-shelf p { color: var(--muted); max-width: 30em; }
@media (max-width: 820px) { .s-shelf { grid-template-columns: 1fr; gap: 20px; padding-bottom: 64px; } }

/* The cover: bookcloth with a gilt frame, holding the bookplate form. The one color block on the page. */
.s-cover {
  background-color: var(--cloth); color: var(--cloth-ink); padding: 96px 16px;
  background-image: repeating-linear-gradient(45deg, #ffffff05 0 2px, transparent 2px 5px), repeating-linear-gradient(-45deg, #00000012 0 2px, transparent 2px 5px);
}
.s-cover .frame { max-width: 760px; margin: 0 auto; border: 1px solid #c9a35a88; outline: 1px solid #c9a35a55; outline-offset: 8px; padding: 48px 28px; text-align: center; }
.s-cover h2 { color: #f3ead2; }
.s-cover .price { font: 500 22px var(--sans); color: #e0d6bb; margin: 6px 0 34px; }
.s-cover .price b { font: 600 44px var(--serif); color: #f3d79b; margin-right: 6px; }
.plate {
  background: #f8f4e8; color: #22301f; text-align: left; padding: 40px 40px 34px; max-width: 680px; margin: 0 auto;
  border: 1px solid #bfa76f; box-shadow: inset 0 0 0 6px #f8f4e8, inset 0 0 0 7px #bfa76f, 0 30px 60px -30px #000c;
}
.plate .exl { text-align: center; font: italic 600 40px var(--serif); margin: 0; color: #2b4434; }
.plate .orn { text-align: center; color: #a98a45; margin: 0 0 22px; letter-spacing: 8px; }
.plate .sentence { font: 400 19px/2.5 var(--sans); }
.plate label { display: inline; font: inherit; margin: 0; }
.plate input, .plate select {
  display: inline-block; width: auto; min-height: 44px; padding: 4px 6px; margin: 0 4px; vertical-align: baseline;
  border: 0; border-bottom: 1.5px solid #8f8a74; border-radius: 0; background: transparent; color: #1c2a20; font: italic 500 22px var(--serif);
}
.plate input::placeholder { color: #7b7966; }
.plate input:focus, .plate select:focus { outline: none; border-bottom-color: #2e4a3b; background: #2e4a3b0d; }
.plate .w-name { width: 8.5em; } .plate .w-phone { width: 8.5em; } .plate .w-mail { width: 13em; } .plate .w-tz { max-width: 11em; }
.plate .go { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.plate .btn { background: #2e4a3b; border-color: #2e4a3b; color: #f6f3ea; }
.plate .msg { color: #4c5a50; }
.plate .msg.err { color: #9c3a25; }
@media (max-width: 600px) { .plate { padding: 30px 20px; } .plate input, .plate select { width: 100% !important; max-width: none; margin: 0; } .plate .sentence { line-height: 2.1; } }

/* Questions */
.s-faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; padding: 96px 0 72px; }
.s-faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.s-faq details:last-child { border-bottom: 1px solid var(--line); }
.s-faq summary { font: 600 22px var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; align-items: center; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: '+'; font: 400 26px var(--serif); color: var(--accent); transition: transform .25s; }
.s-faq details[open] summary::after { transform: rotate(45deg); }
.s-faq details p { color: var(--muted); margin: 8px 0 4px; max-width: 38em; }
@media (max-width: 820px) { .s-faq { grid-template-columns: 1fr; gap: 12px; padding: 64px 0 48px; } }

.s-foot { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Entrances: the hero settles in, sections rise as they arrive. */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); }
  .rise.in { opacity: 1; transform: none; }
  .s-hero .art img { animation: develop 1.6s cubic-bezier(.16, 1, .3, 1) both .1s; }
  .s-hero .note { animation: write 1s ease both 1s; }
  @keyframes develop { from { opacity: 0; filter: sepia(.6) blur(3px); transform: scale(.985); } to { opacity: 1; filter: none; transform: none; } }
  @keyframes write { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
}

@media (max-width: 600px) {
  .ribbons { display: flex; }
  .ribbons button { flex: 1; padding: 0 8px; font-size: 15px; white-space: nowrap; }
  .s-books { padding: 64px 0; }
  .s-shelf .art { max-width: 280px; }
}
.brand { font-style: italic; font-weight: 600; font-size: 28px; }

/* Feather the watercolor's paper into the page so no box edge shows. */
@media (prefers-color-scheme: light) {
  .s-hero .art img, .s-shelf .art img { -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }
}
