@import url("fonts.css");

/* ---------- Tokens ---------- */
:root {
  --bg: #F4F2EC;
  --bg-translucent: rgba(244, 242, 236, 0.88);
  --surface: #E9E4D8;
  --line: #DAD5C7;
  --ink: #17140F;
  --text: #3A362E;
  --muted: #6B6455;
  --accent: #9A5A0C;
  --accent-bright: #B26B12;

  --font-sans: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 3px;
  --content-width: 760px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
}

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

@keyframes blink { 50% { opacity: 0; } }

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-translucent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nav__brand {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.nav__brand span { color: var(--accent-bright); }

.nav__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.nav__links a { color: var(--muted); text-decoration: none; }
.nav__links a:hover { color: var(--accent); }

/* Language switch: set apart from the section links by a divider */
.nav__links .nav__lang {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}
.nav__links .nav__lang:hover { color: var(--ink); }

/* ---------- Character ---------- */
.character {
  position: relative;
  padding: 88px 0 36px;
}

/* Keep character content stacked above the decorative helix */
.character > :not(.helix) { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--accent);
  margin: 0 0 24px;
}

.character__title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 24ch;
  text-wrap: pretty;
}

.cursor {
  display: inline-block;
  width: 0.42em;
  height: 0.82em;
  background: var(--accent-bright);
  margin-left: 6px;
  transform: translateY(0.1em);
  animation: blink 1.1s step-end infinite;
}

.character__lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 28px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.btn:hover { border-color: var(--ink); color: var(--ink); }

.btn--primary {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Character helix ---------- */
.helix {
  position: absolute;
  top: 56px;
  right: -48px;
  z-index: 0;
  width: 170px;
  height: 306px;
  opacity: 0.55;
  pointer-events: none;
  transform: rotate(18deg);
}

.helix__rungs line { stroke: var(--ink); stroke-width: 1.4; opacity: 0.35; }
.helix__rungs .helix__rung--accent { stroke: var(--accent-bright); opacity: 0.7; }

.helix__strand { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0.6; }
.helix__strand--accent { stroke: var(--accent-bright); stroke-width: 1.8; opacity: 1; }

/* ---------- Sections ---------- */
.section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.section__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--accent);
  margin: 0 0 22px;
}

.text {
  margin: 0 0 18px;
  max-width: 62ch;
}
.text strong { color: var(--ink); font-weight: 600; }

.text--aside { font-size: 15.5px; color: var(--muted); }

.text--meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.link--underline { text-underline-offset: 3px; }

.code-block {
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 28px;
  overflow-x: auto;
}
.code-block--compact { line-height: 1.7; margin-bottom: 24px; }
.code-block__comment { color: var(--accent); }

/* ---------- Project ---------- */
.project__title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 32ch;
}

.status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.status__note { color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 32px;
  margin-top: 26px;
}

.step {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}

.step__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ---------- Notes ---------- */
.notes { display: flex; flex-direction: column; }

.note {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.note:last-child { border-bottom: 1px solid var(--line); }
.note:hover { color: inherit; opacity: 0.7; }

.note__meta {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.note__date { color: var(--accent); }
.note__kind { color: var(--muted); }

.note__title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.note__summary {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Contact ---------- */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}

.contact-row__label {
  color: var(--muted);
  width: 80px;
  flex: none;
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 0 90px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Spacing utilities ---------- */
.mb-0 { margin-bottom: 0; }
.mb-22 { margin-bottom: 22px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
