/* Layout: one long page, three "hats" (web / tutoring / travel), each section with its own working surface:
   browser frames for client sites, a lesson card for tutoring, a contact-sheet grid for travel. */
:root {
  --lav: #E7DDFF;
  --gry: #5E5A6E;    /* soft purple-gray */
  --bg: var(--gry);    /* one look for everyone: gray page, lavender text */
  --ink: var(--lav);
  color-scheme: dark;
  --surface: var(--bg);
  --muted: color-mix(in srgb, var(--ink) 92%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 32%, var(--bg));
  --rind: var(--ink);
  --flesh: var(--ink);
  --flesh-soft: color-mix(in srgb, var(--ink) 10%, var(--bg));
  --rind-soft: color-mix(in srgb, var(--ink) 9%, var(--bg));

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 5vw, 2.75rem);
  --step-4: clamp(2.6rem, 8vw, 4.75rem);

  --wrap: 68rem;
  --radius: 10px;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1; }
img { max-width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--flesh); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.label {
  font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: var(--step-1); }
.brand img { width: 28px; height: 32px; flex: none; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a {
  text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 6px 10px; border-radius: 999px; color: var(--muted);
}
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); background: var(--rind-soft); }
@media (max-width: 620px) { .top nav a.hide-sm { display: none; } }
@media (max-width: 520px) {
  .brand-name { display: none; }
  .top nav a { padding: 6px 8px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 9vw, 96px) 40px; }
.hero h1 { font-size: clamp(2.34rem, 7.2vw, 4.275rem); font-weight: 800; letter-spacing: -0.02em; max-width: 15ch; }
.hero h1 em { font-style: normal; }
.hero { position: relative; }
.nudge {
  position: absolute; top: 6px; right: 172px; display: flex; align-items: flex-end; gap: 2px;
  color: var(--ink); pointer-events: none; animation: nudge 2.4s ease-in-out infinite;
}
.nudge span { font-family: "Caveat", "Bradley Hand", "Comic Sans MS", cursive; font-size: 1.5rem; line-height: 1; transform: rotate(-4deg); margin-bottom: 4px; white-space: nowrap; }
@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -4px); } }
@media (prefers-reduced-motion: reduce) { .nudge { animation: none; } }
@media (max-width: 760px) { .hero { padding-top: 84px; } .nudge { right: 92px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 48px; align-items: center; }
.portrait {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 14px; border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 18rem; }
}
.hero .lede { margin-top: 20px; font-size: var(--step-1); color: var(--muted); max-width: 46ch; }

.hats { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .hats { grid-template-columns: 1fr; } }
.hat {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: var(--surface);
  transition: border-color .15s, transform .15s;
}
.hat:hover { border-color: var(--ink); transform: translateY(-2px); }
.hat .glyph {
  grid-row: span 2; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center;
  background: var(--rind-soft); color: var(--rind); font-family: var(--mono); font-weight: 500; font-size: 0.875rem;
}
.hat strong { font-family: var(--display); font-size: var(--step-1); font-weight: 600; }
.hat span { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

/* ---------- sections ---------- */
section.block { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
main > section.block:first-child { border-top: 0; padding-top: clamp(40px, 7vw, 72px); }
.block-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 44rem; }
.block-head h1, .block-head h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.015em; }
.block-head p { color: var(--muted); font-size: 1.0625rem; }

.draft-note {
  font-family: var(--mono); font-size: 0.75rem; color: var(--flesh);
  border: 1px dashed var(--flesh); border-radius: 6px; padding: 6px 10px; width: fit-content;
}

/* ---------- web work ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; align-items: start; }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }
.project { display: grid; gap: 14px; }
.browser {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 12px 28px -18px rgb(0 0 0 / .35);
}
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 5px; flex: none; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.url {
  flex: 1; min-width: 0; font-family: var(--display); font-size: 1.125rem; font-weight: 800; letter-spacing: -0.005em; color: var(--ink);
  background: var(--bg); border-radius: 6px; padding: 5px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--bg); }
.browser { display: block; text-decoration: none; transition: transform .15s; }
a.browser:hover { transform: translateY(-3px); }
.p-meta h3 a { text-decoration: none; }
.p-meta h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.status { font-family: var(--mono); font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--bg); }
/* before/after slider: the "before" image sits on top, clipped to the handle position */
.ba { position: relative; --pos: 50%; touch-action: pan-y; }
.shot.natural { aspect-ratio: auto; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--lav); box-shadow: 0 0 0 1px rgb(20 18 28 / .35); pointer-events: none; }
.ba-handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lav); color: var(--gry); font-size: 18px; font-weight: 600; box-shadow: 0 2px 10px rgb(20 18 28 / .35);
}
.ba-tag { position: absolute; top: 10px; font-family: var(--mono); font-size: 0.6875rem; padding: 3px 8px; border-radius: 999px; background: var(--gry); color: var(--lav); pointer-events: none; }
.ba-tag.before { left: 10px; }
.ba-tag.after { right: 10px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:focus-within .ba-handle::after { outline: 2px solid var(--gry); outline-offset: 2px; }
.ba-hint { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
/* mini page mockups: each project gets its own client palette */
.mock { aspect-ratio: 16 / 10; max-width: 100%; background: var(--c-bg); padding: 6% 7%; display: grid; grid-template-rows: auto 1fr; gap: 8%; }
.mock .m-nav { display: flex; justify-content: space-between; align-items: center; }
.mock .m-logo { width: 22%; height: 9px; border-radius: 3px; background: var(--c-ink); }
.mock .m-links { display: flex; gap: 6px; }
.mock .m-links i { width: 26px; height: 6px; border-radius: 3px; background: var(--c-ink); opacity: .35; }
.mock .m-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 7%; align-items: center; }
.mock .m-text { display: grid; gap: 7px; }
.mock .m-text b { display: block; height: 13px; border-radius: 3px; background: var(--c-ink); }
.mock .m-text b:nth-child(2) { width: 75%; }
.mock .m-text i { display: block; height: 6px; border-radius: 3px; background: var(--c-ink); opacity: .3; width: 90%; }
.mock .m-text u { display: block; width: 40%; height: 16px; margin-top: 6px; border-radius: 999px; background: var(--c-pop); }
.mock .m-img { height: 100%; min-height: 60px; border-radius: 8px; background: var(--c-pop); opacity: .9; }
.mock.v2 .m-body { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.mock.v2 .m-img { display: none; }
.mock.v2 .m-text { width: 70%; justify-items: center; }

.project.wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.project.wide .info { display: grid; gap: 14px; min-width: 0; }
@media (max-width: 760px) { .project.wide { grid-template-columns: 1fr; gap: 14px; } }
.story {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 12px 16px 12px 12px; border: 1.5px solid var(--lav); border-radius: var(--radius);
  background: var(--lav); box-shadow: 6px 6px 0 color-mix(in srgb, var(--lav) 40%, var(--gry));
  text-decoration: none; font-size: 0.9375rem; line-height: 1.45; color: var(--gry);
  transition: background .15s;
}
.story:hover { background: color-mix(in srgb, var(--lav) 88%, var(--gry)); }
.story img { width: 44px; height: 78px; object-fit: cover; border-radius: 6px; }
.story b { display: block; color: var(--gry); font-weight: 700; }
.story u { color: var(--gry); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.frame-wrap { position: relative; }
.crosslink {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--mono); font-size: 0.6875rem; text-decoration: none;
  background: var(--lav); color: var(--gry); padding: 4px 9px; border-radius: 999px;
  box-shadow: 0 2px 8px rgb(20 18 28 / .3);
}
.crosslink:hover { background: var(--gry); color: var(--lav); }
@keyframes ping { from { outline: 3px solid var(--ink); outline-offset: 2px; } to { outline: 3px solid transparent; outline-offset: 16px; } }
.project:target, .frame-wrap:target { animation: ping 1.2s ease-out 2; border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) { .project:target, .frame-wrap:target { animation: none; outline: 3px solid var(--ink); outline-offset: 6px; } }
.p-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.p-meta h3 { font-size: var(--step-2); font-weight: 600; }
.p-meta .label { white-space: nowrap; }
.project p { color: var(--muted); max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-family: var(--mono); font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; background: var(--rind-soft); color: var(--rind); }

.price {
  margin-top: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 40px; align-items: center;
  padding: 28px; border: 1.5px solid var(--ink); border-radius: var(--radius);
}
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }
.price .amount { font-family: var(--display); font-weight: 800; font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price .amount small { font-family: var(--mono); font-size: var(--step--1); font-weight: 400; letter-spacing: .04em; color: var(--muted); margin-left: 6px; }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
@media (max-width: 480px) { .price ul { grid-template-columns: 1fr; } }
.price li::before { content: "✓"; margin-right: 8px; font-weight: 600; }
.price .note { color: var(--muted); font-size: 0.9375rem; grid-column: 1 / -1; }
.services { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }
.services div { padding: 20px 20px 4px 0; display: grid; gap: 6px; align-content: start; }
.services h3 { font-size: var(--step-1); font-weight: 600; }
.services p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- testimonials ---------- */
/* testimonials sit in a lavender band so the switch from my words to theirs is obvious */
.band {
  --bg: var(--lav); --ink: var(--gry);
  --muted: color-mix(in srgb, var(--ink) 88%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 35%, var(--bg));
  --rind-soft: color-mix(in srgb, var(--ink) 12%, var(--bg));
  --surface: var(--bg);
  background: var(--bg); color: var(--ink); border-top: 0;
}
.band + section.block { border-top: 0; }
.kind-words, .faq { display: grid; gap: 24px; }
.kind-words-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.kind-words-head > div { display: grid; gap: 10px; }
.kind-words-head h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.015em; }
.chip { font-family: var(--mono); font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--ink); color: var(--ink); }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 16px; align-content: start; }
.quote.sample { border-style: dashed; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: var(--step-1); font-weight: 600; line-height: 1.35; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .7; margin-bottom: 4px; color: var(--muted); }
.quote figcaption { display: grid; gap: 2px; }
.quote figcaption b { font-weight: 600; }
.quote figcaption span { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: .03em; }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 16px; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--display); font-size: var(--step-1); font-weight: 600; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 60ch; }

/* ---------- tutoring ---------- */
.tutor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .tutor { grid-template-columns: 1fr; } }
.subjects { display: grid; gap: 0; }
/* section titles inside the tutoring columns: bigger, with a heavy rule under them */
.subjects-head, .creds h3 {
  font-size: var(--step-2); font-weight: 800; letter-spacing: -0.01em;
  padding-bottom: 10px; margin-bottom: 0; border-bottom: 5px solid var(--ink);
}
.subject { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.subject strong { font-family: var(--display); font-size: var(--step-1); font-weight: 600; }
.subject span { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); text-align: right; }

.creds { margin-top: 48px; display: grid; gap: 0; }
.creds h3 + .cred { border-top: 0; }
.cred { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 12px; border-top: 1px solid var(--line); }
.cred strong { font-family: var(--display); font-weight: 800; font-size: var(--step-1); line-height: 1.1; }
.cred span { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 480px) { .cred { grid-template-columns: 1fr; gap: 2px; } }

.book { margin-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: start; padding: 28px; border: 1.5px solid var(--ink); border-radius: var(--radius); }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; gap: 24px; padding: 20px; } }
.book-text { display: grid; gap: 12px; }
.book-text h2 { font-size: var(--step-2); font-weight: 800; }
.book-text p { color: var(--muted); font-size: 0.9375rem; }
.book-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 480px) { .book-form { grid-template-columns: 1fr; } }
.book-form .wide { grid-column: 1 / -1; }
.book-form label { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 600; }
.book-form input, .book-form select, .book-form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; min-width: 0;
}
.book-form input::placeholder, .book-form textarea::placeholder { color: color-mix(in srgb, var(--ink) 55%, var(--bg)); }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.book-status { font-size: 0.875rem; color: var(--muted); }

.lesson {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 18px;
}
.lesson h3 { font-size: var(--step-1); font-weight: 600; }
.lesson ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.lesson li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 12px; counter-increment: step; }
.lesson li::before {
  content: counter(step); width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 0.875rem;
  background: var(--ink); color: var(--bg); font-weight: 500;
}
.lesson li b { display: block; font-weight: 600; }
.lesson li p { color: var(--muted); font-size: 0.9375rem; }
.lesson .facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.lesson .facts div { display: grid; }
.lesson .facts strong { font-weight: 600; }

/* ---------- gourdtravels ---------- */
.travel-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.travel-head .block-head { margin-bottom: 0; }
.handle { font-family: var(--display); font-weight: 800; font-size: var(--step-2); color: var(--flesh); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink);
  font-family: var(--body);
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 82%, var(--bg)); border-color: transparent; }

.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.frame {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 8px; overflow: hidden;
  background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
  color: var(--lav); text-decoration: none;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .3s; }
.frame:hover img { transform: scale(1.04); }
.frame::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgb(20 18 28 / .75), transparent 50%); }
.frame:hover { outline: 2px solid var(--ink); outline-offset: 3px; }
.frame > :not(img) { position: relative; z-index: 1; }
.frame strong { font-family: var(--display); font-size: var(--step-1); font-weight: 600; line-height: 1.15; }
.frame small { font-family: var(--mono); font-size: 0.6875rem; opacity: .85; letter-spacing: .03em; }
.frame .fmt {
  position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--mono); font-size: 0.6875rem;
  border: 1px solid color-mix(in srgb, var(--lav) 60%, transparent); padding: 2px 7px; border-radius: 999px;
}

/* ---------- about ---------- */
.karate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .karate { grid-template-columns: 1fr; gap: 8px; } }
.karate .block-head { margin-bottom: 0; }
.karate .block-head a { text-underline-offset: 3px; }
.medal { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: var(--radius); width: fit-content; max-width: 100%; }
.medal strong { font-family: var(--display); font-size: var(--step-1); font-weight: 600; color: var(--ink); }
.photo-fig { margin: 8px 0 0; }
.photo {
  display: block; width: 100%; max-width: 22rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%;
  border-radius: 14px; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
}
.photo.fit { max-width: none; aspect-ratio: auto; }
.photo-pair.music { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.794fr); align-items: start; }
@media (max-width: 760px) { .photo-pair.music { grid-template-columns: 1fr; } .photo-pair.music .photo-fig:first-child .photo { max-width: 20rem; } }
.photo.wide { max-width: none; aspect-ratio: 3 / 2; object-position: 50% 50%; }
.photo-pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
@media (max-width: 760px) { .photo-pair { grid-template-columns: 1fr; gap: 20px; } }
.photo-fig figcaption { margin-top: 14px; font-family: var(--mono); font-size: var(--step--1); color: var(--muted); letter-spacing: .03em; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); }
.timeline li { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; padding: 0 0 22px 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); }
.timeline li:last-child::before { background: var(--ink); }
.timeline .when { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); padding-top: 2px; letter-spacing: .03em; }
.timeline b { font-weight: 600; font-size: 1.0625rem; }
.timeline p { color: var(--muted); font-size: 0.9375rem; }
.timeline a { color: var(--ink); text-underline-offset: 3px; }

.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 8px; } }
.about .block-head { margin-bottom: 0; }
.facts-list { margin: 0; border-top: 1px solid var(--line); }
.facts-list div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts-list dt { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts-list dd { margin: 0; font-family: var(--display); font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.facts-list small { display: block; font-family: var(--body); font-size: 0.875rem; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* ---------- 404 ---------- */
.lost-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 620px) { .lost-wrap { grid-template-columns: 1fr; gap: 24px; } }
.lost-gourd { width: 120px; height: auto; transform: rotate(-14deg); }
.lost-text { display: grid; gap: 14px; max-width: 36rem; }
.lost-text h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.015em; }
.lost-text p:not(.label) { color: var(--muted); font-size: 1.0625rem; }
.lost-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ---------- contact / footer ---------- */
.contact { display: grid; gap: 20px; }
.contact > * { max-width: 40rem; }
.contact h2 { font-size: var(--step-3); font-weight: 800; }
.contact p { color: var(--muted); font-size: 1.0625rem; }
.email-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.email {
  font-family: var(--mono); font-size: var(--step-1); user-select: all; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  min-width: 0; overflow-wrap: anywhere;
}
.site-foot { background: var(--rind-soft); border-top: 1px solid var(--line); }
.site-foot .contact {
  padding-block: clamp(28px, 4vw, 40px); gap: 16px 40px;
  grid-template-columns: minmax(0, 1fr) auto; align-items: end;
}
.site-foot .contact > * { max-width: none; }
.contact-text { display: grid; gap: 8px; max-width: 40rem; }
.site-foot .email { font-size: 1rem; padding: 9px 14px; }
.site-foot .contact h2 { font-size: var(--step-2); }
.site-foot .contact h2 small { display: block; margin-top: 4px; font-size: 0.6em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.site-foot .contact p:not(.label) { font-size: 0.9375rem; }
@media (max-width: 860px) { .site-foot .contact { grid-template-columns: 1fr; align-items: start; } }
.foot-bar { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.foot-bar { align-items: center; }
.foot-right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ig { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ink); transition: background .15s; }
.ig:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.ig svg { width: 22px; height: 22px; }
.foot-bar a { text-decoration: none; }
.foot-bar a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
