/* holybit.net: the business card. Soft field of light, thin gold halo, one column. */
@font-face {
  font-family: "Outfit";
  src: url("/assets/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #23223a;
  --soft: #66657e;
  --gold: #b38a24;
  --gold-ring: #c39a33;
  --rule: rgba(35, 34, 58, .14);
  --field: radial-gradient(ellipse 70% 60% at 50% 28%, #fff7da 0%, #f3eff8 48%, #e4e5ef 100%);
  --page: #f3f1f7;
  --f: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: #e4e5ef; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: var(--field); background-attachment: fixed;
  color: var(--ink); font-family: var(--f); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-ring); outline-offset: 3px; border-radius: 4px; }
.pending { font-style: italic; color: var(--soft); }

/* ── Home ── */
.home {
  display: grid; justify-items: center; align-content: center; gap: 44px; text-align: center;
  padding-block: max(48px, env(safe-area-inset-top, 0px)) max(32px, env(safe-area-inset-bottom, 0px));
}
.card { max-width: 560px; width: 100%; display: grid; justify-items: center; gap: 24px; }
.halo { width: clamp(124px, 26vw, 184px); height: auto; color: var(--gold-ring); margin-bottom: -20px; }
.card h1 { margin: 0; font-weight: 300; font-size: clamp(56px, 13vw, 96px); line-height: .95; letter-spacing: -.045em; }
.card h1 b { font-weight: 500; }
.sub { margin: 0; color: var(--soft); font-size: 17px; max-width: 40ch; }
.prod { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-block: 1px solid var(--rule); }
.prod > * { text-decoration: none; padding: 18px 12px; display: grid; gap: 2px; }
.prod > * + * { border-left: 1px solid var(--rule); }
.prod b { font-weight: 500; font-size: 21px; letter-spacing: -.01em; }
.prod span { color: var(--soft); font-size: 14.5px; }
.prod a:hover b { color: var(--gold); }
.prod a:hover span { color: var(--soft); }
.mail { font-size: 17px; letter-spacing: .01em; text-decoration: none; }
.mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { font-size: 12.5px; color: var(--soft); line-height: 1.75; max-width: 62ch; }
.legal .nw { white-space: nowrap; }
.legal nav { display: flex; justify-content: center; gap: 16px; margin-top: 6px; }
@media (max-width: 480px) {
  .prod { grid-template-columns: minmax(0, 1fr); }
  .prod > * + * { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ── Text pages (legal notice, privacy, 404) ── */
.doc { max-width: 720px; margin: 0 auto; padding-block: max(32px, env(safe-area-inset-top, 0px)) max(48px, env(safe-area-inset-bottom, 0px)); }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 28px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.brand svg { width: 54px; height: auto; color: var(--gold-ring); margin-bottom: -5px; }
.brand span { font-size: 24px; font-weight: 300; letter-spacing: -.04em; }
.brand span b { font-weight: 500; }
.brand:hover { color: var(--ink); }
.doc-head nav { display: flex; gap: 16px; font-size: 14px; color: var(--soft); }
.sheet { background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85); border-radius: 22px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 24px 60px -34px rgba(35, 34, 58, .4); }
.sheet h1 { margin: 0 0 4px; font-size: clamp(32px, 6vw, 44px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.sheet .lede { margin: 0 0 28px; color: var(--soft); }
.sheet .updated { margin: 28px 0 0; font-size: 14px; }
.sheet h2 { margin: 32px 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.sheet p, .sheet li { margin: 0 0 10px; max-width: 65ch; }
.sheet ul { padding-left: 20px; margin: 0 0 10px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 28px; margin: 0; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.doc-foot { margin-top: 28px; font-size: 12.5px; color: var(--soft); text-align: center; }
@media (max-width: 520px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: 10px; }
}
