/* 3rd Rider website: one stylesheet for the home page and the privacy policy. */
:root {
  --navy: #030d23;
  --navy-2: #0b1a3a;
  --card: #10203f;
  --line: #24365e;
  --cream: #fcf9f2;
  --muted: #b9c1d4;
  --orange: #ff6410;
  --orange-ink: #ff8a4c;
  --display: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font: 17px/1.6 var(--sans);
}

a {
  color: var(--orange-ink);
}

a:focus-visible,
.store:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Home: top section */
.hero {
  background: radial-gradient(circle at 50% 0, var(--navy-2) 0, var(--navy) 70%);
  padding: 56px 0 48px;
  text-align: center;
}

.hero img {
  width: 200px;
  max-width: 60%;
  height: auto;
}

h1 {
  margin: 28px auto 16px;
  max-width: 720px;
  font: 600 clamp(2rem, 6vw, 3.1rem) / 1.12 var(--display);
}

.lead {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.15rem;
}

/* Store buttons */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.store {
  display: inline-flex;
  min-width: 220px;
  min-height: 60px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 22px;
  border: 2px solid var(--orange);
  border-radius: 14px;
  background: var(--card);
  color: var(--cream);
  text-align: left;
  text-decoration: none;
}

a.store:hover {
  background: var(--orange);
  color: var(--navy);
}

.store small {
  font-size: 0.8rem;
  color: var(--muted);
}

a.store:hover small {
  color: var(--navy);
}

.store strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.soon {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Home: a look inside (a sideways row on phones, a grid on wide screens) */
.gallery {
  padding: 40px 0 8px;
}

.shots {
  display: grid;
  grid-auto-columns: minmax(200px, 240px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

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

.shots figure {
  margin: 0;
  scroll-snap-align: start;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 45%);
}

.shots figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.fine {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery h2,
.gallery .fine {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

@media (min-width: 860px) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 260px));
    justify-content: center;
    overflow-x: visible;
  }
}

/* Home: what it does */
.features {
  padding: 40px 0 16px;
}

h2 {
  margin: 0 0 16px;
  font: 600 1.6rem/1.2 var(--display);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.grid b {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.grid span {
  color: var(--muted);
}

.note {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: var(--card);
}

/* Footer */
footer {
  margin-top: 48px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

footer p {
  margin: 0;
}

/* Privacy policy */
.policy {
  max-width: 760px;
  padding-top: 32px;
}

.policy header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.policy header img {
  width: 56px;
  height: auto;
}

.policy h1 {
  margin: 24px 0 4px;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
}

.policy h2 {
  margin: 32px 0 8px;
  font-size: 1.3rem;
}

.policy ul {
  padding-left: 22px;
}

.policy li {
  margin: 6px 0;
}

.updated {
  color: var(--muted);
}
