:root {
  color-scheme: light;
  --ink: #071d2a;
  --muted: #516873;
  --paper: #f3f7f8;
  --white: #fff;
  --line: #cbd9de;
  --blue: #075aa4;
  --red: #ef3340;
  --gold: #f8c443;
  --green: #087a58;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}
a { color: inherit; }
.site-head, main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-head { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.club-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.club-brand img { width: 58px; height: 54px; object-fit: contain; }
.club-brand span { display: grid; }
.club-brand strong { font-size: 1rem; }
.club-brand small { color: var(--muted); font-weight: 700; }
.head-actions { display: flex; align-items: center; gap: 17px; }
.season { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.about-trigger { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; font: inherit; font-size: .76rem; font-weight: 850; }
.about-trigger span { color: var(--blue); font-size: 1rem; }
.about-trigger:hover, .about-trigger:focus-visible { border-color: var(--blue); color: var(--blue); }
main { padding: 64px 0 70px; }
.intro { max-width: 720px; margin-bottom: 35px; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 0; font-size: 4.7rem; line-height: .94; letter-spacing: 0; }
.intro > p:last-child { max-width: 600px; margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #afc2ca; background: var(--white); box-shadow: 0 20px 60px rgba(7,29,42,.12); }
.event-tile { min-width: 0; display: grid; grid-template-rows: 235px 1fr; border-right: 1px solid #afc2ca; text-decoration: none; }
.event-tile:last-child { border-right: 0; }
.event-art { position: relative; overflow: hidden; border-bottom: 1px solid #afc2ca; }
.rowfest-art { display: grid; place-items: center; background: #0a2939; }
.rowfest-art::before { content: ""; position: absolute; width: 52%; height: 120%; left: -8%; top: -10%; background: var(--red); transform: skewX(-18deg); }
.rowfest-art::after { content: ""; position: absolute; width: 30%; height: 120%; right: -5%; top: -10%; background: var(--blue); transform: skewX(-18deg); }
.rowfest-art img { width: 170px; height: 158px; position: relative; z-index: 1; object-fit: contain; filter: drop-shadow(0 9px 16px rgba(0,0,0,.28)); }
.rowfest-art span { position: absolute; right: 24px; bottom: 14px; z-index: 1; color: rgba(255,255,255,.16); font-size: 3.3rem; font-weight: 950; }
.wrmr-art { background: url("/wrmr-2026/assets/lake-bled.jpg") 52% 48% / cover no-repeat; }
.wrmr-art::after { content: ""; position: absolute; inset: 0; background: rgba(3,18,27,.28); }
.wrmr-art span { position: absolute; left: 24px; bottom: 15px; z-index: 1; color: var(--white); font-size: 2.8rem; font-weight: 950; text-shadow: 0 3px 15px rgba(0,0,0,.4); }
.event-copy { min-height: 300px; padding: 25px 28px 24px; display: flex; flex-direction: column; }
.event-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.event-topline strong { padding: 4px 7px; background: #e8eef0; color: #425a65; font-size: .65rem; }
.event-topline strong.upcoming { background: #dff3eb; color: var(--green); }
.event-date { margin: 24px 0 3px; color: var(--red); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.event-copy h2 { margin: 0; font-size: 2.15rem; line-height: 1; letter-spacing: 0; }
.event-copy > p:not(.event-date) { max-width: 470px; margin: 14px 0 24px; color: var(--muted); }
.event-stats { margin-top: auto; padding-top: 16px; display: flex; align-items: end; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.event-stats span { display: grid; }
.event-stats strong { color: var(--ink); font-size: 1.3rem; line-height: 1; }
.event-stats i { margin-left: auto; color: var(--blue); font-size: 1.7rem; font-style: normal; line-height: 1; }
.event-tile:hover .event-copy h2, .event-tile:focus-visible .event-copy h2 { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.event-tile:hover .event-stats i, .event-tile:focus-visible .event-stats i { transform: translateX(5px); }
.event-stats i { transition: transform .18s ease; }
footer { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
footer button { padding: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.about-dialog { width: min(820px, calc(100% - 28px)); max-height: min(900px, calc(100vh - 28px)); padding: 0; border: 1px solid #9eb3bd; border-radius: 6px; background: var(--white); color: var(--ink); box-shadow: 0 32px 100px rgba(7,29,42,.38); }
.about-dialog::backdrop { background: rgba(3,18,27,.72); backdrop-filter: blur(3px); }
.dialog-shell { min-width: 0; }
.dialog-head { min-height: 112px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 2rem; line-height: 1.05; letter-spacing: 0; }
.dialog-close { width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; font-size: 1.7rem; line-height: 1; }
.dialog-close:hover, .dialog-close:focus-visible { border-color: var(--red); color: var(--red); }
.dialog-body { max-height: calc(100vh - 142px); padding: 27px 28px 34px; overflow-y: auto; }
.dialog-lead { margin: 0 0 28px; max-width: 680px; font-size: 1.12rem; font-weight: 720; }
.info-section { padding-top: 22px; border-top: 1px solid var(--line); }
.info-section h3, .feedback-section h3 { margin: 0; font-size: 1.3rem; }
.info-section > p, .feedback-section > p { color: var(--muted); }
.source-list { margin: 16px 0; border-top: 1px solid var(--line); }
.source-list > div { min-height: 74px; padding: 14px 0; display: grid; grid-template-columns: 145px 1fr; gap: 16px; align-items: start; border-bottom: 1px solid var(--line); }
.source-list span { color: var(--muted); }
.unofficial-note { margin: 25px 0; padding: 18px 20px; display: grid; gap: 4px; border-left: 4px solid var(--gold); background: #fff8df; }
.unofficial-note span { color: #52626a; }
.dialog-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.dialog-links a { min-height: 64px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-right: 1px solid var(--line); color: var(--blue); font-size: .79rem; font-weight: 800; }
.dialog-links a:last-child { border-right: 0; }
.dialog-links a:hover, .dialog-links a:focus-visible { background: var(--paper); }
.feedback-section { margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.feedback-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.feedback-head > span { color: var(--muted); font-size: .7rem; font-weight: 800; }
#feedback-form { margin-top: 18px; display: grid; gap: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#feedback-form label { min-width: 0; display: grid; gap: 6px; color: #334b57; font-size: .75rem; font-weight: 850; }
#feedback-form label > span { display: flex; align-items: baseline; gap: 5px; }
#feedback-form small { color: var(--muted); font-weight: 650; }
#feedback-form input, #feedback-form select, #feedback-form textarea { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #b8c8cf; border-radius: 0; background: var(--white); color: var(--ink); font: inherit; }
#feedback-form textarea { resize: vertical; }
#feedback-form input:focus, #feedback-form select:focus, #feedback-form textarea:focus { outline: 3px solid rgba(7,90,164,.16); border-color: var(--blue); }
.website-field { position: absolute; left: -10000px; }
.form-actions { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-actions p { margin: 0; color: var(--muted); font-size: .78rem; }
.form-actions p.success { color: var(--green); font-weight: 800; }
.form-actions p.error { color: #b52032; font-weight: 800; }
.form-actions button { min-height: 44px; padding: 0 17px; border: 0; background: var(--blue); color: var(--white); cursor: pointer; font: inherit; font-weight: 850; }
.form-actions button:hover, .form-actions button:focus-visible { background: #03467f; }
.form-actions button:disabled { cursor: wait; opacity: .65; }

@media (max-width: 760px) {
  .site-head, main, footer { width: min(100% - 28px, 1180px); }
  .site-head { min-height: 76px; }
  .club-brand img { width: 46px; height: 43px; }
  .season { display: none; }
  .head-actions { gap: 8px; }
  main { padding: 44px 0 50px; }
  h1 { font-size: 3rem; }
  .intro { margin-bottom: 26px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-tile { grid-template-rows: 190px 1fr; border-right: 0; border-bottom: 1px solid #afc2ca; }
  .event-tile:last-child { border-bottom: 0; }
  .event-copy { min-height: 292px; padding: 21px; }
  .event-copy h2 { font-size: 1.75rem; }
  .event-topline { align-items: start; }
  footer { min-height: 105px; flex-direction: column; align-items: start; justify-content: center; gap: 5px; }
  .dialog-head { min-height: 96px; padding: 19px; align-items: flex-start; }
  .dialog-head h2 { font-size: 1.45rem; }
  .dialog-body { padding: 21px 19px 28px; }
  .source-list > div { grid-template-columns: 1fr; gap: 4px; }
  .dialog-links { grid-template-columns: 1fr; }
  .dialog-links a { border-right: 0; border-bottom: 1px solid var(--line); }
  .dialog-links a:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .feedback-head { align-items: start; flex-direction: column; gap: 5px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
