:root {
  color-scheme: dark;
  --purple-deep: #1c1627;
  --gold: #d3c387;
  --orange: #c55a2c;
  --accent: #eea17b;
  --paper: #eee9de;
  --text: #e9e4ee;
  --muted: #c1b7ca;
  --line: rgb(211 195 135 / 20%);
  --max: 1480px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 88% 10%, rgb(197 90 44 / 8%), transparent 24rem), linear-gradient(180deg, var(--purple-deep), #22182f 48%, #17111f);
  font: 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none; }
[id] { scroll-margin-top: 1rem; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
#main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .65rem 1rem; color: #130f1c; background: var(--gold); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); color: #130f1c; }

/* Header and progressively enhanced disclosure navigation. */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); min-height: 4.75rem; padding: .5rem clamp(1rem, 3.5vw, 4rem); background: rgb(25 18 36 / 97%); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.monogram, .brand-name { color: var(--gold); font-family: Georgia, serif; }
.monogram { font-size: 1.55rem; letter-spacing: -.15em; }
.brand-name { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; }
.primary-nav { display: flex; flex: 1; justify-content: center; gap: clamp(.5rem, 1.8vw, 2rem); font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem .25rem; border-bottom: 1px solid transparent; }
.primary-nav a[aria-current], .primary-nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.spark { color: var(--orange); font-size: 1.55rem; }
.sprite-icon { flex: none; }
.menu-toggle { display: none; width: 2.75rem; min-height: 2.75rem; padding: .5rem; border: 1px solid var(--line); background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--gold); }

main { max-width: var(--max); margin: 0 auto; border-inline: 1px solid rgb(211 195 135 / 7%); }
.hero { position: relative; isolation: isolate; min-height: 35rem; background: #08070b; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; width: 62%; min-height: 35rem; padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.5rem, 4.5vw, 5rem); background: linear-gradient(90deg, rgb(8 7 11 / 97%), rgb(8 7 11 / 88%) 55%, rgb(8 7 11 / 35%) 86%, transparent); }
.hero h1 { margin: 0; color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 6.5vw, 6.5rem); font-weight: 400; line-height: .98; letter-spacing: -.04em; text-transform: uppercase; }
.hero-deck { max-width: 34rem; margin: 1.5rem 0 2rem; color: var(--paper); font-size: clamp(1.05rem, 1.6vw, 1.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.25rem; padding: .85rem 1.1rem; border: 1px solid var(--gold); font-size: .875rem; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.button-gold { color: #20172c; background: var(--gold); }
.button svg { flex-shrink: 0; }
.button-gold:hover { color: #20172c; background: #e2d7ad; }
.button-outline { color: var(--gold); background: rgb(0 0 0 / 30%); }
.button-outline:hover { background: rgb(211 195 135 / 10%); }
.button.compact { min-height: 2.75rem; margin-top: .7rem; }
.hero-discord-link { align-self: flex-start; margin-top: 1.25rem; padding-block: .45rem; color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.margin-note { position: absolute; top: 2.5rem; right: 2rem; margin: 0; color: var(--paper); font-family: "Segoe Print", "Bradley Hand", cursive; font-size: 1.1rem; line-height: 1.45; text-shadow: 0 1px 8px #000; transform: rotate(-4deg); }
.margin-note::after { content: ""; display: block; width: 4.5rem; height: 2px; margin: .4rem 0 0 auto; background: var(--orange); transform: rotate(-7deg); box-shadow: 0 5px 0 var(--orange); }
.roles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.15rem; min-height: 3rem; padding: .75rem 1rem; color: var(--gold); background: #17111f; border-bottom: 1px solid var(--line); font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }
.roles b { color: var(--accent); font-weight: 400; }

/* Essays and live content lead; newsletter and community follow. */
.feature-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.feature-card { min-width: 0; padding: clamp(1.25rem, 2.2vw, 2rem); background: linear-gradient(135deg, rgb(61 47 82 / 57%), rgb(25 18 35 / 50%)); }
.feature-card + .feature-card { border-left: 1px solid var(--line); }
.feature-card p { color: var(--muted); }
.feature-card h2, .feature-card h3, .work-card h3 { color: var(--gold); font-family: Georgia, serif; font-weight: 400; }
.feature-card .kicker { margin: 0 0 1.1rem; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; text-transform: uppercase; }
.feature-card h3 { margin: .8rem 0 .35rem; font-size: 1.6rem; line-height: 1.2; }
.feature-card .lead { font-size: 1.1rem; }
.feature-card .accent-copy { color: var(--accent); }
.eyebrow { margin: 0 0 1rem; color: var(--accent); font-size: .875rem; font-weight: 600; letter-spacing: .03em; }
.feature-card .eyebrow.warm { color: var(--accent); }
.text-link { display: inline-block; margin-top: .75rem; padding-block: .4rem; color: var(--gold); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-underline-offset: .3em; }
.text-link:hover { text-decoration: underline; }
.media-image, .live-image { aspect-ratio: 16 / 9; overflow: hidden; background: #0d0b10; border: 1px solid var(--line); }
.live-image { margin-bottom: .8rem; }
:is(.media-image, .live-image, .newsletter-image, .community-image) > a { display: block; width: 100%; height: 100%; }
:is(.media-image, .live-image, .newsletter-image, .community-image, .work-art) img { width: 100%; height: 100%; object-fit: cover; }
:is(.media-image, .live-image, .newsletter-image, .community-image) a:focus-visible { outline-offset: -4px; }
.live-image img { object-position: center 42%; }
.section-meta, .small-label { color: var(--muted); font-size: .875rem; text-transform: uppercase; letter-spacing: .07em; }
.newsletter-preview { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.2rem; margin: 1.5rem 0 1rem; align-items: start; }
.newsletter-image { aspect-ratio: .8; overflow: hidden; background: #d5cdb9; box-shadow: 0 8px 20px rgb(0 0 0 / 20%); }
.newsletter-image img { object-fit: contain; }
.date { font-size: .875rem; }
.community-definition, .oz-definition, .identity-note { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); background: rgb(15 11 22 / 28%); }
.community-definition { display: grid; grid-template-columns: minmax(90px, 132px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.community-definition h3 { margin: 0; }
.community-image { aspect-ratio: .75; overflow: hidden; background: #130f1c; }
.community-image img { object-position: center 22%; }

/* A complete, wrapping project grid; no hidden horizontal carousel. */
.works { padding: 2rem clamp(1.25rem, 2.5vw, 2rem); border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 1.5rem; }
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  color: var(--gold);
  font: 400 2rem/1.25 Georgia, serif;
  text-transform: uppercase;
}
.section-heading p { max-width: 42rem; margin: .6rem 0 0; color: var(--muted); }
.works-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.work-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: rgb(20 15 29 / 62%); }
.project-link::after { content: ""; position: absolute; inset: 0; }
.work-card:focus-within { outline: 2px solid var(--gold); outline-offset: 4px; }
.project-link:focus-visible { outline: none; }
.work-art { aspect-ratio: 1.16; overflow: hidden; border-bottom: 1px solid var(--line); background: #0d0b10; }
.work-body { padding: 1.1rem; }
.work-card h3 { margin: 0 0 .7rem; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; overflow-wrap: anywhere; }
.work-card p { margin: .5rem 0; color: var(--muted); }
.work-card .eyebrow { color: var(--accent); }
.work-card:first-child .work-art img { object-position: 88% center; }
.work-card:nth-child(5) .work-art img { object-position: center top; }
/* The face sits near the top of the sketch. Zoom to centre it in the crop. */
.work-art--atsuktas img { object-position: left top; transform: scale(1.5); transform-origin: left top; }
.work-card:nth-child(3) .work-art img { object-position: 66% center; }

.lower-grid { display: grid; grid-template-columns: 1fr 1.1fr 1.5fr 1.55fr; border-bottom: 1px solid var(--line); }
.lower-card { min-width: 0; padding: 1.5rem; }
.lower-card + .lower-card { border-left: 1px solid var(--line); }
.lower-card h2 { margin: 0 0 1rem; color: var(--accent); font-size: .95rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .06em; }
.link-list { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.link-list a { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; }
.identity-note { display: flex; align-items: center; gap: .8rem; margin-top: 2rem; padding: 1rem; }
.identity-note p { margin: 0; }
.about-card p { color: var(--muted); }
.oz-card .small-label { margin: 0 0 .5rem; }
.oz-card h2 { color: var(--gold); font: 400 1.6rem/1.25 Georgia, serif; letter-spacing: .03em; }
.oz-definition { padding: 1rem; }
.oz-mark { display: grid; place-items: center; min-height: 11rem; padding: 1rem; color: var(--gold); border: 1px solid var(--line); background: linear-gradient(rgb(15 10 20 / 52%), rgb(15 10 20 / 76%)), url("assets/oz-in-the-woods-800.webp") center 32% / cover no-repeat; font: 400 1.35rem/1.4 Georgia, serif; text-align: center; text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 2px 8px #000; }
.oz-mark:focus-visible { outline-offset: -4px; }

.site-footer { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr auto; align-items: center; gap: 1.5rem; max-width: var(--max); margin: 0 auto; padding: 2rem clamp(1.25rem, 2.5vw, 2rem); color: var(--muted); background: #17111f; font-size: .875rem; }
.footer-quote { display: flex; align-items: center; gap: 1rem; color: var(--gold); }
.footer-quote > span { font-size: 2rem; }
.footer-quote p { margin: 0; }
.site-footer a { color: var(--paper); overflow-wrap: anywhere; }
.site-footer a:not(.signature) { text-decoration: underline; text-underline-offset: .25em; }
.signature { justify-self: end; padding: .5rem; color: var(--accent); font: 2rem Georgia, serif; }

@media (max-width: 1100px) {
  .site-header { gap: 1rem; }
  .primary-nav { gap: .6rem; }
  .spark { display: none; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lower-card:nth-child(3) { border-left: 0; }
  .lower-card:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 56rem) {
  .site-header { position: static; flex-wrap: wrap; justify-content: space-between; min-height: 4.25rem; padding-inline: 1rem; }
  .brand { gap: .8rem; }
  .brand-name { font-size: 1rem; }
  .primary-nav { flex-basis: 100%; flex-wrap: wrap; justify-content: flex-start; gap: .25rem 1rem; }
  .nav-enhanced { position: sticky; }
  .nav-enhanced .menu-toggle { display: block; }
  .nav-enhanced .primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; flex-wrap: nowrap; gap: 0; max-height: calc(100dvh - 4.25rem); padding: .5rem 1rem 1rem; overflow-y: auto; background: #181120; border-bottom: 1px solid var(--line); }
  .nav-enhanced .menu-toggle[aria-expanded="true"] + .primary-nav { display: flex; }
  .nav-enhanced .primary-nav a { min-height: 3rem; border-bottom-color: var(--line); }
  .nav-enhanced .primary-nav a[aria-current] { border-bottom-color: var(--gold); }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero { min-height: 0; }
  .hero-art { bottom: auto; height: 25rem; }
  .hero-art img { object-position: 70% center; }
  .hero-copy { width: 100%; min-height: 0; padding: 18rem 1.5rem 2.5rem; background: linear-gradient(180deg, transparent 8rem, rgb(8 7 11 / 36%) 13rem, rgb(8 7 11 / 95%) 21rem, #08070b 26rem); }
  .hero h1 { max-width: 40rem; font-size: clamp(3rem, 9vw, 4.8rem); }
  .hero-deck { max-width: 36rem; }
  .margin-note { top: 1.5rem; right: 1.5rem; font-size: 1rem; }
  .roles { gap: .5rem .8rem; text-align: center; }
  .feature-row { grid-template-columns: minmax(0, 1fr); }
  .feature-card + .feature-card { border-left: 0; border-top: 1px solid var(--line); }
  .feature-card { padding: 1.5rem; }
  .feature-card .kicker { font-size: 1.7rem; }
  .community-definition { grid-template-columns: 100px minmax(0, 1fr); }
  .works-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    padding-bottom: .75rem;
    scroll-snap-type: x mandatory;
  }
  .work-card { scroll-snap-align: start; }
  .work-card:focus-within { outline-offset: -4px; }
}
@media (max-width: 580px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .lower-grid, .site-footer { grid-template-columns: minmax(0, 1fr); }
  .work-art { aspect-ratio: 16 / 10; }
  .work-art--atsuktas img { transform: scale(1.1); }
  .work-card h3 { font-size: 1.6rem; }
  .lower-card + .lower-card { border-left: 0; border-top: 1px solid var(--line); }
  .signature { justify-self: start; }
}
@media (max-width: 480px) {
  .hero-copy { padding-inline: 1.25rem; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 3.25rem); }
  .hero-deck { font-size: 1.05rem; }
  .feature-card, .lower-card { padding: 1.5rem 1.25rem; }
  .works-grid { grid-auto-columns: 86%; }
  .newsletter-preview { grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; }
  .community-definition { grid-template-columns: 84px minmax(0, 1fr); gap: .8rem; padding: 1rem; }
  .community-definition .text-link { letter-spacing: .02em; }
}
@media (max-width: 360px) {
  .community-definition { grid-template-columns: minmax(0, 1fr); }
  .community-image { width: 100px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (forced-colors: active) {
  .menu-toggle { border-color: ButtonText; }
  .menu-toggle span:not(.sr-only) { background: ButtonText; }
  .button { border-color: LinkText; }
}
