@import url("https://fonts.googleapis.com/css2?family=Alegreya:wght@500;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --paper: #f4f1e8;
  --paper-warm: #ebe2d1;
  --ink: #151515;
  --ink-soft: #4a4943;
  --muted: #706d63;
  --line: #c9bda8;
  --line-strong: #2a2925;
  --accent: #c72222;
  --accent-dark: #7d1111;
  --green: #0e6f4d;
  --panel: rgba(255, 252, 244, 0.78);
  --shadow: 0 28px 90px rgba(42, 35, 24, 0.14);
  --max: 1160px;
  --display: "Alegreya", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 21, 21, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, var(--paper) 0%, #fbf8ef 42%, var(--paper-warm) 100%);
  background-size: 42px 42px, 42px 42px, auto;
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(199, 34, 34, 0.08), transparent 24%),
    linear-gradient(180deg, transparent 74%, rgba(14, 111, 77, 0.08));
  z-index: -1;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 2px solid var(--line-strong);
  background: rgba(244, 241, 232, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: #fffaf0;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.62rem;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(280px, 0.64fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  border-bottom: 2px solid var(--line-strong);
}

.hero-panel {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 8ch;
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 10.5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.82;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.96;
}

h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.05;
}

.kicker {
  margin: 1.35rem 0 0;
  max-width: 46rem;
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(1.65rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
}

.lede {
  margin: 1.2rem 0 0;
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn.primary {
  background: var(--accent);
  color: #fffaf0;
}

.btn.secondary {
  background: #fffaf0;
}

.identity-card {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 1.35rem;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border: 2px solid var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 250, 240, 0.9)),
    var(--panel);
  box-shadow: var(--shadow);
}

.identity-card p {
  margin: 0;
  color: var(--ink-soft);
}

.identity-card .identity-label {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-card dl {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 2px solid var(--line-strong);
}

.identity-card div {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.7rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.identity-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.identity-card dd {
  margin: 0;
  font-weight: 700;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.section-body > p,
.section-heading + p {
  margin-top: 0;
}

.section-body p,
.artifact p,
.project-grid p,
.contact-band p {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.feature-list article,
.project-grid article,
.artifact {
  border-top: 2px solid var(--line-strong);
  padding-top: 1rem;
}

.feature-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.feature-list span {
  color: var(--accent-dark);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
}

.feature-list p,
.project-grid p {
  margin: 0.45rem 0 0;
}

.artifact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.artifact-type,
.project-kicker {
  margin: 0 0 0.45rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link,
.project-grid a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.6rem);
  margin-top: 1.5rem;
}

.project-grid article {
  display: grid;
  align-content: start;
  min-height: 255px;
}

.project-grid a {
  align-self: end;
  margin-top: 1rem;
}

.contact-band {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.contact-band h2 {
  max-width: 10ch;
}

.contact-band p {
  max-width: 46rem;
}

.email {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent-dark);
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  overflow-wrap: anywhere;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--ink-soft);
  font-weight: 700;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .identity-card {
    align-self: auto;
  }

  .feature-list article {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .feature-list article p {
    grid-column: 2;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-grid article {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 1rem), var(--max));
  }

  .site-header {
    min-height: 0;
  }

  nav a {
    padding-left: 0;
    padding-right: 0.55rem;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 1.8rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.05rem, 20vw, 4.5rem);
    line-height: 0.88;
  }

  .kicker {
    max-width: 100%;
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  .lede,
  .section-body p,
  .artifact p,
  .project-grid p,
  .contact-band p {
    max-width: 100%;
  }

  .artifact,
  footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .identity-card div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
