/* =================================================================
   Design tokens
   Concept: the nav reads like an editor's open-file tabs, because
   the "files" it links to are literally index.php, about.php, etc.
   That's the one signature idea — everything else stays quiet.
   ================================================================= */
:root {
  --ink: #474340;
  --ink-soft: #83786f;
  --paper: #eef0f4;
  --panel: #ffffff;
  --line: #d7dbe2;
  --amber: #c98a2c;
  --teal: #2f6f6b;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}


div.header { margin-top: 40px; text-align: center }
div.content { margin: 80 120 20 120; text-align: center; font-family: 'Lato'; }
div.footer { margin-top: 160px; text-align: center; font-family: 'Lato'; font-size: 12px; }
a { color: #888; text-decoration: none; }
a:hover { color: #00aaff; }

img { max-width: 100%; display: block; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

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

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -----------------------------------------------------------------
   Header / "editor" chrome
   ----------------------------------------------------------------- */
.site-header {
  background: var(--ink);
  color: #e7e9ee;
}

.title-bar {
  max-width: 780px;
  margin: 0 auto;
  padding: 22px 24px 8px;
}

.title-bar .whoami {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--amber);
  margin: 0 0 6px;
}

.title-bar h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  margin: 0 0 4px;
  color: #ffffff;
}

.title-bar p {
  margin: 0 0 18px;
  color: #b7bdc9;
  font-size: 0.95rem;
}

/* Tab bar: each tab IS the real filename it links to */
nav.tabs {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  gap: 2px;
  padding: 0 24px;
  overflow-x: auto;
}

nav.tabs a {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #b7bdc9;
  background: #232c3a;
  padding: 10px 16px;
  border-radius: 6px 6px 0 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav.tabs a:hover {
  text-decoration: none;
  color: #ffffff;
  background: #2b3547;
}

nav.tabs a .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
}

nav.tabs a.active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

nav.tabs a.active .dot {
  background: var(--amber);
}

/* -----------------------------------------------------------------
   Main content
   ----------------------------------------------------------------- */
main {
  padding: 48px 0 64px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

main h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.button {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.button:hover { background: #2b3547; text-decoration: none; }

/* Resume-specific */
.resume-entry {
  padding-left: 18px;
  border-left: 2px solid var(--line);
  margin-bottom: 22px;
}

.resume-entry .when {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.resume-entry h3 {
  margin: 4px 0 6px;
  font-size: 1.05rem;
}

/* Contact form */
form.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 16px 0 6px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper);
}

form.contact-form textarea { resize: vertical; min-height: 140px; }

.notice {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
}

.notice.success { background: #e4f2ef; color: var(--teal); border: 1px solid #bfe0da; }
.notice.error   { background: #fbeaea; color: #a33a3a; border: 1px solid #f0c6c6; }

/* -----------------------------------------------------------------
   Footer
   ----------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.site-footer a { color: var(--ink-soft); }

@media (max-width: 560px) {
  .title-bar h1 { font-size: 1.6rem; }
  .panel { padding: 22px; }
}
