
:root {
    --ink: #f3f0e8;
    --ground: #171918;
    scroll-padding-block-start: 6rem;
    --panel: #222624;
    --emerald: #126653;
    --emerald-deep: #0d4c40;
    --emerald-soft: #193f36;
    --brass: #b79a5b;
    --brass-light: #d4b873;
    --muted: #a9ada7;
    --line: #4b514b;
    --line-soft: rgba(243,240,232,.16);
    --danger: #e5a09a;
    --success: #8dc5a9;
    --white: #fffdf7;
    --black: #111311;
    --display: 'Fraunces', Georgia, serif;
    --body: 'Manrope', Arial, sans-serif;
    --mono: "IBM Plex Mono", "Courier New", monospace;
    --shell: 80rem;
    --reading: 43.75rem;
    --wide: 70rem;
    --gutter: clamp(1rem, 4vw, 5rem);
    --rhythm: clamp(4rem, 10vw, 10rem);
    --space-1: .375rem;
    --space-2: .75rem;
    --space-3: 1.125rem;
    --space-4: 1.5rem;
    --space-5: 2.25rem;
    --space-6: 3.25rem;
    --space-7: 5rem;
    --space-8: 7rem;
    --radius: 2px;
    --duration-fast: 160ms;
    --duration: 280ms;

    --duration-slow: 700ms;
    --ease: cubic-bezier(.22,.61,.36,1);
    --ease-sharp: cubic-bezier(.7,0,.2,1);
    --ease-soft: cubic-bezier(.16,1,.3,1);
    --shadow: 0 1rem 3rem rgba(0,0,0,.2);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--ground); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.7; text-rendering: optimizeLegibility; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, summary, select, input[type=checkbox], input[type=radio] { -webkit-tap-highlight-color: transparent; }
a { color: var(--brass-light); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--ink); }

button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 4px; }
::selection { color: var(--ground); background: var(--brass-light); }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 6.8rem); max-width: 12ch; margin-bottom: var(--space-5); }
h2 { font-size: clamp(2rem, 4.4vw, 4.4rem); max-width: 15ch; margin-bottom: var(--space-4); }
h3 { font-size: clamp(1.45rem, 2.5vw, 2.35rem); margin-bottom: var(--space-3); }
h4 { font-size: clamp(1.1rem, 1.7vw, 1.5rem); margin-bottom: var(--space-2); }
p { max-width: 68ch; margin-bottom: var(--space-4); }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.4rem); line-height: 1.55; max-width: 42rem; }
.small-copy { font-size: .875rem; line-height: 1.6; }
.eyebrow, .meta, .mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.eyebrow { color: var(--brass-light); }
.muted { color: var(--muted); }
strong { font-weight: 700; color: var(--white); }
.prose > * + * { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .6rem; }
.prose blockquote { margin: var(--space-6) 0; padding: 0 0 0 var(--space-4); border-left: 1px solid var(--brass); font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.2; }
.prose table { width: 100%; border-collapse: collapse; text-align: left; }
.prose th, .prose td { padding: .8rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--brass-light); font-family: var(--mono); font-size: .72rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }

.site-shell { width: min(100% - (2 * var(--gutter)), var(--shell)); margin-inline: auto; }
.reading-measure { width: min(100%, var(--reading)); margin-inline: auto; }
.wide-measure { width: min(100%, var(--wide)); margin-inline: auto; }
.section-space { padding-block: var(--rhythm); }
.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .split > *, .cluster > * { min-width: 0; }
.flow > * + * { margin-top: 1em; }
.divider { border-top: 1px solid var(--line); }
.gold-rule { border-top: 1px solid var(--brass); }
.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-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-150%); padding: .75rem 1rem; background: var(--brass-light); color: var(--ground); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

figure { margin-inline: 0; }
.media-frame { position: relative; overflow: hidden; background: var(--panel); }
.media-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { padding-top: .8rem; color: var(--muted); font-family: var(--mono); font-size: .7rem; line-height: 1.55; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: currentColor; }

@media (min-width: 48rem) {
    .md-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.99rem) {
    .split, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    h1 { max-width: 11ch; }
}
@media (max-width: 23rem) {
    :root { --gutter: 1rem; }
    body { font-size: .95rem; }
    h1 { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 420ms; animation-timing-function: var(--ease); }
    ::view-transition-old(site-header), ::view-transition-new(site-header), ::view-transition-old(brand), ::view-transition-new(brand), ::view-transition-old(followed-photo), ::view-transition-new(followed-photo) { animation-duration: 520ms; animation-timing-function: var(--ease-soft); }
}
@media (prefers-reduced-motion: reduce) {

    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
[hidden] { display: none !important; }
address { font-style: normal; }
hr { height: 1px; margin: var(--space-6) 0; border: 0; background: var(--line); }
small { font-size: .8em; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .55; }
