/* ==========================================================================
   Kenley Bides portfolio
   ========================================================================== */

:root {
  --bg: #F4F1EA;
  --surface: #EBE6DC;
  --fg: #141210;
  --muted: #5A534B;
  --line: rgba(20, 18, 16, .12);
  --line-strong: rgba(20, 18, 16, .7);
  --accent: #E0501C;
  --danger: #B3301B;
  --ok: #2F7A4B;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 1280px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110;
    --surface: #1C1A17;
    --fg: #EFEBE3;
    --muted: #ABA398;
    --line: rgba(239, 235, 227, .13);
    --line-strong: rgba(239, 235, 227, .6);
    --accent: #FF6B35;
    --danger: #FF8A73;
    --ok: #7BD69A;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121110;
  --surface: #1C1A17;
  --fg: #EFEBE3;
  --muted: #ABA398;
  --line: rgba(239, 235, 227, .13);
  --line-strong: rgba(239, 235, 227, .6);
  --accent: #FF6B35;
  --danger: #FF8A73;
  --ok: #7BD69A;
  color-scheme: dark;
}

/* Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--fg); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 300;
  padding: .7rem 1rem;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .22em;
  cursor: pointer;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.4rem;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn__arrow { width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--small { padding: .65rem 1.05rem; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background-color .3s;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }

.icon-sun { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block !important; }
  :root:not([data-theme="light"]) .icon-moon { display: none !important; }
}
:root[data-theme="dark"] .icon-sun { display: block !important; }
:root[data-theme="dark"] .icon-moon { display: none !important; }

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: .75rem max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-name {
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
}

.nav { display: flex; gap: 2rem; }
.nav a {
  position: relative;
  color: var(--muted);
  font-size: .95rem;
  text-decoration: none;
  transition: color .3s;
}
.nav a:hover, .nav a.is-active { color: var(--fg); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.menu-btn { display: none; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(var(--header-h) + 2rem) var(--pad) 2rem;
  background: var(--bg);
  overflow-y: auto;
}
.mobile-nav__links { list-style: none; margin: 0; padding: 0; }
.mobile-nav__links a {
  display: block;
  padding: .35rem 0;
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 11vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  text-decoration: none;
}
.mobile-nav__links a:hover { font-style: italic; }
.is-menu-open { overflow: hidden; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
}

/* Hero
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(3rem, 8vw, 6rem);
  max-width: var(--max);
  min-height: calc(100svh - var(--header-h));
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 8rem) var(--pad) clamp(3rem, 8vw, 5rem);
}

.hero__name {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(4.25rem, 18vw, 17rem);
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.045em;
  font-variation-settings: "opsz" 144, "wght" 360, "SOFT" 0, "WONK" 0;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--2 { font-style: italic; padding-left: 1.1em; }

.char {
  display: inline-block;
  transition: font-variation-settings .6s var(--ease);
}
.js .char {
  animation: rise 1s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 50ms + 80ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(.25em); }
  to { opacity: 1; transform: none; }
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}
.hero__intro {
  max-width: 30ch;
  margin: 0;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.6rem);
  line-height: 1.4;
}
.hero__intro em { font-family: var(--f-display); font-style: italic; }

@media (max-width: 640px) {
  .hero {
    min-height: 0;
    justify-content: flex-start;
    gap: 3rem;
    padding-top: 4.5rem;
  }
  .hero__name { font-size: clamp(4.25rem, 24vw, 6.5rem); }
}

/* Sections
   ========================================================================== */

main { counter-reset: section; }

.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--pad)) 1px no-repeat;
}
.section[data-count] { counter-increment: section; }
.section__body { min-width: 0; }

.label {
  margin: 0;
  padding-top: .45rem;
  color: var(--muted);
  font-size: .95rem;
}
.section[data-count] .label::before {
  content: counter(section, decimal-leading-zero);
  display: inline-block;
  min-width: 2.25em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.h2 {
  max-width: 18ch;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
  font-variation-settings: "opsz" 144;
}
.h2 em { font-style: italic; }
.h2--lead { max-width: 22ch; margin-bottom: 2rem; }

@media (max-width: 820px) {
  .section { grid-template-columns: 1fr; }
}

/* reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* About
   ========================================================================== */

.about__text { max-width: 58ch; color: var(--muted); }

/* Services
   ========================================================================== */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.service {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr);
  gap: .5rem 2rem;
  align-items: baseline;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
}
.service__num {
  color: var(--muted);
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.service__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 96;
  transition: transform .5s var(--ease);
}
.service__desc { margin: 0; max-width: 40ch; color: var(--muted); }

@media (hover: hover) {
  .service:hover .service__title { font-style: italic; transform: translateX(.35rem); }
  .service:hover .service__num { color: var(--accent); }
}

@media (max-width: 700px) {
  .service { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .service__desc { grid-column: 2; }
}

/* Experience
   ========================================================================== */

.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem 2rem;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line-strong);
}
.job__role {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
  font-variation-settings: "opsz" 144;
}
.job__company {
  margin: .5rem 0 0;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-style: italic;
  line-height: 1.2;
  color: var(--muted);
}
.job__when { margin: 0; color: var(--muted); font-size: .95rem; text-align: right; }
.job__desc { grid-column: 1 / -1; max-width: 58ch; margin-top: 1rem; color: var(--muted); }

@media (max-width: 600px) {
  .job { grid-template-columns: 1fr; }
  .job__when { text-align: left; }
}

/* Projects (hidden until there's work to show)
   ========================================================================== */

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.project { display: block; text-decoration: none; }
.project__media { overflow: hidden; border-radius: 12px; background: var(--surface); }
.project__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project__media img { transform: scale(1.03); }
.project__info { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; }
.project__title { margin: 0; font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; letter-spacing: -.02em; }
.project:hover .project__title { font-style: italic; }
.project__meta { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }

/* Contact
   ========================================================================== */

.contact__title {
  max-width: 12ch;
  margin: 0 0 1.25rem;
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 7vw, 6.25rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 144;
}
.contact__title em { display: block; font-style: italic; color: var(--accent); }
.contact__lede { max-width: 44ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); color: var(--muted); }

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.contact__row {
  position: relative;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.contact__label { color: var(--muted); font-size: .95rem; }
.contact__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.5rem) 0;
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-decoration: none;
  font-variation-settings: "opsz" 96;
}
.contact__link::after { content: ""; position: absolute; inset: 0; }
.at { font-family: var(--f-body); font-size: .8em; font-style: normal; }
.contact__link svg { width: 24px; height: 24px; flex: none; transition: transform .4s var(--ease), color .3s; }
.contact__row:hover .contact__link { font-style: italic; }
.contact__row:hover .contact__link svg { transform: translateX(4px); color: var(--accent); }

.copy-btn {
  position: relative;
  z-index: 1;
  padding: .5rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-size: .9rem;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.copy-btn:hover { background: var(--fg); color: var(--bg); }

@media (max-width: 640px) {
  .contact__row { grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; padding-top: .9rem; }
  .contact__label { grid-column: 1 / -1; }
  .contact__link { padding-top: .2rem; }
  .contact__row--email .contact__link svg { display: none; }
}

/* Inquiry form (hidden for now)
   ========================================================================== */

.inquiry { margin-top: clamp(4rem, 8vw, 6rem); }
.inquiry__title {
  margin: 0 0 .4rem;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -.02em;
}
.inquiry__lede { margin-bottom: 2rem; color: var(--muted); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .95rem; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
  border-radius: 10px;
  background: transparent;
  font-size: 1rem;
  transition: border-color .3s, box-shadow .3s;
}
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%23857C70' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}
.field select option { background: var(--bg); color: var(--fg); }
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--fg) 40%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { min-height: 1.2em; margin: 0; color: var(--danger); font-size: .9rem; }

.check { display: flex; align-items: flex-start; gap: .7rem; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin: .2rem 0 0; accent-color: var(--fg); flex: none; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { margin: 0; font-size: .95rem; }
.form__status.is-error { color: var(--danger); }
.form__status.is-ok { color: var(--ok); }
.form__success { padding: 1.5rem 1.75rem; border: 1px solid var(--line-strong); border-radius: 14px; }
.form__success h3 { margin: 0 0 .35rem; font-family: var(--f-display); font-size: 1.9rem; font-weight: 400; font-style: italic; letter-spacing: -.02em; }

@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

/* Footer
   ========================================================================== */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad) 2.5rem;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}
.footer__row p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer__links a, .footer__links button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .3s;
}
.footer__links a:hover, .footer__links button:hover { color: var(--fg); }

/* Cookie banner
   ========================================================================== */

.consent {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  width: min(400px, calc(100% - 2.5rem));
  padding: 1.25rem;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35);
  transition: transform .5s var(--ease), opacity .4s;
}
.consent.is-leaving, .js .consent.is-entering { opacity: 0; transform: translateY(16px); }
.consent__title { margin: 0 0 .3rem; font-weight: 600; }
.consent__text { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.consent__actions { display: flex; gap: .5rem; }
.consent .btn { flex: 1 1 0; }

@media (max-width: 520px) {
  .consent { left: .75rem; right: .75rem; bottom: .75rem; width: auto; padding: 1rem; }
}

/* Toast
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 220;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  transform: translate(-50%, 160%);
  transition: transform .5s var(--ease);
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); }

/* Simple pages (legal, 404, thanks)
   ========================================================================== */

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
}
.page-hero .label { padding: 0; }
.page-hero__title {
  margin: .75rem 0 0;
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 144;
}
.page-hero__title em { font-style: italic; }
.page-hero__sub { max-width: 50ch; margin: 1.25rem 0 0; color: var(--muted); font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); }
.page-hero__date { margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }

.legal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(4rem, 8vw, 7rem);
}
.legal__toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.legal__toc p { margin-bottom: .75rem; font-weight: 600; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; }
.legal__toc a { display: block; padding: .3rem 0; color: var(--muted); font-size: .95rem; text-decoration: none; }
.legal__toc a:hover { color: var(--fg); }

.prose { max-width: 66ch; }
.prose h2 {
  margin: 3rem 0 1rem;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.prose h3 { margin: 1.75rem 0 .5rem; font-size: 1.05rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose a { text-underline-offset: .2em; }
.prose code { padding: .1em .35em; border-radius: 4px; background: var(--surface); font-size: .9em; }
.summary {
  margin: 0 0 1rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}
.summary strong {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
}

@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}

/* 404 + thanks */
.lost {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: 2rem var(--pad) 5rem;
  text-align: center;
}
.lost__digits {
  display: flex;
  justify-content: center;
  margin: 0 0 1.5rem;
  font-family: var(--f-display);
  font-size: clamp(7rem, 26vw, 18rem);
  font-style: italic;
  line-height: .9;
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.digit {
  display: inline-block;
  padding: 0 .02em;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: translate(var(--dx, 0px), var(--dy, 0px));
  transition: color .3s;
}
.digit.is-dragging { cursor: grabbing; color: var(--accent); }
.lost__title {
  margin: 0 0 .75rem;
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.lost__title em { font-style: italic; }
.lost p { max-width: 40ch; margin: 0 auto 2rem; color: var(--muted); }
.lost .lost__hint { margin: 1.5rem auto 0; font-size: .9rem; }

/* Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .consent, .toast { display: none !important; }
}
