/* emishreds.com — one stylesheet, no framework. Colors and type sampled from the
   Squarespace site on 2026-10-26: white header, black sections, accent #F1A638,
   Poppins 500 headings, Esteban body. Phone first. */
:root {
  --ink: #000;
  --paper: #fff;
  --accent: #f1a638;
  --muted: #555;
  --line: #e6e6e6;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --head: "Poppins", system-ui, sans-serif;
  --body: "Esteban", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; font: 500 .95rem/1 var(--head); letter-spacing: .02em; text-decoration: none; padding: 1em 2.4em; border: 0; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn:hover { filter: brightness(1.08); }

/* Header */
.site-header { background: var(--paper); position: relative; z-index: 5; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--gutter); max-width: 1600px; margin: 0 auto; }
.brand { grid-column: 2; }
.brand img { width: 120px; }
.header-cta { display: none; justify-self: end; grid-column: 3; }
.menu-toggle { grid-column: 1; grid-row: 1; justify-self: start; background: none; border: 0; padding: 10px 6px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
.site-nav { display: none; grid-column: 1 / -1; grid-row: 2; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 12px 0 4px; padding: 0; }
.site-nav a { display: block; padding: 10px 0; font-size: 1.25rem; text-decoration: none; border-top: 1px solid var(--line); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 1180px) {
  .menu-toggle { display: none; }
  .site-nav { display: block; grid-column: 1; grid-row: 1; }
  .site-nav ul { display: flex; flex-wrap: nowrap; gap: 0 clamp(12px, 1.5vw, 22px); margin: 0; white-space: nowrap; }
  .site-nav a { padding: 2px 0; font-size: 1rem; border: 0; }
  .brand img { width: 170px; }
  .header-cta { display: inline-block; }
}

/* Hero */
.hero { position: relative; color: var(--paper); background: #222 center / cover no-repeat; min-height: clamp(360px, 62vw, 640px); display: flex; align-items: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.05) 70%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-style: italic; font-weight: 600; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero p { font-style: italic; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-short { min-height: clamp(200px, 30vw, 320px); justify-content: center; text-align: center; }
.hero-short::after { background: rgba(0,0,0,.3); }
.wave { display: block; width: 100%; height: 48px; margin-top: -47px; position: relative; z-index: 2; }

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.center { text-align: center; }
.lede { max-width: 760px; margin: 0 auto; font-size: 1.15rem; }
.underline-title { display: inline-block; border-bottom: 3px solid currentColor; padding-bottom: 2px; font-size: 1.4rem; }

/* Card grids */
.grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: var(--paper); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.03); }
.tile-label { position: absolute; left: 10%; right: 10%; bottom: 10%; background: rgba(0,0,0,.45); padding: .8em 1em; text-align: center; }
.tile-label small { display: block; font-size: .85rem; }
.tile-label strong { font: 500 clamp(1.05rem, 2vw, 1.35rem)/1.2 var(--head); }

/* About */
.two-col { display: grid; gap: 32px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.two-col h3 { font-size: 1.05rem; font-weight: 600; }
.wide-photo { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.disciplines { display: grid; gap: 24px; align-items: start; }
.disciplines ul { columns: 2; margin: 0; padding-left: 1.1em; }
@media (min-width: 760px) { .disciplines { grid-template-columns: 1fr 2fr; } }

/* Races list */
.race-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.race-card { display: grid; gap: 16px; }
@media (min-width: 640px) { .race-card { grid-template-columns: 240px 1fr; gap: 24px; align-items: start; } }
.race-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.race-card h2 { font-size: 1.35rem; margin-bottom: .3em; }
.race-meta { color: var(--muted); font-size: .95rem; margin: 0 0 .4em; }
.race-result { font-style: italic; margin-bottom: 1em; }
.date-badge { font: 600 .8rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Race page */
.race-photos { display: grid; gap: 12px; margin: 24px 0; }
@media (min-width: 640px) { .race-photos { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.race-photos figure { margin: 0; }
.race-photos figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.back { display: inline-block; margin-bottom: 24px; }

/* Gallery */
.gallery { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.credit { text-align: center; margin-top: 24px; }

/* Partners */
.partner { display: grid; gap: 20px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .partner { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.partner img { max-height: 120px; width: auto; }
.partner h2 { font-size: 1.15rem; margin-bottom: .3em; }

/* Shop */
.shop-intro { display: grid; gap: 24px; }
@media (min-width: 760px) { .shop-intro { grid-template-columns: 1fr 1fr; gap: 48px; } }
.shop-intro h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.products { display: grid; gap: 32px 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product a { text-decoration: none; }
.product img { aspect-ratio: 1; object-fit: cover; background: #f4f4f4; width: 100%; }
.product h2, .product h3 { font-size: 1.2rem; margin: .8em 0 .2em; }
.price { font-family: var(--head); }
.sizes { color: var(--muted); font-size: .95rem; }
.product-page { display: grid; gap: 32px; }
@media (min-width: 860px) { .product-page { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.product-photos { display: grid; gap: 10px; }
.size-table { border-collapse: collapse; margin: 16px 0 24px; }
.size-table td, .size-table th { border-bottom: 1px solid var(--line); padding: 6px 18px 6px 0; text-align: left; }

/* Contact */
.contact-hero { min-height: clamp(420px, 60vw, 620px); }
.contact-hero h1 { font-style: normal; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact-list { list-style: none; padding: 0; margin: 0; font-size: 1.15rem; }
.contact-list li { margin-bottom: 1em; }
.contact-list span { display: block; font-size: .95rem; opacity: .85; }
.contact-list a { font: 600 1.1rem var(--head); text-decoration: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 48px var(--gutter) 28px; }
.footer-inner { max-width: 1600px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-logo { width: 140px; }
.social { list-style: none; display: flex; gap: 14px; padding: 0; margin: 16px 0 0; }
.social a { display: inline-flex; padding: 4px; }
.copyright { max-width: 1600px; margin: 40px auto 0; font-size: .85rem; }
.copyright a { color: var(--accent); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.race-card h2 a { text-decoration: none; }

/* QA fixes 2026-10-26: footer pinned to the bottom on short pages; stronger hero shade on phones */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
@media (max-width: 640px) {
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15) 75%); }
  .hero .wrap { align-self: flex-start; padding-top: 56px; }
  .contact-hero .wrap { padding-top: 40px; }
}
.hero { overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
main { display: flex; flex-direction: column; }
main > .contact-hero { flex: 1 0 auto; }
