/*
 * The hub: a sheet of washi paper holding Laura's master seal and a proof
 * sheet of nine impressions, one per site. Cool paper, sumi ink, nine inks.
 */
:root {
  color-scheme: light dark;
  --ground: light-dark(#eceee9, #16181d);
  --raised: light-dark(#f7f8f4, #1f2228);
  --text: light-dark(#17181c, #ecede8);
  --muted: light-dark(#4a4d55, #a7aab2);
  --line: light-dark(#c9ccc4, #34383f);
  --focus: light-dark(#9a4307, #f6b47a);
  --thread: light-dark(#9a4307, #f6b47a);
  --seal-line: var(--text);
  --note-bg: light-dark(#fbfbf8, #262a31);
  --note-text: var(--text);
  --hover-wash: light-dark(rgb(23 24 28 / .06), rgb(236 237 232 / .07));
  --select-bg: #ed802b;
  --select-text: #17181c;
  --scroll-thumb: light-dark(#b9bcb5, #3a3e47);
  --button-bg: light-dark(#17181c, #ed802b);
  --button-text: light-dark(#f7f8f4, #17181c);

  --display: "Shippori Mincho", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 90rem;
}

body {
  background: var(--ground); color: var(--text);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  font-feature-settings: "palt" 0;
}

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem var(--gutter);
  background: var(--ground);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-seal { width: 2.75rem; flex: none; transition: transform .35s var(--ease-press); }
.brand:hover .brand-seal { transform: rotate(-12deg); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; }
.top-nav { display: none; gap: 1.75rem; }
.top-nav a { text-decoration: none; font-weight: 500; padding: .5rem 0; background: linear-gradient(currentColor 0 0) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease-out); }
.top-nav a:hover { background-size: 100% 2px; }
.top-actions { display: flex; align-items: center; gap: .25rem; }
.top-call {
  display: none; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9375rem;
  background: var(--button-bg); color: var(--button-text);
  transition: transform .15s var(--ease-out);
}
.top-call:hover { transform: translateY(-1px); }
.top-call:active { transform: scale(.97); }
@media (min-width: 900px) { .top-nav { display: flex; } }
@media (min-width: 600px) { .top-call { display: inline-block; } }

/* ---- hero: the master seal and her name, set like a signature with its chop ---- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem) var(--gutter) clamp(1rem, 2vw, 1.75rem);
  display: grid; gap: 1rem 1.5rem; align-items: center;
  grid-template-columns: clamp(5.5rem, 22vw, 9rem) 1fr;
  grid-template-areas: "mark words" "aside aside";
}
.hero-mark { grid-area: mark; }
.hero-words { grid-area: words; }
.hero-aside { grid-area: aside; display: grid; gap: 1rem; justify-items: start; }
h1 {
  font-family: var(--display); font-weight: 800; line-height: .98;
  font-size: clamp(2.5rem, 1.6rem + 4.6vw, 5.25rem); letter-spacing: -.02em;
}
.tagline {
  margin-top: .6rem; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.125rem, .95rem + .9vw, 1.75rem); line-height: 1.25; color: var(--thread);
}
.lede { max-width: 34ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }
@media (min-width: 1000px) {
  h1 { font-size: clamp(3rem, 4.9vw, 5.25rem); white-space: nowrap; }
  .hero { grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 26rem); grid-template-areas: "mark words aside"; gap: 2.5rem; }
  .hero-aside { justify-items: start; }
}

/* ---- the proof sheet: ten impressions, each its own door ---- */
.sites { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(3rem, 7vw, 6rem); }
.sheet {
  display: grid; gap: clamp(1.5rem, 2vw, 1.75rem) clamp(.75rem, 2vw, 2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: clamp(1rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sheet { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.door-link {
  display: grid; justify-items: center; text-align: center; gap: .3rem;
  padding: .6rem .5rem .8rem; border-radius: 1rem; text-decoration: none; height: 100%;
}
a.door-link { cursor: pointer; transition: background-color .2s ease-out; }
a.door-link:hover { background: var(--hover-wash); }
.door-seal { display: block; width: min(100%, clamp(6.25rem, 8vw, 8.25rem)); margin-bottom: .3rem; }
.door-seal .seal { transition: transform .4s var(--ease-press); }
.door:nth-child(3n+1) .door-seal .seal { rotate: -3deg; }
.door:nth-child(3n+2) .door-seal .seal { rotate: 2deg; }
.door:nth-child(4n) .door-seal .seal { rotate: -1deg; }
a.door-link:hover .door-seal .seal { transform: translateY(-4px) rotate(-7deg) scale(1.03); }
a.door-link:active .door-seal .seal { transform: scale(.93); transition-duration: .12s; }
.door-verb { font-family: var(--display); font-weight: 800; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.1; }
.door-line { font-size: .9688rem; line-height: 1.4; color: var(--muted); max-width: 26ch; }
.door-state { margin-top: .35rem; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; padding: .15rem .55rem; border-radius: 999px; }
.door.is-open .door-state { background: var(--text); color: var(--ground); }
.door.is-quiet .door-state { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.door.is-quiet .door-seal .seal { opacity: .72; }
.door.is-quiet .door-verb { opacity: .9; }
.door--organise .door-verb { color: var(--say-organise); }
.door--simplify .door-verb { color: var(--say-simplify); }
.door--juggle .door-verb { color: var(--say-juggle); }
.door--declutter .door-verb { color: var(--say-declutter); }
.door--stage .door-verb { color: var(--say-stage); }
.door--style .door-verb { color: var(--say-style); }
.door--celebrate .door-verb { color: var(--say-celebrate); }
.door--design .door-verb { color: var(--say-design); }
.door--share .door-verb { color: var(--say-share); }
.door--call .seal-blank { stroke: var(--muted); }
.door--call .seal-mono { color: var(--muted); }
.door--call .door-verb { color: var(--text); }
.door--call .door-state { background: var(--button-bg); color: var(--button-text); }
@media (max-width: 999px) {
  .door--call { grid-column: 1 / -1; }
  .door--call .door-link { grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; justify-items: start; text-align: left; column-gap: 1rem; align-items: center; }
  .door--call .door-seal { grid-row: 1 / 4; width: 5.5rem; margin: 0; }
  .door--call .door-line { max-width: 34ch; }
}

/* ---- the call ---- */
.call {
  max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  display: grid; gap: 2rem; align-items: center;
  border-top: 1px solid var(--line);
}
.call-mark { width: clamp(7rem, 22vw, 15rem); justify-self: center; }
.call-mark .seal-blank { stroke: var(--thread); }
.call-mark .seal-mono { color: var(--thread); }
.call-words { display: grid; gap: 1rem; justify-items: start; max-width: 40rem; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.015em; }
.call-words p { max-width: 52ch; }
.small { font-size: .9375rem; color: var(--muted); }
.button {
  display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.4rem; border-radius: 999px;
  background: var(--button-bg); color: var(--button-text); font-weight: 700; text-decoration: none;
  box-shadow: 0 1px 1px rgb(0 0 0 / .1), 0 8px 18px -10px rgb(0 0 0 / .45);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 2px 2px rgb(0 0 0 / .1), 0 14px 24px -12px rgb(0 0 0 / .5); }
.button:active { transform: translateY(0) scale(.98); }
@media (min-width: 800px) { .call { grid-template-columns: minmax(0, 18rem) 1fr; } }

/* ---- about ---- */
.about {
  max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start;
  border-top: 1px solid var(--line);
}
.about-picture { display: grid; gap: .6rem; }
.about-picture img { width: 100%; border-radius: .5rem; box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 24px 40px -28px rgb(0 0 0 / .5); }
.about-picture figcaption { font-size: .875rem; color: var(--muted); }
.about-words { display: grid; gap: 1.5rem; }
.pull p { font-family: var(--display); font-weight: 600; font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); line-height: 1.3; max-width: 26ch; }
.pull { margin: 0; }
.pull footer { margin-top: .5rem; font-size: .9375rem; color: var(--muted); }
.facts { display: grid; gap: .85rem; max-width: 60ch; }
.facts li { position: relative; padding-left: 1.5rem; }
.facts li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink-organise); }
.about-more { max-width: 60ch; color: var(--muted); }
.social { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.social a { display: inline-block; font-weight: 700; padding: .7rem 0; }
@media (min-width: 1000px) { .about { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* ---- one seal, nine borders ---- */
.family { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter); border-top: 1px solid var(--line); display: grid; gap: 2rem; }
.family-words { display: grid; gap: 1rem; max-width: 46rem; }
.borders { display: grid; gap: 1.5rem 1rem; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.border-item { display: grid; justify-items: center; text-align: center; gap: .2rem; }
.border-item .seal { width: 4.5rem; margin-bottom: .35rem; }
.border-name { font-family: var(--display); font-weight: 800; font-size: 1.0625rem; }
.border-meaning { font-size: .875rem; color: var(--muted); line-height: 1.35; }
@media (min-width: 1100px) { .borders { grid-template-columns: repeat(9, minmax(0, 1fr)); } }

/* ---- footer ---- */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 2.5rem var(--gutter) 3rem; border-top: 1px solid var(--line);
  display: grid; gap: 1.5rem; align-items: center;
}
.foot-brand { display: flex; gap: 1rem; align-items: center; }
.foot-seal { width: 3.5rem; flex: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot-links a { display: inline-block; padding: .7rem 0; font-weight: 500; }
.foot-note { font-size: .875rem; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .foot { grid-template-columns: auto 1fr; } .foot-links { justify-content: flex-end; } .foot-note { grid-column: 1 / -1; } }

/* ---- the arrival: the master seal is pressed, then the nine impressions stamp in, ring order ---- */
@media (prefers-reduced-motion: no-preference) {
  .lt-ready .hero-mark .seal { animation: press-in .75s var(--ease-press) both; }
  .lt-ready .hero-mark .seal-arc { animation: ink-in .5s ease-out both; animation-delay: calc(.25s + var(--i, 0) * 55ms); }
  .lt-ready .hero-words, .lt-ready .hero-aside { animation: rise .7s var(--ease-out) both; animation-delay: .18s; }
  .lt-ready .hero-aside { animation-delay: .3s; }
  .lt-ready .door { animation: stamp .42s var(--ease-press) both; animation-delay: calc(.45s + var(--i, 0) * 65ms); }
}
@media (prefers-reduced-motion: reduce) {
  .lt-ready .hero, .lt-ready .sheet { animation: fade .2s ease-out both; }
}
.seal-arc:nth-child(1) { --i: 0; } .seal-arc:nth-child(2) { --i: 1; } .seal-arc:nth-child(3) { --i: 2; }
.seal-arc:nth-child(4) { --i: 3; } .seal-arc:nth-child(5) { --i: 4; } .seal-arc:nth-child(6) { --i: 5; }
.seal-arc:nth-child(7) { --i: 6; } .seal-arc:nth-child(8) { --i: 7; } .seal-arc:nth-child(9) { --i: 8; }
.door:nth-child(1) { --i: 0; } .door:nth-child(2) { --i: 1; } .door:nth-child(3) { --i: 2; } .door:nth-child(4) { --i: 3; }
.door:nth-child(5) { --i: 4; } .door:nth-child(6) { --i: 5; } .door:nth-child(7) { --i: 6; } .door:nth-child(8) { --i: 7; }
.door:nth-child(9) { --i: 8; } .door:nth-child(10) { --i: 9; }
@keyframes press-in {
  0% { opacity: 0; transform: scale(1.22) rotate(-14deg); }
  55% { opacity: 1; transform: scale(.96) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes ink-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes stamp {
  0% { opacity: 0; transform: translateY(-10px) scale(1.12); }
  60% { opacity: 1; transform: scale(.97); }
  100% { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } }

/* sections lower down settle gently as they arrive (arrive.js) */
[data-arrive] { --arrive-distance: 1.25rem; --arrive-duration: 650ms; }
