:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --ink: #1e2522;
  --muted: #5f6a65;
  --line: #d8d5ca;
  --green: #2f6f58;
  --red: #a43f35;
  --gold: #d7a84a;
  --shadow: 0 18px 50px rgba(30, 37, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(247, 245, 239, 0.88);
  border-bottom: 1px solid rgba(216, 213, 202, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: 90px clamp(18px, 5vw, 64px) 56px;
  background:
    linear-gradient(90deg, rgba(20, 28, 25, 0.82), rgba(20, 28, 25, 0.4) 48%, rgba(20, 28, 25, 0.1)),
    url("assets/hero-desk.png") center / cover no-repeat;
}

.hero-copy {
  max-width: 760px;
  color: #fffdf7;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c56e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.hero-copy p {
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #1d1710;
}

.button.secondary {
  border-color: rgba(255, 253, 247, 0.56);
  color: #fffdf7;
}

.section {
  padding: 76px clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.card-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.note,
.project-card {
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 310px;
  border-width: 2px;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
}

.project-button {
  display: flex;
  align-items: center;
  min-height: 104px;
  padding: 18px;
  color: #fffdf7;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.12;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(30, 37, 34, 0.94), rgba(47, 111, 88, 0.88)),
    repeating-linear-gradient(
      -8deg,
      rgba(255, 253, 247, 0.1) 0 1px,
      transparent 1px 8px
    );
  border: 1px solid rgba(30, 37, 34, 0.36);
  border-radius: 8px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
}

.project-button:hover,
.project-button:focus-visible {
  background:
    linear-gradient(135deg, rgba(47, 111, 88, 0.96), rgba(164, 63, 53, 0.88)),
    repeating-linear-gradient(
      -8deg,
      rgba(255, 253, 247, 0.1) 0 1px,
      transparent 1px 8px
    );
  outline: 3px solid rgba(215, 168, 74, 0.54);
  outline-offset: 3px;
}

.project-blurb {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.project-tags span {
  padding: 4px 8px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px dashed rgba(47, 111, 88, 0.38);
  border-radius: 999px;
  background: rgba(47, 111, 88, 0.08);
}

.card p,
.project-card p,
.note p,
.statement p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr);
  gap: 32px;
  background: #ece8dc;
}

.note-list {
  display: grid;
  gap: 16px;
}

.note {
  min-height: 0;
}

.note time {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

.statement {
  max-width: 920px;
}

.statement p {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.project-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 320px),
    var(--bg);
}

.project-hero {
  padding: 86px clamp(18px, 5vw, 64px) 46px;
  border-bottom: 2px solid var(--line);
}

.project-hero-inner {
  max-width: 980px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--red);
}

.project-hero h1 {
  max-width: 920px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.project-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 28px;
  padding: 54px clamp(18px, 5vw, 64px) 82px;
}

.project-panel,
.project-facts {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-panel {
  display: grid;
  gap: 24px;
}

.project-panel section {
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}

.project-panel section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.project-panel p,
.project-facts li {
  color: var(--muted);
}

.project-facts {
  align-self: start;
}

.project-facts ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.project-facts li::marker {
  color: var(--red);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 64px);
  background: #202a26;
  color: #fffdf7;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #f1c56e;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 72vh;
    padding-top: 70px;
  }

  .card-grid,
  .project-grid,
  .split,
  .project-body {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .site-nav {
    font-size: 0.88rem;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .project-button {
    min-height: 88px;
  }
}
