/* mdcurt.com — design "2a". Tokens from the design handoff. */

:root {
  --ground: #111111;
  --ink: #f2f2ee;
  --body: #b9b9b4;
  --muted: #8d8d88;
  --dim: #2e2e2e;
  --hover-fill: #1b1b1b;
  --input-bg: #181818;
  --gutter: 24px;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

/* Fonts — self-hosted (SIL OFL, see fonts/LICENSE-OFL.txt) */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

/* Base */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
img { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.mono-cell, .dim { color: var(--muted); }

/* Nav */
.nav {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  position: sticky;
  top: 0;
  background: var(--ground);
  z-index: 2;
}
.nav-brand {
  padding: 18px var(--gutter);
  border-right: 1px solid var(--ink);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 28px;
  padding: 18px var(--gutter);
  border-right: 1px solid var(--ink);
}
.nav-links a { color: var(--muted); }
.nav-links a.is-active { color: var(--ink); }
.nav-loc {
  padding: 18px var(--gutter);
  text-align: right;
  color: var(--muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 3fr 1fr;
  border-bottom: 1px solid var(--ink);
}
.hero-text {
  padding: 72px var(--gutter) 64px;
  border-right: 1px solid var(--ink);
}
.eyebrow {
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.hero-h1 {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.03em;
  max-width: 760px;
  text-wrap: pretty;
}
.hollow { color: var(--ink); }
@supports (-webkit-text-stroke: 1px #f2f2ee) {
  .hollow { color: transparent; -webkit-text-stroke: 1px var(--ink); }
}
.hero-lede {
  margin: 32px 0 0;
  font-size: 18px;
  line-height: 1.55;
  max-width: 620px;
  color: var(--body);
  text-wrap: pretty;
}
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 13px;
}

/* Buttons */
.btn { display: inline-block; }
.btn-primary {
  background: var(--ink);
  color: var(--ground);
  padding: 12px 18px;
  border: 0;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .75; }
.btn-secondary {
  border: 1px solid var(--ink);
  padding: 12px 18px;
  transition: background .2s;
}
.btn-secondary:hover { opacity: 1; background: var(--hover-fill); }
.btn-tertiary {
  padding: 12px 4px;
  color: var(--muted);
  transition: color .2s;
}
.btn-tertiary:hover { opacity: 1; color: var(--ink); }

/* Hero side column */
.hero-side { display: flex; flex-direction: column; }
.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: 1px solid var(--ink);
}
.spec-list {
  padding: 16px var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  color: var(--body);
  flex: 1;
}
.spec-row { display: flex; justify-content: space-between; }

/* Sections */
.section { border-bottom: 1px solid var(--ink); }
.section-last { border-bottom: 0; }
.section-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}
.section-label { font: inherit; }
.section-meta { color: var(--muted); }

/* 01 — Work */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ink);
}
.card {
  padding: 32px var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-first { border-right: 1px solid var(--ink); }
.terminal {
  margin: 0;
  box-sizing: border-box;
  background: var(--ink);
  color: var(--ground);
  border: 1px solid var(--ink);
  padding: 18px 20px;
  font: 11.5px/1.65 var(--mono);
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}
.t-dim { color: var(--muted); }
.card-shot {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: 0 0;
  border: 1px solid var(--ink);
}
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.card-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.card-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.card-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}
.card-links {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
}

/* Shared split row: label column + content */
.split {
  display: grid;
  grid-template-columns: 1fr 3fr;
}
.split-label {
  padding: var(--gutter);
  border-right: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}
.trio {
  padding: var(--gutter);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.trio b { color: var(--ink); font-weight: 500; }

/* 02 — Experience */
.xp {
  display: flex;
  flex-direction: column;
  font-size: 15px;
}
.xp-row { border-bottom: 1px solid var(--dim); }
.xp-row-last { border-bottom: 0; }
.xp-who {
  padding: var(--gutter);
  border-right: 1px solid var(--ink);
}
.xp-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.xp-org { font-weight: 500; }
.xp-role { color: var(--muted); font-size: 14px; }
.xp-list {
  margin: 0;
  padding: var(--gutter) var(--gutter) var(--gutter) 44px;
  line-height: 1.6;
  color: var(--body);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 03 — About */
.about { grid-template-columns: 2fr 1fr; }
.about-text {
  padding: 32px var(--gutter) 40px;
  border-right: 1px solid var(--ink);
}
.about-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}
.about-text p + p { margin-top: 16px; }
.skills {
  padding: 32px var(--gutter) 40px;
  font-size: 14px;
  line-height: 1.6;
}
.skill-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.skill-value { margin-bottom: 14px; }
.skill-value-last { margin-bottom: 0; }

/* 04 — Contact */
.contact { grid-template-columns: 1fr 1fr; }
.contact-left {
  padding: 40px var(--gutter);
  border-right: 1px solid var(--ink);
}
.contact-h3 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.contact-lede {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}
.contact-links {
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 12px;
}
.contact-links a {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
}
.contact-link-last { border-bottom: 1px solid var(--ink); }

.contact-form {
  padding: 40px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  font: 15px var(--sans);
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--input-bg);
  color: var(--ink);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--body); }
.contact-form textarea { resize: vertical; }
.contact-form .btn-primary { align-self: flex-start; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--body);
}
.form-success {
  padding: 40px var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}

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

/* Responsive */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav { grid-template-columns: auto 1fr; }
  .nav-links {
    border-right: 0;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .nav-links a { padding: 6px 0; display: inline-block; }
  .nav-loc { display: none; }
  .hero, .cards, .split { grid-template-columns: 1fr; }
  .hero-text {
    padding: 48px 20px 40px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .hero-h1 { font-size: 38px; }
  .btn-row { flex-wrap: wrap; }
  .btn-row .btn {
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }
  .hero-photo { aspect-ratio: 16/10; object-position: 50% 20%; }
  .card-first { border-right: 0; border-bottom: 1px solid var(--ink); }
  .split-label, .xp-who, .about-text, .contact-left {
    border-right: 0;
    border-bottom: 1px solid var(--dim);
    padding: 20px;
  }
  .about-text { padding: 32px 20px; }
  .contact-left { padding: 40px 20px; }
  .trio { grid-template-columns: 1fr; gap: 16px; }
  .xp-list { padding: 20px 20px 20px 38px; }
  .contact-h3 { font-size: 30px; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 32px; }
  .nav-brand { padding: 16px; }
}
