:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --paper-strong: #fbfaf7;
  --ink: #172d3f;
  --ink-soft: #40586a;
  --line: #91a0aa;
  --accent: #a84032;
  --focus: #0b67a3;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  background-color: var(--paper);
  background-image: url("/assets/architectural-linework.png");
  background-position: center;
  background-size: cover;
}

.site-header,
.document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.15rem clamp(1.25rem, 5%, 4.5rem);
  border-bottom: 1px solid rgba(23, 45, 63, 0.22);
  background: rgba(244, 242, 236, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--paper-strong);
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.site-status {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero {
  display: flex;
  align-items: center;
  width: min(100%, 92rem);
  padding: 3.5rem clamp(1.25rem, 7%, 7rem) 4.5rem;
}

.hero-copy {
  max-width: 45rem;
  padding: 2.5rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.35rem;
  font-weight: 400;
  line-height: 1.02;
}

.lede {
  max-width: 39rem;
  margin: 1.6rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-action {
  color: var(--white);
  background: var(--ink);
}

.secondary-action {
  background: rgba(251, 250, 247, 0.9);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #244b64;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: var(--white);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 5%, 4.5rem);
  color: var(--white);
  background: var(--ink);
  font-size: 0.84rem;
}

.contact-band p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem 1.4rem;
}

.document-page {
  min-height: 100svh;
  background-color: var(--paper);
  background-image: url("/assets/architectural-linework.png");
  background-position: center;
  background-size: cover;
}

.document-content,
.not-found {
  width: min(100% - 2.5rem, 46rem);
  margin: 0 auto;
  padding: 5rem 0;
}

.document-content {
  font-size: 1.03rem;
}

.document-content h1,
.not-found h1 {
  font-size: 3.25rem;
}

.document-content p {
  max-width: 42rem;
}

.not-found {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.error-code {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 800;
}

.not-found p:not(.error-code) {
  margin: 1rem 0 1.75rem;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .site-header,
  .document-header {
    align-items: flex-start;
    padding: 0.9rem 1rem;
  }

  .site-status {
    max-width: 8.5rem;
    text-align: right;
  }

  .brand-name {
    max-width: 11rem;
  }

  .hero {
    align-items: flex-end;
    padding: 2.5rem 1.25rem 3.25rem;
  }

  .hero-copy {
    padding: 1.5rem 0;
  }

  h1 {
    font-size: 3.1rem;
  }

  .lede {
    font-size: 1rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .document-content h1,
  .not-found h1 {
    font-size: 2.55rem;
  }
}

@media (max-width: 390px) {
  .brand-name {
    font-size: 0.98rem;
  }

  .site-status {
    display: none;
  }

  h1 {
    font-size: 2.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

