/* Lori Anne Design: playful, crafty, handmade. No external requests. */

:root {
  --linen: #fbf6ec;
  --linen-deep: #f3eadb;
  --paper: #fffdf8;
  --ink: #23324a;
  --ink-soft: #46546b;
  --muted: #6c778a;
  --line: #e6d9c2;
  /* Thread palette (visitor can pick one; default coral) */
  --coral: #d9563a;
  --teal: #1d8378;
  --mustard: #b98a0e;
  --berry: #b02f6c;
  --thread: var(--coral);
  --on-thread: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(35 50 74 / 8%), 0 10px 30px rgb(35 50 74 / 10%);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  color-scheme: light dark;
}
:root[data-thread="teal"] { --thread: var(--teal); }
:root[data-thread="mustard"] { --thread: var(--mustard); }
:root[data-thread="berry"] { --thread: var(--berry); }

@media (prefers-color-scheme: dark) {
  :root {
    --linen: #19202d;
    --linen-deep: #1f2838;
    --paper: #232d3f;
    --ink: #f4ede1;
    --ink-soft: #d6cfc2;
    --muted: #a9b0bc;
    --line: #36425a;
    --coral: #f07a5e;
    --teal: #47b8aa;
    --mustard: #e3b53b;
    --berry: #e0679f;
    --on-thread: #1a1410;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--linen);
  /* Linen weave */
  background-image:
    repeating-linear-gradient(0deg, rgb(120 90 40 / 3.5%) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgb(120 90 40 / 3%) 0 1px, transparent 1px 5px);
  font: 400 1.0625rem/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--thread); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--thread); }
:focus-visible { outline: 3px dashed var(--thread); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); }
.hand { font-family: var(--hand); font-weight: 600; font-size: 1.45em; line-height: 1.2; color: var(--thread); }
.kicker { margin: 0 0 0.2rem; font-size: 1.6rem; transform: rotate(-2deg); transform-origin: left; display: inline-block; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 50; border-radius: 8px; }
.skip:focus { left: 0.5rem; }

.announce { margin: 0; padding: 0.55rem 1rem; text-align: center; background: var(--thread); color: var(--on-thread); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  /* stitched bottom edge */
  background-image: linear-gradient(90deg, var(--thread) 0 60%, transparent 60%);
  background-size: 16px 2px; background-repeat: repeat-x; background-position: 0 calc(100% - 5px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand:hover { color: inherit; }
.brand-mark { width: 42px; height: 42px; flex: none; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .brand-mark { transform: rotate(-14deg); }
.spool-end { fill: #b98c5a; }
.spool-thread { fill: var(--thread); transition: fill .3s; }
.spool-lines { stroke: rgb(0 0 0 / 18%); stroke-width: 1.4; fill: none; }
.spool-tail { stroke: var(--thread); stroke-width: 2.4; fill: none; stroke-linecap: round; transition: stroke .3s; }
.brand-name { display: block; font: 800 1.35rem/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.brand-tag { display: block; font: 600 1.1rem/1 var(--hand); color: var(--thread); margin-top: 3px; }
.nav { display: flex; gap: 1.2rem; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink-soft); padding: 0.3rem 0; background: linear-gradient(90deg, var(--thread) 0 55%, transparent 55%) 0 100% / 10px 2px repeat-x; background-size: 0 2px; transition: background-size .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background-size: 10px 2px; }
.threads { display: flex; gap: 0.35rem; }
.spool-btn {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--paper); cursor: pointer; padding: 0;
  box-shadow: 0 0 0 1px var(--line); transition: transform .2s;
}
.spool-btn:hover { transform: scale(1.15); }
.spool-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.spool-btn[data-thread="coral"] { background: var(--coral); }
.spool-btn[data-thread="teal"] { background: var(--teal); }
.spool-btn[data-thread="mustard"] { background: var(--mustard); }
.spool-btn[data-thread="berry"] { background: var(--berry); }
.threads:not(.ready) { display: none; } /* needs JS */
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 0.4rem 1rem; padding-block: 0.6rem 0.9rem; }
  .nav { order: 3; width: 100%; gap: 1rem; }
  .brand-name { font-size: 1.2rem; }
}

/* ---------- Buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.35rem; border-radius: 999px;
  font: 700 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn-thread { background: var(--thread); color: var(--on-thread); }
.btn-thread:hover { color: var(--on-thread); }
.btn-ghost { background: var(--paper); color: var(--ink); border: 2px dashed var(--thread); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.chip {
  font: 600 0.95rem/1 var(--sans); padding: 0.55rem 0.9rem; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1.5px dashed var(--line); text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip span { color: var(--muted); font-weight: 500; margin-left: 0.2rem; }
.chip:hover { border-color: var(--thread); color: var(--ink); }
.chip.is-on { background: var(--thread); border: 1.5px solid var(--thread); color: var(--on-thread); }
.chip.is-on span { color: inherit; opacity: .8; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.6rem 0 0; }
.tag { font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--linen-deep); color: var(--ink-soft); text-decoration: none; }
a.tag:hover { background: var(--thread); color: var(--on-thread); }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 6px; background: color-mix(in srgb, var(--mustard) 22%, var(--paper)); color: var(--ink); }
.badge-full { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.hero-hello { font-size: 2rem; margin: 0 0 0.4rem; transform: rotate(-3deg); display: inline-block; }
.stitch-under {
  color: var(--thread);
  background: linear-gradient(90deg, var(--thread) 0 58%, transparent 58%) 0 92% / 14px 4px repeat-x;
  padding-bottom: 0.08em;
}
.hero-collage { position: relative; aspect-ratio: 1 / 0.95; }
.polaroid {
  position: absolute; margin: 0; background: #fff; padding: 10px 10px 36px; box-shadow: var(--shadow);
  width: 58%; transition: transform .4s cubic-bezier(.3,1.5,.5,1);
}
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 1.35rem; color: #45526a; }
.polaroid::before { /* washi tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 42%; height: 24px; translate: -50% 0; rotate: -4deg;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--thread) 55%, transparent) 0 6px, color-mix(in srgb, var(--thread) 35%, transparent) 6px 12px);
  opacity: .85;
}
.polaroid-1 { top: 0; left: 4%; rotate: -6deg; z-index: 2; }
.polaroid-2 { top: 18%; right: 0; rotate: 5deg; z-index: 1; }
.polaroid-3 { bottom: 0; left: 20%; rotate: -1deg; z-index: 3; width: 50%; }
.polaroid:hover { transform: scale(1.05) rotate(2deg); z-index: 5; }
.thread-line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 140px; pointer-events: none; }
.thread-line path { fill: none; stroke: var(--thread); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.js .thread-line path { stroke-dasharray: 1700; stroke-dashoffset: 1700; animation: sew 2.8s .3s ease-out forwards; }
.js .thread-line path.stitched { animation: none; stroke-dashoffset: 0; stroke-dasharray: 14 10; transition: stroke-dashoffset 30s linear; }
.thread-line path.stitched.moving { stroke-dashoffset: -480; }
@keyframes sew { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-collage { max-width: 440px; width: 100%; margin-inline: auto; }
}

/* ---------- Sections & cards ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section-tight { padding-top: 1rem; }
.section-head { max-width: 620px; margin-bottom: 2rem; }
.section-head p:not(.kicker) { color: var(--ink-soft); font-size: 1.1rem; }
.section-linen { background: var(--linen-deep); }
.pinked::before, .pinked::after { /* pinking-shear zigzag edges */
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: linear-gradient(135deg, var(--linen) 33%, transparent 33%) 0 0 / 16px 12px repeat-x,
              linear-gradient(225deg, var(--linen) 33%, transparent 33%) 0 0 / 16px 12px repeat-x;
}
.pinked::before { top: 0; }
.pinked::after { bottom: 0; rotate: 180deg; }
.more { margin-top: 2rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, outline-color .25s;
  outline: 2px dashed transparent; outline-offset: -9px;
}
.card:hover { transform: translateY(-4px) rotate(-0.4deg); outline-color: color-mix(in srgb, var(--thread) 70%, transparent); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.1rem 1.25rem 1.35rem; flex: 1; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { color: var(--ink-soft); margin: 0; }
.card-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem !important; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.ribbon {
  position: absolute; top: 16px; right: -34px; z-index: 2; rotate: 45deg; width: 130px; text-align: center;
  background: var(--mustard); color: #fff; font: 700 0.72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 6px 0;
}
.when { font-weight: 700; color: var(--ink); }
.countdown, .when [data-countdown], .when .soon { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--thread); color: var(--on-thread); margin-left: 0.3rem; }
.countdown:empty { display: none; }
.is-past { opacity: .7; }

/* Fabric swatches for posts whose photos were lost */
.swatch { display: grid; place-items: center; }
.swatch span { font: 700 1.5rem/1 var(--hand); background: var(--paper); color: var(--ink); padding: 0.35rem 0.9rem; border-radius: 6px; rotate: -3deg; box-shadow: var(--shadow); }
.swatch-0 { background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--coral) 35%, transparent) 0 14px, transparent 14px 28px), repeating-linear-gradient(90deg, color-mix(in srgb, var(--coral) 35%, transparent) 0 14px, #fff8ef 14px 28px); }
.swatch-1 { background: radial-gradient(circle, var(--teal) 22%, transparent 24%) 0 0 / 22px 22px, #e9f4f1; }
.swatch-2 { background: repeating-linear-gradient(45deg, var(--mustard) 0 10px, #fbf1d6 10px 20px); }
.swatch-3 { background: repeating-linear-gradient(90deg, var(--berry) 0 6px, #fbe9f1 6px 18px, color-mix(in srgb, var(--berry) 40%, #fff) 18px 22px, #fbe9f1 22px 34px); }
.swatch-4 { background: conic-gradient(from 90deg at 50% 50%, #23324a 25%, #f5efe2 0 50%, #23324a 0 75%, #f5efe2 0) 0 0 / 26px 26px; }
.swatch-5 { background: radial-gradient(circle at 50% 50%, transparent 40%, color-mix(in srgb, var(--coral) 55%, transparent) 42% 52%, transparent 54%) 0 0 / 30px 30px, linear-gradient(var(--linen-deep), var(--linen-deep)); }
.swatch-banner { aspect-ratio: 16 / 6; border-radius: var(--radius); margin: 0.5rem 0 2rem; }

/* Reveal on scroll (JS adds .pre-reveal only for below-the-fold items) */
.pre-reveal { opacity: 0; translate: 0 18px; }
.reveal { transition: opacity .6s ease, translate .6s ease; }

/* ---------- Blog finder ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.finder { margin-top: 1rem; }
.search input {
  width: min(520px, 100%); font: 500 1.05rem/1.2 var(--sans); padding: 0.85rem 1.1rem; border-radius: 999px;
  border: 2px dashed var(--line); background: var(--paper); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--thread); }
.finder-status { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; min-height: 1.4em; }
.empty { text-align: center; color: var(--muted); font-size: 1.1rem; padding: 2rem 0; }
.card.is-hidden { display: none; }

/* ---------- Post ---------- */
.post-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.crumbs { margin: 0 0 0.6rem; font-weight: 600; }
.crumbs a { text-decoration: none; color: var(--thread); }
.crumbs a::before { content: "← "; }
.post-meta { color: var(--muted); margin: 0; }
.gallery { display: grid; gap: 0.9rem; margin-bottom: 2.2rem; }
.gallery-1 { width: min(760px, 100% - 2rem); }
.gallery-2 { grid-template-columns: 1fr 1fr; width: min(960px, 100% - 2rem); }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-item { display: block; border-radius: 12px; overflow: hidden; background: #fff; padding: 8px; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: 6px; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .gallery-2, .gallery-3 { grid-template-columns: 1fr; } }
.prose { font-size: 1.12rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose img { border-radius: 12px; margin: 1.5rem 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem auto 4rem; }
.post-nav-link { display: block; padding: 1rem 1.2rem; text-decoration: none; font-family: var(--display); font-weight: 700; }
.post-nav-link .hand { display: block; font-size: 1.3rem; }
.post-nav-link.newer { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav-link.newer { text-align: left; } }

/* ---------- Events ---------- */
/* Date as a sewing price tag: punched hole + string */
.date-tag {
  position: relative; flex: none; width: 92px; padding: 1.35rem 0.5rem 0.7rem; text-align: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 10px 10px 14px 14px;
  clip-path: polygon(22% 0, 78% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
  rotate: -4deg; box-shadow: var(--shadow); line-height: 1;
}
.date-tag::before { /* punched hole */
  content: ""; position: absolute; top: 9px; left: 50%; width: 10px; height: 10px; translate: -50% 0;
  border-radius: 50%; background: var(--linen); box-shadow: inset 0 0 0 2px var(--ink);
}
.dt-mon { display: block; font: 700 0.85rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--thread); }
.dt-day { display: block; font: 800 2.4rem/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; margin-top: 0.2rem; }
.dt-to { display: block; font: 600 1.05rem/1 var(--hand); color: var(--ink-soft); margin-top: 0.2rem; }
.event-list { display: grid; gap: 1.1rem; max-width: 860px; }
.event-link { flex-direction: row; align-items: flex-start; gap: 1.4rem; padding: 1.3rem 1.4rem; }
.event-link .card-body { padding: 0; }
.where { display: flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--ink) !important; margin: 0.1rem 0 0.4rem !important; }
.where svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--thread); stroke-width: 2; }
.past-events .event-link { padding: 1rem; gap: 1rem; }
.past-events .date-tag { width: 72px; padding-top: 1.1rem; }
.past-events .dt-day { font-size: 1.8rem; }
.is-canceled h3 { text-decoration: line-through; text-decoration-color: var(--thread); }
@media (max-width: 520px) { .event-link { gap: 1rem; padding: 1.1rem; } .date-tag { width: 76px; } .dt-day { font-size: 2rem; } }

/* Home: next event, featured */
.next-up {
  position: relative; display: flex; gap: clamp(1.25rem, 4vw, 2.5rem); align-items: flex-start; overflow: hidden;
  background: var(--paper); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow);
  outline: 2.5px dashed color-mix(in srgb, var(--thread) 75%, transparent); outline-offset: -12px; max-width: 920px;
}
.next-up .date-tag { width: 110px; }
.next-up .dt-day { font-size: 3rem; }
.next-up h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 0.4rem; }
.next-up h3 a { text-decoration: none; }
.next-up-body p:not(.card-meta):not(.where) { color: var(--ink-soft); }
.also { margin: 2.2rem 0 1rem; font-size: 1.3rem; }
.event-list.compact .event-link { padding: 1rem 1.2rem; }
.event-list.compact .date-tag { width: 76px; }
.event-list.compact .dt-day { font-size: 1.9rem; }
@media (max-width: 600px) { .next-up { flex-direction: column; } }
.countdown.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--thread) 25%, transparent); } }

/* Event page */
.event-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: clamp(2rem, 5vw, 3.5rem) 0 2rem; }
.event-title-row { display: flex; gap: 1.4rem; align-items: center; margin: 0.5rem 0 1rem; }
.event-title-row h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.event-photo { display: block; background: #fff; padding: 10px 10px 30px; box-shadow: var(--shadow); rotate: 2deg; cursor: zoom-in; }
.event-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.addr { color: var(--ink-soft); font-weight: 500; }
@media (max-width: 860px) { .event-head { grid-template-columns: 1fr; } .event-photo { max-width: 460px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; margin: 1.5rem 0 0; }
.facts div { background: var(--paper); border: 1.5px dashed var(--line); border-radius: 12px; padding: 0.75rem 1rem; }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font-weight: 600; }
.example-note { display: inline-block; font-size: 0.9rem; background: color-mix(in srgb, var(--mustard) 18%, var(--paper)); border: 1.5px dashed var(--mustard); border-radius: 8px; padding: 0.4rem 0.8rem; }
.past-note { margin: 0; font-weight: 600; }
.how { max-width: 820px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; margin: 1.5rem 0; }
.steps li { counter-increment: s; position: relative; padding: 1rem 1.2rem 1rem 4rem; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--thread); color: var(--on-thread); font: 800 1.1rem/1 var(--display); }

/* ---------- About ---------- */
.about-teaser { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-teaser blockquote { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); rotate: -2deg; }
@media (max-width: 760px) { .about-teaser { grid-template-columns: 1fr; } }
.page-photo { border-radius: var(--radius); margin-bottom: 2rem; }
.signoff { font-size: 2rem; margin: 1rem 0 4rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--linen); margin-top: 2rem; padding-top: 3rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0f141d; color: var(--ink); } }
.site-footer::before { content: ""; position: absolute; top: -11px; left: 0; right: 0; height: 12px;
  background: linear-gradient(45deg, transparent 33%, var(--ink) 33%) 0 0 / 16px 12px repeat-x, linear-gradient(-45deg, transparent 33%, var(--ink) 33%) 0 0 / 16px 12px repeat-x; }
@media (prefers-color-scheme: dark) { .site-footer::before { background: linear-gradient(45deg, transparent 33%, #0f141d 33%) 0 0 / 16px 12px repeat-x, linear-gradient(-45deg, transparent 33%, #0f141d 33%) 0 0 / 16px 12px repeat-x; } }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-brand { font: 800 1.4rem/1.1 var(--display); margin: 0; }
.site-footer nav, .footer-contact { display: grid; gap: 0.4rem; align-content: start; }
.site-footer a { text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; color: inherit; text-decoration: underline; text-decoration-color: var(--thread); }
.fine { font-size: 0.85rem; opacity: .7; padding: 2rem 0 1.5rem; margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(15 20 29 / 88%); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; background: #fff; padding: 10px; border-radius: 6px; }
.lightbox figcaption { color: #f4ede1; margin-top: 0.8rem; font: 600 1.4rem/1.3 var(--hand); }
.lb-btn { position: fixed; background: rgb(255 255 255 / 92%); color: #23324a; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lb-close { right: 1rem; top: 1rem; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

.lost h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pre-reveal { opacity: 1; translate: none; }
  .js .thread-line path { stroke-dashoffset: 0; stroke-dasharray: 14 10; }
}
