@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #111111;
  --text: #eceae6;
  --muted: #9a9790;
  --line: #2a2a2a;
  --panel: #1a1a1a;
  --art-bg: #f6f0e4;
  --font: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 38rem;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
.as-link:hover {
  color: #ffffff;
}

.nowrap {
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid #f3eee4;
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--bg);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.9fr);
  gap: 4.5rem;
  align-items: start;
  max-width: 70rem;
  margin: 0 auto;
  padding: 4.5rem 3.25rem 4.5rem;
  min-height: 100vh;
}

.handle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2.1rem;
}

.handle {
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.flags {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}

.bio-head {
  margin: 0 0 1.05rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.bio {
  max-width: var(--measure);
}

.bio p {
  margin: 0 0 1.15rem;
}

.bio p:last-child {
  margin-bottom: 0;
}

h2 {
  margin: 2.6rem 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.resources {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.resources li {
  border-top: 1px solid var(--line);
}

.resources li:last-child {
  border-bottom: 1px solid var(--line);
}

.resources a,
.resource-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  width: 100%;
  padding: 0.85rem 0;
  text-decoration: none;
}

.resources a span:first-child,
.resource-row span:first-child {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.resource-meta {
  color: var(--muted);
  white-space: nowrap;
}

.as-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
  text-align: left;
}

.resources .resource-row {
  display: flex;
  padding: 0.85rem 0;
  text-decoration: none;
}

.art {
  position: sticky;
  top: 2rem;
}

.art-frame {
  margin: 0;
  background: var(--art-bg);
  border-radius: 1.35rem;
  overflow: hidden;
}

.art-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.72);
}

.overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(28rem, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.modal h2 {
  margin: 0 2rem 0.4rem 0;
  font-size: 1.2rem;
}

.modal-lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.field {
  margin: 0 0 0.9rem;
}

.field label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #121212;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.turnstile-slot {
  margin: 0.4rem 0 1rem;
  min-height: 4.5rem;
}

.form-error,
.form-success {
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.9rem;
}

.form-error {
  background: #3a1c1c;
  color: #f3c4c4;
}

.form-success {
  background: #1c3a28;
  color: #c7eed6;
}

.form-error[hidden],
.form-success[hidden] {
  display: none;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  appearance: none;
  border: 1px solid #eceae6;
  background: #eceae6;
  color: #111111;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.35rem;
  cursor: pointer;
}

.btn:hover {
  background: #ffffff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: #222222;
  color: #ffffff;
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.25rem 1.35rem 3.25rem;
  }

  .handle-row {
    margin-bottom: 1.6rem;
  }

  .art {
    position: static;
    order: 2;
  }

  .copy {
    order: 1;
  }
}

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