/* Option B, Warm Keepsake. After lysaterkeurst.com and annvoskamp.com:
   cream, tan and sage, rounded cards, a handwritten accent used sparingly,
   a "start here" row for new readers and a small gift for the email list.
   Lora throughout at 19px, Caveat for the handwritten bits.
   Motion dose: level 1. One ambient surface, soft window light that drifts
   slowly across the hero. */
@font-face { font-family: "Lora"; src: url(../fonts/Lora.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url(../fonts/Lora-Italic.woff2) format("woff2"); font-style: italic; font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(../fonts/Caveat.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --cream: #f8f1e5;
  --tan: #ecdcc2;
  --tan-2: #e2cdab;
  --card: #fffaf2;
  --ink: #3a2e24;
  --ink-soft: #6b5a4a;
  --sage: #6f8560;
  --sage-ink: #4f6443;
  --sage-pale: #dde5d3;
  --rose: #c9826b;
  --line: #e6d7bf;
  --out-expo: cubic-bezier(.22, 1, .36, 1);
  --r-bg: var(--card); --r-ink: var(--ink); --r-accent: var(--sage-ink); --r-on-accent: #fff; --r-soft: #f3e9d8; --r-line: var(--line);
  --r-head: "Lora", Georgia, serif; --r-body: "Lora", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 19px/1.7 "Lora", Georgia, serif; overflow-x: hidden; }
h1, h2, h3 { font-family: "Lora", Georgia, serif; font-weight: 600; line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(32px, 5vw, 46px); }
a { color: var(--sage-ink); }
.ph { background: color-mix(in srgb, var(--rose) 22%, transparent); border-radius: 4px; padding: 0 .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.small { font-size: 15px; color: var(--ink-soft); }
.sub { color: var(--ink-soft); }
.script { font-family: "Caveat", cursive; font-size: 32px; line-height: 1; color: var(--rose); margin: 0 0 6px; }

.draft-bar { background: var(--sage-ink); color: #fff; font: 13px system-ui, sans-serif; text-align: center; padding: 8px 16px; }
.draft-bar a { color: #fff; font-weight: 600; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 5vw, 56px); background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.mark { font-family: "Caveat", cursive; font-size: 32px; color: var(--ink); text-decoration: none; }
.nav nav { display: flex; gap: 24px; align-items: center; }
.nav nav a { color: var(--ink); text-decoration: none; font-size: 17px; }
.nav nav a:not(.nav-buy) { display: none; }
@media (min-width: 820px) { .nav nav a:not(.nav-buy) { display: inline; } }
.nav-buy { background: var(--sage-ink); color: #fff !important; padding: 9px 18px; border-radius: 999px; }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--sage-ink); color: #fff; text-decoration: none; font: 600 18px "Lora", serif; padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer; box-shadow: 0 12px 24px -14px rgba(79, 100, 67, .8); transition: transform 180ms var(--out-expo), background 180ms; }
.btn:hover { transform: translateY(-2px); background: var(--sage); }
.btn.big { font-size: 20px; padding: 17px 32px; }
.text-link { font-weight: 600; text-underline-offset: 5px; }

.band { padding: clamp(60px, 9vw, 110px) clamp(16px, 5vw, 56px); max-width: 1160px; margin: 0 auto; }

/* Hero with drifting window light */
.hero { position: relative; overflow: hidden; display: grid; gap: 40px; align-items: center; padding: clamp(48px, 8vw, 100px) clamp(16px, 5vw, 56px); background: linear-gradient(180deg, var(--tan) 0%, var(--cream) 100%); }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr 1fr; padding-left: max(56px, calc((100vw - 1160px) / 2 + 56px)); padding-right: max(56px, calc((100vw - 1160px) / 2 + 56px)); } }
.light { position: absolute; inset: 0; pointer-events: none; }
.light i { position: absolute; width: 46vmax; height: 30vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 248, 230, .85), transparent); filter: blur(10px); }
.light i:nth-child(1) { top: -12vmax; left: -10vmax; }
.light i:nth-child(2) { top: 20%; left: 45%; width: 36vmax; opacity: .7; }
.light i:nth-child(3) { bottom: -16vmax; left: 15%; width: 40vmax; opacity: .6; }
.anim .light i:nth-child(1) { animation: drift1 22s ease-in-out infinite alternate; }
.anim .light i:nth-child(2) { animation: drift2 28s ease-in-out infinite alternate; }
.anim .light i:nth-child(3) { animation: drift1 26s ease-in-out -9s infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(28vw, 6vh) rotate(8deg); } }
@keyframes drift2 { to { transform: translate(-30vw, -8vh) rotate(-10deg); } }
.hero-copy, .hero-book { position: relative; }
.hero h1 { font-size: clamp(58px, 10vw, 108px); line-height: .95; letter-spacing: -.02em; margin-bottom: 22px; }
.hook { font-size: clamp(21px, 2.6vw, 25px); line-height: 1.5; max-width: 32ch; margin: 0 0 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.hero-book { display: grid; justify-items: center; perspective: 1400px; }
.cover { --ry: -12deg; --rx: 0deg; position: relative; overflow: hidden; width: min(300px, 66vw); aspect-ratio: 2 / 3; padding: 34px 28px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); background: linear-gradient(170deg, #fbf4e6, #efdfc4); border-radius: 3px 10px 10px 3px; box-shadow: -7px 0 0 -2px #d9c3a0 inset, 0 40px 70px -34px rgba(58, 46, 36, .6); transform: rotateY(var(--ry)) rotateX(var(--rx)); transition: transform 700ms var(--out-expo); }
.c-leaf { position: absolute; right: -40px; top: 40px; width: 200px; height: 200px; border-radius: 0 100% 0 100%; background: var(--sage-pale); transform: rotate(18deg); }
.c-title { position: relative; font-size: 50px; line-height: 1; font-weight: 600; }
.c-title em { font-family: "Caveat", cursive; font-style: normal; font-weight: 600; font-size: 74px; color: var(--sage-ink); }
.c-author { position: relative; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.stand-in { font: 13px system-ui, sans-serif; color: var(--ink-soft); margin: 16px 0 0; }

/* Start here */
.start h2 { text-align: center; }
.tiles { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 820px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: grid; gap: 6px; background: var(--card); border-radius: 22px; padding: 28px; color: inherit; text-decoration: none; border: 1px solid var(--line); transition: transform 200ms var(--out-expo), box-shadow 200ms; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(58, 46, 36, .6); }
.tile .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-pale); color: var(--sage-ink); font-weight: 700; }
.tile b { font-size: 23px; }
.tile span:last-child { color: var(--ink-soft); font-size: 17px; }

/* Journal */
.journal .head { text-align: center; margin-bottom: 30px; }
.journal [data-compose] { max-width: 720px; margin: 0 auto; }
.cards { display: grid; gap: 22px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: 0 20px 40px -34px rgba(58, 46, 36, .7); }
.card .post-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card .post-img.empty { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--tan) 0 14px, var(--tan-2) 14px 28px); color: var(--ink-soft); font: 14px system-ui, sans-serif; }
.card-body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.card .meta { font: 600 13px system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-ink); margin: 0 0 8px; }
.card h3 { font-size: 25px; }
.card h3 a { color: inherit; text-decoration: none; }
.card-body > p { margin: 0; color: var(--ink-soft); }
.card .social { margin-top: auto; padding-top: 18px; }
.card .read { margin-left: auto; }
span.heart-btn { pointer-events: none; opacity: .6; }

/* Meet me */
.meet { display: grid; gap: 36px; align-items: center; }
@media (min-width: 820px) { .meet { grid-template-columns: 380px 1fr; gap: 64px; } }
.photo { aspect-ratio: 1; border-radius: 50% 50% 46% 54% / 52% 48% 52% 48%; background: repeating-linear-gradient(135deg, var(--tan) 0 14px, var(--tan-2) 14px 28px); display: grid; place-items: center; color: var(--ink-soft); font: 15px system-ui, sans-serif; max-width: 380px; border: 10px solid var(--card); box-shadow: 0 30px 60px -40px rgba(58, 46, 36, .8); }
.meet p { font-size: 21px; max-width: 46ch; }
.sign { font-family: "Caveat", cursive; font-size: 44px !important; color: var(--sage-ink); margin: 0; }

/* Pages from the book */
.pages { text-align: center; }
.pages [data-compose] { max-width: 720px; margin: 0 auto; }
.paper-row { display: grid; gap: 22px; margin-top: 20px; text-align: left; }
@media (min-width: 820px) { .paper-row { grid-template-columns: repeat(2, 1fr); } }
.paper { margin: 0; background: #fffdf8; border-radius: 6px; padding: 40px 34px 28px; box-shadow: 0 24px 40px -30px rgba(58, 46, 36, .6); background-image: repeating-linear-gradient(180deg, transparent 0 37px, #efe4d0 37px 38px); background-position: 0 30px; }
.paper blockquote { margin: 0 0 16px; font-style: italic; font-size: 22px; line-height: 38px; }
.paper .q-link { color: inherit; text-decoration: none; }
.paper figcaption { font: 600 13px system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.paper figcaption:not(:empty)::before { content: "Chapter "; }

/* Buy and gift */
.buy { display: grid; gap: 26px; align-items: start; }
@media (min-width: 860px) { .buy { grid-template-columns: 1.2fr 1fr; } }
.buy-card { background: var(--sage-ink); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 56px); }
.buy-card .script { color: #f3d9b8; }
.buy-card .btn { background: var(--cream); color: var(--ink); margin-top: 8px; }
.buy-card a { color: #fff; }
.buy-card .formats, .buy-card .signed { font-size: 16px; margin: 16px 0 0; opacity: .9; }
.buy-card .ph { background: #f3e6c9; color: var(--ink); }
.note-card { display: grid; gap: 12px; background: #fff3c9; color: var(--ink); padding: 34px 30px; border-radius: 4px; transform: rotate(1.4deg); box-shadow: 0 26px 40px -26px rgba(58, 46, 36, .6); position: relative; }
.note-card::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; translate: -50% 0; background: color-mix(in srgb, var(--sage) 35%, transparent); }
.note-card h3 { font-size: 30px; margin: 0; }
.note-card p { margin: 0; }
.note-card input { font: inherit; font-size: 18px; padding: 14px 16px; border: 1.5px solid #e6d498; border-radius: 12px; background: #fffbe9; }
.note-card .btn { justify-self: start; }

.foot { padding: 40px 16px 60px; text-align: center; color: var(--ink-soft); font-size: 16px; border-top: 1px solid var(--line); }
.foot a { color: inherit; }
.foot p { margin: 6px 0; }

/* Reveals */
.anim [data-reveal] [data-reveal-child], .anim [data-reveal]:not(:has([data-reveal-child])) { opacity: 0; transform: translateY(22px); transition: opacity 800ms var(--out-expo), transform 800ms var(--out-expo); }
.anim [data-reveal].in [data-reveal-child], .anim [data-reveal].in:not(:has([data-reveal-child])) { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn, .tile { transition: none; } }
