:root {
  --ink:        #221210;
  --ink-2:      #4A3630;
  --ink-3:      #7B665C;
  --ink-4:      #7C6757;

  --wine:       #6E1A1C;
  --wine-deep:  #4A1013;
  --wine-press: #330A0C;
  --wine-lift:  #8B2426;
  --wine-wash:  #F0E2DE;

  --gold:       #B4863A;
  --gold-deep:  #8A6224;
  --gold-press: #6B4A18;
  --gold-lift:  #D6AE68;
  --gold-pale:  #EEDCB6;

  --paper:      #F4EEE2;
  --paper-hi:   #FBF7EF;
  --paper-lo:   #EAE0CE;

  --rule:       rgba(34, 18, 16, 0.17);
  --rule-soft:  rgba(34, 18, 16, 0.09);
  --rule-hard:  rgba(34, 18, 16, 0.38);
  --rule-gold:  rgba(180, 134, 58, 0.45);
  --rule-cream: rgba(238, 220, 182, 0.24);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shell:      1280px;
  --shell-text: 760px;
  --gutter:     clamp(1.25rem, 4vw, 3rem);
  --masthead:   72px;

  --key-depth:    4px;
  --key-depth-sm: 3px;
  --key-press:    90ms cubic-bezier(.2, .9, .3, 1);
  --ease:         cubic-bezier(.22, .61, .36, 1);
  --ease-out:     cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--masthead) + 24px);
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--paper);
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--gold-pale); color: var(--wine-deep); }
::placeholder { font-style: italic; opacity: 1; }

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

.lattice {
  position: relative;
  isolation: isolate;
}

.lattice::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-size: 62px 62px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%236E1A1C' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M36 4 52 20 36 36 20 20Z'/%3E%3Cpath d='M36 36 52 52 36 68 20 52Z'/%3E%3Cpath d='M0 20 20 20 20 0M72 20 52 20 52 0M0 52 20 52 20 72M72 52 52 52 52 72'/%3E%3C/g%3E%3C/svg%3E");
}

.lattice--gold::before {
  opacity: .8;
  background-size: 62px 62px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23EEDCB6' stroke-opacity='.055' stroke-width='1'%3E%3Cpath d='M36 4 52 20 36 36 20 20Z'/%3E%3Cpath d='M36 36 52 52 36 68 20 52Z'/%3E%3Cpath d='M0 20 20 20 20 0M72 20 52 20 52 0M0 52 20 52 20 72M72 52 52 52 52 72'/%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 120;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.14; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; }

em, .wonk {
  font-style: italic;
  font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 144;
}

p { max-width: 68ch; overflow-wrap: break-word; }
p + p { margin-top: 1.05em; }

strong { font-weight: 600; color: var(--ink); }

.lead {
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.58;
  color: var(--ink-2);
}

.label {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  gap: .7em;
  line-height: 1;
}

.label::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.label--bare::before { display: none; }
.label--muted { color: var(--ink-3); }
.label--cream { color: var(--gold-pale); }
.label--cream::before { background: var(--gold-lift); }

.numeral {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold-deep);
}

.dropcap::first-letter {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 144;
  font-size: 4.1em;
  line-height: .78;
  font-weight: 600;
  float: left;
  margin: .06em .12em 0 0;
  color: var(--wine);
}

.key {
  --cap:    var(--wine);
  --edge:   var(--wine-deep);
  --ontop:  var(--paper-hi);
  --lip:    rgba(255, 255, 255, .22);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: .82rem 1.5rem;
  border-radius: 4px;
  border: 1.6px solid var(--edge);
  background: var(--cap);
  color: var(--ontop);
  font-family: var(--mono);
  font-size: .78125rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 0 var(--lip), 0 var(--key-depth) 0 0 var(--edge);
  transition:
    background 200ms var(--ease),
    border-color 200ms var(--ease),
    box-shadow var(--key-press),
    transform var(--key-press);
}

.key:hover { background: var(--wine-lift); }

.key:active:not(:disabled),
.key.is-pressed {
  transform: translateY(var(--key-depth));
  box-shadow: inset 0 1px 0 0 var(--lip), 0 0 0 0 var(--edge);
}

.key:disabled { opacity: .45; cursor: not-allowed; }

.key .arrow {
  transition: transform 260ms var(--ease-out);
}
.key:hover .arrow { transform: translateX(4px); }

.key--gold {
  --cap:   var(--gold);
  --edge:  var(--gold-deep);
  --ontop: #2A1B06;
  --lip:   rgba(255, 255, 255, .38);
}
.key--gold:hover { background: var(--gold-lift); }

.key--ghost {
  --cap:   transparent;
  --edge:  rgba(34, 18, 16, .42);
  --ontop: var(--ink);
  --lip:   rgba(255, 255, 255, .5);
  background: var(--paper-hi);
}
.key--ghost:hover { background: #fff; --edge: var(--wine); color: var(--wine); }

.key--ghost-gold {
  --cap:   transparent;
  --edge:  rgba(51, 10, 12, .45);
  --ontop: var(--wine-press);
  --lip:   rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .18);
}
.key--ghost-gold:hover { background: rgba(255, 255, 255, .34); --edge: var(--wine-press); }

.key--ghost-dark {
  --cap:   transparent;
  --edge:  rgba(238, 220, 182, .42);
  --ontop: var(--gold-pale);
  --lip:   rgba(255, 255, 255, .1);
  background: rgba(238, 220, 182, .05);
}
.key--ghost-dark:hover { background: rgba(238, 220, 182, .13); --edge: var(--gold-lift); }

.key--sm { padding: .6rem 1rem; font-size: .71875rem; --key-depth: var(--key-depth-sm); }
.key--lg { padding: 1.02rem 2rem; font-size: .84375rem; }
.key--block { width: 100%; }

.key--icon { padding: 0; width: 40px; height: 40px; }

.tlink {
  position: relative;
  display: inline-block;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wine);
  padding-bottom: 3px;
}

.tlink::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 340ms var(--ease-out);
}

.tlink:hover::after {
  transform-origin: left;
  animation: wipe 560ms var(--ease-out);
}

@keyframes wipe {
  0%   { transform: scaleX(1); transform-origin: right; }
  49%  { transform: scaleX(0); transform-origin: right; }
  51%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

.tlink--cream { color: var(--gold-pale); }

.duo > *,
.hero__grid > *,
.feature > *,
.split__side,
.pillars > *,
.paths > *,
.way > * { min-width: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--text { max-width: calc(var(--shell-text) + var(--gutter) * 2); }

.band { padding-block: clamp(3rem, 5.5vw, 5rem); }
.band--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }

.band--ink {
  background: var(--wine-deep);
  color: var(--gold-pale);
}
.band--ink h1, .band--ink h2, .band--ink h3, .band--ink h4 { color: var(--paper-hi); }
.band--ink p { color: rgba(238, 220, 182, .74); }

.band--stock { background: var(--paper-lo); }

.band--gold {
  background: linear-gradient(165deg, var(--gold-lift) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: var(--wine-press);
}
.band--gold h1, .band--gold h2, .band--gold h3 { color: var(--wine-press); }
.band--gold p { color: rgba(51, 10, 12, .78); }
.band--gold .label { color: var(--wine-press); }
.band--gold .label::before { background: var(--wine); }

.rule2 {
  border: 0;
  height: 4px;
  background:
    linear-gradient(var(--rule-hard), var(--rule-hard)) top / 100% 1px no-repeat,
    linear-gradient(var(--rule-hard), var(--rule-hard)) bottom / 100% 1px no-repeat;
}

.rule1 { border: 0; height: 1px; background: var(--rule); }
.rule-gold { border: 0; height: 1px; background: var(--rule-gold); }

.sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  flex-wrap: wrap;
}

.sechead__meta { display: flex; align-items: baseline; gap: 1.1rem; }

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

.skip {
  position: absolute;
  top: -200%;
  left: 1rem;
  z-index: 9999;
  background: var(--wine);
  color: var(--paper-hi);
  padding: .75rem 1.25rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.skip:focus { top: .5rem; }

.stack > * + * { margin-top: var(--stack, 1rem); }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.gold { color: var(--gold-deep); }
.wine { color: var(--wine); }
