:root {
  color-scheme: light;
  --paper: #fbfbf8;
  --surface: #ffffff;
  --ink: #20231f;
  --muted: #626b64;
  --soft: #eef1ed;
  --line: #dfe4de;
  --accent: #2f6f61;
  --accent-2: #6b5bd6;
  --accent-soft: #e8f3ee;
  --dark: #1f2824;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(31, 40, 36, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(47, 111, 97, 0.06), transparent 28%),
    linear-gradient(310deg, rgba(107, 91, 214, 0.06), transparent 32%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(223, 228, 222, 0.76);
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 0.96rem;
  font-weight: 780;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 640;
}

.nav a:hover,
.brand:hover,
.footer a:hover {
  color: var(--accent);
}

main {
  min-height: calc(100vh - 160px);
}

main:focus {
  outline: none;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(46px, 8vw, 98px) 0;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-content: center;
  gap: 34px;
  padding-top: clamp(32px, 6vw, 74px);
}

.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
}

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

h1 {
  max-width: 970px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: 0.95;
  font-weight: 850;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  font-weight: 830;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.24;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.58;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 780px;
  margin-top: 8px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #3d4741;
  padding: 9px 13px;
  font-size: 0.88rem;
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--dark);
  border-radius: var(--radius);
  background: var(--dark);
  color: #ffffff;
  padding: 0 18px;
  font-weight: 760;
}

.button.secondary {
  background: transparent;
  color: var(--dark);
}

.section {
  padding: clamp(46px, 8vw, 86px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 30px;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.58;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 12px 44px rgba(31, 40, 36, 0.04);
  overflow: hidden;
}

.work-card:hover {
  border-color: #b8c9c1;
  transform: translateY(-2px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.work-card.featured {
  background: var(--surface);
  color: var(--ink);
}

.work-card.featured .tag,
.work-card.featured p {
  color: var(--muted);
}

.tag {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.work-card h3 {
  max-width: 760px;
  margin: 10px 0 10px;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.08;
}

.work-card:not(.featured) h3 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.work-card p {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.card-thumb {
  height: 174px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef3ef, #ffffff);
  overflow: hidden;
}

.card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.card-thumb span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 850;
}

.external-thumb {
  background: var(--accent-soft);
}

.external-thumb img {
  object-position: center;
}

.twitter-thumb img {
  object-position: center 75%;
}

.card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 8px 12px 0;
}

.work-card.compact {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
}

.work-card.compact .card-thumb,
.work-card.compact .card-thumb img,
.work-card.compact .card-thumb span {
  height: 104px;
}

.work-card.compact h3 {
  font-size: 1.25rem;
}

.card-link {
  margin-top: 18px;
  color: inherit;
  font-weight: 780;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.text-stack p,
.project-body p,
.project-body li {
  color: var(--muted);
  line-height: 1.7;
}

.text-stack p {
  font-size: 1.05rem;
}

.principles {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.62);
  padding: 14px 16px;
  color: #3d4741;
  line-height: 1.55;
}

.about-band {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.project-hero {
  padding-bottom: 40px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--muted);
  font-weight: 720;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: start;
}

.project-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.detail-list {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.project-body {
  display: grid;
  gap: 34px;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-section {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.project-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.project-section h2 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}

.artifact {
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.artifact-grid .artifact {
  margin: 0;
}

.artifact img {
  display: block;
  width: 100%;
  height: auto;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.48;
}

th {
  background: var(--dark);
  color: #ffffff;
  font-size: 0.88rem;
}

td {
  color: #46504a;
}

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

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .page {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 4rem);
    line-height: 1;
  }

  .section-head,
  .split,
  .project-layout,
  .work-grid,
  .support-grid,
  .artifact-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card.compact {
    grid-template-columns: 1fr;
  }

  .work-card.compact .card-thumb,
  .work-card.compact .card-thumb img,
  .work-card.compact .card-thumb span {
    height: 132px;
  }

  .card-copy {
    padding: 2px;
  }

  .project-aside {
    position: static;
  }
}

@media (max-width: 420px) {
  .nav {
    font-size: 0.86rem;
  }

  .button {
    width: 100%;
  }
}
