:root {
  --paper: #efe8d6;
  --ink: #1b1914;
  --muted: #5f5a50;
  --copper: #7a4e28;
  --copper-hover: #5c381c;
  --rule: rgba(27, 25, 20, 0.14);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype",
    Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", Helvetica, Arial,
    sans-serif;
  --space: clamp(1.25rem, 4vw, 2.75rem);
  --measure: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 10;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-150%);
}

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

.frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space);
}

.site-header,
.site-footer,
.panels {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.site-header {
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.mark {
  display: block;
  flex-shrink: 0;
}

.brand-text,
.nav a,
.eyebrow,
.site-footer,
.panel h2 {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text {
  font-size: 0.78rem;
  font-weight: 550;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a,
.panel a,
.lede a {
  color: var(--copper);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--ink);
}

.nav a:hover,
.panel a:hover,
.lede a:hover {
  color: var(--copper-hover);
  text-decoration: underline;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: clamp(3rem, 12vh, 7rem) 0;
}

.hero-compact {
  flex: 1;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 550;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.4rem, 16vw, 10.5rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 22rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.panels {
  align-items: start;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.panel {
  flex: 1;
  min-width: min(100%, 16rem);
}

.panel h2 {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 550;
}

.panel p {
  max-width: 34rem;
  margin: 0;
}

.contact-intro {
  margin-bottom: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 34rem;
}

.contact-form[hidden] {
  display: none;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: rgba(27, 25, 20, 0.04);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  appearance: none;
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(27, 25, 20, 0.28);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.7rem 1.15rem;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button:hover:not(:disabled) {
  background: var(--copper-hover);
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.honeypot {
  display: none !important;
}

.form-status {
  max-width: 34rem;
  margin: 1rem 0 0;
}

.form-status:focus-visible {
  outline-offset: 4px;
}

.form-status-error {
  color: var(--copper);
}

.site-footer {
  align-items: baseline;
  margin-top: 2.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.site-footer p {
  margin: 0;
}

.footer-domain {
  text-transform: none;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .contact-form button {
    width: 100%;
  }

  .site-header,
  .site-footer,
  .panels {
    flex-direction: column;
  }

  .site-header {
    align-items: flex-start;
  }

  .hero {
    padding: 3.25rem 0 2.75rem;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 22vw, 5.5rem);
  }
}

@media (min-width: 900px) {
  .frame {
    padding-top: clamp(1.75rem, 4vh, 2.75rem);
    padding-bottom: clamp(1.5rem, 3vh, 2.25rem);
  }
}

@media print {
  body::before {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .skip-link,
  .nav {
    display: none;
  }

  a {
    color: inherit;
  }
}
