:root {
  --ink: #16211d;
  --paper: #f6f7f4;
  --surface: #edefea;
  --stone: #5f665f;
  --line: #d9ddd6;
  --brass: #8a6e43;
  --container: 1100px;
  --display: "Newsreader", Georgia, serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 16px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.font-display {
  font-family: var(--display);
}

.font-body {
  font-family: var(--body);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

@media (min-width: 1024px) {
  .site-header {
    position: static;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 1024px) {
  .header-inner {
    height: 76px;
  }
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wordmark img {
  width: 32px;
  height: 32px;
}

.wordmark span {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .wordmark {
    gap: 12px;
  }
  .wordmark img {
    width: 44px;
    height: 44px;
  }
  .wordmark span {
    font-size: 32px;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-underline-offset: 4px;
}

.nav-desktop a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--brass);
}

.link-arrow .arrow {
  display: inline-block;
  transition: transform 160ms ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .link-arrow:hover .arrow {
    transform: translateX(3px);
  }
}

.link-ink {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.link-ink:hover {
  text-decoration-color: var(--brass);
}

.link-paper {
  color: var(--paper);
}

.link-paper:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 4px;
}

.menu-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  z-index: 40;
  background: var(--paper);
  padding: 32px 24px;
}

.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
}

.mobile-menu .link-arrow {
  margin-top: auto;
  padding-bottom: 32px;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50vh;
  overflow: hidden;
  background: var(--ink);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(22, 33, 29, 0.8), rgba(22, 33, 29, 0.55), rgba(22, 33, 29, 0.35));
}

.hero .container {
  position: relative;
  padding-top: 88px;
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .hero .container {
    padding-top: 128px;
    padding-bottom: 128px;
  }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.nowrap {
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-fade {
    animation: heroFadeIn 500ms ease-out forwards;
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bands */
.band-paper {
  background: var(--paper);
}

.band-surface {
  background: var(--surface);
}

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

.section {
  padding: 72px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 104px 0;
  }
}

.section-tight {
  padding-top: 88px;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .section-tight {
    padding-top: 112px;
  }
}

.page-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.standfirst {
  margin-top: 28px;
  max-width: 60ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--stone);
}

.h2 {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.h2-sm {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.h3 {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

.label-brass {
  color: var(--brass);
}

.intro {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--stone);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .cta-row {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
}

/* Ledger */
.ledger-section {
  padding: 56px 0 88px;
}

@media (min-width: 768px) {
  .ledger-section {
    padding: 96px 0 88px;
  }
}

.ledger {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "stays"
    "changes";
  row-gap: 48px;
}

@media (min-width: 900px) {
  .ledger {
    grid-template-columns: 260px 1fr;
    grid-template-areas: "changes stays";
    column-gap: 72px;
    row-gap: 0;
  }
}

.ledger-changes {
  grid-area: changes;
}

.ledger-stays {
  grid-area: stays;
}

.rule {
  height: 1px;
  background: var(--line);
  margin-top: 14px;
}

.rule-brass {
  background: var(--brass);
}

.changes-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.changes-list li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--stone);
}

.changes-list li + li {
  margin-top: 12px;
}

.stays-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stays-list li {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
}

.stays-list li:first-child {
  padding-top: 18px;
}

.ledger-close {
  margin-top: 40px;
  max-width: 56ch;
}

@media (prefers-reduced-motion: no-preference) {
  .stays-list.is-animate li {
    animation: ledgerRowFade 300ms ease-out forwards;
    opacity: 0;
  }
}

@keyframes ledgerRowFade {
  to {
    opacity: 1;
  }
}

/* Fork */
.fork {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 56px;
}

.fork > * + * {
  border-top: 1px solid var(--line);
  padding-top: 48px;
  margin-top: 48px;
}

@media (min-width: 900px) {
  .fork {
    grid-template-columns: 1fr 1fr;
    column-gap: 72px;
  }
  .fork > * + * {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    position: relative;
  }
  .fork > * + *::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
  }
}

.fork h3 {
  margin-top: 12px;
}

.fork p.body {
  margin-top: 16px;
  line-height: 1.65;
}

/* Figures */
.credentials-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

@media (min-width: 768px) {
  .credentials-figures {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.figure {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
}

.figure-label {
  margin-top: 12px;
  max-width: 22ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--stone);
}

/* Practice bands */
.practice-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .practice-band {
    grid-template-columns: 280px 1fr;
    column-gap: 64px;
    padding: 32px 0;
    gap: 0;
  }
}

.practice-band--last,
.discipline-band--last {
  border-bottom: 1px solid var(--line);
}

.practice-band h3 {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.mt-14 {
  margin-top: 56px;
}

.mt-10 {
  margin-top: 40px;
}

.mt-8 {
  margin-top: 32px;
}

.mt-6 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-2 {
  margin-top: 8px;
}

.max-62 {
  max-width: 62ch;
}

.stone {
  color: var(--stone);
}

/* Closing */
.closing {
  padding: 112px 0 96px;
  text-align: center;
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.closing h2 {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin: 0 auto;
}

.closing p {
  margin: 24px auto 0;
  max-width: 54ch;
  color: rgba(246, 247, 244, 0.78);
}

.closing .cta {
  margin-top: 40px;
}

.footer-rule {
  height: 1px;
  background: rgba(246, 247, 244, 0.12);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 88px 0 40px;
}

.footer-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.footer-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-wordmark img {
  width: 28px;
  height: 28px;
}

.footer-wordmark span {
  font-family: var(--display);
  font-size: 22px;
}

.footer-id {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(246, 247, 244, 0.7);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 12px;
}

.footer-links a {
  font-size: 15px;
  color: rgba(246, 247, 244, 0.8);
}

.footer-links a:hover,
.footer-mail:hover,
.footer-legal a:hover {
  color: var(--brass);
}

.footer-note {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(246, 247, 244, 0.7);
}

.footer-mail {
  font-size: 15px;
  color: rgba(246, 247, 244, 0.8);
}

.footer-base {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(246, 247, 244, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: rgba(246, 247, 244, 0.55);
}

@media (min-width: 640px) {
  .footer-base {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.disclaimer {
  margin: 32px auto 0;
  max-width: 90ch;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(246, 247, 244, 0.5);
}

/* Partnership */
.structure-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .structure-grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: stretch;
  }
}

.structure-photo {
  width: 100%;
  min-height: 420px;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.numbered {
  list-style: none;
  margin: 0;
  padding: 0;
}

.numbered li {
  display: flex;
  gap: 24px;
  padding: 40px 0;
}

.numbered li + li {
  border-top: 1px solid var(--line);
}

.num {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
  color: var(--brass);
}

.numbered h3 {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 600;
}

.numbered p {
  margin-top: 8px;
  font-size: 16px;
  color: var(--stone);
}

.convo-grid {
  display: grid;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .convo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.convo-cell {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

@media (min-width: 768px) {
  .convo-cell {
    padding-right: 48px;
  }
}

.convo-cell h3 {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 600;
}

.convo-cell p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--stone);
}

.prose p + p {
  margin-top: 24px;
}

.prose-18 {
  font-size: 18px;
  line-height: 1.7;
}

/* Practices */
.band-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .band-grid {
    grid-template-columns: 280px 1fr;
    column-gap: 64px;
    gap: 0;
  }
}

.discipline-band {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}

.practices-header {
  padding-bottom: 44px;
}

.practices-header h1 {
  font-family: var(--display);
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.criteria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .criteria {
    column-gap: 72px;
  }
}

.criteria-labels,
.criteria-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}

@media (min-width: 768px) {
  .criteria-labels,
  .criteria-row {
    column-gap: 72px;
  }
}

.criteria-row {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 17px;
  line-height: 1.5;
}

.coverage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
}

@media (min-width: 900px) {
  .coverage {
    grid-template-columns: 62% 38%;
    column-gap: 64px;
    gap: 0;
  }
}

.coverage-map {
  mix-blend-mode: multiply;
}

.coverage-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.coverage-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.coverage-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.coverage-note {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 46ch;
  font-size: 16px;
  color: var(--stone);
}

/* About */
.letter-stack p + p {
  margin-top: 26px;
}

.standfirst-letter {
  font-size: 22px;
  line-height: 1.75;
  color: var(--stone);
}

.letter-body {
  font-size: 18px;
  line-height: 1.75;
}

.principals {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.principals strong {
  font-size: 16px;
  font-weight: 600;
}

.principals .role {
  font-weight: 400;
  font-size: 15px;
  color: var(--stone);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  padding-bottom: 96px;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    column-gap: 88px;
  }
}

.step {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

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

.step h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
}

.step p {
  margin-top: 4px;
  font-size: 16px;
  color: var(--stone);
}

.detail-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

.field-wrap {
  margin-bottom: 24px;
}

.field-wrap label {
  display: block;
  font-size: 14px;
  color: var(--stone);
}

.helper {
  margin-top: 4px;
  font-size: 14px;
  font-style: italic;
  color: var(--stone);
}

.field {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
}

.field:focus {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-color: var(--brass);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
}

.consent input {
  margin-top: 4px;
}

.btn {
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 32px;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
}

.error {
  margin-bottom: 24px;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
