/* The landing page (/, templates/landing/): CycleRunner's black and white, light or dark by the visitor's device,
   in the stores' look (storefront.css): same type, round buttons, soft lines. */
:root {
  --bg: #fff; --surface: #f4f4f5; --text: #18181b; --muted: #52525b; --line: #e4e4e7; --control: #8a8a93;
  --accent: #18181b; --on-accent: #fff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0c0e; --surface: #18181b; --text: #f4f4f5; --muted: #a1a1aa; --line: #27272a; --control: #6d6d78;
          --accent: #f4f4f5; --on-accent: #18181b; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 7vw, 56px); font-weight: 800; }
h2 { font-size: 24px; font-weight: 700; }
p { margin: 0 0 16px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
main:focus { outline: none; }       /* focused by the skip link, to start reading there */

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.mark.dark { display: none; }
@media (prefers-color-scheme: dark) { .mark.light { display: none; } .mark.dark { display: inline; } }

.hero { padding: 64px 0 56px; }
.lead { font-size: clamp(18px, 3vw, 22px); line-height: 1.5; color: var(--muted); max-width: 36em; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .1s ease, opacity .15s ease;
}
.button:hover { opacity: .9; }
.button:active { transform: scale(.98); }
.soon { display: inline-block; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.teaser { color: var(--muted); margin-top: 8px; }

.band { padding: 48px 0 64px; background: var(--surface); border-top: 1px solid var(--line); }

.foot { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 0 0 4px; }
.foot .name { color: var(--text); font-weight: 600; }
.foot a { text-underline-offset: 3px; }

@media (max-width: 480px) {
  .hero { padding: 40px 0 36px; }
  .button { width: 100%; }
}

/* The contact page (/contact/): the form beside CycleRunner's details; under each other on a phone. */
.contact { display: grid; gap: 40px; padding: 48px 0 64px; }
.contact h1 { font-size: clamp(30px, 6vw, 44px); }
.contact h2 { font-size: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=url], .field input[type=tel], .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--control); border-radius: 12px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.bad input, .bad textarea { border-color: #c0392b; }
.err, .alert { color: #c0392b; font-size: 14px; margin: 0; }
.alert { padding: 12px 16px; border: 1px solid #c0392b; border-radius: 12px; font-size: 16px; }
@media (prefers-color-scheme: dark) { .err, .alert { color: #ff8a7a; } .bad input, .bad textarea, .alert { border-color: #ff8a7a; } }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .button { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }
.privacy { color: var(--muted); font-size: 14px; margin: 0; }
.details { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; align-self: start; }
.details p { margin: 0 0 12px; }
.details .name { font-weight: 700; }
@media (min-width: 800px) { .contact { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; } }
@media (max-width: 480px) { .contact-form .button { align-self: stretch; } }

/* The header's links, and the contact page with nothing beside the form. */
.top nav { margin-left: auto; display: flex; gap: 8px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-size: 16px; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.teaser a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.contact.alone { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.contact .alert { margin-bottom: 20px; }
.contact-form .field.bad input, .contact-form .field.bad textarea { border-color: #c0392b; border-width: 2px; }
.contact-form .field.bad legend { color: #c0392b; }
@media (prefers-color-scheme: dark) {
  .contact-form .field.bad input, .contact-form .field.bad textarea { border-color: #ff8a7a; }
  .contact-form .field.bad legend { color: #ff8a7a; }
}
