@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: #e7f3f6;
  --paper-deep: #d3e7ee;
  --card: #f7fbfc;
  --ink: #14222a;
  --ink-soft: #2c4552;
  --sea: #0b6a94;
  --sea-deep: #06648f;
  --turquoise: #2ec4be;
  --turquoise-deep: #0b6a6e;
  --mango: #f0a030;
  --senegal: #b53a0a;
  --beige: #f3d7a6;
  --navy: #12384a;
  --silver: #c5d0d6;
  --foam: #f7fbfc;
  /* Older names still used below, pointed at the lively accents. */
  --lagoon: var(--turquoise);
  --lagoon-deep: var(--sea);
  --lagoon-darker: var(--sea-deep);
  --slate: var(--turquoise-deep);
  --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 100% -12%, rgba(240, 160, 48, 0.35), transparent 34%),
    radial-gradient(circle at 0% -8%, rgba(46, 196, 190, 0.45), transparent 38%),
    linear-gradient(180deg, #f4fbfd 0%, var(--paper) 42%, #d5ebf0 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(--slate);
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--mango);
  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(--navy);
  color: var(--foam);
}

.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(--foam);
  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(--mango);
}

.livery {
  height: 18px;
  background: linear-gradient(
    to bottom,
    var(--silver) 0 3px,
    var(--turquoise) 3px 8px,
    var(--mango) 8px 13px,
    var(--sea) 13px 18px
  );
}

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(--senegal);
}

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: #f7fafb;
}

.tile-band {
  height: 16px;
}

.tile:nth-child(1) .tile-band { background: var(--sea); }
.tile:nth-child(2) .tile-band { background: var(--turquoise); }
.tile:nth-child(3) .tile-band { background: var(--mango); }
.tile:nth-child(4) .tile-band { background: #e25a16; }
.tile:nth-child(5) .tile-band { background: var(--beige); }
.tile:nth-child(6) .tile-band { background: var(--turquoise-deep); }

.tile:nth-child(1) .tile-index { color: var(--sea); }
.tile:nth-child(2) .tile-index { color: var(--turquoise-deep); }
.tile:nth-child(3) .tile-index { color: var(--senegal); }
.tile:nth-child(4) .tile-index { color: var(--senegal); }
.tile:nth-child(5) .tile-index { color: var(--sea-deep); }
.tile:nth-child(6) .tile-index { color: var(--turquoise-deep); }

.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(--lagoon-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(--sea);
  margin-bottom: 0.25rem;
}

.steps li:nth-child(2)::before { color: var(--turquoise-deep); }
.steps li:nth-child(3)::before { color: var(--senegal); }

.sample-banner {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--beige);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: inset 6px 0 0 var(--senegal);
  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(--sea);
  border-radius: 4px;
  color: var(--ink);
  background: #e5f6fb;
  text-decoration: none;
  font-weight: 700;
}

.chip:nth-child(4n + 2) {
  background: #d9f5f3;
  border-color: var(--turquoise-deep);
}

.chip:nth-child(4n + 3) {
  background: #fde7c8;
  border-color: var(--senegal);
}

.chip:nth-child(4n + 4) {
  background: var(--beige);
  border-color: var(--ink);
}

.chip[aria-current="page"] {
  background: var(--sea);
  color: var(--foam);
  border-color: var(--ink);
}

.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: var(--paper);
}

.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(--mango);
  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(--slate);
}

.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(--senegal);
}

.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(--lagoon-deep);
  color: var(--foam);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.button:hover {
  background: var(--lagoon-darker);
  color: var(--foam);
}

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

.button-secondary:hover {
  background: #1bb5b0;
  color: var(--ink);
}

.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(--senegal);
  background: #fde7c8;
}

.field-error {
  margin: 0;
  color: var(--senegal);
  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: #d9f5f3;
}

.status.error {
  background: #fde7c8;
}

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

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

.note {
  background: var(--card);
  border-left: 8px solid var(--mango);
  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(--navy);
  color: var(--foam);
}

.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(--foam);
  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;
  }
}
