/* All My Love · calm editorial pages with handmade touches
   cream paper, soft brown ink, Libre Caslon, Homemade Apple notes, rough pencil doodles */

:root {
  --paper: #F5EFE3;
  --paper-2: #EDE4D3;
  --card: #FBF8F2;
  --ink: #4B3A2C;
  --ink-soft: #7E6A57;
  --ink-faint: #A8957F;
  --rule: rgba(75, 58, 44, .16);
  --sage: #A9B4A0;
  --rose: #C9A3A0;
  --oat: #D8CCB6;
  --blue: #7C8AA0;
  --butter: #F1DDA4;
  --kraft: #C4A57D;
  --kraft-2: #B8976C;
  --twine: #8C6B4A;
  --display: 'Libre Caslon Display', Georgia, serif;
  --text: 'Libre Caslon Text', Georgia, serif;
  --hand: 'Homemade Apple', cursive;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .23 0 0 0 0 .17 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--ink); color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); display: inline-block; }
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.6; color: var(--ink); }
.muted { color: var(--ink-soft); }
.hand { font-family: var(--hand); font-weight: 400; line-height: 1.9; color: var(--ink-soft); }
.center { text-align: center; }

/* ── buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: var(--text); font-size: 15px; letter-spacing: .04em;
  padding: 15px 28px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color .3s; }
.link:hover { border-color: var(--ink); }

/* ── header ────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(245, 239, 227, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; }
.brand img { width: 30px; height: auto; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-soft); position: relative; transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink); }
.nav .btn { padding: 10px 20px; font-size: 14px; color: var(--paper); }
.nav .btn:hover { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; padding: 8px 0; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 24px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 18px; width: 100%; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 18px; width: auto; border-bottom: 1px solid var(--ink); }
}

/* ── handmade bits ─────────────────────────────── */
.washi { position: absolute; height: 30px; width: 120px; z-index: 3; opacity: .92; filter: drop-shadow(0 1px 1px rgba(60, 40, 20, .08));
  background: repeating-linear-gradient(45deg, rgba(201,163,160,.8) 0 9px, rgba(225,190,186,.8) 9px 18px);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='30'%3E%3Cpath d='M0 0h6v30H0z'/%3E%3C/svg%3E");
}
.washi.sage { background: repeating-linear-gradient(45deg, rgba(169,180,160,.85) 0 9px, rgba(196,206,188,.85) 9px 18px); }
.washi.butter { background: repeating-linear-gradient(45deg, rgba(241,221,164,.9) 0 9px, rgba(248,236,200,.9) 9px 18px); }
.washi.blue { background: repeating-linear-gradient(45deg, rgba(124,138,160,.6) 0 9px, rgba(165,177,196,.6) 9px 18px); }

.taped { position: relative; background: var(--card); padding: 14px; box-shadow: 0 1px 2px rgba(60,40,20,.08), 0 24px 40px -28px rgba(60,40,20,.45); }
.taped img { width: 100%; }

.dots { background-image: radial-gradient(#D3C6B0 1.4px, transparent 1.8px); background-size: 26px 26px; }

/* perforated postage stamp */
.stamp { --perf: 7px; position: relative; padding: 12px; background: var(--card);
  -webkit-mask: radial-gradient(circle at center, transparent 0 calc(var(--perf) * .45), #000 calc(var(--perf) * .45 + .5px)) 0 0 / var(--perf) var(--perf) round, linear-gradient(#000, #000) center / calc(100% - var(--perf) * 1.2) calc(100% - var(--perf) * 1.2) no-repeat;
  mask: radial-gradient(circle at center, transparent 0 calc(var(--perf) * .45), #000 calc(var(--perf) * .45 + .5px)) 0 0 / var(--perf) var(--perf) round, linear-gradient(#000, #000) center / calc(100% - var(--perf) * 1.2) calc(100% - var(--perf) * 1.2) no-repeat;
  filter: drop-shadow(0 10px 18px rgba(60,40,20,.14));
}
.stamp-wrap { filter: drop-shadow(0 14px 22px rgba(60,40,20,.16)); }

/* rough.js doodles */
.doodle { display: block; overflow: visible; }
.doodle path { transition: stroke-dashoffset 1.6s var(--ease), fill-opacity .8s .9s; }
.doodle.pending path { fill-opacity: 0; }

/* ── brown-paper parcel (secret mode) ──────────── */
.parcel { position: relative; aspect-ratio: 151 / 216; border-radius: 3px 6px 6px 3px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.18), transparent 60%),
    repeating-linear-gradient(8deg, rgba(90,60,30,.04) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, var(--kraft), var(--kraft-2));
  box-shadow: inset 0 0 0 1px rgba(80,55,30,.18), 0 30px 50px -30px rgba(60,40,20,.55);
}
.parcel::before, .parcel::after { content: ""; position: absolute; background: var(--twine); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.parcel::before { left: 0; right: 0; top: 58%; height: 3px; }
.parcel::after { top: 0; bottom: 0; left: 50%; width: 3px; }
.parcel .knot { position: absolute; left: 50%; top: 58%; width: 54px; height: 30px; transform: translate(-50%, -50%); z-index: 2; }
.parcel .tag { position: absolute; z-index: 3; left: 56%; top: 62%; background: var(--card); padding: 10px 16px 10px 22px; transform: rotate(-8deg); box-shadow: 0 8px 16px -8px rgba(60,40,20,.4); font-family: var(--hand); font-size: 13px; color: var(--ink); clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); white-space: nowrap; }
.parcel .tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--kraft-2); transform: translateY(-50%); }
.parcel .pstamp { position: absolute; top: 9%; right: 9%; width: 24%; --perf: 6px; padding: 6px; }
.parcel .pstamp img { width: 100%; }
.parcel .addr { position: absolute; top: 14%; left: 11%; font-family: var(--hand); font-size: clamp(11px, 1.2vw, 15px); line-height: 2; color: rgba(60,40,25,.72); transform: rotate(-3deg); }

/* cover switch */
html[data-cover="secret"] .if-open { display: none !important; }
html[data-cover="open"] .if-secret { display: none !important; }

/* ── scroll reveals ────────────────────────────── */
.rise { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.rise.d1 { transition-delay: .12s; } .rise.d2 { transition-delay: .24s; } .rise.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } .marquee-track { animation: none !important; } }

/* ── page-level shared blocks ──────────────────── */
.page-hero { padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); position: relative; }
.page-hero h1 { font-size: clamp(52px, 8vw, 104px); margin: 18px 0 22px; }
.page-hero .lede { max-width: 620px; }

.notice-band { background: var(--card); border: 1px solid var(--rule); padding: 22px 26px; display: flex; gap: 18px; align-items: center; }
.notice-band .doodle { width: 56px; height: 56px; flex: none; }

.chip { display: inline-block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-soft); background: var(--card); }

.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }

/* waitlist */
.waitlist { background: var(--ink); color: var(--paper); overflow: hidden; }
.waitlist .eyebrow, .waitlist .muted { color: #CDBFAC; }
.waitlist .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.waitlist .btn:hover { background: transparent; color: var(--paper); }
.waitlist .btn.ghost { background: transparent; color: var(--paper); }
.waitlist .btn.ghost:hover { background: var(--paper); color: var(--ink); }
.waitlist h2 { font-size: clamp(44px, 7vw, 92px); }
.waitlist .hand { color: #D9CBB6; }
.waitlist .flower-bg { position: absolute; right: -4%; bottom: -18%; width: min(420px, 48vw); opacity: .16; pointer-events: none; }

/* footer */
.site-foot { padding: 80px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--text); font-weight: 400; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { text-decoration: none; color: var(--ink); transition: color .3s; }
.foot-grid a:hover { color: var(--ink-soft); }
.foot-grid a small { color: var(--ink-faint); margin-left: 6px; }
.foot-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.foot-base .hand { font-size: 14px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* on phones and small tablets every split layout becomes one column */
@media (max-width: 900px) { .split > * { grid-column: 1 / -1 !important; } }

/* ═════════ post tiles · the @allmylovejournal feed look ═════════
   flat book colours, a little grain, big Caslon with a script word */
:root {
  --maroon: #4E1B1B; --forest: #2F3B2B; --blush: #E8D6CF; --cream-2: #EFE6D6;
  --brown: #3A2A1F; --inkblue: #3E4656; --oat-2: #D3C6AE; --sage-2: #A3B09A; --rose-2: #C49C99;
  --script: 'Sacramento', cursive; --grot: 'Inter', sans-serif;
}
.tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; container-type: inline-size;
  display: flex; flex-direction: column; justify-content: center; padding: 11% 10%;
  background: var(--bg, var(--cream-2)); color: var(--fg, var(--brown));
  box-shadow: 0 26px 44px -32px rgba(60,40,20,.5); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: 0 34px 50px -30px rgba(60,40,20,.5); }
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tile > * { position: relative; z-index: 1; }
.tile .handle { position: absolute; left: 0; right: 0; bottom: 4.6%; text-align: center; font-family: var(--grot); font-weight: 500; font-size: 2.3cqw; letter-spacing: .22em; text-transform: uppercase; opacity: .62; }
.tile .lab { position: absolute; left: 0; right: 0; top: 6.5%; text-align: center; font-family: var(--grot); font-weight: 800; font-size: 2.6cqw; letter-spacing: .25em; text-transform: uppercase; opacity: .75; }
.tile p { margin: 0; }
.tile .c { text-align: center; }
.t-bold { font-family: var(--text); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.t-disp { font-family: var(--display); line-height: .92; letter-spacing: -.01em; }
.t-text { font-family: var(--text); line-height: 1.5; }
.t-scr { font-family: var(--script); line-height: .9; font-weight: 400; }
.t-hand { font-family: var(--hand); line-height: 1.9; }
.t-grot { font-family: var(--grot); font-weight: 800; letter-spacing: -.03em; line-height: .95; }
.t-strike { text-decoration: line-through; text-decoration-thickness: .07em; font-style: italic; font-weight: 400; opacity: .8; }
.t-ring { display: inline-block; border: 1.5px solid currentColor; border-radius: 50%; padding: .25em .9em; }
.t-hl { background: rgba(163,176,154,.7); padding: 0 .2em; }
.t-hl.rose { background: rgba(196,156,153,.45); }
.stripes { background: repeating-linear-gradient(90deg, var(--s1, var(--oat-2)) 0 7%, var(--s2, var(--cream-2)) 7% 14%) !important; }

/* small square tile used as an icon */
.mini { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: var(--bg, var(--sage-2)); color: var(--fg, var(--brown)); container-type: inline-size; position: relative; overflow: hidden; }
.mini span { font-family: var(--script); font-size: 34cqw; line-height: 1; transform: rotate(-6deg); text-align: center; }
.mini.big span { font-size: 26cqw; }

/* a row of feed tiles */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 760px) {
  .feed { grid-template-columns: repeat(6, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .feed::-webkit-scrollbar { display: none; }
  .feed .tile { scroll-snap-align: center; }
}

/* ═════════ real-looking books, standing straight ═════════
   <div class="book" style="--c:#A9B4A0"><img class="front" src="cover.jpg" alt=""><i class="pages"></i><i class="back"></i></div>
   the cover sits in front, the page edges and back cover peek out to the right and below */
.book { position: relative; aspect-ratio: 148 / 210; margin-right: 10px; margin-bottom: 8px; }
.book > * { position: absolute; display: block; }
.book .front { inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; border-radius: 1px 3px 3px 1px; }
.book::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 1px 3px 3px 1px;
  background: linear-gradient(90deg, rgba(0,0,0,.30) 0, rgba(255,255,255,.20) 1.2%, rgba(0,0,0,.10) 2.6%, transparent 6%),
              linear-gradient(115deg, rgba(255,255,255,.12), transparent 45%, rgba(0,0,0,.05)); }
.book .pages { z-index: 1; top: 1.4%; bottom: -3px; right: -7px; width: 9px; border-radius: 0 2px 2px 0;
  background: repeating-linear-gradient(90deg, #FBF6EA 0 1px, #E6DCC7 1px 2px); box-shadow: inset -1px 0 2px rgba(80,60,30,.2); }
.book .pages::after { content: ""; position: absolute; left: -100px; right: 0; bottom: 0; height: 4px; border-radius: 0 0 2px 2px;
  background: repeating-linear-gradient(0deg, #FBF6EA 0 1px, #E6DCC7 1px 2px); }
.book .back { z-index: 0; inset: 0; transform: translate(10px, 7px); background: var(--c, #A9B4A0); border-radius: 1px 4px 4px 1px;
  box-shadow: 10px 26px 40px -16px rgba(50,35,20,.5), 0 2px 4px rgba(50,35,20,.15); }
.book { transition: transform .7s var(--ease); }
a:hover > .book, .book:hover { transform: translateY(-6px); }

/* books lying in a pile, spines facing you */
.pile { display: flex; flex-direction: column; align-items: center; }
.spine { position: relative; width: 100%; height: clamp(26px, 3.1vw, 40px); background: var(--c); border-radius: 3px 5px 5px 3px;
  display: flex; align-items: center; justify-content: center; gap: 1.2em; color: #fff;
  font-family: var(--display); font-size: clamp(9px, .9vw, 12px); letter-spacing: .55em; padding-left: .55em; text-transform: uppercase;
  box-shadow: inset 0 4px 5px -2px rgba(255,255,255,.18), inset 0 -6px 8px -3px rgba(0,0,0,.25), 0 2px 2px rgba(40,25,10,.18); }
.spine::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .35; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.16) 0 1px, transparent 1px 2px), repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 1px, transparent 1px 2px); }
.spine img { width: 1.9em; opacity: .95; }
.spine.light { color: #fff; }
