/* Viking Ski Club — site styles */
:root {
  --night: #0f1f33;
  --fjord: #1d3a5c;
  --lake: #4b6c8f;
  --snow: #f6f8fb;
  --ice: #e3ebf3;
  --line: #d3dde8;
  --red: #b3262e;
  --red-dark: #8f1d24;
  --ink: #1a2433;
  --muted: #56647a;
  --radius: 12px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--fjord); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--night); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; border-bottom: 4px solid var(--red); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img.logo { height: 44px; width: auto; }
.brand .mark { flex: none; height: 46px; width: auto; }
.brand .name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
.brand .name small { display: block; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #b9c8d9; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { display: block; color: #dfe8f2; text-decoration: none; font-size: .95rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.nav a.members { background: var(--red); color: #fff; margin-left: 6px; }
.nav a.members:hover { background: var(--red-dark); }
.menu-btn { display: none; background: none; border: 1.5px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: 7px 12px; font: 600 .95rem var(--sans); cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 4px solid var(--red); padding: 8px 16px 16px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a.members { margin: 6px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: linear-gradient(180deg, #0f1f33 0%, #1d3a5c 60%, #4b6c8f 100%); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,31,51,.85) 0%, rgba(15,31,51,.45) 60%, rgba(15,31,51,.2) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 120px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p.lead { font-size: 1.2rem; max-width: 40ch; color: #e6eef6; }
.hero .eyebrow { color: #ffd9db; }
.hero .ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; }
.page-hero .wrap { padding-top: 64px; padding-bottom: 92px; }
.page-hero h1 { max-width: 22ch; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .6em; }

.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--night); }
.btn-outline { border-color: var(--fjord); color: var(--fjord); }
.btn-outline:hover { background: var(--fjord); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--snow); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } section { padding: 52px 0; } }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse > :first-child { order: 0; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card .body p { color: var(--muted); }
.card .body .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.photo { position: relative; background: linear-gradient(160deg, var(--ice), #c9d7e6); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.card .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.missing img { display: none; }
.photo.missing::after { content: attr(data-alt); position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--lake); font-weight: 600; font-size: .9rem; }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* Facts / stats */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.facts div { padding: 22px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--red); line-height: 1.1; }
.facts span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Rooms */
.room h3 { margin-top: 14px; margin-bottom: 4px; }
.room p { color: var(--muted); margin: 0; }

/* Tables / rates */
table.rates { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.rates th, table.rates td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.rates th { background: var(--snow); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.rates td.amt { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--night); }
table.rates tr:last-child td { border-bottom: 0; }

/* Steps */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
ol.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
ol.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 700; }
ol.steps li strong { display: block; color: var(--night); }
ol.steps li span { color: var(--muted); }

ul.checks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
ul.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

.callout { background: var(--night); color: #e6eef6; border-radius: var(--radius); padding: 32px; }
.callout h2, .callout h3 { color: #fff; }
.callout a:not(.btn) { color: #ffd9db; }
.note { background: #fff7e6; border: 1px solid #f1d9a6; border-radius: 10px; padding: 14px 16px; color: #6b4e12; font-size: .95rem; }

/* Events */
.events { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.event .date { text-align: center; border-right: 1px solid var(--line); padding-right: 14px; }
.event .date .m { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.event .date .d { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--night); }
.event h3 { margin: 0 0 2px; font-size: 1.1rem; }
.event p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--ice); color: var(--fjord); margin-left: 6px; vertical-align: 2px; }
.tag.social { background: #fde7e8; color: var(--red-dark); }
.tag.work { background: #e7f1e8; color: #2c5a33; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filters button { font: 600 .9rem var(--sans); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }

/* Link lists (conditions) */
.links-card h3 { display: flex; align-items: center; gap: 10px; }
.links-card ul { list-style: none; margin: 0; padding: 0; }
.links-card li { border-top: 1px solid var(--line); }
.links-card li:first-child { border-top: 0; }
.links-card li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; text-decoration: none; font-weight: 600; }
.links-card li a::after { content: "↗"; color: var(--muted); }
.links-card li small { display: block; color: var(--muted); font-weight: 400; }

/* Footer */
.site-footer { background: var(--night); color: #b9c8d9; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #dfe8f2; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-size: 1.1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* Members area */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.doc-list a:hover { border-color: var(--fjord); }
.doc-list .icon { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--ice); color: var(--fjord); display: grid; place-items: center; font-weight: 800; font-size: .75rem; }
.doc-list strong { display: block; color: var(--night); }
.doc-list span { color: var(--muted); font-size: .92rem; }

@media (max-width: 420px) { .brand .name small { letter-spacing: .08em; font-size: .62rem; } .brand .mark { height: 40px; } }

/* Board list (members area) */
ul.board-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
ul.board-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
ul.board-list li strong { color: var(--night); }
ul.board-list li a { overflow-wrap: anywhere; }
@media (max-width: 640px) { ul.board-list { grid-template-columns: 1fr; } ul.board-list li { flex-direction: column; gap: 2px; } }
.card .body a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Nordic Gazette (members area) */
.gazette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px; }
.gz { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.gz img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 16px rgba(15,31,51,.08); transition: transform .15s, box-shadow .15s; }
.gz:hover img { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,31,51,.16); }
.gz-label { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; }
.gz-label strong { color: var(--night); }
.gz-label small { color: var(--muted); }

/* Gazette: latest issue + yearly archive */
.gz-latest { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.gz-latest img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; border: 2px solid var(--red); border-radius: 8px; box-shadow: 0 8px 20px rgba(15,31,51,.12); }
.gz-latest h3 { font-size: 1.4rem; margin-bottom: 6px; }
.gz-latest p { color: var(--muted); }
@media (max-width: 600px) { .gz-latest { grid-template-columns: 1fr; } .gz-latest img { max-width: 220px; } }
details.gz-year { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
details.gz-year > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 20px; user-select: none; }
details.gz-year > summary::-webkit-details-marker { display: none; }
details.gz-year > summary::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--fjord); border-bottom: 2.5px solid var(--fjord); transform: rotate(-45deg); transition: transform .15s; flex: none; }
details.gz-year[open] > summary::before { transform: rotate(45deg); }
details.gz-year > summary:hover { background: var(--snow); }
details.gz-year .yr { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--night); }
details.gz-year .count { color: var(--muted); font-size: .92rem; margin-left: auto; }
details.gz-year .gazette-grid { padding: 6px 20px 24px; }
