/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg: #14181c;
  --bg-raised: #1b2025;
  --paper: #edeae3;
  --paper-dim: rgba(237, 234, 227, 0.56);
  --paper-faint: rgba(237, 234, 227, 0.14);
  --teal: #4c7a70;
  --teal-bright: #6fa89c;
  --brass: #c08b4b;
  --line: rgba(237, 234, 227, 0.12);

  --display: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 880px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   Nav — simple text links
   ============================================================ */
.nav-wrap {
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a,
.nav .current {
  text-decoration: none;
  color: var(--paper-dim);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--paper);
  border-color: var(--teal-bright);
}

.nav .current {
  color: var(--brass);
  border-color: var(--brass);
  cursor: default;
}

/* ============================================================
   Layout
   ============================================================ */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}

h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.9rem;
  color: var(--paper);
}

p {
  color: var(--paper-dim);
  max-width: 62ch;
}

.lede {
  font-size: 1.15rem;
  color: var(--paper);
  opacity: 0.88;
  max-width: 56ch;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* status panel — a real list of what's running, not decoration */
.status-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  overflow: hidden;
  margin-top: 2.5rem;
}

.status-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child { border-bottom: none; }

.status-row .light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  flex: none;
  margin-top: 0.4rem;
}

.status-row .label {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--paper);
  min-width: 11rem;
}

.status-row .desc {
  color: var(--paper-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}

.skills-grid div {
  background: var(--bg-raised);
  padding: 1rem 1.2rem;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--paper-dim);
}

/* contact */
.contact-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  padding: 1.75rem;
  margin-top: 2rem;
}

.contact-line {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.contact-line:last-child { border-bottom: none; }

.contact-line .k {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  min-width: 6.5rem;
}

.contact-line a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--paper-faint);
  text-underline-offset: 3px;
}

.contact-line a:hover { text-decoration-color: var(--paper); }

/* contact form */
.form-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field:last-of-type {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 0.55rem;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.98rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--paper-faint);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 3px rgba(111, 168, 156, 0.18);
}

.submit-btn {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #d9a563, var(--brass));
  color: var(--bg);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(192, 139, 75, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(192, 139, 75, 0.5);
}

.form-note {
  font-size: 0.85rem;
  color: var(--paper-faint);
  margin: 0.9rem 0 0;
  max-width: none;
}

.form-status {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--teal-bright);
  margin-top: 1rem;
  display: none;
}

.form-status.visible {
  display: block;
}

footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
