/* Direction: dark cinematic editorial community. Type: Fraunces display, Instrument Sans text. Palette: charcoal and near-black surfaces, muted emerald accent, copper warmth. Signature: bento tiles with one shared radius and hairline borders, and a soft emerald light across the hero. Motion: line-rise headlines, slow reveals, restrained hovers. */

:root {
  --neutral-950: oklch(0.13 0.008 160);
  --neutral-900: oklch(0.17 0.01 160);
  --neutral-850: oklch(0.2 0.011 160);
  --neutral-700: oklch(0.36 0.01 160);
  --neutral-400: oklch(0.66 0.01 160);
  --neutral-200: oklch(0.86 0.008 160);
  --neutral-50: oklch(0.97 0.005 160);
  --emerald-500: oklch(0.66 0.11 160);
  --emerald-600: oklch(0.58 0.1 160);
  --copper-400: oklch(0.73 0.1 60);

  --color-bg: var(--neutral-950);
  --color-bg-surface: var(--neutral-900);
  --color-bg-sunken: var(--neutral-850);
  --color-text-primary: var(--neutral-50);
  --color-text-secondary: var(--neutral-400);
  --color-text-on-accent: oklch(0.15 0.02 160);
  --color-border: oklch(1 0 0 / 0.08);
  --color-border-strong: oklch(1 0 0 / 0.16);
  --color-accent-solid: var(--emerald-500);
  --color-accent-solid-hover: var(--emerald-600);
  --color-accent-text: var(--emerald-500);
  --color-warm: var(--copper-400);
  --color-focus-ring: var(--emerald-500);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-display: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);
  --text-h2: clamp(1.9rem, 1.4rem + 2vw, 3.1rem);
  --text-h3: 1.2rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-eyebrow: 0.75rem;

  --radius-md: 20px;
  --radius-tile: 22px;
  --radius-button: 999px;
  --gutter: clamp(20px, 5vw, 48px);
  --content-width: 1200px;
  --header-height: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg);
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:where(a) { color: var(--color-accent-text); text-underline-offset: 0.2em; text-decoration-skip-ink: auto; }
:where(a):hover { color: var(--color-text-primary); }
:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: -999px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--color-accent-solid); color: var(--color-text-on-accent); border-radius: 999px; }
.skip-link:focus { inset-inline-start: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--content-width)); margin-inline: auto; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; max-width: 100%; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius-button); font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.button:active { transform: scale(0.97); }
.button-primary { background: var(--color-accent-solid); color: var(--color-text-on-accent); }
.button-primary:hover { background: var(--color-accent-solid-hover); color: var(--color-text-on-accent); }
.button-secondary { border-color: var(--color-border-strong); background: transparent; color: var(--color-text-primary); }
.button-secondary:hover { background: var(--color-bg-sunken); color: var(--color-text-primary); }
.button-small { min-height: 40px; padding: 8px 16px; font-size: var(--text-small); }

.icon-button { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 999px; background: oklch(0.98 0 0 / 0.94); color: oklch(0.2 0 0); box-shadow: 0 2px 10px oklch(0 0 0 / 0.35); cursor: pointer; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in oklch, var(--color-bg) 82%, transparent); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--color-border); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text-primary); text-decoration: none; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; margin-inline-end: auto; }
.brand-mark { width: 30px; height: 30px; color: var(--color-accent-solid); }
.brand:hover { color: var(--color-text-primary); }
.header-cta { display: none; }
.menu-toggle { display: none; position: relative; min-width: 44px; min-height: 44px; border: 1px solid var(--color-border-strong); border-radius: 999px; background: transparent; color: var(--color-text-primary); cursor: pointer; place-items: center; }
.menu-toggle svg { grid-area: 1 / 1; transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1), transform 300ms cubic-bezier(0.2, 0, 0, 1), filter 300ms cubic-bezier(0.2, 0, 0, 1); }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.menu-toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: none; filter: none; }

html.js .menu-toggle { display: inline-grid; }
html.js .site-nav { display: none; position: fixed; inset: var(--header-height) 0 0; z-index: 49; padding: 24px var(--gutter); background: var(--color-bg); overflow-y: auto; }
html.js .site-nav[data-open="true"] { display: block; opacity: 1; translate: 0 0; transition: opacity 300ms var(--ease-drawer), translate 300ms var(--ease-drawer), display 300ms allow-discrete; }
@starting-style { html.js .site-nav[data-open="true"] { opacity: 0; translate: 0 -8px; } }
html.js .site-nav ul { display: flex; flex-direction: column; }
html.js .site-nav a { display: flex; align-items: center; min-height: 56px; color: var(--color-text-primary); font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; border-bottom: 1px solid var(--color-border); }
body:has(.site-nav[data-open="true"]) { overflow: hidden; }
.site-nav ul { display: flex; }

@media (min-width: 64rem) {
  .header-cta { display: inline-flex; }
  html.js .menu-toggle { display: none; }
  html.js .site-nav { display: block; position: static; padding: 0; background: none; overflow: visible; }
  html.js .site-nav ul { flex-direction: row; gap: 28px; }
  html.js .site-nav a { min-height: 44px; font-family: var(--font-text); font-size: 0.95rem; border: 0; color: var(--color-text-secondary); }
  html.js .site-nav a:hover { color: var(--color-text-primary); }
}

/* Bento system */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.tile { position: relative; overflow: hidden; min-width: 0; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-tile); background: var(--color-bg-surface); border: 1px solid var(--color-border); box-shadow: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 20px 40px -24px oklch(0 0 0 / 0.6); }
.tile h3 { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 500; margin-bottom: 8px; }
.tile p { color: var(--color-text-secondary); }
.tile-label { font-size: var(--text-small); color: var(--color-text-secondary); }
.tile-caption { position: absolute; inset-inline: 20px; bottom: 16px; color: var(--color-text-primary); font-size: var(--text-small); }

.eyebrow { font-size: var(--text-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-warm); font-weight: 600; margin-bottom: 12px; }

/* Hero */
.hero { padding-block: 24px 48px; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 80%; z-index: -1; background: radial-gradient(60% 60% at 30% 30%, oklch(0.6 0.1 160 / 0.22), transparent 70%), radial-gradient(40% 50% at 80% 20%, oklch(0.6 0.08 60 / 0.12), transparent 70%); filter: blur(10px); pointer-events: none; }
.hero .bento { grid-template-columns: minmax(0, 1fr); }
.tile-hero { padding-block: clamp(32px, 6vw, 72px); padding-inline: clamp(24px, 4vw, 56px); background: linear-gradient(in oklab, var(--neutral-900), oklch(0.19 0.02 160)); }
.hero-title { font-family: var(--font-display); font-size: var(--text-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; margin-bottom: 24px; }
.hero-title .line { display: block; overflow: clip; padding-block-end: 0.08em; }
.hero-title .line > span { display: block; animation: line-rise 900ms var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
.accent-text { color: var(--color-accent-solid); font-style: italic; }
@keyframes line-rise { from { translate: 0 110%; } }
.hero-lead { max-width: 52ch; font-size: 1.1rem; color: var(--color-text-secondary); animation: fade-up 800ms var(--ease-out) 250ms both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: fade-up 800ms var(--ease-out) 350ms both; }
@keyframes fade-up { from { opacity: 0; translate: 0 12px; } }

.photo-art { display: block; width: 100%; height: 100%; min-height: 220px; background: radial-gradient(90% 70% at 70% 20%, oklch(0.82 0.09 75 / 0.55), transparent 60%), linear-gradient(to bottom, oklch(0.35 0.08 250), oklch(0.5 0.1 60) 55%, oklch(0.22 0.04 160) 56%, oklch(0.2 0.04 150)); }
.photo-art-alt { background: linear-gradient(160deg, oklch(0.3 0.06 160), oklch(0.2 0.03 180) 60%, oklch(0.15 0.02 160)), radial-gradient(60% 50% at 40% 70%, oklch(0.6 0.1 160 / 0.4), transparent); }
.photo-art-warm { background: radial-gradient(70% 60% at 50% 110%, oklch(0.6 0.14 50 / 0.7), transparent 70%), linear-gradient(to top, oklch(0.25 0.06 40), oklch(0.16 0.02 160)); }
.tile-photo { padding: 0; min-height: 320px; }
.tile-photo .photo-art { position: absolute; inset: 0; min-height: 0; transition: scale 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile-photo:hover .photo-art { scale: 1.04; } }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.13 0.01 160 / 0.8), transparent 55%); pointer-events: none; }
.tile-photo .tile-caption { z-index: 1; }

.tile-stat { display: flex; flex-direction: column; justify-content: space-between; }
.stat-number { font-family: var(--font-display); font-size: clamp(3.5rem, 2rem + 4vw, 5.5rem); line-height: 1; color: var(--color-accent-solid); font-variant-numeric: tabular-nums; }
.tile-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: var(--color-text-primary); }
.tile-action { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: linear-gradient(in oklab, var(--neutral-900), oklch(0.22 0.04 160)); }
.link-arrow { font-weight: 600; font-size: 1.05rem; text-decoration: none; color: var(--color-text-primary); }
.link-arrow::after { content: " →"; display: inline-block; transition: translate 250ms var(--ease-out); }
.link-arrow:hover::after { translate: 4px 0; }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-band { background: linear-gradient(to bottom, transparent, oklch(0.16 0.012 160) 20%, oklch(0.16 0.012 160) 80%, transparent); }
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin-bottom: 48px; }
.section-num { font-family: var(--font-display); font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--color-border-strong); font-variant-numeric: tabular-nums; }
.section-title { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 500; letter-spacing: -0.015em; }
.section-title-sm { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); margin-bottom: 20px; }
.note { margin-top: 32px; color: var(--color-text-secondary); font-size: var(--text-small); }
.note a { color: var(--color-accent-text); }

.bento-about { grid-template-columns: minmax(0, 1fr); }
.bento-about .tile-photo { min-height: 260px; }

/* Server cards */
.server-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.server-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-tile); background: var(--color-bg-surface); border: 1px solid var(--color-border); transition: translate 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms; }
@media (hover: hover) and (pointer: fine) { .server-card:hover { translate: 0 -4px; border-color: var(--color-border-strong); box-shadow: 0 24px 48px -24px oklch(0 0 0 / 0.7); } }
.server-art { height: 170px; }
.art-atm { background: radial-gradient(60% 80% at 80% 0%, oklch(0.7 0.11 160 / 0.5), transparent 70%), linear-gradient(160deg, oklch(0.28 0.05 170), oklch(0.16 0.03 200)); }
.art-vanilla { background: radial-gradient(60% 80% at 20% 0%, oklch(0.8 0.1 75 / 0.45), transparent 70%), linear-gradient(160deg, oklch(0.3 0.06 150), oklch(0.18 0.03 160)); }
.art-bedrock { background: radial-gradient(60% 80% at 50% 0%, oklch(0.6 0.09 230 / 0.4), transparent 70%), linear-gradient(160deg, oklch(0.27 0.04 220), oklch(0.16 0.02 180)); }
.server-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.server-body p { font-size: var(--text-small); }
.server-body .meta { color: var(--color-text-primary); opacity: 0.7; }
.server-body .button { margin-top: auto; align-self: flex-start; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; background: oklch(0.6 0.1 160 / 0.14); color: var(--color-accent-text); }
.badge-warm { background: oklch(0.7 0.1 60 / 0.14); color: var(--color-warm); }

/* Gallery */
.masonry { list-style: none; columns: 2; column-gap: 12px; }
.masonry > li { break-inside: avoid; margin-block-end: 12px; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.frame { display: block; aspect-ratio: var(--ratio, 4 / 3); overflow: clip; border-radius: var(--radius-md); background: var(--color-bg-sunken); border: 1px solid var(--color-border); }
.frame .photo-art { min-height: 0; transition: scale 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery-item:hover .frame .photo-art { scale: 1.04; } }
@media (min-width: 60rem) { .masonry { columns: 3; column-gap: 16px; } .masonry > li { margin-block-end: 16px; } }

.lightbox { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: oklch(0.12 0.01 160 / 0.92); }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox-art { width: min(100%, 900px); aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.lightbox-caption { color: var(--color-text-secondary); font-size: var(--text-small); }
.lightbox-button { position: fixed; z-index: 1; }
.lightbox-close { top: 16px; right: 16px; }

/* Rules */
.bento-rules { grid-template-columns: minmax(0, 1fr); }
.rules { list-style: none; display: grid; gap: 0; counter-reset: rule; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 2.5rem 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--color-border); color: var(--color-text-primary); }
.rules li::before { content: counter(rule, decimal-leading-zero); font-family: var(--font-display); color: var(--color-warm); font-variant-numeric: tabular-nums; }
.tile-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: linear-gradient(in oklab, oklch(0.3 0.07 160), oklch(0.22 0.05 170)); border-color: oklch(0.6 0.1 160 / 0.4); }
.cta-text { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; color: var(--color-text-primary); }
.tile-cta .button-primary { align-self: flex-start; background: var(--color-text-primary); color: var(--neutral-950); }
.tile-cta .button-primary:hover { background: var(--neutral-200); color: var(--neutral-950); }

/* Join form */
.bento-join { grid-template-columns: minmax(0, 1fr); }
.join-intro p:not(.eyebrow) { max-width: 46ch; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-size: var(--text-small); font-weight: 600; color: var(--color-text-primary); }
.optional { font-weight: 400; color: var(--color-text-secondary); }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--color-border-strong); border-radius: 14px; background: var(--color-bg); color: var(--color-text-primary); font: inherit; font-size: 1rem; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: oklch(0.55 0.01 160); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"] { border-color: oklch(0.7 0.14 25); }
.field-error { color: oklch(0.8 0.12 25); font-size: var(--text-small); }
.fieldset { border: 0; margin: 0; padding: 0; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-inline-end: 18px; font-size: 0.95rem; color: var(--color-text-primary); cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--color-accent-solid); }
.form .button-primary { justify-self: start; }
.form-status { min-height: 1.6em; color: var(--color-accent-text); font-weight: 600; }

/* Footer */
.site-footer { margin-top: 48px; border-top: 1px solid var(--color-border); padding-block: 48px 24px; background: var(--neutral-900); }
.footer-row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: start; }
.footer-note { margin-top: 12px; color: var(--color-text-secondary); font-size: var(--text-small); max-width: 36ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--color-text-primary); }
.footer-small { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: var(--text-small); }

/* Responsive grids */
@media (min-width: 52rem) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile-hero { grid-column: span 4; grid-row: span 2; }
  .tile-photo { grid-column: span 2; }
  .tile-stat { grid-column: span 2; }
  .tile-quote { grid-column: span 2; }
  .tile-action { grid-column: span 2; }
  .tile-hero { min-height: 440px; display: flex; flex-direction: column; justify-content: center; }
  .hero .bento > .tile:nth-child(2) { grid-column: span 2; grid-row: span 2; }
  .bento-about .tile-wide { grid-column: span 4; }
  .bento-about > .tile:not(.tile-wide) { grid-column: span 2; }
  .bento-about .tile-photo.tile-wide { grid-column: span 6; }
  .bento-about .tile-photo { min-height: 320px; }
  .bento-rules .tile-wide { grid-column: span 4; }
  .bento-rules .tile-cta { grid-column: span 2; }
  .bento-join { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
  .section-head { grid-template-columns: auto 1fr; }
}
@media (min-width: 52rem) {
  .hero .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(160px, auto); }
}

@media (max-width: 51.99rem) {
  .tile-photo { min-height: 240px; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .section-num { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .line > span, .hero-lead, .hero-actions { animation: none; }
  .tile-photo .photo-art, .frame .photo-art { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[data-loading] figure::after { content: ""; position: absolute; }
}
[data-reveal] { opacity: 1; }
html.js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity 700ms var(--ease-out), translate 700ms var(--ease-out); transition-delay: calc(min(var(--i, 0), 8) * 60ms); }
html.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { html.js [data-reveal] { opacity: 1; translate: none; transition: none; } }