/* Flynn Albert, sponsor one-pager
   Colours come from Flynn himself: the ice blue of his costume, navy trousers,
   silver and the white of the rink. Fonts: Montserrat (Saskia's pick) for headings,
   Barlow Semi Condensed for numbers, buttons and nav, Albert Sans for text.

   Sections: every section is its own band with the same padding. Bands alternate
   between ice (.section) and white (.section.band), so each section reads as one
   block. Cards take the opposite colour of the band they sit on. */

:root {
  /* colour */
  --rink: #f4f7fa;          /* ice band, page background */
  --snow: #ffffff;          /* white band */
  --frost: #e4eff5;         /* quiet fills */
  --ice-photo: #e5e6e8;     /* the ice in the header photo and video */
  --glacier: #8fd0e6;       /* costume ice blue, lines only, never text */
  --silver: #b4bec8;
  --line: #d6dee5;
  --ink: #0f2436;           /* text, navy */
  --muted: #4d6072;
  --ocean: #135482;         /* primary action */
  --ocean-hover: #0c3f63;
  --on-ocean: #ffffff;

  /* type */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-label: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Albert Sans", system-ui, sans-serif;

  /* space: one scale, 4px base */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --section: clamp(var(--s-7), 6vw, 80px);   /* top and bottom of every section */
  --gutter: clamp(var(--s-4), 4vw, 40px);

  /* the name in the header: option 1 of the font comparison, the family's pick (19.11.) */
  --name-weight: 400;
  --name-case: none;

  /* shape */
  --radius: 6px;
  --radius-pill: 999px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--rink); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--ocean-hover); }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: var(--s-5); }
h3 { font-size: 1.15rem; margin-bottom: var(--s-3); }
p { margin: 0 0 var(--s-4); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; background: var(--rink); }
.section.band { background: var(--snow); }
.muted { color: var(--muted); }
.credit { font-family: var(--font-label); font-size: 0.85rem; letter-spacing: 0.02em; color: var(--muted); margin-top: var(--s-2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  border-radius: var(--radius); border: 2px solid var(--ocean);
  background: var(--ocean); color: var(--on-ocean);
  font: 600 1.05rem/1 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--ocean-hover); border-color: var(--ocean-hover); color: var(--on-ocean); }
.btn.ghost { background: transparent; color: var(--ocean); }
.btn.ghost:hover { background: var(--ocean); color: var(--on-ocean); }
.btn.sm { min-height: 44px; padding: 0 var(--s-4); font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* site header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--rink) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; }
.wordmark { font: 800 1.1rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: 0.02em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a:not(.btn) { font: 600 0.95rem/1 var(--font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 14px 0; }
.nav a:not(.btn):hover { color: var(--ocean); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* opening */
.name { font-size: clamp(3rem, 9vw, 7rem); font-weight: var(--name-weight); letter-spacing: -0.03em; line-height: 0.93; text-transform: var(--name-case); }
.sport { margin: var(--s-4) 0 var(--s-5); font-size: 1.15rem; color: var(--muted); }
.highlights { list-style: none; margin: 0 0 var(--s-6); padding: 0; border-top: 1px solid var(--line); }
.highlights li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font: 600 clamp(1.1rem, 2.2vw, 1.35rem)/1.25 var(--font-display); }

/* opening: one large photo across the full width */
.hero-full { position: relative; overflow: hidden; background: var(--ice-photo); }
.hero-full .wrap { position: relative; z-index: 1; min-height: min(88vh, 860px); display: flex; flex-direction: column; justify-content: center; padding-top: var(--s-7); padding-bottom: var(--s-7); }
.hero-full .copy { max-width: 560px; }
.hero-full .highlights, .hero-full .highlights li { border-color: color-mix(in srgb, var(--ink) 15%, transparent); }
.hero-full .media { position: absolute; top: 0; bottom: 0; right: max(var(--gutter), calc((100vw - var(--max)) / 2)); margin: 0; }
.hero-full .media img { height: 100%; width: auto; max-width: none; }
/* soft edges left and right */
.hero-full .media img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 82%, transparent 100%);
}
.hero-full .media .credit { position: absolute; left: 20%; bottom: var(--s-4); margin: 0; }
.hero-full .copy .credit { margin-top: var(--s-5); }

/* split: image beside text */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); align-items: center; }
.split img { width: 100%; border-radius: var(--radius); }
.quote { margin: 0 0 var(--s-5); padding: 0; font: 600 clamp(1.2rem, 2.4vw, 1.6rem)/1.35 var(--font-display); }
.quote footer { margin-top: var(--s-3); font: 400 1rem/1.4 var(--font-body); color: var(--muted); }

/* on the ice: clip and photos */
.ice { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-3); }
.ice figure { margin: 0; }
.ice img, .ice video { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); background: var(--frost); }
.ice .clip { grid-column: span 2; grid-row: span 2; position: relative; padding-bottom: var(--s-6); }
.ice .clip video { position: absolute; inset: 0 0 var(--s-6) 0; height: calc(100% - var(--s-6)); aspect-ratio: auto; }
.ice .clip figcaption { position: absolute; left: 0; bottom: 0; margin: 0; }

/* results */
.results-layout { display: grid; grid-template-columns: 1fr 260px; gap: var(--s-8); align-items: start; }
.season + .season { margin-top: var(--s-6); }
.season h3 { padding-bottom: var(--s-2); margin-bottom: 0; border-bottom: 2px solid var(--ink); }
.result { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-4); align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.rank { font: 600 2rem/1 var(--font-label); color: var(--ocean); }
.result .event { font-weight: 600; }
.result .meta { display: block; font-size: 0.95rem; color: var(--muted); }
.result .cat { font: 600 0.95rem/1 var(--font-label); letter-spacing: 0.04em; color: var(--muted); }
.podium { margin: 0; }
.podium img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }

/* dates */
.dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.dates li { background: var(--snow); border-radius: var(--radius); padding: var(--s-5); }
.band .dates li { background: var(--rink); }
.dates .when { font: 600 1.4rem/1.1 var(--font-label); color: var(--ocean); display: block; margin-bottom: var(--s-2); }
.dates .where { font-size: 0.95rem; color: var(--muted); }

/* team */
.team-photo { margin: 0; }
/* the photo takes the wider column and is cropped to the group, so the five people are large */
.split.team { grid-template-columns: 1.15fr 0.85fr; }
.team-photo img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 57%; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; flex-direction: column; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.people li span:first-child { font-weight: 600; }
.people li span:last-child { color: var(--muted); }

/* sponsoring and club */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.offer > div { background: var(--snow); border-radius: var(--radius); padding: clamp(var(--s-5), 4vw, 40px); }
.band .offer > div { background: var(--rink); }
.band .offer .club, .offer .club { background: var(--frost); }
.offer ul { margin: 0 0 var(--s-5); padding-left: 1.1em; }
.offer li { margin-bottom: var(--s-1); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: var(--s-2) 0 var(--s-5); }
.tiers div { border-top: 2px solid var(--glacier); padding-top: var(--s-3); color: var(--muted); }
.tiers strong { display: block; font: 600 1.8rem/1 var(--font-label); color: var(--ink); margin: var(--s-1) 0; }
.partner { margin-top: var(--s-3); background: var(--snow); border-radius: var(--radius); padding: clamp(var(--s-5), 4vw, 40px); display: grid; grid-template-columns: 220px 1fr; gap: var(--s-6); align-items: center; }
.partner-figure { margin: 0; }
.partner-figure .credit { margin: var(--s-2) 0 0; }
.partner-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); }
.partner h3 { margin: 0 0 var(--s-3); }
.partner-logo { display: block; width: 160px; margin-bottom: var(--s-4); }
.partner p { margin: 0; max-width: 60ch; }
@media (max-width: 760px) { .partner { grid-template-columns: 1fr; } .partner-figure { max-width: 320px; } }

/* contact and footer */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
.site-foot { border-top: 1px solid var(--line); padding: var(--s-6) 0 var(--s-7); font-size: 0.9rem; color: var(--muted); background: var(--rink); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); }

/* quiet entrance, reduced-motion safe */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(var(--s-4)); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* tablet */
@media (max-width: 960px) {
  .ice { grid-template-columns: repeat(4, 1fr); }
  .ice figure:nth-child(n+6) { display: none; }
  .results-layout { grid-template-columns: 1fr 200px; }
  .split, .results-layout, .contact { gap: var(--s-6); }
}

/* phone */
@media (max-width: 760px) {
  .split, .split.team, .results-layout, .offer, .contact { grid-template-columns: 1fr; }
  .hero-full .wrap { min-height: 0; padding-top: var(--s-5); padding-bottom: var(--s-7); }
  .hero-full .media { position: relative; right: auto; width: 100%; height: 62vh; }
  .hero-full .media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 35%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%); -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%); mask-composite: add; }
  .hero-full .media .credit { left: auto; right: var(--gutter); bottom: var(--s-3); }
  .ice { grid-template-columns: repeat(2, 1fr); }
  .ice .clip { grid-column: span 2; grid-row: auto; position: static; padding: 0; }
  .ice .clip video { position: static; aspect-ratio: 9 / 16; height: auto; }
  .ice .clip figcaption { position: static; margin-top: var(--s-2); }
  .podium { display: none; }
  .result { grid-template-columns: 44px 1fr auto; gap: var(--s-3); }
  .rank { font-size: 1.7rem; }
}


/* Impressum and Datenschutz */
.legal { min-height: 60vh; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--s-6); }
.legal h2 { font-size: 1.25rem; margin: var(--s-6) 0 var(--s-2); }
.legal p { margin: 0 0 var(--s-3); }
.legal a { color: inherit; }
.site-foot a { color: inherit; }
/* credit like deinmentalcoach.ch: heart one cap height tall on the baseline */
.foot-credit { white-space: nowrap; }
.foot-credit svg { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; fill: currentColor; }
.foot-credit a { text-decoration: underline; text-underline-offset: 2px; padding: 13px 0; }
