/* Abyssal Record Theme: deep ocean descent, bioluminescent accents */

:root {
  --abyss-deep: #0a1628;
  --abyss-mid: #0d3d56;
  --biolume: #2dd4bf;
  --foam: #e0f2fe;
  --bg: var(--abyss-deep);
  --text: var(--foam);
  --accent: var(--biolume);
  --muted: #5b8fa8;
  --glass: rgba(13, 61, 86, 0.35);
  --glass-border: rgba(45, 212, 191, 0.18);
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, var(--abyss-deep) 0%, var(--abyss-mid) 45%, #062032 100%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Header */
.site-header {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* Hero */
.page-hero {
  padding: 6rem 0 4rem;
  text-align: left;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.page-title {
  font-size: 3.5rem;
  margin: 0 0 1.5rem;
}

.page-summary {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 600px;
}

/* Depth bands — oceanic descent */
.depth-container {
  margin: 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.depth-band {
  padding: 2rem 2rem 2rem 2.5rem;
  position: relative;
  border-left: 3px solid var(--accent);
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  margin-bottom: -1px;
}

.depth-band:nth-child(1) {
  background: rgba(224, 242, 254, 0.06);
  border-left-color: var(--foam);
}

.depth-band:nth-child(2) {
  background: rgba(45, 212, 191, 0.08);
}

.depth-band:nth-child(3) {
  background: rgba(13, 61, 86, 0.45);
}

.depth-band:nth-child(4) {
  background: rgba(10, 22, 40, 0.55);
}

.depth-band:nth-child(5) {
  background: rgba(6, 32, 50, 0.7);
  border-left-color: #1a6b7a;
}

.depth-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.35rem;
  opacity: 0.85;
}

.depth-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--foam);
  margin-bottom: 0.5rem;
}

.depth-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Glass cards */
.glass-card {
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  margin: 2rem 0;
}

/* Prose */
.prose {
  margin-bottom: 6rem;
}

.prose h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

blockquote {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(45, 212, 191, 0.06);
  border-left: 4px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
}

/* Method Grid */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.method-item {
  padding: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.method-num {
  font-family: var(--font-serif);
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Archive */
.archive-list {
  list-style: none;
  padding: 0;
  margin: 4rem 0;
}

.archive-item {
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.archive-info h3 {
  margin: 0 0 0.25rem;
}

.archive-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
  font-size: 0.8rem;
  background: rgba(10, 22, 40, 0.5);
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-inner span {
  display: block;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: var(--abyss-deep);
  padding: 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.status.pending {
  border-color: rgba(45, 212, 191, 0.45);
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  margin-right: 0.5rem;
  background: rgba(45, 212, 191, 0.08);
}

@media (max-width: 600px) {
  .page-title { font-size: 2.5rem; }
  .site-header { flex-direction: column; gap: 1.5rem; text-align: center; }
  .archive-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
