/* ---- VARIABLES ---- */
:root {
  --bg:           #000000;
  --bg-raised:    #1b1a18;
  --text:         #ddd8d0;
  --text-muted:   #5e5850;
  --accent:       #b85c63;
  --accent-hover: #ca7278;
  --border:       #252321;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --radius:       4px;
  --speed:        0.18s;
  --transition:   var(--speed) ease;
  --max-w:        740px;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- LINKS ---- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ---- HEADER ---- */
.header {
  padding: 2.5rem 1.5rem 0;
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 1.25rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--text);
  margin-right: auto;
  line-height: 1;
}

/* .site-title:hover omitted — was a no-op (color identical to base) */

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}

nav a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

nav a:hover { color: var(--text); }

/* ---- MAIN ---- */
main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

/* ---- HERO ---- */
.hero {
  padding: 4.5rem 0 2.5rem;
  justify-content: center;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 5rem);
  letter-spacing: 4px;
  margin: 0;
  line-height: 0.95;
  color: var(--text);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
  font-style: italic;
}

.hero-links {
  display: grid;
  gap: 0.7rem;
  width: min(100%, 18rem);
  margin: 2rem auto 0;
}

.hero-links a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.hero-links a::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0);
  z-index: -1;
  pointer-events: none;
}

.hero-links a:not(.link-words):hover {
  color: #fff;
  border-color: rgba(202, 114, 120, 0.45);
  transform: translateY(-2px);
}

.hero-links a:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}

/* ---- WORDS (coming soon) ---- */
.link-words {
  cursor: default;
}

.words-text {
  transition: opacity var(--transition);
}

.words-soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.link-words:hover .words-text  { opacity: 0; }
.link-words:hover .words-soon  { opacity: 1; }

/* ---- PAGE HEADER ---- */
.page-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  letter-spacing: 2px;
  margin: 0 0 2.5rem;
  color: var(--text);
  line-height: 1;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin: 2.25rem 0 0.75rem;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
}

/* ---- ITEM LIST ---- */
.item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.item-list > li {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  overflow: hidden;
}

.item-list > li:last-child {
  border-bottom: 1px solid var(--border);
}

.item-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  display: block;
  cursor: pointer;
  transition: color var(--transition);
}

.item-title:hover { color: var(--accent-hover); }

.item-desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity    0.25s ease,
    margin-top 0.25s ease;
}

.item-list > li:hover .item-desc,
.item-list > li.is-active .item-desc {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.6rem;
}

small {
  color: var(--text-muted);
  font-size: 0.8em;
  margin-left: 0.4em;
}

/* ---- SLSKD PAGE ---- */
.page-subtitle {
  color: var(--text-muted);
  margin: -1.5rem 0 2rem;
  font-size: 0.9rem;
}

.download-btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  transition: background var(--transition), color var(--transition);
}

.download-btn:hover {
  background: var(--accent);
  color: #fff;
}

.code-block {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
  border-radius: var(--radius);
  margin: 0.4rem 0 1.25rem;
  overflow-x: auto;
}

ul {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

ul li { margin-bottom: 0.4rem; }

code {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.875em;
}

strong { font-weight: 600; }

/* ---- FOOTER ---- */
footer {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--text); }
.footer-quote {
  display: block;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.footer-meta {
  font-size: 0.78rem;
}