/* Hallmark · genre: atmospheric · macrostructure: Split Studio · tone: austere
 * theme: Midnight · anchor hue: soul-cyan ~220 · enrichment: real screenshots
 * nav: N5 Floating pill · footer: Ft5 Statement
 * audience: dark-fantasy action RPG players · use: download · pre-emit: P4 H4 E4 S4 R4 V4
 */
:root {
  --color-paper: oklch(13% 0.038 295);
  --color-paper-2: oklch(17% 0.042 295);
  --color-paper-3: oklch(22% 0.048 295);
  --color-ink: oklch(94% 0.012 280);
  --color-ink-muted: oklch(74% 0.02 285);
  --color-ink-faint: oklch(58% 0.025 290);
  --color-accent: oklch(74% 0.13 220);
  --color-accent-2: oklch(62% 0.16 25);
  --color-void: oklch(42% 0.12 305);
  --color-rule: oklch(32% 0.04 295);
  --color-focus: oklch(78% 0.12 220);
  --color-bloom-a: oklch(45% 0.14 305 / 0.28);
  --color-bloom-b: oklch(50% 0.12 220 / 0.22);

  --font-display: "Tomorrow", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
  --font-outlier: "IBM Plex Mono", ui-monospace, monospace;

  --text-display: clamp(2.5rem, 5.5vw + 1rem, 4.75rem);
  --text-display-s: clamp(1.85rem, 3vw + 0.8rem, 2.75rem);
  --text-4xl: clamp(1.5rem, 2vw + 0.7rem, 2rem);
  --text-2xl: 1.375rem;
  --text-xl: 1.125rem;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;
  --page-gutter: clamp(1rem, 4vw, 2.5rem);
  --max-w: 72rem;

  --radius-sm: 4px;
  --radius: 8px;
  --rule-hair: 1px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast: 150ms;
  --dur: 280ms;
  --dur-slow: 480ms;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 55% 40% at 12% 8%, var(--color-bloom-a), transparent 70%),
    radial-gradient(ellipse 45% 35% at 88% 18%, var(--color-bloom-b), transparent 65%),
    var(--color-paper);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(135deg, transparent 40%, oklch(70% 0.08 220 / 0.04) 41%, transparent 42%),
    linear-gradient(225deg, transparent 55%, oklch(50% 0.1 305 / 0.05) 56%, transparent 57%);
  background-size: 28px 28px, 42px 42px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--color-ink);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-pill a:focus-visible,
.faq-q:focus-visible,
.tab-btn:focus-visible,
.guide-card:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  overflow-wrap: anywhere;
  min-width: 0;
}

h1 {
  font-size: var(--text-display);
  margin: 0 0 var(--space-sm);
}

h2 {
  font-size: var(--text-display-s);
  margin: 0 0 var(--space-sm);
}

h3 {
  font-size: var(--text-4xl);
  margin: 0 0 var(--space-2xs);
}

p {
  margin: 0 0 var(--space-sm);
  max-width: 65ch;
  color: var(--color-ink-muted);
}

.wrap {
  width: min(100% - 2 * var(--page-gutter), var(--max-w));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-2xl);
}

.section-head {
  margin-bottom: var(--space-lg);
  max-width: 40rem;
}

.section-head p {
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-2xs);
}

/* N5 Floating pill */
.nav-pill {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 0.55rem 0.4rem 0.55rem;
  max-width: calc(100vw - 1.5rem);
  background: color-mix(in oklch, var(--color-paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: 999px;
  box-shadow: 0 8px 24px -12px oklch(0% 0 0 / 0.45);
}

.nav-pill__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--color-ink);
  padding-left: 0.2rem;
  flex-shrink: 0;
}

.nav-pill__brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
  border: var(--rule-hair) solid var(--color-rule);
}

.nav-pill__brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-pill__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
}

.nav-pill__links a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--color-ink-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  border-radius: 999px;
  white-space: nowrap;
}

.nav-pill__links a:hover,
.nav-pill__links a[aria-current="page"] {
  color: var(--color-ink);
  background: color-mix(in oklch, var(--color-paper-3) 80%, transparent);
}

.nav-pill__cta {
  margin-left: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--color-paper-3);
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 4.5rem var(--page-gutter) auto;
  z-index: 49;
  padding: var(--space-sm);
  background: color-mix(in oklch, var(--color-paper-2) 92%, transparent);
  backdrop-filter: blur(16px);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius);
}

.nav-drawer.is-open {
  display: grid;
  gap: 0.25rem;
}

.nav-drawer a {
  display: block;
  padding: 0.75rem 0.85rem;
  color: var(--color-ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-drawer a:hover {
  background: var(--color-paper-3);
}

@media (min-width: 900px) {
  .nav-pill__links {
    display: flex;
  }

  .nav-toggle,
  .nav-drawer {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  border: var(--rule-hair) solid transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-fill {
  background: var(--color-accent-2);
  color: oklch(98% 0.01 80);
  box-shadow: 0 0 0 0 oklch(62% 0.16 25 / 0);
}

.btn-fill:hover {
  background: color-mix(in oklch, var(--color-accent-2) 86%, white);
  color: oklch(98% 0.01 80);
  box-shadow: 0 10px 28px -12px oklch(62% 0.16 25 / 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-rule);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: color-mix(in oklch, var(--color-paper-3) 70%, transparent);
}

.btn-chip {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink-faint);
}

.btn-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: var(--space-md);
}

/* Hero Split Studio */
.hero {
  padding-top: calc(4.5rem + var(--space-xl));
  padding-bottom: var(--space-2xl);
}

.hero-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-xl);
  }
}

.hero-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
  background: color-mix(in oklch, var(--color-paper-2) 80%, transparent);
  margin-bottom: var(--space-sm);
}

.hero-copy .lede {
  font-size: var(--text-xl);
  color: var(--color-ink-muted);
  max-width: 36ch;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

@media (min-width: 640px) {
  .metric-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.metric {
  padding: var(--space-sm) 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

.metric strong {
  display: block;
  font-family: var(--font-outlier);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.metric span {
  font-size: var(--text-xs);
  color: var(--color-ink-faint);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--rule-hair) solid var(--color-rule);
  aspect-ratio: 16 / 10;
  background: var(--color-paper-2);
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual figcaption {
  position: absolute;
  left: var(--space-sm);
  bottom: var(--space-sm);
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-ink);
  background: color-mix(in oklch, var(--color-paper) 72%, transparent);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
}

/* Split modules */
.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  padding-block: var(--space-xl);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .split.is-flip .split-media {
    order: -1;
  }
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--rule-hair) solid var(--color-rule);
  aspect-ratio: 16 / 10;
  min-width: 0;
  background: var(--color-paper-2);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info / feature surfaces */
.surface {
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.info-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
}

.info-grid dt {
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
  margin-bottom: 0.25rem;
}

.info-grid dd {
  margin: 0;
  color: var(--color-ink);
  font-weight: 600;
}

.feature-list {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-item {
  padding: var(--space-md);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius);
  min-width: 0;
}

.feature-item h3 {
  font-size: var(--text-xl);
}

.feature-item p {
  margin-bottom: 0;
}

/* Gallery */
.gallery-preview {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.gallery-preview a,
.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--rule-hair) solid var(--color-rule);
  aspect-ratio: 16 / 9;
  min-width: 0;
  background: var(--color-paper-2);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.gallery-preview a:hover,
.gallery-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.gallery-preview img,
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: var(--space-md);
}

.tab-btn {
  appearance: none;
  border: var(--rule-hair) solid var(--color-rule);
  background: transparent;
  color: var(--color-ink-muted);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
}

.tab-btn[aria-selected="true"] {
  color: var(--color-ink);
  border-color: var(--color-accent);
  background: color-mix(in oklch, var(--color-accent) 12%, var(--color-paper-2));
}

/* Download band / final CTA */
.band {
  padding-block: var(--space-2xl);
}

.band-inner {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius);
  border: var(--rule-hair) solid var(--color-rule);
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--color-void) 35%, transparent), transparent 55%),
    var(--color-paper-2);
}

@media (min-width: 768px) {
  .band-inner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    padding: var(--space-xl);
  }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: var(--space-2xs);
}

.faq-item {
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius);
  background: var(--color-paper-2);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 var(--space-md) var(--space-md);
  color: var(--color-ink-muted);
}

.faq-item.is-open .faq-a {
  display: block;
}

/* Guide cards / modal */
.guide-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.guide-card {
  text-align: left;
  padding: var(--space-md);
  border-radius: var(--radius);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-width: 0;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.guide-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.guide-card h3 {
  font-size: var(--text-xl);
  margin-bottom: 0.35rem;
}

.guide-card p {
  margin: 0;
  font-size: var(--text-sm);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--page-gutter);
  background: oklch(8% 0.03 295 / 0.72);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  width: min(40rem, 100%);
  max-height: min(80vh, 40rem);
  overflow: auto;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.modal-close {
  float: right;
  border: var(--rule-hair) solid var(--color-rule);
  background: transparent;
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

th,
td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  vertical-align: top;
}

th {
  color: var(--color-ink-faint);
  font-family: var(--font-outlier);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-paper-3);
}

td {
  color: var(--color-ink-muted);
}

tr:last-child td {
  border-bottom: 0;
}

/* Platform cards */
.platform-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.steps {
  display: grid;
  gap: var(--space-sm);
  counter-reset: step;
}

.step {
  display: grid;
  gap: 0.35rem;
  padding: var(--space-md);
  border-left: 2px solid var(--color-accent);
  background: var(--color-paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

/* Article */
.article-body {
  padding-top: calc(4.5rem + var(--space-xl));
  padding-bottom: var(--space-2xl);
}

.article-body .prose {
  max-width: 44rem;
}

.article-body .prose h2 {
  margin-top: var(--space-xl);
}

.article-body .prose ul,
.article-body .prose ol {
  padding-left: 1.2rem;
  color: var(--color-ink-muted);
}

.article-body .prose li {
  margin-bottom: 0.4rem;
}

.related {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--space-xl);
}

.related a {
  text-decoration: none;
  color: var(--color-ink);
  padding: 0.7rem 0;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.related a:hover {
  color: var(--color-accent);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
  display: grid;
  gap: 0.45rem;
}

.checklist li {
  position: relative;
  padding: 0.65rem 0.85rem 0.65rem 2.2rem;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  color: var(--color-ink-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid var(--color-accent);
  border-radius: 2px;
  transform: translateY(-50%);
}

/* Ft5 Statement footer */
.foot-stmt {
  padding: var(--space-2xl) var(--page-gutter) var(--space-xl);
  margin-top: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.foot-stmt__line {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 0 var(--space-lg);
  color: var(--color-ink);
}

.foot-stmt__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  align-items: baseline;
  padding-block-start: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule);
}

.foot-stmt__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.foot-stmt__brand img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.foot-links a {
  color: var(--color-ink-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.foot-links a:hover {
  color: var(--color-accent);
}

.foot-note {
  margin-top: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-ink-faint);
  max-width: 70ch;
}

.related-games {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.related-games a {
  font-size: var(--text-xs);
  color: var(--color-ink-faint);
  text-decoration: none;
  white-space: nowrap;
}

.related-games a:hover {
  color: var(--color-accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--page-gutter);
  background: oklch(6% 0.03 295 / 0.86);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  border-radius: var(--radius);
  border: var(--rule-hair) solid var(--color-rule);
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
  color: var(--color-ink);
  cursor: pointer;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .gallery-preview a,
  .guide-card {
    transition: none;
  }
}

/* Page offset for fixed nav */
.page-main {
  min-height: 60vh;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent-2);
  color: white;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip-link:focus {
  left: var(--page-gutter);
  top: var(--space-sm);
}
