/* ============================================
   THEME VARIABLES
   Change values here to restyle the whole site.
   Defaults below: near-black bg, warm off-white text,
   amber accent — a neocities/terminal starting point.
   ============================================ */
@font-face {
  font-family: 'K2D';
  src: url('fonts/K2D-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Synkopy';
  src: url('fonts/Synkopy-Regular.otf') format('opentype');
}
:root {
  --bg: #fefde2;
  --text: #0a0a0a;
  --text-dim: #8a8a82;
  --accent: #ff00c4;
  --border: #2a2a26;

  --font-head: 'Synkopy', sans-serif;
  --font-mono: 'K2D', ui-monospace, monospace;
  --font-body: courier, 'Courier New', monospace;

  --max-width: 760px;
  --gap: 2.5rem;
}

/* ============================================
   RESET / BASE
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: normal;
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, nav, .thesis {
  font-family: var(--font-mono);
}

a {
  color: var(--accent);
}

a:focus-visible,
a:hover {
  outline: none;
  text-decoration: underline dotted;
}

/* ============================================
   NAV
   Anchor links now. In phase 2, swap hrefs to
   page filenames — this block barely changes.
   ============================================ */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.25rem;
  font-size: 0.9rem;
  text-transform: lowercase;
  border-bottom: 1px solid var(--border);
}

.site-nav a {
  text-decoration: none;
  color: var(--text-dim);
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.ascii-motif {
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: pre;
  margin: 0 0 1.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 3rem;
  letter-spacing: 0.05em;
  font-family: var(--font-head);
  color: var(--accent);
}

.hero-logo {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.thesis {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 30ch;
  margin: 0 auto;
}

/* ============================================
   MAIN / SECTIONS
   Each section is self-contained on purpose —
   makes it trivial to lift one into its own
   page later without untangling shared CSS.
   ============================================ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--gap) 0;
  position: relative;
}

section:not(:last-of-type)::after {
  content: ". ݁₊ ⊹ . ݁ ⟡ ݁ . ⊹ ₊ ݁. . ݁₊ ⊹ . ݁ ⟡ ݁ . ⊹ ₊ ݁. . ݁₊ ⊹ . ݁ ⟡ ݁ . ⊹ ₊ ݁. . ݁₊ ⊹ . ݁ ⟡ ݁ . ⊹ ₊ ݁. . ݁₊ ⊹ . ݁ ⟡ ݁ . ⊹ ₊ ݁. . ݁₊ ⊹ . ݁ ⟡ ݁ . ⊹ ₊ ݁. . ݁₊ ⊹ . ݁ ⟡ ݁ . ⊹ ₊ ݁.";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  color: var(--text);
  font-weight: bold;
  text-shadow: 0 0 0.5px currentColor;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  pointer-events: none;
}

section h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 1.25rem;
}

/* GIFTS: three-column on wide screens, stacked on mobile */
.cluster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .cluster-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.cluster h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.cluster p {
  margin: 0;
}

/* VALUES */
.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.values-list strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: lowercase;
}

/* WORK */
.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.work-list a {
  font-weight: bold;
}

/* FOOTNOTES
   Superscript refs in body text (.footnote-ref) point down to numbered
   entries here; each entry links back up via .footnote-back. */
.footnote-ref {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-decoration: none;
  color: var(--accent);
  margin-left: 0.1rem;
}

.footnote-ref:hover {
  text-decoration: underline;
}

.footnotes {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footnotes ol {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footnotes a {
  color: var(--text-dim);
}

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

.footnote-back {
  text-decoration: none;
  margin-left: 0.3rem;
}

/* footer */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ============================================
   ACCESSIBILITY BASELINE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
