@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #e9e7e3;
  --ink: #1a1512;
  --muted: #5b524b;
  --ember: #e2501a;
  --ember-text: #b33c0b; /* ember as small text: 4.8:1 on --bg, plain ember is only 3.2:1 */
  --field: #ff6a2b;
  --field-ink: #160f0b;
  --gutter: clamp(16px, 2.6vw, 40px);
  --gap: clamp(96px, 13vw, 200px);
  --t-display: clamp(2.5rem, 5.6vw, 5.75rem);
  --t-big: clamp(1.5rem, 2.4vw, 2.25rem);
  --t-body: clamp(1.0625rem, 1.15vw, 1.1875rem);
  --t-small: 0.9375rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --ink: #f3ece2;
    --muted: #b3a697;
    --ember: #ff7a35;
    --ember-text: #ff7a35;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 "Bricolage", system-ui, sans-serif;
  font-optical-sizing: auto;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--field); color: var(--field-ink); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 2px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--ink); color: var(--bg); padding: .6em 1em; z-index: 50; }
.skip:focus { top: 12px; }

h1, h2, .figure__n, .contact__mail, .foot__mark, .wheel__title, .wheel__name {
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: .95;
  text-wrap: balance;
}
h2 { font-size: var(--t-display); max-width: 14ch; }
h3 { font-size: var(--t-big); font-weight: 680; letter-spacing: -0.02em; line-height: 1.1; }

/* Bar */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  position: relative; z-index: 5;
}
.wordmark { font-weight: 780; font-size: 1.375rem; letter-spacing: -0.03em; text-decoration: none; }
.bar nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.bar nav a { text-decoration: none; font-size: var(--t-small); font-weight: 500; }
.bar nav a:hover { color: var(--ember); }
@media (max-width: 760px) { .bar nav { display: none; } }

/* Liquid glass button, ported from @jahed/apple-tahoe-liquid-glass-button without React.
   The lens refracts what sits behind it; in Chromium main.js adds an SVG displacement map. */
.glass {
  --lift: 0px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6em;
  border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font-weight: 640; font-size: 1.0625rem; letter-spacing: -0.01em;
  transform: translateY(var(--lift)) scale(var(--s, 1));
  transition: transform .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.glass__lens {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: color-mix(in oklab, var(--field) 30%, transparent);
  -webkit-backdrop-filter: blur(6px) saturate(1.8);
  backdrop-filter: var(--lens-filter, blur(6px) saturate(1.8));
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, white 70%, transparent),
    inset 0 -1px 0 color-mix(in oklab, white 22%, transparent),
    inset 0 0 0 1px color-mix(in oklab, white 16%, transparent),
    inset 0 -12px 22px -14px color-mix(in oklab, white 55%, transparent),
    inset 0 10px 18px -16px color-mix(in oklab, white 80%, transparent),
    0 10px 28px -12px color-mix(in oklab, black 55%, transparent);
  transition: background-color .3s var(--ease);
}
.glass--quiet .glass__lens { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.glass:hover { --s: 1.04; }
.glass:hover .glass__lens { background: color-mix(in oklab, var(--field) 42%, transparent); }
.glass--quiet:hover .glass__lens { background: color-mix(in oklab, var(--ink) 12%, transparent); }
.glass:active { --s: .97; transition-duration: .1s; }
.glass:focus-visible { outline-offset: 4px; border-radius: 999px; }
.glass--float {
  position: fixed; top: 14px; right: var(--gutter); z-index: 20;
  min-height: 46px; padding: 0 1.3em; font-size: 1rem;
}
@media (max-width: 760px) { .glass--float { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); } }
html:not(.js) .glass--float { display: none; }
.js .glass--float { opacity: 0; --lift: -12px; pointer-events: none; transition: opacity .3s, transform .35s var(--ease); }
.js .glass--float.on { opacity: 1; --lift: 0px; pointer-events: auto; }

/* Hero */
.hero { padding: 0 var(--gutter); min-height: calc(100svh - 80px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-bottom: clamp(32px, 5vw, 64px); }
.hero__mark { position: relative; width: 100%; aspect-ratio: 3.45 / 1; margin-top: clamp(8px, 3vw, 48px); }
.hero__mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero__fallback {
  display: none; font-weight: 790; letter-spacing: -0.05em; line-height: .8;
  font-size: 23.5vw; color: var(--ember);
}
html:not(.js) .hero__fallback { display: block; }
.hero__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); align-items: end; }
.hero h1 { font-size: var(--t-display); max-width: 11.5ch; }
.hero__side { display: grid; gap: 24px; }
.lead { max-width: 34ch; font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.who { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__body { grid-template-columns: 1fr; }
}

/* How it works */
.how { padding: var(--gap) var(--gutter) 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 6vw, 88px); }
.steps li { display: grid; gap: 16px; align-content: start; }
.steps li:nth-child(2) { margin-top: clamp(0px, 6vw, 96px); }
.steps li:nth-child(3) { margin-top: clamp(0px, 12vw, 192px); }
.steps p { max-width: 34ch; }
.steps em { font-style: normal; font-weight: 600; color: var(--ember-text); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li:nth-child(n) { margin-top: 0; } }

/* Works wheel, ported from @crafterui/works-wheel without React */
.works { padding-top: var(--gap); }
.works__head { padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); align-items: end; }
.works__head p { max-width: 40ch; }
@media (max-width: 860px) { .works__head { grid-template-columns: 1fr; } }
.wheel { display: none; position: relative; height: calc(100svh + var(--n, 8) * 34svh); margin-top: clamp(24px, 4vw, 48px); }
.js .wheel { display: block; }
.wheel__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.wheel__stage { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; outline: none; }
.wheel__stage:active { cursor: grabbing; }
.wheel__stage:focus-visible { outline: 3px solid var(--ember); outline-offset: -6px; }
.wheel__drum { position: absolute; top: 50%; left: 50%; transform-style: preserve-3d; }
.wheel__card { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: block; }
.wheel__card span { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; background: var(--bg); }
.wheel__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.wheel__title { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-size: clamp(2rem, 6vw, 5.5rem); }
.wheel__now { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); max-width: 22vw; display: grid; gap: 18px; opacity: 0; pointer-events: none; }
.wheel__now.on { pointer-events: auto; }
.wheel__name { font-size: clamp(1.75rem, 2.8vw, 3rem); }
.wheel__open { font-weight: 640; color: var(--ember-text); text-underline-offset: 4px; }
.wheel__index { position: absolute; top: max(88px, 8svh); right: var(--gutter); text-align: right; display: grid; gap: 2px; }
.wheel__index button {
  font: inherit; font-size: var(--t-small); color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer;
  transition: color .2s;
}
.wheel__index button:hover, .wheel__index button[aria-current="true"] { color: var(--ink); }
.wheel__index button[aria-current="true"] { font-weight: 640; }
@media (max-width: 860px) {
  .wheel__now { left: 0; right: 0; top: auto; bottom: 0; transform: none; max-width: none; padding: 56px var(--gutter) 24px; background: linear-gradient(to bottom, transparent, var(--bg) 45%); }
  .wheel__index { display: none; }
}
.examples { display: none; padding: 0 var(--gutter); margin-top: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
html:not(.js) .examples { display: grid; }
.examples a { display: grid; gap: 12px; text-decoration: none; font-weight: 600; }
.examples img { border-radius: 6px; }
@media (max-width: 600px) { .examples { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .js .wheel { display: none; }
  .js .examples { display: grid; }
}

/* Price */
.price { padding: var(--gap) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); }
.price__figures { display: grid; gap: clamp(24px, 3vw, 48px); align-content: start; position: sticky; top: 96px; align-self: start; }
.figure { display: grid; gap: 10px; }
.figure__n { font-size: clamp(5rem, 13vw, 13rem); line-height: .82; color: var(--ember); font-variant-numeric: tabular-nums; }
.figure__n small { font-size: .32em; letter-spacing: -0.02em; margin-left: .08em; }
.figure__l { font-size: var(--t-big); font-weight: 560; letter-spacing: -0.02em; line-height: 1.15; }
.price__body { display: grid; gap: clamp(32px, 4vw, 56px); align-content: start; }
.statement { font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 520; max-width: 24ch; }
.gift { background: var(--field); color: var(--field-ink); padding: 22px 24px; font-weight: 560; max-width: 44ch; border-radius: 6px; }
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 40px); }
.terms h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); margin-bottom: 14px; }
.terms ul { display: grid; gap: 10px; }
.terms li { padding-left: 1.1em; position: relative; }
.terms li::before { content: ""; position: absolute; left: 0; top: .62em; width: .42em; height: .42em; border-radius: 50%; background: var(--ember); }
@media (max-width: 960px) {
  .price { grid-template-columns: 1fr; }
  .price__figures { position: static; grid-template-columns: 1fr 1fr; }
  .figure__n { font-size: clamp(3.5rem, 15vw, 8rem); }
}
@media (max-width: 600px) { .terms { grid-template-columns: 1fr; } .price__figures { grid-template-columns: 1fr; } }

/* Domain */
.yours { margin-top: var(--gap); background: var(--field); color: var(--field-ink); padding: clamp(72px, 10vw, 160px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); align-items: end; }
.yours h2 { font-size: clamp(3rem, 8vw, 8.5rem); max-width: 9ch; }
.yours p { font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.35; font-weight: 520; max-width: 30ch; }
.yours ::selection { background: var(--field-ink); color: var(--field); }
@media (max-width: 860px) { .yours { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding: var(--gap) var(--gutter) 0; display: grid; gap: clamp(28px, 4vw, 56px); }
.contact__mail {
  font-size: clamp(2.1rem, 8.6vw, 9.5rem); text-decoration: none; color: var(--ember);
  overflow-wrap: anywhere; text-wrap: initial;
  transition: color .2s;
}
.contact__mail:hover { color: var(--ink); }
.contact__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.contact__list dt { font-size: var(--t-small); color: var(--muted); margin-bottom: 6px; }
.contact__list dd { font-weight: 560; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--ember); }
@media (max-width: 760px) { .contact__list { grid-template-columns: 1fr; } }

/* Footer */
.foot { margin-top: var(--gap); padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; font-size: var(--t-small); color: var(--muted); overflow: hidden; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--ink); font-weight: 560; text-underline-offset: 4px; padding-block: 11px; }
.foot__mark { flex-basis: 100%; font-size: 26.5vw; color: var(--ink); line-height: .74; margin: 24px 0 -0.13em -0.04em; pointer-events: none; user-select: none; }
/* line-height .74 lets the glyphs overhang the box: without pointer-events: none they cover the links above. */

/* Entrances: content is visible without JS; main.js adds .rise and then .in */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .glass, .js .glass--float { transition: opacity .2s; }
  .glass:hover, .glass:active { --s: 1; }
}

/* Legal pages */
.doc { padding: clamp(32px, 6vw, 96px) var(--gutter) 0; max-width: 820px; }
.doc h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 24px; }
.doc h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; margin: 56px 0 16px; max-width: none; }
.doc p, .doc li { max-width: 68ch; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 14px; }
.doc ul { display: grid; gap: 8px; }
.doc li { padding-left: 1.1em; position: relative; }
.doc li::before { content: ""; position: absolute; left: 0; top: .62em; width: .42em; height: .42em; border-radius: 50%; background: var(--ember); }
.doc .updated { color: var(--muted); font-size: var(--t-small); }
.doc a { color: var(--ember-text); text-underline-offset: 3px; }

/* Legal pages with a side index: same two columns as the price section, so the text starts where the home's does. */
@media (min-width: 861px) {
  .doc--toc { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
  .doc__side { position: sticky; top: 32px; }
}
.doc__body > :first-child { margin-top: 1.25rem; }
.doc__toc { margin-top: 40px; }
.doc__toc ol { display: grid; gap: 4px; }
.doc__toc a { color: var(--muted); text-decoration: none; font-weight: 520; display: inline-block; padding-block: 6px; transition: color .2s; }
.doc__toc a:hover { color: var(--ink); }
.doc__toc a[aria-current] { color: var(--ember-text); }
.doc h2 { scroll-margin-top: 32px; }
@media (max-width: 860px) { .doc__toc { display: none; } }
.doc__toc li { padding-left: 0; }
.doc__toc li::before { content: none; }
