/* fs.lintuala.fi index
   Tokens, scale and spacing come from design/README.md. */

/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokens */

:root {
  --navy: #12314f;
  --navy-text: #3c5670;
  --slate: #6b7f93;
  --slate-light: #8b9cae;
  --border: #d3dbe4;
  --border-soft: #e4e9ef;
  --page: #f7f8fa;
  --surface: #ffffff;
  --cta-hover: #e9f0f8;
  --on-navy: #cfdcea;
  --on-navy-muted: #9fb6cd;
  --navy-dim: #7f9ab5;
  --live: #56d6a0;
  --live-text: #9fe6c6;
  --link-hover: #1b4fd8;

  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1080px;
  --gutter: 32px;
  --focus-ring: 0 0 0 3px rgba(18, 49, 79, 0.08);
}

/* ---------------------------------------------------------------- reset */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* The `hidden` attribute carries the filter state, so it has to beat the
   display values the components set on themselves. */
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--navy);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 8px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------- header */

.site-header {
  background: var(--navy);
  color: #fff;
}

.site-header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wordmark__name {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: #fff;
}

.wordmark__prefix { color: var(--navy-dim); }

.wordmark__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--on-navy-muted);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-weight: 500;
  font-size: 14px;
  color: var(--on-navy);
  transition: color 0.15s ease;
}
.nav-link:hover { color: #fff; }

.lang-switch {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  overflow: hidden;
}

.lang-switch__btn {
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--on-navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn.is-active {
  background: #fff;
  color: var(--navy);
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

/* ----------------------------------------------------------------- hero */

.hero {
  margin-top: 40px;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.hero__inner {
  padding: 36px 40px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.hero__live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(86, 214, 160, 0.2);
  flex: none;
}

.hero__live-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--live-text);
}

.hero__title {
  font-weight: 700;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-navy);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
  background: #fff;
  color: var(--navy);
  padding: 20px 32px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 18px;
  transition: background-color 0.15s ease;
}
.hero__cta:hover { background: var(--cta-hover); }

.hero__cta-arrow {
  font-size: 20px;
  line-height: 1;
}

/* -------------------------------------------------------------- archive */

.archive { margin-top: 56px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--navy);
}

.section-head__title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.section-head__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
}

.controls {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.search { position: relative; }

.search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--slate-light);
  pointer-events: none;
}

.search__input {
  width: 100%;
  padding: 13px 14px 13px 38px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search__input::placeholder { color: var(--slate-light); }
.search__input:focus {
  border-color: var(--navy);
  box-shadow: var(--focus-ring);
}
.search__input::-webkit-search-cancel-button { cursor: pointer; }

.chips {
  display: flex;
  gap: 6px;
}

.chip {
  padding: 12px 16px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--slate-light); }
.chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.chip--submit { font-family: var(--font-ui); }

/* ---------------------------------------------------------- season rail */

.seasons { margin-top: 32px; }

.season {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0 28px;
  position: relative;
}

/* The rail is the disclosure control: old seasons rest collapsed, so the
   summary has to work both as a narrow sticky label and as a full-width strip. */
.season__rail {
  padding-top: 4px;
  cursor: pointer;
  list-style: none;
}
.season__rail::-webkit-details-marker { display: none; }

.season__rail-inner {
  position: sticky;
  top: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.season__label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--navy);
}

.season__count {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-light);
}

.season__chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--slate-light);
  transition: transform 0.15s ease, color 0.15s ease;
}
.season[open] .season__chevron { transform: rotate(180deg); }
.season__rail:hover .season__chevron { color: var(--navy); }

/* Collapsed: the summary spans the whole width and reads as one closed strip. */
.season:not([open]) > .season__rail {
  grid-column: 1 / -1;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-soft);
}
.season:not([open]) .season__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.season:not([open]) .season__count { margin-top: 0; }

/* The rail line is this border; the row dots sit on top of it. */
.season__rows {
  border-left: 1px solid var(--border);
  padding-bottom: 40px;
}

.row {
  display: grid;
  grid-template-columns: 148px 1fr 160px 24px;
  gap: 24px;
  align-items: center;
  padding: 18px 20px 18px 28px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  background: transparent;
  transition: background-color 0.15s ease;
}
.row:hover { background: var(--surface); }

.row__dot {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
}

.row__dates {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  white-space: nowrap;
}

.row__name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.row__city {
  font-size: 14px;
  color: var(--slate);
}

.row__arrow {
  font-size: 15px;
  color: var(--slate-light);
  text-align: right;
}

/* Announced, but with no result site to open yet. Same row, no link, and a
   hollow dot so the timeline reads as reaching into the future. */
.row--planned { cursor: default; }
.row--planned:hover { background: transparent; }

.row--planned .row__dot {
  background: var(--page);
  box-shadow: inset 0 0 0 1.5px var(--slate-light);
}

.row__badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
  vertical-align: 1px;
}

.empty {
  padding: 64px 0;
  text-align: center;
  font-size: 15px;
  color: var(--slate);
}

/* ---------------------------------------------------------------- about */

.about {
  margin-top: 88px;
  padding-top: 40px;
  border-top: 2px solid var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.about__title { margin-bottom: 16px; }

.about__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-text);
  max-width: 46ch;
  text-wrap: pretty;
}

.about__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.about__contact a { transition: color 0.15s ease; }
.about__contact a:hover { color: var(--link-hover); }
.about__note { color: var(--slate); }

/* --------------------------------------------------------------- footer */

.site-footer {
  margin-top: 88px;
  background: var(--navy);
  color: var(--on-navy-muted);
}

.site-footer__inner {
  padding-block: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .hero { margin-top: 28px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 24px 32px;
    align-items: stretch;
  }

  .hero__title { font-size: 30px; }

  .hero__cta {
    width: 100%;
    justify-content: center;
  }

  .archive { margin-top: 40px; }

  .controls { grid-template-columns: 1fr; }

  /* Chips run edge to edge so it reads as a scrollable strip. */
  .chips {
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .chips::-webkit-scrollbar { display: none; }

  /* The rail becomes a sticky heading above its rows rather than shrinking. */
  .season { grid-template-columns: 1fr; }

  .season__rail {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 0 10px;
    background: var(--page);
    border-bottom: 1px solid var(--border);
  }

  .season__rail-inner {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .season__meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .season__count { margin-top: 0; }

  .season:not([open]) > .season__rail { padding: 14px 0 10px; }

  .season__rows {
    border-left: 0;
    padding-bottom: 24px;
  }

  .row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "name name name"
      "dates city arrow";
    gap: 6px 14px;
    align-items: baseline;
    padding: 14px 4px;
    min-height: 44px;
  }

  .row:hover { background: transparent; }
  .row:active { background: var(--surface); }

  .row__dot { display: none; }
  .row__name { grid-area: name; font-size: 16px; }
  .row__badge { margin-left: 8px; padding: 2px 7px; font-size: 10px; }
  .row__dates { grid-area: dates; }
  .row__city {
    grid-area: city;
    font-family: var(--font-mono);
    font-size: 13px;
  }
  .row__arrow { grid-area: arrow; }

  .about {
    margin-top: 56px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer { margin-top: 56px; }

  .site-footer__inner {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; }

  .site-header__inner { gap: 12px; }
  .site-header__right { gap: 14px; }
  .hero__title { font-size: 26px; }
  .hero__meta { gap: 6px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header__right,
  .controls,
  .skip-link,
  .season__chevron { display: none; }
  body { background: #fff; }

  /* Paper has no disclosure control, so collapsed seasons still print. */
  .season > .season__rows { display: block !important; }
}
