:root {
  --paper: #f7efe1;
  --ink: #10100e;
  --muted: #665f55;
  --red: #d21f18;
  --accent: var(--red);
  --blue: #000066;
  --line: #1b1712;
  --soft: #eee3d1;
  --white: #fffaf0;
  --max-width: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Chivo, sans-serif;
  line-height: 1.32;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background: radial-gradient(circle at 24px 24px, #000 1px, transparent 1px) 0 0 / 28px 28px;
}

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid var(--line);
  background: rgba(247, 239, 225, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
  flex: 0 0 auto;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  white-space: nowrap;
}

.brand-word {
  display: inline-block;
}

.brand-word-simple {
  color: var(--ink);
}

.brand-word-tenders {
  color: var(--blue);
  font-weight: 700;
}

.nav,
.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a,
.nav-contact {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a:hover,
.nav-contact:hover {
  color: var(--ink);
}

.nav-contact-menu {
  display: none;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}

.menu-toggle-line {
  position: absolute;
  left: 50%;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.menu-toggle-line:nth-child(1) {
  top: 10px;
}

.menu-toggle-line:nth-child(2) {
  top: 15px;
}

.menu-toggle-line:nth-child(3) {
  top: 20px;
}

:root[data-menu-open="true"] .menu-toggle-line:nth-child(1) {
  top: 15px;
  transform: translateX(-50%) rotate(45deg);
}

:root[data-menu-open="true"] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

:root[data-menu-open="true"] .menu-toggle-line:nth-child(3) {
  top: 15px;
  transform: translateX(-50%) rotate(-45deg);
}

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

h1,
h2 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.026em;
  line-height: 0.82;
}

h1 {
  max-width: 850px;
  font-size: clamp(54px, 9.2vw, 128px);
}

h2 {
  max-width: 920px;
  font-size: clamp(48px, 8vw, 104px);
  letter-spacing: -0.03em;
}

h3 {
  margin: 0;
}

p,
li {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero {
  padding: clamp(34px, 6vw, 72px) 0 clamp(52px, 8vw, 96px);
}

.hero-red-pen {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  max-width: 600px;
  margin-top: 22px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.lead,
.hero-copy,
.section-copy,
.copy {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 700;
}

.hero-copy {
  margin-top: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 18px;
  border: 2px solid var(--line);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--ink);
}

.button-secondary,
.button.alt {
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.note-stack {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  align-content: center;
  padding: 12px clamp(18px, 2.5vw, 34px) 12px 0;
}

.note-card,
.stat-card {
  width: min(100%, 520px);
  padding: clamp(20px, 3vw, 30px);
  border: 2px solid var(--line);
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(16, 16, 14, 0.16);
}

.note-card h3,
.stat-card h3,
.article-card h3,
.service-card h3,
.card h3,
.quote-card h3 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.note-card p,
.stat-card p,
.article-card p,
.service-card p,
.card p,
.quote-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.note-card:nth-child(1),
.stat-card {
  justify-self: start;
  transform: rotate(2deg);
}

.note-card:nth-child(2) {
  justify-self: end;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-2.5deg);
}

.note-card:nth-child(2) p,
.note-card:nth-child(2) li {
  color: #d9cfbd;
}

.red-slash {
  width: min(78%, 470px);
  height: 24px;
  margin: -10px auto -6px;
  background: var(--accent);
  transform: rotate(-7deg);
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  border-top: 2px solid var(--line);
  padding-top: 22px;
  align-items: start;
}

.section-kicker {
  color: var(--accent);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.86;
  text-transform: uppercase;
}

.section-header h2,
.section-header h1 {
  margin-bottom: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border: 2px solid var(--line);
  border-right: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 34px;
  border: 2px solid var(--line);
  border-right: 0;
}

.card,
.article-card,
.service-card,
.quote-card {
  min-height: 255px;
  padding: 22px;
  border-right: 2px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.card {
  justify-content: flex-start;
  gap: 14px;
}

.card p {
  margin-top: 0;
}

.article-card,
.service-card,
.quote-card {
  justify-content: space-between;
}

.card:nth-child(2),
.article-card:nth-child(2),
.service-card:nth-child(2),
.quote-card:nth-child(2) {
  background: var(--soft);
}

.problem-card {
  background: var(--white);
}

.mini-label,
.stat-label {
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  font-family: "Instrument Serif", serif;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.steps {
  margin-top: 34px;
  border-top: 2px solid var(--line);
}

.step,
.problem-row,
.article-row {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 2px solid var(--line);
}

.step h3,
.problem-row h3,
.article-row h3 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.step-num {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-link {
  margin-top: 1.25rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.newsletter-block {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vw, 104px) 0;
}

.newsletter-block .section-header {
  border-color: rgba(255, 255, 255, 0.35);
}

.newsletter-block .section-kicker,
.newsletter-block .content-markdown,
.newsletter-block .content-markdown-muted,
.newsletter-block p {
  color: var(--paper);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.newsletter-form input {
  flex: 1 1 260px;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.newsletter-form button {
  cursor: pointer;
}

.newsletter-meta {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

.newsletter-meta a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.newsletter-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-shell {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-intro {
  display: grid;
  gap: 24px;
}

.contact-note {
  border: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 10px 10px 0 rgba(16, 16, 14, 0.16);
  transform: rotate(-1.25deg);
}

.contact-note h2 {
  margin-top: 0;
  color: var(--paper);
  font-family: "Instrument Serif", serif;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: none;
}

.contact-note p {
  margin-top: 14px;
  color: #d9cfbd;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 2px solid var(--line);
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(16, 16, 14, 0.16);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 13px 14px;
  border-radius: 0;
}

.contact-form textarea {
  min-height: 190px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(210, 31, 24, 0.28);
  outline-offset: 0;
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
}

.form-meta {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.form-error {
  display: none;
  border: 2px solid var(--accent);
  background: rgba(210, 31, 24, 0.1);
  color: var(--ink);
  padding: 14px;
  font-weight: 900;
}

:root[data-contact-error="true"] .form-error {
  display: block;
}

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page-section {
  padding-top: clamp(44px, 7vw, 88px);
}

.page-title {
  max-width: 100%;
  font-size: clamp(40px, 5.4vw, 60px);
  letter-spacing: -0.024em;
}

.article-shell {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
}

.article-meta {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: start;
  border-top: 2px solid var(--line);
  padding-top: 22px;
}

.article-meta .lead {
  margin-top: 20px;
}

.article-content {
  max-width: 760px;
  margin-left: min(322px, 25vw);
}

.rich-text {
  color: var(--ink);
}

.rich-text h2,
.rich-text h3 {
  margin-top: 2rem;
}

.rich-text h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.9;
}

.rich-text h3 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.95;
}

.rich-text p,
.rich-text li {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

.rich-text ul,
.rich-text ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.rich-text strong {
  color: var(--ink);
}

.content-markdown {
  color: var(--ink);
}

.content-markdown > *:last-child {
  margin-bottom: 0;
}

.content-markdown p,
.content-markdown li,
.content-markdown strong,
.content-markdown em {
  color: inherit;
}

.content-markdown-muted {
  color: var(--muted);
}

.content-markdown ul,
.content-markdown ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.footer {
  padding: 2rem 0 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  border-top: 2px solid var(--line);
  padding-top: 1.5rem;
}

@media (max-width: 920px) {
  .header-inner {
    padding: 0.95rem 0;
  }

  .brand {
    font-size: 1.55rem;
  }

  .hero-red-pen,
  .section-header,
  .article-meta,
  .contact-layout,
  .grid-3,
  .grid-2,
  .step,
  .problem-row,
  .article-row {
    grid-template-columns: 1fr;
  }

  .article-content {
    margin-left: 0;
  }

  .contact-note {
    transform: rotate(0deg);
  }

  .note-stack {
    margin-top: 4px;
    gap: 28px;
  }

  .note-card,
  .note-card:nth-child(1),
  .note-card:nth-child(2),
  .stat-card {
    justify-self: stretch;
    transform: rotate(0deg);
  }

  .red-slash {
    width: 80%;
    margin: -4px auto;
  }

  .card,
  .article-card,
  .service-card,
  .quote-card {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .card:last-child,
  .article-card:last-child,
  .service-card:last-child,
  .quote-card:last-child {
    border-bottom: 0;
  }

  h1 {
    font-size: clamp(50px, 15.5vw, 78px);
  }

  h2 {
    font-size: clamp(44px, 13vw, 78px);
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-top: 0.85rem;
    border-top: 2px solid var(--line);
  }

  :root[data-menu-open="true"] .nav {
    display: flex;
  }

  .nav-contact-inline {
    display: none;
  }

  .nav-contact-menu {
    display: inline-block;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 425px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 1.38rem;
    min-height: 0;
  }

  .nav a,
  .nav-contact {
    font-size: 0.88rem;
  }
}
