:root {
  --green-dark: #103f58;
  --green: #0c5477;
  --ink: #252c31;
  --muted: #59656c;
  --paper: #ffffff;
  --paper-alt: #f1f3f4;
  --line: #d2dadd;
  --accent: #0c5477;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.05rem;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "IBM Plex Sans", Arial, sans-serif;
  color: var(--green-dark);
  line-height: 1.25;
  margin: 0 0 1rem;
}

h1 {
  font-size: 2.15rem;
}

h2 {
  font-size: 1.65rem;
  margin-top: 2.75rem;
}

h2:first-child {
  margin-top: 0;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--green-dark);
}

p {
  margin: 0 0 1.15rem;
}

ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

.wide {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  height: 46px;
  width: 46px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-left: auto;
  align-items: center;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.site-nav .nav-ilmo {
  background: var(--green-dark);
  color: var(--paper);
  border-radius: 6px;
  padding: 0.45rem 1rem;
}

.site-nav .nav-ilmo:hover {
  background: var(--green);
  color: var(--paper);
}

.lang-toggle {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Pages */

.page-intro {
  padding: 3.5rem 0 1.5rem;
}

.page-intro .lead {
  font-size: 1.25rem;
}

main {
  padding-bottom: 2rem;
}

.section {
  padding: 1.25rem 0 2.25rem;
}

.section-alt {
  background: var(--paper-alt);
}

.panel {
  background: var(--paper-alt);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

.section-alt .panel {
  background: var(--paper);
}

.panel p:last-child {
  margin-bottom: 0;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin: 0.5rem 0 1.25rem;
}

.btn-primary {
  background: var(--green-dark);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--green);
  color: var(--paper);
}

.text-link {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* Events */

.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.event-row {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
}

a.event-row:hover {
  border-color: var(--green);
}

.date-badge {
  min-width: 3.5rem;
  text-align: center;
  line-height: 1.15;
  padding-top: 0.15rem;
}

.date-badge .day {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green-dark);
}

.date-badge .month {
  display: block;
  font-size: 0.82rem;
  text-transform: capitalize;
  color: var(--muted);
}

.event-row h3 {
  margin: 0 0 0.25rem;
  font-size: 1.12rem;
}

.event-details {
  flex: 1;
  min-width: 0;
}

.event-row .meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}



/* Teasers */

.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.15rem;
}

.teaser {
  display: block;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  transition: border-color 0.15s ease;
}

.teaser:hover {
  border-color: var(--green);
  color: inherit;
}

.teaser h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.teaser p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.teaser-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Slideshow */

.slideshow-wrap {
  max-width: 68rem;
  margin: 2rem auto 0.5rem;
  padding: 0 1.5rem;
}

.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 540px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-alt);
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
}

.slideshow .slide.active {
  opacity: 1;
}

@media (max-width: 640px) {
  .slideshow {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 2.25rem 0;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin-bottom: 0.65rem;
}

.copyright {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .site-nav {
    gap: 0.85rem;
    margin-left: 0;
  }
}

/* Club style */
:root {
  --green-dark: #103f58;
  --green: #0c5477;
  --ink: #252c31;
  --muted: #59656c;
  --paper: #ffffff;
  --paper-alt: #f1f3f4;
  --line: #d2dadd;
  --accent: #0c5477;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

h2 {
  font-size: 1.7rem;
}

.site-header {
  position: static;
  border-top: 5px solid var(--green-dark);
}

.header-inner {
  max-width: 70rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
}

.brand img {
  width: 58px;
  height: 58px;
}

.site-nav a {
  font-weight: 400;
}

.site-nav .nav-ilmo {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 0.25rem 0;
}

.site-nav .nav-ilmo:hover {
  background: transparent;
  color: var(--accent);
}

.lang-toggle {
  border-radius: 0;
  background: transparent;
}

.home-intro {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.home-intro > .wide {
  max-width: 62rem;
  width: 100%;
  padding-top: 3rem;
}

.slideshow-wrap {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.slideshow {
  aspect-ratio: 2 / 1;
  max-height: 510px;
  border-radius: 0;
}

.slideshow .slide {
  object-fit: contain;
}

.btn {
  border-radius: 0;
  padding: 0.7rem 1.35rem;
}

.teaser-container {
  max-width: 70rem;
}

.teasers {
  grid-template-columns: repeat(4, 1fr);
  gap: 0 2.5rem;
  border-top: 1px solid var(--line);
}

.teaser {
  padding: 1.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.teaser h2 {
  font-size: 1.4rem;
}

.teaser-more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel, .event-row {
  border-radius: 0;
}

.date-badge .day {
  font-family: Georgia, 'Times New Roman', serif;
}

.site-footer {
  background: var(--green-dark);
  color: #e6ecef;
  border: 0;
  padding: 3rem 0;
}

.site-footer a {
  color: #ffffff;
}

@media (max-width: 900px) {
  .teasers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .site-nav {
    width: 100%;
    gap: 0.55rem 1rem;
  }

  .slideshow-wrap {
    padding: 0;
  }

  .slideshow {
    aspect-ratio: 4 / 3;
  }

  .home-intro > .wide {
    padding-top: 2rem;
  }

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