:root {
  --green: #1f8f45;
  --green-dark: #166b34;
  --green-soft: #e8f6ec;
  --blue: #1a73c7;
  --blue-dark: #125698;
  --gold: #c4a035;
  --silver: #c5ccd3;
  --silver-bright: #e8eef2;
  --silver-deep: #7b858f;
  --ink: #1c2430;
  --muted: #5a6570;
  --line: #c5ccd3;
  --paper: #f4f7f5;
  --white: #ffffff;
  --focus: #1a73c7;
  --night: #d5ddd6;
  --radius: 14px;
  --shadow: 0 14px 36px rgba(8, 20, 12, 0.22);
  --max: 70rem;
  --header-h: 4.35rem;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--night);
  background-image:
    linear-gradient(180deg, rgba(247, 250, 247, 0.22) 0%, rgba(232, 238, 232, 0.12) 40%, rgba(12, 24, 16, 0.18) 100%),
    url("/assets/bg-circuit.svg"),
    url("/assets/denton-courthouse.jpg");
  background-repeat: no-repeat, repeat, no-repeat;
  background-size: cover, 520px, cover;
  background-position: center, center, center 28%;
  background-attachment: scroll, scroll, fixed;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip:focus {
  top: 0.75rem;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--silver);
  box-shadow: 0 1px 0 rgba(232, 238, 242, 0.9), 0 8px 24px rgba(8, 20, 12, 0.12);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
  color: var(--green-dark);
}

.brand img {
  display: block;
  height: 3.55rem;
  width: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
}

.brand-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--green);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.nav a[aria-current="page"] {
  color: var(--green-dark);
}

.nav a:hover {
  color: var(--green);
}

.hero {
  padding: 2.4rem 0 1.6rem;
}

.panel,
main > section > .wrap {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--silver);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem 1.7rem 1.9rem;
  box-shadow: var(--shadow), inset 0 1px 0 var(--silver-bright);
  backdrop-filter: blur(10px);
}

.kicker {
  display: inline-block;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
.price {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.22;
  margin: 0.4rem 0 0.8rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  max-width: 18ch;
}

h1 .h-break {
  display: block;
}

h2,
h3 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
}

h3 {
  font-size: 1.28rem;
}

.lede {
  font-size: 1.25rem;
  max-width: 42rem;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: center;
}

.hero-home > .wrap {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.hero-copy {
  background: rgba(10, 22, 16, 0.62);
  border: 1px solid rgba(197, 204, 211, 0.42);
  border-radius: var(--radius);
  padding: 1.5rem 1.55rem 1.6rem;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(232, 238, 242, 0.25);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  color: #f6faf6;
  max-width: 16ch;
}

.hero-copy .lede {
  color: #d5ddd8;
}

.hero-copy .kicker {
  color: var(--silver-bright);
}

.hero-mark {
  width: min(100%, 26.5rem);
  aspect-ratio: 1;
  justify-self: end;
  border: 3px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f5f7 100%) padding-box,
    linear-gradient(145deg, #f3f5f7 0%, #9aa3ad 16%, #5c646c 38%, #dfe4e8 55%, #6e7780 74%, #b8c0c8 100%) border-box;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.95),
    inset -1px -1px 0 rgba(70, 78, 86, 0.45),
    0 16px 38px rgba(8, 20, 12, 0.22);
  padding: 0.45rem;
  display: grid;
  place-items: center;
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(197, 204, 211, 0.35);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #d4b24a;
}

.btn-secondary {
  background: linear-gradient(180deg, #f7f9fb 0%, var(--silver) 100%);
  color: #24303a;
  border-color: var(--silver-deep);
}

.btn-secondary:hover {
  background: var(--silver-deep);
  color: var(--white);
}

.gold-rule {
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--silver), var(--gold));
  border: 0;
  margin: 1.25rem 0;
}

section {
  padding: 1.35rem 0;
}

.band {
  background: transparent;
  border: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 8px 22px rgba(28, 36, 48, 0.06);
  border-top: 3px solid var(--silver);
}

.band .card {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9f8 100%);
}

.num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--silver-bright), var(--silver));
  color: var(--green-dark);
  font-weight: 800;
  margin-bottom: 0.6rem;
  border: 1px solid var(--silver-deep);
}

.price {
  font-size: 2.4rem;
  color: var(--green-dark);
  margin: 0;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 600;
}

.story {
  max-width: 42rem;
}

.creds dt {
  font-family: var(--serif);
  font-weight: 700;
  margin-top: 1rem;
}

.creds dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

form {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}

label {
  font-weight: 700;
  display: grid;
  gap: 0.35rem;
}

input,
textarea,
select {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--silver);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

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

button[type="submit"] {
  font: inherit;
  cursor: pointer;
  justify-self: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
}

.aside {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: inset 0 1px 0 var(--silver-bright);
}

.faq details {
  border-bottom: 1px solid var(--silver);
  padding: 0.8rem 0;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.notice {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.site-footer {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--silver);
  box-shadow: 0 -1px 0 var(--silver-bright);
  padding: 1.6rem 0 1.8rem;
  margin-top: 1.4rem;
  backdrop-filter: blur(12px);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: stretch;
}

.footer-mark {
  display: flex;
  align-self: stretch;
}

.site-footer img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  aspect-ratio: 1;
  object-fit: contain;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.footer-copy p {
  margin: 0.12rem 0;
}

.fine {
  color: var(--muted);
  font-size: 0.95rem;
}

.photo-credit {
  font-size: 0.78rem;
  opacity: 0.9;
}

.photo-credit a {
  color: var(--silver-deep);
}

@media (max-width: 860px) {
  .hero-grid,
  .cards,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    justify-self: center;
    width: min(100%, 22rem);
  }

  .site-footer img {
    height: 7.2rem;
    width: 7.2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 1rem auto;
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: 12px;
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  h1 {
    max-width: none;
  }

  body {
    background-attachment: scroll;
  }
}

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