@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3e2c6;
  --paper-deep: #e7d0a6;
  --card: #fff8ee;
  --ink: #24170f;
  --ink-soft: #5c4636;
  --rust: #c24b22;
  --rust-deep: #8a3014;
  --rust-darker: #6e240f;
  --pine: #1e4638;
  --pine-deep: #143028;
  --mustard: #e0a12b;
  --sea: #1f5c62;
  --cream: #fff8ee;
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1120px;
  color-scheme: light;
}

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

/* Author `display` rules must not reveal elements marked hidden. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% -8%, rgba(224, 161, 43, 0.28), transparent 36%),
    linear-gradient(180deg, #f7ead3 0%, var(--paper) 32%, #efe0c4 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

p {
  margin: 0 0 0.8rem;
}

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

a:hover {
  color: var(--pine);
}

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

.site-header a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--mustard);
}

::selection {
  background: var(--mustard);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--mustard);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  background: var(--pine-deep);
  color: var(--cream);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 0.95rem 0 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.wordmark {
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 0.1rem;
}

.wordmark-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.wordmark-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.7rem;
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.wordmark-place {
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  padding: 0.4rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--mustard);
}

.livery {
  height: 14px;
  background: linear-gradient(
    to bottom,
    var(--mustard) 0 3px,
    var(--rust) 3px 8px,
    var(--pine) 8px 14px
  );
}

main {
  padding: 2rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-deep);
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}

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

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.hero-figure {
  margin: 0;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(36, 23, 15, 0.16);
  overflow: hidden;
}

.hero-figure img {
  display: block;
  width: 100%;
}

.hero-figure figcaption {
  margin: 0;
  padding: 0.6rem 0.85rem 0.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1rem;
}

.section-head h2,
.page-head h1 {
  margin-bottom: 0.45rem;
}

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

section + section {
  margin-top: 3rem;
}

.tiles,
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
}

.tile {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(36, 23, 15, 0.16);
  overflow: hidden;
}

.tile:hover {
  background: #fffdf8;
}

.tile-band {
  height: 12px;
}

.tile:nth-child(3n + 1) .tile-band { background: var(--rust); }
.tile:nth-child(3n + 2) .tile-band { background: var(--pine); }
.tile:nth-child(3n) .tile-band { background: var(--mustard); }

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem 1.1rem;
  flex: 1;
}

.tile-index {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--rust-deep);
}

.tile h3 {
  margin: 0;
  font-size: 1.45rem;
}

.tile p {
  margin: 0;
  color: var(--ink-soft);
}

.steps li {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 1rem 1rem 0.4rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--rust-deep);
  margin-bottom: 0.25rem;
}

.sample-banner {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--mustard);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin: 0.5rem 0 0.75rem;
}

.search-row {
  flex: 1 1 16rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-weight: 700;
}

.chip[aria-current="page"] {
  background: var(--pine);
  color: var(--cream);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(36, 23, 15, 0.16);
  overflow: hidden;
  min-width: 0;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f6e4c6;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem 1rem;
  flex: 1;
  min-width: 0;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.badge {
  margin: 0;
  display: inline-block;
  background: var(--mustard);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
}

.card h2,
.card h3 {
  margin: 0.1rem 0;
  font-size: 1.45rem;
  overflow-wrap: anywhere;
}

.price {
  margin: 0.1rem 0;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--rust-deep);
}

.location {
  margin: 0;
  font-weight: 700;
}

.card .description {
  margin: 0;
  color: var(--ink-soft);
}

.card .button {
  margin-top: auto;
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--rust-deep);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.button:hover {
  background: var(--rust-darker);
  color: var(--cream);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  color: var(--cream);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.empty,
.load-error {
  padding: 1rem;
  border: 2px dashed var(--ink);
  background: var(--card);
}

.inquiry-panel {
  margin-top: 2.5rem;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(36, 23, 15, 0.14);
  padding: 1.15rem 1.15rem 1.3rem;
}

.inquiry-panel h2 {
  margin-top: 0;
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

label {
  font-weight: 700;
}

.hint {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 1.0625rem;
}

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

::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--rust-deep);
  background: #fff1ea;
}

.field-error {
  margin: 0;
  color: var(--rust-deep);
  font-weight: 700;
}

.status {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--ink);
}

.status p:last-child {
  margin-bottom: 0;
}

.status.ok {
  background: #d7eadf;
}

.status.error {
  background: #f6d3c6;
}

.status .button {
  margin-top: 0.75rem;
}

.page-note {
  max-width: 42rem;
}

.note {
  background: var(--card);
  border-left: 8px solid var(--rust);
  padding: 0.9rem 1rem;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.site-footer {
  background: var(--pine-deep);
  color: var(--cream);
}

.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 1.4rem 0 1.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 2rem;
}

.footer-name {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.8rem;
}

.footer-inner p {
  margin: 0 0 0.25rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.site-footer a {
  color: var(--cream);
  font-weight: 700;
}

.disclaimer {
  grid-column: 1 / -1;
  margin-top: 0.8rem;
  max-width: 46rem;
  font-size: 0.98rem;
}

.result-page {
  padding-top: 3rem;
}

.result-page h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.92em;
}

@media (max-width: 860px) {
  .hero,
  .tiles,
  .steps,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .wordmark-name {
    font-size: 2.4rem;
  }

  .hero-actions,
  .form-actions,
  .filters .button {
    width: 100%;
  }

  .hero-actions .button,
  .form-actions .button,
  .filters .button {
    width: 100%;
  }

  .disclaimer {
    grid-column: auto;
  }
}

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

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