/* DAXYON site. One stylesheet, no script. Fill encodes state everywhere:
   solid = built, hatched = next, outline = design. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #d8ebe2;
  --ground-2: #c9e2d6;
  --ink: #0b2b27;
  --ink-2: #2a5049;
  --line: #0b2b2740;
  --accent: #a8124c;
  --built: #0a4f45;
  --btn: #c2185b;
  --btn-ink: #ffffff;
  --i1: #11a08a;
  --i2: #6a5bd6;
  --i3: #e0447f;
  --art: .62;
  --thumb: #0a4f45;
  --gut: clamp(1.25rem, 4.5vw, 3.75rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #072723;
    --ground-2: #0b332d;
    --ink: #ddf0e8;
    --ink-2: #9fc9bb;
    --line: #ddf0e833;
    --accent: #ff8db8;
    --built: #4fc2a6;
    --i1: #2cc9ae;
    --i2: #8e81f0;
    --i3: #ff6fa3;
    --art: .5;
    --thumb: #4fa08c;
  }
}

/* Coloured fields keep their colour in both themes and re-point the tokens. */
#constitution, .page-head {
  --ground: #0a4f45;
  --ground-2: #0d5c50;
  --ink: #e9f6f0;
  --ink-2: #b7dcce;
  --line: #e9f6f040;
  --accent: #ffa3c6;
  --built: #8ee0c9;
}
.join {
  --ground: #c2185b;
  --ground-2: #ad124f;
  --ink: #fff1f6;
  --ink-2: #ffe1ec;
  --line: #fff1f666;
  --accent: #fff1f6;
  --built: #fff1f6;
  --btn: #fff1f6;
  --btn-ink: #8e0f41;
}
.site-foot {
  --ground: #061f1c;
  --ink: #cfe6dc;
  --ink-2: #93bbae;
  --line: #cfe6dc33;
  --accent: #ff8db8;
}
#constitution, .page-head, .join, .site-foot { background: var(--ground); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--thumb) var(--ground-2); scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", Arial, system-ui, sans-serif;
  font-size-adjust: from-font;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
::selection { background: #c2185b; color: #fff; }

a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: .1em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1:focus { outline: none; }
strong { font-weight: 700; }

.wrap { max-width: 78rem; margin-inline: auto; padding-inline: var(--gut); }

.skip { position: absolute; left: var(--gut); top: -5rem; z-index: 5; background: var(--ink); color: var(--ground); padding: .6rem 1rem; }
.skip:focus { top: .5rem; }

/* ---------- type ---------- */
h1, h2, .pull { font-stretch: 116%; font-weight: 800; letter-spacing: -.022em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 1.1rem + 4.6vw, 4.6rem); line-height: 1; max-width: 13.5em; }
h2 { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3.2rem); line-height: 1.04; max-width: 17em; }
h3 { font-size: 1.125rem; line-height: 1.25; font-weight: 700; margin: 0; }
p { margin: 0 0 1.1em; }
.prose p, .lead-in, .note, .lede { max-width: 66ch; }
.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.35rem); line-height: 1.5; max-width: 56ch; }
.lead-in { font-size: 1.1875rem; line-height: 1.5; margin-top: 1.6rem; }
.note, .small, .dated { color: var(--ink-2); font-size: .9375rem; }
.sub { margin-top: 4.5rem; font-size: 1.35rem; font-stretch: 112%; font-weight: 750; }

/* ---------- header ---------- */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem; padding: 1.1rem var(--gut); border-bottom: 2px dotted var(--line); position: relative; z-index: 2; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-stretch: 125%; font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; }
.mk-core { fill: var(--accent); }
.mk-ring { fill: none; stroke: currentColor; stroke-width: 1.5; }
.site-head ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.6rem; margin: 0; padding: 0; }
.site-head nav a { text-decoration: none; font-size: .9375rem; font-weight: 500; padding-block: .6rem; display: inline-block; }
.site-head nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .14em; }
.site-head nav a[aria-current="page"] { font-weight: 800; box-shadow: 0 2px 0 var(--accent); }
.site-head nav a.nav-cta { background: var(--btn); color: var(--btn-ink); padding: .5rem 1.05rem; border-radius: 3px; font-weight: 700; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin: 2.2rem 0 0; }
.btn { font-weight: 700; }
.btn.primary { background: var(--btn); color: var(--btn-ink); text-decoration: none; padding: .9rem 1.5rem; border-radius: 3px; font-stretch: 110%; }
.btn.primary:hover { box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px var(--btn); }
.btn.big { font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); padding: 1.1rem 1.6rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; isolation: isolate; padding-block: clamp(2.75rem, 5.5vw, 4.75rem) clamp(2rem, 4vw, 3rem); }
.hero .wrap { position: relative; }
.hero .lede { margin-top: 2rem; margin-bottom: 0; max-width: 46ch; }
.hero .honest { max-width: 46ch; }
.hero-art { position: absolute; z-index: -1; aspect-ratio: 1; width: min(66rem, 118vw); inset-block-start: 50%; inset-inline-end: max(-24rem, -46vw); translate: 0 -54%; opacity: var(--art); pointer-events: none; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.i1 { stop-color: var(--i1); } .i2 { stop-color: var(--i2); } .i3 { stop-color: var(--i3); }
.core { fill: var(--i3); }

.status-strip { margin-top: clamp(2.5rem, 4.5vw, 3.5rem); border-top: 2px dotted var(--line); padding-top: 1.4rem; display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 1rem 2.5rem; align-items: center; }
.register { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; }
.register span { height: 1.5rem; border: 1.5px solid var(--ink); }
.register .done { background: var(--built); border-color: var(--built); }
.register .now { border-color: var(--accent); background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 5px); }
.honest { margin: 0; font-weight: 500; max-width: 62ch; }

/* ---------- bands ---------- */
.band { padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(3.25rem, 7vw, 5.5rem); }
.band.alt { background: var(--ground-2); }
#constitution.band.alt { background: var(--ground); }
.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem clamp(2.5rem, 6vw, 6rem); margin-top: 2.6rem; align-items: start; }
.prose > h3 { margin: 2.4rem 0 .9rem; }

/* the request chain: a routed strip */
.chain { list-style: none; margin: 0; padding: 0; }
.chain li { position: relative; padding: 0 0 1.5rem 2.2rem; }
.chain li::before { content: ""; position: absolute; left: .32rem; top: .5rem; bottom: -.5rem; width: 2px; background: var(--line); }
.chain li:last-child::before { display: none; }
.chain li::after { content: ""; position: absolute; left: 0; top: .32rem; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--ground); }
.chain li:first-child::after { background: var(--accent); border-color: var(--accent); }
.chain span { display: block; font-weight: 750; font-stretch: 112%; font-size: 1.15rem; line-height: 1.3; }
.chain small { display: block; color: var(--ink-2); font-size: .9375rem; }

/* the spatial hierarchy: the type narrows and shrinks as the level does */
.levels { list-style: none; margin: 1.4rem 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.6rem; line-height: 1; font-weight: 800; }
.levels li:nth-child(1) { font-size: clamp(2.2rem, 6vw, 4.4rem); font-stretch: 125%; }
.levels li:nth-child(2) { font-size: clamp(1.9rem, 5vw, 3.5rem); font-stretch: 112%; }
.levels li:nth-child(3) { font-size: clamp(1.7rem, 4vw, 2.8rem); font-stretch: 100%; font-weight: 700; }
.levels li:nth-child(4) { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-stretch: 88%; font-weight: 650; }
.levels li:nth-child(5) { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-stretch: 75%; font-weight: 600; }
.levels li:nth-child(6) { font-size: clamp(1.1rem, 2vw, 1.3rem); font-stretch: 62%; font-weight: 600; }
.levels.stack { flex-direction: column; gap: .5rem; margin-top: 1rem; }
.levels.stack li:nth-child(1) { font-size: 2.3rem; }
.levels.stack li:nth-child(2) { font-size: 2rem; }
.levels.stack li:nth-child(3) { font-size: 1.75rem; }
.levels.stack li:nth-child(4) { font-size: 1.5rem; }
.levels.stack li:nth-child(5) { font-size: 1.3rem; }
.levels.stack li:nth-child(6) { font-size: 1.15rem; }

.pull { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); line-height: 1.04; margin: 2.2rem 0; max-width: 12em; }

/* numbered control strips: the ten checks, the directives, the join steps */
.checks, .directives, .how ol, .ideas, .toc ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.checks li, .directives li, .how li, .ideas li, .toc li { counter-increment: n; }
.checks li::before, .directives li::before, .how li::before, .ideas li::before, .toc li::before, .marks li::before { content: counter(n, decimal-leading-zero); font-stretch: 68%; font-weight: 600; color: var(--accent); }
.checks li { display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; padding: .62rem 0; border-top: 2px dotted var(--line); font-weight: 600; }
.checks li:last-child { border-bottom: 2px dotted var(--line); }

.directives { margin-top: 2.8rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.directives li { position: relative; padding: 1.3rem 0 1.3rem 2.8rem; border-top: 2px dotted var(--line); }
.directives li::before { position: absolute; left: 0; top: 1.3rem; font-size: 1.125rem; line-height: 1.25; }
.directives p { margin: .35rem 0 0; }

.holds { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.holds li { border-top: 2px solid var(--ink); padding: .9rem 0 1.5rem; }
.holds.one { grid-template-columns: 1fr; margin-top: 0; }

/* schedules: term left, description right */
.cards { list-style: none; margin: 2.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.cards li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: .3rem 1.5rem; padding: 1.15rem 0; border-top: 2px dotted var(--line); align-items: baseline; }
.cards p { margin: 0; color: var(--ink-2); }

/* endorsement panels */
.truths { border: 1.5px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; margin: 5px; padding: 1.5rem 1.6rem 1.3rem; }
#goal .truths, #limits .truths { border-color: var(--accent); outline-color: var(--accent); }
.truths h3 { margin-bottom: .9rem; }
.truths > ul:not(.needs) { margin: 0; padding-left: 1.1rem; }
.truths > ul:not(.needs) li { margin-bottom: .7rem; }
.truths > ul:not(.needs) li::marker { color: var(--accent); }

/* the landmark register */
.marks { list-style: none; margin: 2.6rem 0 0; padding: 0; counter-reset: n; border-bottom: 2px solid var(--ink); }
.marks li { counter-increment: n; display: grid; grid-template-columns: 2.8rem minmax(0, 15rem) minmax(0, 1fr) 8.5rem; gap: .2rem 1.6rem; align-items: baseline; padding: 1rem 0; border-top: 2px dotted var(--line); }
.marks li:first-child { border-top: 2px solid var(--ink); }
.marks p { margin: 0; color: var(--ink-2); }
.marks .now p, .marks .done p { color: var(--ink); }
.state { font-stretch: 75%; font-weight: 650; white-space: nowrap; display: inline-flex; align-items: center; gap: .55rem; }
.state::before, .status::before { content: ""; flex: none; width: .95rem; height: .95rem; border: 1.5px solid var(--ink); }
.done .state::before, .status.built::before { background: var(--built); border-color: var(--built); }
.now .state::before { border-color: var(--accent); background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 5px); }
.now .state { color: var(--accent); }

.status { position: relative; margin: 3rem 0 0; padding: 1.1rem 0 0 1.85rem; border-top: 2px solid var(--ink); max-width: 74ch; font-size: 1rem; }
.status::before { position: absolute; left: 0; top: 1.45rem; }

/* skills and short lists */
.needs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.needs li { border: 1.5px solid var(--line); padding: .3rem .7rem; font-size: .9375rem; font-weight: 500; border-radius: 2px; }

.how h3 { margin-bottom: 1rem; }
.how li { position: relative; padding: 1rem 0 1rem 3.2rem; border-top: 2px dotted var(--line); }
.how li::before { position: absolute; left: 0; top: .95rem; font-size: 1.6rem; line-height: 1; }
.how .actions { margin: 1.8rem 0 1rem; }

.ideas { margin-top: 2.4rem; columns: 4 13rem; column-gap: 2.5rem; }
.ideas li { break-inside: avoid; display: grid; grid-template-columns: 2.2rem 1fr; padding: .4rem 0; border-top: 1px dotted var(--line); font-weight: 500; }

/* ---------- the full design page ---------- */
.page-head { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem); }
.page-head .lede { margin-top: 2rem; }
.page-head .honest { margin-top: 2.2rem; padding-top: 1.3rem; border-top: 2px dotted var(--line); font-weight: 400; max-width: 70ch; }
.page-head .dated { margin: 1rem 0 0; }
.toc.band { padding-block: clamp(2.5rem, 5vw, 4rem); }
.toc h2 { font-size: 1.35rem; font-stretch: 112%; letter-spacing: 0; }
.toc ol { margin-top: 1.4rem; columns: 3 17rem; column-gap: 3rem; }
.toc li { break-inside: avoid; display: grid; grid-template-columns: 2.2rem 1fr; padding: .45rem 0; border-top: 1px dotted var(--line); }
.toc a { text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.doc main { counter-reset: art; }
.doc section.band > .wrap { counter-increment: art; position: relative; }
.doc section.band > .wrap > h2::before { content: counter(art, decimal-leading-zero); display: block; font-stretch: 62%; font-weight: 500; font-size: 1.5rem; letter-spacing: 0; line-height: 1; color: var(--accent); margin-bottom: .7rem; }
@media (min-width: 88rem) {
  .doc section.band > .wrap > h2::before { position: absolute; left: -1.2rem; top: .15em; margin: 0; font-size: 2.2rem; }
}

/* ---------- join and footer ---------- */
#constitution.band.alt, .page-head, .join { background-image: url(/guilloche.svg); background-repeat: no-repeat; background-size: 40rem; background-position: right -13rem top -15rem; }
.join .needs li { border-color: var(--line); }
.site-foot { padding-block: 3rem; font-size: .9375rem; }
.site-foot p { margin: 0 0 .35rem; color: var(--ink-2); }
.site-foot .acro { color: var(--ink); font-size: 1.0625rem; margin-bottom: 1rem; }
.acro strong { font-stretch: 125%; font-weight: 800; letter-spacing: .06em; }

/* ---------- one motion: the linework turns as the page is read ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes turn-a { to { rotate: 28deg; } }
    @keyframes turn-b { to { rotate: -42deg; } }
    .gl-a { animation: turn-a linear both; animation-timeline: scroll(root block); animation-range: 0 1100px; }
    .gl-b { animation: turn-b linear both; animation-timeline: scroll(root block); animation-range: 0 1100px; }
    .gl-c { animation: turn-a linear both; animation-timeline: scroll(root block); animation-range: 0 700px; }
  }
}

/* ---------- narrow screens ---------- */
@media (max-width: 62rem) {
  .cols, .cards, .directives { grid-template-columns: minmax(0, 1fr); }
  .holds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marks li { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .marks li p { grid-column: 2 / -1; grid-row: 2; }
  .status-strip { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .site-head ul { gap: 0 1.1rem; }
  .site-head nav a.nav-cta { position: absolute; inset-block-start: .8rem; inset-inline-end: var(--gut); }
  .levels { flex-direction: column; gap: .5rem; }
  #constitution.band.alt, .page-head, .join { background-size: 24rem; background-position: right -11rem top -12rem; }
  .holds { grid-template-columns: minmax(0, 1fr); }
  .cards li { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: 150vw; inset-block-start: 0; inset-inline-end: -78vw; translate: 0 -24%; opacity: calc(var(--art) * .7); }
  .register span { height: 1.1rem; }
  .truths { padding: 1.2rem 1.1rem 1rem; }
}

@media (forced-colors: active) {
  .register span, .state::before, .status::before { border-color: CanvasText; forced-color-adjust: none; background: Canvas; }
  .register .done, .done .state::before, .status.built::before { background: CanvasText; }
  .site-head nav a.nav-cta, .btn.primary { border: 2px solid ButtonText; }
  .hero-art { display: none; }
}

@media print {
  .hero-art, .site-head nav, .skip { display: none; }
  body { background: #fff; color: #000; }
}
