/* ==========================================================================
   Taylor Treece — professional site
   Design concept: architectural blueprint / drawing sheet.
   Color is the only thing tokenized as CSS variables on purpose —
   everything else (spacing, type sizes, radii) is written inline
   so the sheet stays a set of deliberate choices, not a variable maze.
   ========================================================================== */

:root {
  --ink: #1A2233;         /* page background — lighter navy */
  --ink-2: #232C40;       /* panel background, slightly lighter */
  --line: #465773;        /* grid lines, rules, borders — steel navy-grey */
  --paper: #F2F4F7;       /* primary text — cool white */
  --muted: #8D97A6;       /* secondary text — navy-grey */
  --accent: #C879FF;      /* neon purple trace, lighter shade */
  --accent-soft: rgba(200, 121, 255, 0.16);
  --signal: #4FD8FF;      /* live/active state — electric blue, used sparingly */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  padding-top: 100px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* faint graph-paper grid behind everything */
.gridpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.08;
}

header, main, footer { position: relative; z-index: 1; }

/* ---------------- signal trace rail (signature element) ---------------- */
/* A continuous trace runs down the left edge of the content column, with a
   via (contact point) at each section. The via lights up in signal color
   for whichever section is currently in view (see js/main.js). On load, a
   single pulse travels the length of the trace once, then stops — an
   intentional moment rather than ambient animation. */

main {
  position: relative;
}

main::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--line);
  z-index: 1;
}

.sheet {
  position: relative;
}

.sheet::before {
  content: '';
  position: absolute;
  top: 96px;
  left: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--line);
  z-index: 2;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sheet-overview::before {
  top: 120px;
}

.sheet.is-active::before {
  border-color: var(--signal);
  box-shadow: 0 0 10px 1px var(--signal);
}

.no-via::before {
  display: none;
}

/* ---------------- drop cap (blog post openers) ---------------- */

.drop-cap::first-letter {
  float: left;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 68px;
  line-height: 0.82;
  padding: 6px 10px 0 0;
  color: var(--accent);
}

@media (max-width: 800px) {
  main::before,
  .sheet::before {
    display: none;
  }
}

a { color: inherit; }

/* ---------------- header / nav ---------------- */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.mark { text-decoration: none; display: inline-flex; align-items: center; }
.mark-logo {
  height: 52px;
  width: auto;
  display: block;
}

.sheet-nav {
  display: flex;
  gap: 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sheet-nav a {
  text-decoration: none;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: color 0.15s ease;
}

.sheet-nav a:hover,
.sheet-nav a:focus-visible {
  color: var(--signal);
  text-shadow: 0 0 8px rgba(79, 216, 255, 0.5);
}

.sheet-nav a:focus-visible {
  outline: 1px dashed var(--signal);
  outline-offset: 4px;
}

.sheet-no {
  color: var(--accent);
}

/* ---------------- sheet sections ---------------- */

.sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding: 96px 48px;
  border-bottom: 1px solid var(--line);
}

/* Prose-heavy sections (a headline plus a paragraph, no table/grid) read
   better narrower than the full sheet width. This wraps just the inner
   content in a narrower, centered container — the outer .sheet section
   itself (and its horizontal divider line) stays full width, matching
   every other section. */
.sheet-prose {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.sheet-overview {
  padding-top: 120px;
  padding-bottom: 120px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 20px;
}

.display {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h1.display {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
}

.h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 36px;
}

.role-line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 28px;
}

.lede {
  font-size: 18px;
  color: var(--paper);
  opacity: 0.92;
}

/* ---------------- title block (hero signature) ---------------- */

.hero-meta {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-top: 64px;
  flex-wrap: wrap;
}

.photo-frame {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  padding: 7px;
  border: 1px solid rgba(245, 242, 237, 0.35);
  background: rgba(245, 242, 237, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.title-block {
  margin-top: 64px;
  max-width: 420px;
  border: 1px solid var(--line);
}

.hero-meta .title-block {
  margin-top: 0;
}

.tb-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  border-bottom: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

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

.tb-label {
  padding: 12px 14px;
  background: var(--ink-2);
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.tb-value {
  padding: 12px 14px;
  color: var(--paper);
}

/* ---------------- notes (about) ---------------- */

.notes-list {
  padding-left: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notes-list li {
  padding-left: 8px;
}

.notes-list li::marker {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
}

/* ---------------- revision log (experience) ---------------- */

.log-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.log-head {
  display: grid;
  grid-template-columns: 60px 140px 260px 1fr;
  gap: 24px;
  padding: 10px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.log-row {
  display: grid;
  grid-template-columns: 60px 140px 260px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.log-rev {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  font-size: 14px;
}

.log-date {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--muted);
  font-size: 14px;
}

.log-role {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-role strong {
  font-family: 'Space Mono', monospace;
  font-size: 17px;
}

.log-desc ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-desc li {
  color: var(--paper);
  opacity: 0.9;
  font-size: 15px;
}

/* ---------------- legend (skills) ---------------- */

.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.legend-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.legend-symbol {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.4;
}

.legend-item h3 {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  margin: 0 0 6px;
}

.legend-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------------- contact form ---------------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.field input,
.field textarea {
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 1px dashed var(--accent);
  outline-offset: 2px;
}

.submit-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--ink);
  border: none;
  padding: 14px 26px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  opacity: 0.85;
}

.submit-btn:focus-visible {
  outline: 1px dashed var(--paper);
  outline-offset: 3px;
}

/* ---------------- contact ---------------- */

.stamp {
  margin-top: 40px;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 32px;
  border: 2px solid var(--accent);
  transform: rotate(-1.2deg);
  background: var(--accent-soft);
  max-width: 100%;
  box-sizing: border-box;
}

.stamp-label {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.stamp-link {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  text-decoration: none;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.stamp-link:hover,
.stamp-link:focus-visible {
  text-decoration: underline;
}

.stamp-loc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------------- footer ---------------- */

.site-foot {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 48px 64px;
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.site-foot p { margin: 0; }

/* ---------------- responsive ---------------- */

@media (min-width: 1600px) {
  .sheet {
    max-width: 1300px;
  }
}

@media (max-width: 800px) {
  body {
    padding-top: 96px;
  }

  .site-head {
    padding: 18px 24px;
    flex-direction: row;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .sheet-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
  }

  .sheet-nav.is-open {
    max-height: 480px;
  }

  .sheet-nav a {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }

  .sheet {
    padding: 64px 24px;
  }

  .sheet-overview {
    padding-top: 80px;
  }

  .log-head { display: none; }

  .log-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legend-grid {
    grid-template-columns: 1fr;
  }

  .site-foot {
    padding: 32px 24px 48px;
    flex-direction: column;
    gap: 8px;
  }
}
