/* Mirrors qsl.quietstrength.uk's palette, type scale and spacing rhythm
   (same values, taken directly from that site's stylesheet) — a single
   light "paper/ink" editorial theme, not dark-first. */
:root {
  color-scheme: light;
  --ink: #171714;
  --muted: #665f55;
  --paper: #f3f0e9;
  --surface: #e7e2d8;
  --line: #d4cec2;
  --accent: #c85f28;
  --white: #fff;
  --max-width: 760px;
  font-family: Inter, "Avenir Next", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a { color: inherit; }

.site-header {
  min-height: 72px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ink);
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}
.brand span {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

#site-nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
}
#site-nav a {
  text-decoration: none;
  font-weight: 600;
}
#site-nav a[aria-current="page"] { color: var(--accent); }

@media (max-width: 760px) {
  #site-nav { display: none; }
}

.banner {
  display: block;
  width: 100vw;
  height: clamp(160px, 24vw, 360px);
  object-fit: cover;
  object-position: center;
}

.page {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) 0 96px;
}

.hero { margin-bottom: 56px; }

.hero .eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 750;
}

.hero .name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 8px;
}

.hero .logo-mark {
  width: clamp(36px, 5vw, 48px);
  height: clamp(36px, 5vw, 48px);
  border-radius: 8px;
  flex-shrink: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 56px);
  line-height: .95;
  letter-spacing: -.03em;
  font-weight: 800;
}

.hero .title {
  color: var(--accent);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  margin: 0 0 16px;
}

.hero .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.hero .meta span + span::before { content: " · "; }

.hero .short-profile {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
}

.links { margin-top: 18px; }
.links a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 20px;
  font-weight: 700;
  font-size: 14px;
}
.links a:hover { text-decoration: underline; }

section { margin-bottom: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.hero + section { border-top: none; padding-top: 0; }

section > h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 750;
  margin: 0 0 24px;
}

.entry { margin-bottom: 28px; }
.entry:last-child { margin-bottom: 0; }

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.entry-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

.entry-dates {
  color: var(--muted);
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.entry-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 4px 0 10px;
  line-height: 1.5;
}

.entry ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.entry li { margin-bottom: 4px; }

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--ink);
}

.project {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 20px;
}
.project:last-child { margin-bottom: 0; }

.project h3 { margin: 0 0 2px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.project .project-sub { color: var(--accent); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.project .entry-dates { display: block; margin-bottom: 14px; }

.block { margin-top: 18px; }
.block h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.block p { margin: 0; white-space: pre-wrap; color: var(--muted); line-height: 1.6; }
.block .caption { color: var(--muted); font-size: 13px; margin-top: 4px; }
.block hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.block blockquote {
  margin: 0;
  padding: 18px 22px;
  background: var(--surface);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-style: italic;
}
.block .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 560px) {
  .block .two-col { grid-template-columns: 1fr; }
}

.state {
  color: var(--muted);
  padding: 80px 24px;
  text-align: center;
}

footer {
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 64px;
}
