:root {
  color-scheme: light;
  --ink: #1d2c24;
  --muted: #505d53;
  --paper: #f9f8f3;
  --line: #dedfd4;
  --forest: #182b22;
  --cream: #f4f3eb;
  --lime: #e3eca8;
  --focus: #8f4c17;
  font: 16px/1.55 "Avenir Next", Avenir, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, textarea { font: inherit; }
a { color: inherit; }
a, button, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: .8rem; left: .8rem; z-index: 2; padding: .65rem 1rem; transform: translateY(-180%); background: white; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero { position: relative; isolation: isolate; min-height: 595px; background: var(--forest); color: #fffdf5; }
.hero-photo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #14251df5 0%, #14251dce 28%, #14251d42 73%), linear-gradient(0deg, #14251d82, transparent 56%), url("assets/road.webp") 50% 57% / cover; }
.nav { min-height: 73px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f5f5e644; }
.nav a { text-decoration: none; font-weight: 650; }
.nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; }
.mark { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #f5f5e691; border-radius: 100%; color: var(--lime); }
.nav-links { display: flex; gap: clamp(1rem, 4vw, 2.2rem); font-size: .94rem; }
.hero-copy { padding: clamp(4rem, 8vw, 6.2rem) 0 5rem; max-width: 610px; }
h1 { font-size: clamp(4.2rem, 8.4vw, 8rem); }
h1 em { color: var(--lime); font-weight: 400; }
.hero-copy p { max-width: 480px; margin-top: 1.4rem; color: #f5f4eb; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.05rem; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-size: .95rem; font-weight: 730; line-height: 1.25; cursor: pointer; }
.button-hero { margin-top: 1.55rem; color: var(--forest); background: var(--lime); }
.button-hero:hover { background: #f0f5ca; }
.bikes { padding-block: clamp(3rem, 7vw, 5.6rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.7rem; }
h2 { font-size: clamp(2.75rem, 6vw, 5.3rem); }
.section-heading p { color: var(--muted); padding-bottom: .25rem; }
.bike-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.5rem); }
.bike { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fffefb; }
.bike[data-selected] { border-color: #748347; box-shadow: 0 0 0 2px #748347; }
.bike-photo { aspect-ratio: 1.65; overflow: hidden; background: #e4e6df; }
.bike-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bike-photo img { object-fit: contain; mix-blend-mode: multiply; padding: 7px; }
.bike-content { display: flex; flex: 1; flex-direction: column; padding: clamp(1.05rem, 2.2vw, 1.5rem); }
.terrain { align-self: flex-start; padding: .2rem .5rem; border-radius: 4px; background: #ebeed9; color: #3b4b2b; font-size: .875rem; font-weight: 700; }
.bike-kove .terrain { background: #f4e7da; color: #714824; }
.bike-arctic .terrain { background: #e0ece6; color: #2b5442; }
h3 { margin: .75rem 0 .85rem; font-size: clamp(1.45rem, 2.7vw, 2rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.12; }
h3 span { display: block; }
.specs { display: grid; grid-template-columns: 1.36fr .95fr 1fr; gap: .35rem; padding-block: .75rem; margin-bottom: 1rem; border-block: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .875rem; }
.specs dd { font-weight: 750; font-size: .94rem; line-height: 1.26; }
.bike-content > p:not(.terrain) { color: var(--muted); }
.bike-content > p:not(.terrain) + p:not(.tradeoff) { margin-top: .6rem; }
.tradeoff { margin-block: .8rem 1.2rem; }
.tradeoff strong { display: block; color: var(--ink); }
.pick { display: flex; justify-content: space-between; align-items: center; margin-top: auto; min-height: 44px; padding: .45rem .65rem; border: 1px solid #a5ad9d; border-radius: 6px; text-decoration: none; font-size: .94rem; font-weight: 710; }
.pick:hover { background: #edf1e1; }
.vote-section { background: var(--forest); color: #fffcf0; padding-block: clamp(3rem, 7vw, 5.3rem); }
.vote-layout { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; gap: clamp(2rem, 6vw, 6.3rem); }
.vote-intro p { color: #e3e9de; max-width: 335px; margin-top: 1.1rem; font-size: 1.09rem; }
.vote-panel { background: #fffef9; color: var(--ink); padding: clamp(1rem, 3.3vw, 2rem); border-radius: 10px; }
fieldset { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.choice { display: flex; align-items: center; gap: .75rem; min-height: 45px; border: 1px solid var(--line); padding: .5rem .68rem; border-radius: 6px; font-weight: 650; cursor: pointer; }
.choice:hover, .choice:has(input:checked) { border-color: #70804a; background: #eef1e0; }
.choice input { inline-size: 1.1rem; block-size: 1.1rem; flex: none; margin: 0; accent-color: #466137; }
.note-label { display: block; font-weight: 650; margin-bottom: .3rem; }
.note-label span { color: var(--muted); font-weight: 400; }
textarea { width: 100%; min-height: 66px; padding: .55rem .65rem; color: var(--ink); background: #fff; border: 1px solid #a5ad9d; border-radius: 6px; resize: vertical; }
.button-save { background: #314b37; color: white; }
form .button-save { margin-top: .7rem; }
.button-save:hover { background: #23392a; }
.button-outline { background: transparent; color: var(--ink); border-color: #a5ad9d; }
.button-outline:hover { background: #edf1e1; }
#result-label { font-size: 1.35rem; line-height: 1.25; font-weight: 750; }
.result-note { margin-top: .6rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.storage-status, #share-status { color: var(--muted); font-size: .94rem; }
.storage-status { margin-top: .55rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
#share-status:not(:empty), #manual-share:not([hidden]) { margin-top: .7rem; }
.footer { padding-block: 1.7rem 2.2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; }
.footer details { color: var(--muted); font-size: .88rem; }
.footer details p { max-width: 34rem; margin-top: .35rem; }
.footer summary { cursor: pointer; width: fit-content; }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 52px); }
  .specs { grid-template-columns: 1fr; gap: .25rem; }
  .specs div { display: flex; justify-content: space-between; gap: .25rem; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .hero { min-height: auto; }
  .hero-photo { background-position: center, center, 62% center; }
  .hero-copy { padding-block: 4.15rem 3.6rem; }
  .section-heading { display: block; }
  .section-heading p { margin-top: .65rem; }
  .bike-grid, .vote-layout { grid-template-columns: 1fr; }
  .bike-grid { gap: 1.1rem; }
  .bike-photo { aspect-ratio: 1.9; }
  h3 span { display: inline; }
  .specs { grid-template-columns: 1.3fr .9fr 1fr; }
  .specs div { display: block; }
  .footer { flex-direction: column; gap: .7rem; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 28px); }
  h1 { font-size: 3.65rem; }
  .nav-links { gap: .8rem; font-size: .87rem; }
  .wordmark { gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
