/* Rivertime cleat trainer site. Colors and type follow the Rivertime design system. */
:root {
  --sailcloth: #f3ede0;
  --river-cobalt: #0a4a9a;
  --deep-navy: #1f2e4d;
  --pale-water: #d6e5e3;
  --walnut: #4a3226;
  --tracer-red: #b4412f;
  --surface-raised: #fbf8f1;
  --hairline: #d9cfbc;
  --serif: "Fraunces", Georgia, serif;
  --caps: "Overpass", "Helvetica Neue", sans-serif;
  --lower: "Josefin Sans", "Helvetica Neue", sans-serif;
  --hand: "Homemade Apple", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sailcloth);
  color: var(--deep-navy);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
a { color: var(--river-cobalt); }
a:hover { color: var(--deep-navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--tracer-red); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

.kicker {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--river-cobalt);
}
.detail { font-family: var(--lower); font-size: 15px; color: var(--walnut); }
.aside { font-family: var(--hand); font-size: 16px; line-height: 2; color: var(--river-cobalt); }
.dot { color: var(--tracer-red); }
.display { font-size: 34px; line-height: 1.1; font-weight: 800; color: var(--river-cobalt); }
.subhead { font-size: 19px; line-height: 1.3; font-weight: 600; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 36px;
  border: 2px solid var(--river-cobalt);
  border-radius: 999px;
  background: var(--river-cobalt);
  color: var(--sailcloth);
  font-family: var(--lower);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--deep-navy); border-color: var(--deep-navy); color: var(--sailcloth); }
.button.outline { background: transparent; color: var(--river-cobalt); }
.button.outline:hover { background: var(--river-cobalt); color: var(--sailcloth); }

/* Top bar and header */
.topbar {
  background: var(--river-cobalt);
  color: var(--sailcloth);
  text-align: center;
  padding: 11px 16px;
  font-family: var(--caps);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.masthead { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 44px 24px 28px; text-align: center; }
.masthead img { width: 230px; height: auto; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 28px; padding-bottom: 56px; }
.hero > * { flex: 1 1 400px; min-width: 0; }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%; border-radius: 6px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero h1 { font-size: 52px; line-height: 1.08; font-weight: 800; color: var(--river-cobalt); }
.lede { font-size: 19px; line-height: 1.5; }
.price { font-family: var(--lower); font-size: 19px; }

/* Photos and facts */
.details { display: flex; flex-direction: column; gap: 44px; }
.photo-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 44px; }
.facts > div { display: flex; flex-direction: column; gap: 8px; }

/* Steps */
.steps { background: var(--pale-water); }
.steps .wrap { display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.step-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; text-align: left; list-style: none; margin: 0; padding: 0; }
.step-grid li { display: flex; flex-direction: column; gap: 8px; }
.step-frame { background: var(--sailcloth); border-radius: 6px; padding: 10px; }
.step-frame svg { display: block; width: 100%; height: auto; }
.step-frame .arrow { stroke: var(--tracer-red); fill: none; stroke-linecap: round; }
.step-frame .note { font-family: var(--hand); fill: var(--tracer-red); }
.step-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.step-caption { font-size: 15px; line-height: 1.45; color: var(--walnut); }

/* Who it's for */
.who { max-width: 880px; display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.who p { font-size: 24px; line-height: 1.4; font-weight: 500; }

/* Made by hand */
.maker { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.maker > * { flex: 1 1 360px; min-width: 0; }
.maker-photo {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--river-cobalt);
  border-radius: 6px;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-family: var(--lower);
  font-size: 15px;
  color: var(--river-cobalt);
}
.maker-copy { display: flex; flex-direction: column; gap: 16px; }

/* Buy box */
.buy-box {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 44px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.buy-box p { max-width: 560px; }
.buy-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.buy-note { font-family: var(--lower); font-size: 15px; color: var(--tracer-red); }

/* Good to know */
.faq { max-width: 760px; padding-bottom: 56px; }
.faq .kicker { padding-bottom: 12px; }
.faq-item { border-top: 1px solid var(--hairline); padding: 20px 0; display: flex; flex-direction: column; gap: 6px; }
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }

/* Footer */
.footer { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 24px 56px; text-align: center; }
.footer img { width: 52px; height: 52px; }
.footer a { font-family: var(--lower); font-size: 15px; }

/* Thank-you page */
.thanks { min-height: 70vh; max-width: 640px; display: flex; flex-direction: column; gap: 20px; align-items: center; justify-content: center; text-align: center; }

@media (max-width: 900px) {
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 32px; padding-bottom: 32px; }
  .topbar { font-size: 11px; letter-spacing: 0.18em; }
  .masthead { padding: 24px 20px 20px; }
  .masthead img { width: 170px; }
  .masthead .kicker { display: none; }
  .hero { gap: 28px; padding-top: 0; padding-bottom: 32px; }
  .hero > * { flex-basis: 100%; }
  .hero h1 { font-size: 36px; }
  .hero-copy .button { align-self: stretch; }
  .hero-copy .detail { align-self: center; text-align: center; }
  .display { font-size: 28px; }
  .details, .facts { gap: 24px; }
  .step-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .who p { font-size: 19px; }
  .maker { gap: 24px; }
  .buy-box { padding: 24px 16px; }
  .buy-buttons { flex-direction: column; align-self: stretch; }
}
