/* Corduroy Trips: white page, granite ink, one patrol-red accent.
   Shared by index.html, privacy.html and 404.html. */

:root {
  --ink: #1b2430;
  --ink-soft: #5b6573;
  --hair: #e2e6e9;
  --snow: #f4f6f7;
  --patrol: #c8372d;
  --patrol-deep: #a52b22;
  --sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  color-scheme: light;
}

/* ---------- Reset ---------- */

*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; }
body {
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
ol, ul { list-style: none; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; background-color: transparent; border-radius: 0; }
button { cursor: pointer; }
section[id] { scroll-margin-top: 80px; }
::selection { background: var(--patrol); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.soft { color: var(--ink-soft); }
.mono { font-family: var(--mono); }
.rule { display: block; height: 2px; width: 56px; background: var(--patrol); }
.visually-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Section headings share one scale. */
.h-section { font-size: 38px; font-weight: 500; letter-spacing: -0.025em; }
.lede { margin-top: 16px; font-size: 17px; line-height: 1.625; color: var(--ink-soft); }
.band { border-top: 1px solid var(--hair); }
.band > .wrap { padding-block: 96px; }

/* ---------- Calls to action (each has its own look on purpose) ---------- */

/* Lift-ticket notches for the nav and hero tickets. */
.ticket-notch {
  -webkit-mask:
    radial-gradient(circle 5px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 5px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 5px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 5px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}

.nav-ticket { display: inline-flex; align-items: stretch; height: 40px; font-size: 14px; font-weight: 500; color: #fff; }
.nav-ticket .label { display: flex; align-items: center; padding: 0 12px 0 16px; background: var(--patrol); transition: background-color 200ms; }
.nav-ticket .stub {
  display: flex; width: 16px; background: var(--patrol);
  border-left: 1px dashed rgb(255 255 255 / 0.7);
  transition: transform 200ms, background-color 200ms;
}
.nav-ticket:hover .label, .nav-ticket:hover .stub { background: var(--patrol-deep); }
.nav-ticket:hover .stub { transform: translateX(3px); }

.hero-ticket { display: inline-flex; align-items: stretch; height: 56px; font-size: 17px; font-weight: 500; color: #fff; }
.hero-ticket:active { transform: translateY(1px); }
.hero-ticket .label { display: flex; align-items: center; padding: 0 24px 0 28px; background: var(--patrol); }
.hero-ticket .stub {
  display: flex; align-items: center; justify-content: center; width: 56px;
  background: var(--patrol); border-left: 2px dotted rgb(255 255 255 / 0.8);
  transform-origin: left; transition: transform 200ms;
}
.hero-ticket .stub::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.hero-ticket:hover .stub { transform: translateX(4px) rotate(3deg); }

.track-link { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink); }
.track-link:hover { color: var(--patrol); }
.track-link svg { color: var(--patrol); }
.track-link .dash { transition: stroke-dashoffset 700ms; }
.track-link:hover .dash { stroke-dashoffset: -14; }

/* Punch-press submit: a dashed inner rule like a stamped ticket. */
.stamp-submit {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px; background: var(--patrol); color: #fff;
  font-size: 16px; font-weight: 500; transition: background-color 150ms;
}
.stamp-submit::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.85); }
.stamp-submit::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgb(255 255 255 / 0.55); pointer-events: none; }
.stamp-submit:hover { background: var(--patrol-deep); }
.stamp-submit:active { transform: translateY(1px) skewX(-2deg); box-shadow: inset 0 3px 0 rgb(0 0 0 / 0.22); }
.stamp-submit:disabled { cursor: wait; opacity: 0.7; }

/* Footer link: an underline made of groomed corduroy ridges. */
.ridge-link {
  font-size: 16px; font-weight: 500; color: var(--ink);
  background-image: repeating-linear-gradient(90deg, var(--patrol) 0 2px, transparent 2px 5px);
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 6px;
}
.ridge-link:hover { color: var(--patrol); }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--hair);
  background: rgb(255 255 255 / 0.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.site-nav .wrap { display: flex; height: 72px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 28px; height: 28px; }
.brand span { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.site-nav nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: none; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); transition: color 150ms; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero .wrap:first-child { padding-top: 56px; }
.hero h1 { max-width: 18ch; font-size: 42px; line-height: 1.04; font-weight: 500; letter-spacing: -0.03em; }
.hero h1 br { display: none; }
.hero-lede { margin-top: 24px; max-width: 46ch; font-size: 18px; line-height: 1.625; color: var(--ink-soft); }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.hero figure { margin-top: 56px; }
.hero figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.caption { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.hero .caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Why Corduroy ---------- */

.story { margin-top: 96px; border-top: 1px solid var(--hair); }
.story-stage { position: relative; overflow: hidden; }
.story-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-stage .wrap { position: relative; display: flex; justify-content: center; padding-block: 96px; }
.story-card { max-width: 580px; border: 1px solid var(--hair); background: #fff; padding: 44px 32px; text-align: center; }
.story-card h2 { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; }
.story-card p { margin-top: 20px; font-size: 17px; line-height: 1.625; color: var(--ink-soft); }

/* ---------- How it works ---------- */

.how h2 { max-width: 17ch; line-height: 1.06; }
.steps { margin-top: 56px; max-width: 680px; }
.steps li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding-bottom: 48px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before {
  content: ""; position: absolute; top: 64px; bottom: 8px; left: 27px;
  border-left: 2px dashed rgb(27 36 48 / 0.25);
}
.step-num { display: flex; width: 56px; height: 56px; align-items: center; justify-content: center; background: var(--patrol); font-family: var(--mono); font-size: 20px; color: #fff; }
.steps h3 { padding-top: 10px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.steps p { margin-top: 8px; max-width: 50ch; font-size: 16px; line-height: 1.625; color: var(--ink-soft); }

/* ---------- Services ---------- */

.services .lede { max-width: 52ch; }
.service-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.service-grid > li { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.service-grid .icon { width: 56px; height: 56px; }
.service-grid h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.service-grid p { margin-top: 6px; font-size: 15px; line-height: 1.625; color: var(--ink-soft); }
.service-photo img:not(.icon) { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-photo .body { display: flex; align-items: flex-start; gap: 16px; padding: 24px; }
.service-tile { padding: 24px; transition: background-color 200ms; }
.service-tile:hover { background: var(--snow); }
.service-tile h3 { margin-top: 24px; font-size: 19px; }

/* ---------- Trip types ---------- */

.trips h2 { max-width: 16ch; margin-inline: auto; text-align: center; line-height: 1.06; }
.trip-cards { margin-top: 56px; display: grid; gap: 24px; }
.trip-card { display: flex; flex-direction: column; border: 1px solid var(--hair); background: #fff; }
.trip-card .photo { overflow: hidden; }
.trip-card .photo img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 60%; transition: transform 500ms; }
.trip-card:hover .photo img { transform: scale(1.02); }
.trip-card .body { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.trip-card h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.trip-card .body p { margin-top: 12px; font-size: 16px; line-height: 1.625; color: var(--ink-soft); }
.trip-strip { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: var(--patrol); font-size: 15px; font-weight: 500; color: #fff; }
.trip-strip span { transition: transform 200ms; }
.trip-card:hover .trip-strip span { transform: translateX(4px); }

/* ---------- Why plan with a local ---------- */

.points { margin-top: 48px; border-top: 1px solid rgb(27 36 48 / 0.7); }
.points li { display: grid; gap: 12px; padding-block: 32px; border-bottom: 1px solid var(--hair); }
.outline-numeral { font-size: 56px; line-height: 1; font-weight: 300; color: transparent; -webkit-text-stroke: 1.25px var(--patrol); }
.points h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.points p { max-width: 48ch; font-size: 16px; line-height: 1.625; color: var(--ink-soft); }

/* ---------- Sample trip ---------- */

.sample > .wrap > img { margin-top: 48px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rail-stage { position: relative; margin-top: -80px; }
.day-rail {
  display: flex; gap: 16px; overflow-x: auto; padding: 0 16px 8px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.day-rail::-webkit-scrollbar { display: none; }
.day-rail li { width: 78%; flex-shrink: 0; scroll-snap-align: start; border: 1px solid var(--hair); background: #fff; padding: 24px; }
.day-label { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--patrol); }
.day-label::before { content: ""; width: 8px; height: 8px; background: var(--patrol); }
.day-rail li p:last-child { margin-top: 16px; font-size: 16px; line-height: 1.625; }
.rail-buttons { margin-top: 24px; display: flex; justify-content: flex-end; gap: 8px; }
.rail-buttons button { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--hair); transition: border-color 150ms; }
.rail-buttons button:hover { border-color: var(--ink); }

/* ---------- About ---------- */

.about-grid { display: grid; align-items: center; }
.about-grid figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-card { position: relative; z-index: 10; margin: -56px 16px 0; border: 1px solid var(--hair); background: #fff; padding: 32px; }
.about-card h2 { font-size: 32px; line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; }
.about-card p { margin-top: 16px; font-size: 16px; line-height: 1.625; color: var(--ink-soft); }
.about-card h2 + p { margin-top: 24px; }
.about-card .rule { margin-top: 32px; }
.about-card .signoff { margin-top: 12px; font-size: 14px; line-height: 1.5; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 48px; padding-block: 96px; }
.faq h2 { font-size: 44px; font-weight: 500; letter-spacing: -0.03em; }
.faq-intro { margin-top: 12px; max-width: 30ch; font-size: 16px; line-height: 1.625; color: var(--ink-soft); }
.faq-list { border-top: 1px solid var(--hair); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 24px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--patrol); }
.plus::before { top: 50%; left: 0; height: 1.5px; width: 16px; transform: translateY(-50%); }
.plus::after { top: 0; left: 50%; height: 16px; width: 1.5px; transform: translateX(-50%); }
details[open] .plus::after { display: none; }
.faq-list details p { max-width: 56ch; padding-bottom: 28px; font-size: 16px; line-height: 1.625; color: var(--ink-soft); }

/* ---------- Plan my trip form ---------- */

.plan-card { display: grid; border: 1px solid var(--hair); }
.plan-photo { position: relative; }
.plan-photo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.plan-body { background: var(--snow); padding: 40px 20px; }
.plan-body .lede { margin-top: 12px; max-width: 46ch; }
.trip-form { position: relative; margin-top: 40px; display: grid; gap: 28px 24px; }
.trip-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.field {
  height: 48px; width: 100%; padding: 0 16px;
  border: 1px solid var(--hair); background: #fff;
  font-size: 16px; color: var(--ink);
}
.field:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 2px rgb(27 36 48 / 0.1); }
.field[aria-invalid="true"] { border-color: var(--patrol); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.select-wrap select.is-empty { color: var(--ink-soft); }
.select-wrap::after {
  content: "\25BC"; position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
  font-size: 12px; color: var(--ink-soft); pointer-events: none;
}
.field-error { margin-top: 8px; font-size: 13px; color: var(--patrol); }
.form-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 8px; }
.form-alert { font-size: 15px; color: var(--patrol); }
.form-note { font-size: 14px; line-height: 1.625; color: var(--ink-soft); }
.form-note a { text-decoration: underline; text-underline-offset: 4px; }
.form-note a:hover { color: var(--ink); }
.form-done { margin-top: 40px; border: 1px solid var(--hair); background: #fff; padding: 32px; outline: none; }
.form-done h3 { margin-top: 24px; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.form-done p { margin-top: 12px; max-width: 50ch; font-size: 16px; line-height: 1.625; color: var(--ink-soft); }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--hair); background: #fff; }
.footer-grid { display: grid; gap: 40px; padding-block: 56px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; height: 24px; }
.footer-brand span { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.footer-grid p { font-size: 15px; color: var(--ink-soft); }
.footer-grid .tagline { margin-top: 12px; }
.footer-grid .areas { line-height: 1.625; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-links .privacy-link { font-size: 14px; color: var(--ink-soft); }
.footer-links .privacy-link:hover { color: var(--ink); }
.footer-base { border-top: 1px solid var(--hair); padding-block: 24px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

/* ---------- Privacy and 404 pages ---------- */

.page { padding-block: 80px; }
.page h1 { font-size: 44px; font-weight: 500; letter-spacing: -0.03em; }
.page .updated { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.page .intro { margin-top: 32px; max-width: 60ch; font-size: 18px; line-height: 1.625; color: var(--ink-soft); }
.policy { margin-top: 56px; max-width: 760px; border-top: 1px solid var(--hair); }
.policy section { padding-block: 32px; border-bottom: 1px solid var(--hair); }
.policy h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.policy p { margin-top: 12px; font-size: 16px; line-height: 1.625; color: var(--ink-soft); }

.not-found { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px; text-align: center; }
.not-found .code { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.not-found h1 { margin-top: 12px; font-size: 36px; line-height: 1.11; font-weight: 500; letter-spacing: -0.025em; }
.not-found p:not(.code) { margin-top: 12px; max-width: 40ch; font-size: 16px; line-height: 1.625; color: var(--ink-soft); }
.not-found a { margin-top: 32px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 16px; font-weight: 500; }
.not-found a:hover { border-color: var(--patrol); color: var(--patrol); }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-photo, .service-tile:last-child { grid-column: span 2; }
  .day-rail li { width: 300px; }
  .plan-body { padding-inline: 40px; }
  .trip-form { grid-template-columns: repeat(2, 1fr); }
  .form-foot { grid-column: span 2; }
}

@media (min-width: 768px) {
  .wrap { padding-inline: 40px; }
  .band > .wrap { padding-block: 128px; }
  .h-section { font-size: 52px; }

  .hero .wrap:first-child { padding-top: 80px; }
  .hero h1 { font-size: 72px; line-height: 1.02; }
  .hero h1 br { display: block; }
  .hero-lede { font-size: 20px; }
  .hero figure { margin-top: 80px; }
  .hero figure img { aspect-ratio: 21 / 9; }

  .story { margin-top: 128px; }
  .story-stage .wrap { padding-block: 144px; }
  .story-card { padding: 56px; }
  .story-card h2 { font-size: 40px; }

  .how h2, .services h2 { font-size: 56px; }
  .steps { margin-top: 80px; margin-left: 8%; }

  .service-grid { margin-top: 64px; grid-template-columns: repeat(12, 1fr); }
  .service-photo { grid-column: span 6; }
  .service-tile { grid-column: span 3; padding: 32px; }
  .service-tile:nth-child(n + 7) { grid-column: span 4; }
  .service-photo .body { padding: 32px; }

  .trip-cards { margin-top: 80px; grid-template-columns: repeat(2, 1fr); }
  .trip-card .body { padding: 36px; }
  .trip-card h3 { font-size: 30px; }
  .trip-strip { padding-inline: 36px; }

  .points { margin-top: 64px; }
  .points li { grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.15fr); align-items: baseline; gap: 32px; padding-block: 40px; }
  .outline-numeral { font-size: 72px; }
  .points h3 { font-size: 26px; }
  .points p { font-size: 17px; }

  .sample > .wrap > img { margin-top: 64px; aspect-ratio: 21 / 9; }
  .rail-stage { margin-top: -112px; }
  .day-rail { padding-inline: 32px; }
  .day-rail li { padding: 28px; }

  .about-grid { grid-template-columns: repeat(12, 1fr); }
  .about-grid figure { grid-column: 5 / span 8; grid-row: 1; }
  .about-grid figcaption { text-align: right; }
  .about-card { grid-column: 1 / span 5; grid-row: 1; margin: 0; padding: 48px; }
  .about-card h2 { font-size: 40px; }

  .faq-grid { grid-template-columns: repeat(12, 1fr); padding-block: 128px; }
  .faq-grid > div:first-child { grid-column: span 4; }
  .faq-list { grid-column: 6 / span 7; }
  .faq h2 { font-size: 64px; }

  .plan-card { grid-template-columns: repeat(12, 1fr); }
  .plan-photo { grid-column: span 5; }
  .plan-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .plan-body { grid-column: span 7; padding: 64px 56px; }
  .form-done { padding: 40px; }

  .footer-grid { grid-template-columns: repeat(12, 1fr); padding-block: 64px; }
  .footer-grid > :nth-child(1) { grid-column: span 5; }
  .footer-grid > :nth-child(2) { grid-column: span 4; }
  .footer-links { grid-column: span 3; align-items: flex-end; }

  .page { padding-block: 112px; }
  .page h1 { font-size: 64px; }
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
