@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

:root {
  --bg: #050505;
  --surface: #0b0b0b;
  --border: rgba(255, 255, 255, 0.06);
  --border-active: rgba(255, 255, 255, 0.12);
  --text: #b0b0b0;
  --text-dim: #555;
  --text-faint: #2a2a2a;
  --accent: #d8d8d8;
  --link: #8b6cc1;
  --link-hover: #b396e0;
  --purple: #8b6cc1;
  --purple-glow: rgba(139, 108, 193, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, footer {
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

/* Header */
header {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 2rem;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}
.header-title:hover {
  color: var(--link-hover);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.15);
}

.logo-icon {
  font-size: 1.3rem;
  line-height: 1;
  transition: color 0.3s ease, text-shadow 0.3s ease, filter 0.3s ease;
}
.header-title:hover .logo-icon {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 25px rgba(255, 255, 255, 0.25);
  filter: brightness(1.4);
}

.logo-dot {
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.header-title:hover .logo-dot {
  color: var(--link-hover);
}

/* Nav — horizontal line to the right */
nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-left: 2rem;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}
nav a:hover { color: var(--purple); }

.cta-btn {
  border: 1px solid var(--purple);
  border-radius: 3px;
  padding: 0.3em 0.9em;
  color: var(--purple) !important;
  font-weight: 400;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cta-btn:hover {
  background: var(--purple-glow);
  border-color: var(--link-hover);
  color: var(--link-hover) !important;
}

/* Main */
main {
  flex: 1;
  padding-top: 1rem;
  padding-bottom: 5rem;
}

/* Typography */
h1 {
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

h2 {
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

section {
  margin-top: 3rem;
}

p {
  max-width: 60ch;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--link-hover); }

/* Tagline */
.tagline {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3rem;
}

/* Section */

/* Expandable / Details */
details {
  border-top: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

details:last-of-type {
  border-bottom: 1px solid var(--border);
}

details[open] {
  border-color: var(--border-active);
}

summary {
  padding: 0.75rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  user-select: none;
}

summary:hover { color: var(--purple); }

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: transform 0.2s ease, color 0.2s ease;
}

details[open] summary::after {
  content: '\2212';
  color: var(--text);
}

.details-body {
  position: relative;
  padding: 0.5rem 0 1.5rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text);
}

.details-symbol {
  position: absolute;
  top: 50%;
  font-size: 7rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  user-select: none;
  pointer-events: none;
  transition: color 0.5s ease;
}

.details-symbol-left {
  left: 0;
  transform: translateY(-50%);
}

.details-symbol-right {
  right: 0;
  transform: translateY(-50%);
}

details[open] .details-symbol {
  color: rgba(255, 255, 255, 0.06);
}

.details-body p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.details-body code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.details-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  margin: 0.75rem 0;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.5;
}

.details-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.75rem;
}

.details-body li {
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
  font-size: 0.85rem;
}

.details-body li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.15em 0.5em;
  margin-right: 0.4em;
  margin-top: 0.3rem;
}

.meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

/* Poem / literary formatting */
.poem {
  font-style: italic;
  line-height: 1.9;
  color: var(--text);
  max-width: 50ch;
}

.poem br {
  display: block;
  margin-bottom: 0.3rem;
}

/* Hero section */
.hero-section {
  margin-top: 1rem;
}

.hero-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 55ch;
  color: var(--accent);
  font-weight: 300;
}

/* CTA section */
.cta-section {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.cta-section .cta-btn {
  display: inline-block;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.footer-title {
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.footer-title:hover {
  color: var(--link-hover);
}

footer nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-left: 2rem;
}

footer nav a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}
footer nav a:hover {
  color: var(--purple);
}
