:root {
  --paper: #f6f2ea;
  --paper-deep: #ebe1d2;
  --ink: #17201c;
  --muted: #5f6961;
  --moss: #496f56;
  --cobalt: #285a9a;
  --clay: #a34f38;
  --line: rgba(23, 32, 28, 0.16);
  --shadow: 0 22px 70px rgba(23, 32, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(73, 111, 86, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(40, 90, 154, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 88px 88px;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  overflow-x: hidden;
}

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

img {
  display: block;
  width: 100%;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 72px);
}

.brand,
.nav,
.button,
.contact-link,
.site-footer {
  font-family: "Aptos", "Segoe UI", sans-serif;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.02em;
}

.brand-mark {
  background: conic-gradient(from 25deg, var(--moss), var(--cobalt), var(--clay), var(--moss));
  border-radius: 50%;
  display: inline-block;
  height: 18px;
  width: 18px;
}

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

.nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.nav a:hover {
  border-color: var(--clay);
  color: var(--ink);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 80px);
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  min-height: calc(100svh - 86px);
  padding: 20px clamp(20px, 5vw, 72px) 64px;
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  color: var(--clay);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.2rem, 8.8vw, 8.3rem);
  font-weight: 540;
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 28px;
  max-width: 860px;
}

h1 span {
  display: inline;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.58;
  margin-bottom: 32px;
  max-width: min(640px, 100%);
}

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

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 46px;
  padding: 0 18px;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--moss);
  border-color: var(--moss);
}

.button-secondary {
  background: rgba(246, 242, 234, 0.7);
}

.button-secondary:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.hero-media {
  margin: 0;
  min-width: 0;
  position: relative;
}

.hero-media::before {
  border: 1px solid var(--line);
  content: "";
  inset: 18px -18px -18px 18px;
  position: absolute;
  z-index: -1;
}

.hero-media img {
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.signal-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 clamp(20px, 5vw, 72px);
}

.signal-strip span {
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 18px;
  text-align: center;
}

.signal-strip span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(70px, 12vw, 150px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 28px;
  grid-template-columns: 0.42fr 1fr;
  margin-bottom: 46px;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 0.98;
  max-width: 900px;
}

.work-grid {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.work-item {
  border-right: 1px solid var(--line);
  min-height: 330px;
  padding: 28px;
}

.work-item:last-child {
  border-right: 0;
}

.work-number {
  color: var(--cobalt);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 80px;
}

.work-item h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 560;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.work-item p:last-child,
.method-list p,
.contact-panel p,
.library-grid p,
.library-grid li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.method {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: 44px;
  grid-template-columns: 0.78fr 1fr;
  padding: clamp(70px, 11vw, 140px) clamp(20px, 5vw, 72px);
}

.method .eyebrow {
  color: #e8a06f;
}

.method-list {
  counter-reset: method;
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.method-list li {
  border-top: 1px solid rgba(246, 242, 234, 0.18);
  display: grid;
  gap: 24px;
  grid-template-columns: 160px 1fr;
  padding: 26px 0;
}

.method-list li:last-child {
  border-bottom: 1px solid rgba(246, 242, 234, 0.18);
}

.method-list span {
  color: #9eb7f0;
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.method-list p {
  color: rgba(246, 242, 234, 0.78);
  margin: 0;
}

.contact-section {
  padding-bottom: clamp(50px, 8vw, 90px);
}

.library-section {
  background: rgba(235, 225, 210, 0.52);
}

.library-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.library-grid article {
  background: rgba(246, 242, 234, 0.8);
  border: 1px solid var(--line);
  padding: 26px;
}

.library-grid h3 {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  font-weight: 560;
  letter-spacing: 0;
}

.library-grid ul {
  border-top: 1px solid var(--line);
  margin: 24px 0 0;
  padding: 18px 0 0 18px;
}

.library-grid li {
  margin: 0 0 8px;
}

.article-link {
  border-top: 1px solid var(--line);
  color: var(--cobalt);
  font-family: "Aptos", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  margin: 22px 0 0;
  padding-top: 16px;
}

.article-link a:hover {
  color: var(--clay);
}

.standalone-link {
  border: 0;
  margin-top: 30px;
  max-width: 980px;
  padding-top: 0;
}

.contact-panel {
  align-items: end;
  border: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto;
  padding: clamp(24px, 5vw, 56px);
}

.contact-panel p {
  max-width: 680px;
}

.contact-link {
  background: var(--clay);
  border-radius: 6px;
  color: #fff9f1;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 14px 18px;
}

.contact-link:hover {
  background: var(--cobalt);
}

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

.note-list {
  display: grid;
  gap: 1px;
  margin-top: 42px;
  max-width: 980px;
}

.note-list article,
.status-panel {
  background: rgba(246, 242, 234, 0.78);
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 34px);
}

.note-list h2,
.status-panel h2 {
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  line-height: 1.05;
}

.note-list p,
.status-panel p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.status-panel {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 18px 1fr;
  margin-top: 42px;
  max-width: 820px;
}

.status-dot {
  background: var(--moss);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(73, 111, 86, 0.14);
  display: inline-block;
  height: 12px;
  margin-top: 9px;
  width: 12px;
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .method,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

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

  .library-grid {
    grid-template-columns: 1fr;
  }

  .work-item {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: auto;
  }

  .work-number {
    margin-bottom: 34px;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: clamp(2.45rem, 11.5vw, 3rem);
    line-height: 0.96;
  }

  h1 span {
    display: block;
  }

  .lead {
    font-size: 1rem;
    max-width: 31ch;
  }

  .hero-media::before {
    inset: 10px 0 -10px 10px;
  }

  .signal-strip {
    grid-template-columns: 1fr 1fr;
  }

  .signal-strip span:nth-child(2) {
    border-right: 0;
  }

  .signal-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .method-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}
