:root {
  --night: #10261c;
  --night-2: #173528;
  --pine: #1f4a34;
  --field: #143026;
  --ivory: #f6f0e4;
  --paper: #fffaf3;
  --gold: #e6c98a;
  --gold-deep: #8a6230;
  --ink: #17261e;
  --muted: #5c6b62;
  --line: rgba(230, 201, 138, 0.55);
  --danger: #9b2330;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
  --header: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color-scheme: dark;
}

body.nav-lock {
  overflow: hidden;
}

main {
  flex: 1;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: var(--gold);
  color: var(--night);
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 38, 28, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ivory);
}

.wordmark-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.wordmark-small {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.wordmark-large {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  order: 3;
}

.header-phone {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.phone-short {
  display: none;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  order: 2;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.site-nav a.nav-phone {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
.pull h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 7vw, 4.7rem);
  max-width: 11ch;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

p {
  margin: 0 0 1rem;
}

.lede {
  max-width: 38rem;
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button,
button {
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--night);
  text-decoration: none;
  font-weight: 700;
}

.button-quiet {
  background: transparent;
  color: var(--ivory);
}

.band {
  padding: 4rem 0;
}

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

.band-paper .kicker {
  color: var(--gold-deep);
}

.band-paper a {
  color: var(--night-2);
}

.band-paper .button {
  color: var(--night);
}

.band-paper .button-quiet {
  color: var(--ink);
  border-color: var(--pine);
  background: transparent;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.gallery {
  display: grid;
  gap: 1rem;
}

.gallery-home {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-work {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-work .mat-face {
  min-height: 16rem;
}

.mat {
  margin: 0;
}

.mat-face {
  min-height: 14rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(230, 201, 138, 0.16), transparent 42%),
    linear-gradient(180deg, #1b4332 0%, #10261c 70%);
  box-shadow:
    inset 0 0 0 1px rgba(230, 201, 138, 0.75),
    inset 0 0 0 12px #10261c,
    inset 0 0 0 13px rgba(230, 201, 138, 0.45);
}

.mat-hero .mat-face {
  min-height: 28rem;
}

.mat-kicker {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

figcaption {
  margin-top: 0.65rem;
  color: var(--gold);
  font-size: 0.95rem;
}

.band-paper figcaption {
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.steps li {
  margin: 0;
  padding: 1.25rem;
  background: rgba(255, 250, 243, 0.04);
  border-top: 2px solid var(--gold);
}

.steps span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.pull {
  padding-block: 4.5rem;
}

.pull h2 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.note {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: #d9d0c0;
}

.band-paper .note {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 7.5rem;
  padding: 1.25rem;
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #e4d8c4;
  box-shadow: inset 0 3px 0 var(--gold);
}

.contact-card span {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card strong {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--night);
  overflow-wrap: anywhere;
}

.form-banner,
.draft-banner {
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  background: #fff4d8;
  color: var(--ink);
  border: 1px solid var(--gold-deep);
}

.draft-banner {
  background: #fff4d8;
}

.form-banner p:last-child,
.draft-banner p:last-child {
  margin-bottom: 0;
}

.estimate-form {
  margin-top: 0.5rem;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1rem;
}

.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #c9bfae;
  border-radius: 0.35rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border: 2px solid var(--danger);
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--danger);
  font-size: 1rem;
}

.error-summary {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: #fde8e6;
  color: var(--ink);
  border: 2px solid var(--danger);
}

.error-summary ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.error-summary a {
  color: var(--danger);
  font-weight: 700;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.25rem;
}

button[type="submit"] {
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--night);
  background: var(--night);
  color: var(--ivory);
  font-weight: 700;
  cursor: pointer;
}

.button-note {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.7rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr;
  gap: 1.5rem;
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.staging-note {
  margin-top: 1.5rem;
  color: #d9d0c0;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .header-bar {
    justify-content: space-between;
  }

  .site-nav {
    margin-left: 0;
  }

  .phone-full {
    display: none;
  }

  .phone-short {
    display: inline;
  }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.5rem 1rem 1rem;
    background: #10261c;
    border-bottom: 1px solid var(--line);
  }

  .js .site-header:not(.nav-open) .site-nav {
    display: none;
  }

  .site-nav a {
    padding: 0.35rem 0;
  }

  .site-nav a.nav-phone {
    display: inline-flex;
    color: var(--gold);
    font-weight: 700;
  }

  .hero,
  .split,
  .steps,
  .gallery-home,
  .gallery-work,
  .contact-pair,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .mat-hero .mat-face {
    min-height: 18rem;
    aspect-ratio: 4 / 5;
  }

  h1 {
    max-width: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
