/* Vinter 2.0 – alexanderhertzberg.se
   Separat tillägg. Ladda EFTER style.css. Aktiveras av season.js via
   <html data-season="winter">. Inga bilder, externa fonter eller animationer.
   Ursprungligt innehåll, layout, navigering och interaktioner bevaras. */
:root[data-season="winter"] {
  color-scheme: light;
  --winter-ink: #203746;
  --winter-deep: #142b3b;
  --winter-ice: #e8f3f7;
  --winter-frost: #b2d3df;
  --winter-burgundy: #762c40;
}
html[data-season="winter"] body { background-color: #f5fafc; }
/* Midnattsblå navigation ersätter ordinarie rödsvart gradient. */
html[data-season="winter"] .header {
  background-color: #152b3b;
  background-image: linear-gradient(105deg, #102333 0%, #234557 72%, #355d6c 100%);
  border-bottom: 1px solid rgba(202,233,245,.3);
}
html[data-season="winter"] .topnav a.active { background: #763248; color: #fff; }
html[data-season="winter"] .topnav a:hover { background: #e2f0f5; color: #142b3b; }
/* Isdis och norrskensliknande färgfält skapas med ren CSS. */
html[data-season="winter"] .home-page .hero-intro {
  color: var(--winter-ink);
  background:
    radial-gradient(ellipse 54% 65% at 86% 13%, rgba(126,185,197,.48) 0%, transparent 71%),
    radial-gradient(ellipse 42% 53% at 12% 78%, rgba(166,189,224,.38) 0%, transparent 77%),
    radial-gradient(ellipse 45% 44% at 54% 2%, rgba(222,243,243,.85), transparent 83%),
    linear-gradient(141deg,#f8fcff 0%, #e1eff5 53%, #c8e1e9 100%);
  border-bottom: 1px solid #bcd5df;
}
/* Geometriska frostpaneler, bakom text och porträtt. */
html[data-season="winter"] .home-page .hero-intro::before {
  background: linear-gradient(142deg,rgba(255,255,255,.68),rgba(129,178,197,.15));
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 14px 18px 55px rgba(38,97,119,.09), inset 0 0 0 1px rgba(188,219,229,.22);
  transform: rotate(-14deg);
}
html[data-season="winter"] .home-page .hero-intro::after {
  background: linear-gradient(135deg,rgba(128,176,194,.2),rgba(255,255,255,.5));
  border: 1px solid rgba(255,255,255,.6);
  transform: rotate(17deg);
}
html[data-season="winter"] .home-page .hero-intro h1 { color:#193342; }
html[data-season="winter"] .home-page .hero-kicker { color:#782d42; }
html[data-season="winter"] .home-page .hero-lead { color:#1e4051; }
html[data-season="winter"] .home-page .hero-text { color:#314b59; }
html[data-season="winter"] .home-page .hero-portrait-wrap::before {
  background: linear-gradient(150deg,rgba(244,253,255,.78),rgba(100,161,186,.34));
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 25px 65px rgba(24,73,98,.18), inset 0 1px 18px rgba(255,255,255,.6);
}
html[data-season="winter"] .home-page .hero-portrait-wrap::after {
  background:rgba(160,205,220,.32);
  border:1px solid rgba(255,255,255,.55);
}
/* Knapparna förblir vinröda så att webbplatsen känns igen. */
html[data-season="winter"] .home-page .hero-actions .knapp:not(.knapp--secondary) {
  background:#762c40; color:#fff;
}
html[data-season="winter"] .home-page .hero-actions .knapp:not(.knapp--secondary):hover { background:#572033; }
html[data-season="winter"] .home-page .knapp.knapp--secondary {
  background:rgba(255,255,255,.58); color:#203b4c;
  border-color:#7d9dab; box-shadow:none;
}
html[data-season="winter"] .home-page .knapp.knapp--secondary:hover { background:#fff; color:#132c3b; }
/* Övergång mellan sektionerna: kallt ljus men samma mått och innehåll. */
html[data-season="winter"] .home-page .about-layout {
  background:linear-gradient(180deg,#f8fcfe 0%,#f1f8fb 100%);
  border-top-color:#c5dee7;
}
html[data-season="winter"] .home-page .about-eyebrow { color:#762c40; }
html[data-season="winter"] .home-page .about-skills li {
  background:#e7f1f5; border-color:#bfd9e2; color:#254254;
}
/* Tydligt midnattsblått citatblock, utan att påverka bildspelets JS. */
html[data-season="winter"] #reko.testimonials {
  background-color:#122a3b;
  background-image:
    radial-gradient(ellipse at 100% 0%,rgba(71,138,159,.33),transparent 53%),
    linear-gradient(120deg,#102838 0%,#1e4152 56%,#153344 100%);
  border-top:1px solid #577d8c;
}
/* Portfolio får lätt isblå ytor och mjukare kanter. */
html[data-season="winter"] .home-page .portfolio-section {
  background-color:#f4f9fc;
  background-image:linear-gradient(180deg,#f3f9fc 0%,#edf5f9 100%);
}
html[data-season="winter"] .home-page .project-card {
  background:#fff;
  border-color:#cbdfe7;
  box-shadow:0 9px 24px rgba(24,65,85,.075);
}
html[data-season="winter"] .home-page .project-card h3 { color:#203746; }
/* Bloggen använder samma vinterpalett; korttexterna förblir mörka. */
html[data-season="winter"] .blogg-page .blog-overview-hero {
  background:linear-gradient(120deg,#f8fcfe,#e0f0f6);
  border-bottom:1px solid #c6dce6;
}
html[data-season="winter"] .blogg-page .blog-overview-list { background:#f1f8fb; }
html[data-season="winter"] .blogg-page .blog-overview-card {
  background:#fff; border-color:#c9dfe7;
  box-shadow:0 6px 20px rgba(25,68,89,.06);
}
html[data-season="winter"] .blogg-page .blog-overview-card .blog-overview-card-body h3 { color:#252d35; }
/* Gemensam sidfot. */
html[data-season="winter"] .site-footer {
  background:linear-gradient(125deg,#102332 0%,#1e3b4b 100%);
  border-top:1px solid #466d80;
}
html[data-season="winter"] .site-footer .footer-identity p {color:#d6e4eb;}
/* Respektera användarens preferenser: ingen växlande rörelse tillkommer. */
@media (prefers-reduced-motion: reduce) {
  html[data-season="winter"] *,html[data-season="winter"] *::before,html[data-season="winter"] *::after {scroll-behavior:auto;}
}

/* Vinter 2.1 – kontrast, aktiv navigation och stillsam frost i heron. */
/* Aktiv sida: ta bort bakgrund även i mobilmenyn, behåll befintlig understrykning. */
html[data-season="winter"] .topnav a.active,
html[data-season="winter"] .topnav a.active:hover,
html[data-season="winter"] .topnav a.active:focus-visible {
  background: transparent;
  color: #fff;
}
html[data-season="winter"] .topnav a.active::after {
  background: #b9e7f2;
}
@media (max-width: 820px) {
  html[data-season="winter"] .topnav { background: #142b3b; border-top-color: #567887; }
}

/* Citatens roll-/titelrad behöver högre kontrast mot blå bakgrund. */
html[data-season="winter"] #reko.testimonials .testimonial-slider > p,
html[data-season="winter"] #reko.testimonials .testimonial-slider > p span,
html[data-season="winter"] #reko.testimonials .testimonial-slider > p small {
  color: #edf7fb;
}
html[data-season="winter"] #reko.testimonials .testimonial-slider > p a {
  color: #ffffff;
}
html[data-season="winter"] #reko.testimonials .testimonial-slider > p a:hover,
html[data-season="winter"] #reko.testimonials .testimonial-slider > p a:focus-visible {
  color: #d6f3ff;
}

/* Samtliga rubriknivåer och artikellänkar i portfoliokorten ska vara läsbara. */
html[data-season="winter"] .home-page .portfolio-section .portfolio-heading,
html[data-season="winter"] .home-page .project-card h3,
html[data-season="winter"] .home-page .project-card h4 {
  color: #152e3f;
}
html[data-season="winter"] .home-page .project-card p { color: #293d49; }
html[data-season="winter"] .home-page .project-card .project-link { color: #653044; }
html[data-season="winter"] .home-page .project-card .project-link:hover,
html[data-season="winter"] .home-page .project-card .project-link:focus-visible { color: #3e1a2a; }

/* Extra vintrig hero: tunna stillastående iskristallmönster ovanpå vintergradienten. */
html[data-season="winter"] .home-page .hero-intro {
  background-image:
    radial-gradient(circle at 82% 24%, rgba(255,255,255,.93) 0 2px, transparent 3px),
    radial-gradient(circle at 69% 64%, rgba(255,255,255,.85) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 15%, rgba(255,255,255,.82) 0 2px, transparent 3px),
    radial-gradient(ellipse 54% 65% at 86% 13%, rgba(126,185,197,.58) 0%, transparent 71%),
    radial-gradient(ellipse 42% 53% at 12% 78%, rgba(166,189,224,.43) 0%, transparent 77%),
    linear-gradient(141deg,#fcfeff 0%, #dceff7 53%, #bad9e6 100%);
}
html[data-season="winter"] .home-page .hero-portrait-wrap::before {
  background:
    linear-gradient(132deg, rgba(255,255,255,.8) 0%, rgba(221,245,252,.56) 25%, rgba(77,145,172,.27) 80%),
    repeating-linear-gradient(135deg, transparent 0 20px, rgba(255,255,255,.14) 21px 22px, transparent 23px 40px);
  border: 2px solid rgba(250,254,255,.95);
  box-shadow:
    0 24px 65px rgba(18,74,102,.19),
    inset 0 0 30px rgba(255,255,255,.82),
    0 0 0 8px rgba(227,247,253,.28);
}
html[data-season="winter"] .home-page .hero-portrait-wrap::after {
  background:
    linear-gradient(45deg, transparent 47%, rgba(240,252,255,.9) 48% 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(240,252,255,.9) 48% 52%, transparent 53%),
    linear-gradient(90deg, transparent 47%, rgba(240,252,255,.9) 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(240,252,255,.9) 48% 52%, transparent 53%),
    rgba(134,191,212,.38);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 0 24px rgba(236,253,255,.85);
  transform: rotate(15deg);
}
@media (max-width: 600px) {
  /* Håll vinterdekoren diskret på liten skärm och ändra inte porträttets storlek. */
  html[data-season="winter"] .home-page .hero-intro {
    background-image: linear-gradient(155deg, #fbfeff 0%, #e3f2f8 65%, #cfe6ef 100%);
  }
}


/* ================================================================
   VINTER 2.2 – tydlig frost i headern och förbättrad kontrast
   Läggs ovanpå version 2.1 och påverkar enbart vinterläget.
   ================================================================ */

/* Iskant som faktiskt syns mot den mörkblå navigeringen.
   Pseudoelementet fångar aldrig klick och påverkar inte menyhöjden. */
html[data-season="winter"] .header {
  position: fixed;
  isolation: isolate;
  border-bottom: 3px solid #d9f6ff;
  background-image:
    radial-gradient(ellipse at 12% -28%, rgba(215,246,255,.27), transparent 38%),
    radial-gradient(ellipse at 77% -35%, rgba(192,235,250,.20), transparent 42%),
    linear-gradient(105deg,#0b2132 0%,#173c51 65%,#28566c 100%);
  box-shadow: 0 3px 0 rgba(146,209,231,.62), 0 10px 24px rgba(16,54,76,.18);
}
html[data-season="winter"] .header::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 100%;
  pointer-events: none;
  background-image:
    /* glittrande iskristaller */
    radial-gradient(circle at 7% 20%, rgba(246,254,255,.85) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 31% 66%, rgba(238,252,255,.75) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 24%, rgba(246,254,255,.78) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 83% 45%, rgba(246,254,255,.87) 0 1.5px, transparent 2.5px),
    /* tydligt frostade hörn – små grenliknande isformationer */
    repeating-linear-gradient(133deg, rgba(233,250,255,.33) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(47deg, rgba(219,246,255,.21) 0 1px, transparent 1px 15px),
    linear-gradient(to bottom, rgba(215,247,255,.20), transparent 36%, transparent 73%, rgba(210,245,255,.24));
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.46) 14%, transparent 29%, transparent 70%, rgba(0,0,0,.49) 86%, #000 100%);
  mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.46) 14%, transparent 29%, transparent 70%, rgba(0,0,0,.49) 86%, #000 100%);
}
/* Menylänkar ligger tydligt ovanför den dekorativa frosten. */
html[data-season="winter"] .header > * { position: relative; z-index: 1; }
html[data-season="winter"] .topnav a.active,
html[data-season="winter"] .topnav a.active:hover,
html[data-season="winter"] .topnav a.active:focus-visible {
  background: transparent;
  /* Endast den befintliga ::after-linjen används som aktiv markering. */
  text-decoration: none;
}

/* Citattecknet är ett CSS-genererat tecken, inte vanlig citattext. */
html[data-season="winter"] #reko .testimonial-slider .testimonial::before {
  color: #e8fbff;
  text-shadow: 0 2px 14px rgba(132,211,242,.42);
}

/* Korttitlar: säkra mörk kontrast även om grund-CSS eller länkstil vinner. */
html[data-season="winter"] .home-page #portfolio .portfolio-heading,
html[data-season="winter"] .home-page .portfolio-section .portfolio-heading,
html[data-season="winter"] .home-page .portfolio-section .project-card h3,
html[data-season="winter"] .home-page .portfolio-section .project-card h3 a,
html[data-season="winter"] .home-page .portfolio-section .project-card h4,
html[data-season="winter"] .home-page .portfolio-section .project-card h4 a,
html[data-season="winter"] .home-page .portfolio-section .project-card .project-contribution h4 {
  color: #102638 !important;
  -webkit-text-fill-color: #102638;
  text-shadow: none;
}
html[data-season="winter"] .home-page .portfolio-section .project-card {
  background: #fbfdff;
  border-color: #a7cbd8;
}

/* Mer synlig frusen ytstruktur i heron, helt utan bildfil eller rörelse. */
html[data-season="winter"] .home-page .hero-intro {
  background-image:
    radial-gradient(circle at 6% 12%, rgba(255,255,255,.96) 0 2px, transparent 3px),
    radial-gradient(circle at 19% 78%, rgba(255,255,255,.88) 0 2px, transparent 3px),
    radial-gradient(circle at 73% 16%, rgba(255,255,255,.94) 0 2px, transparent 3px),
    radial-gradient(circle at 91% 65%, rgba(255,255,255,.90) 0 2px, transparent 3px),
    repeating-linear-gradient(135deg, rgba(255,255,255,.20) 0 1px, transparent 1px 34px),
    radial-gradient(ellipse 55% 68% at 82% 23%, rgba(117,180,212,.59), transparent 74%),
    radial-gradient(ellipse 43% 49% at 6% 89%, rgba(160,194,224,.50), transparent 77%),
    linear-gradient(142deg,#faffff 0%,#d8eef8 52%,#abcfe0 100%);
  box-shadow: inset 0 9px 28px rgba(210,243,253,.43), inset 0 -4px 0 rgba(245,253,255,.82);
}
html[data-season="winter"] .home-page .hero-portrait-wrap::before {
  border: 3px solid rgba(251,254,255,.98);
  box-shadow: 0 22px 62px rgba(22,82,112,.19), inset 0 0 36px rgba(255,255,255,.82), 0 0 0 10px rgba(215,243,253,.32);
}
@media (max-width: 600px) {
  html[data-season="winter"] .header::after { opacity: .8; }
  html[data-season="winter"] .home-page .hero-intro {
    background-image:
      radial-gradient(circle at 14% 18%, rgba(255,255,255,.95) 0 2px, transparent 3px),
      radial-gradient(circle at 83% 23%, rgba(255,255,255,.95) 0 2px, transparent 3px),
      linear-gradient(152deg,#faffff,#dceff8 66%,#b6d7e6);
  }
}
@media (forced-colors: active) {
  html[data-season="winter"] .header::after { display:none; }
  html[data-season="winter"] .home-page .portfolio-section .project-card h3,
  html[data-season="winter"] .home-page .portfolio-section .project-card h4 {
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText;
  }
}


/* Vinter 2.3 – EN understrykning i menyn och ljusare sidfot */
/* Den ordinarie navigeringen ritar sin aktiva linje via ::after.
   Ta bort webbläsarens text-understrykning, men behåll markeringen. */
html[data-season="winter"] .topnav a.active,
html[data-season="winter"] .topnav a.active:hover,
html[data-season="winter"] .topnav a.active:focus-visible,
html[data-season="winter"] .topnav a[aria-current="page"],
html[data-season="winter"] .topnav a[aria-current="page"]:hover,
html[data-season="winter"] .topnav a[aria-current="page"]:focus-visible {
  text-decoration: none;
  background: transparent;
  color: #f8fcff;
}
html[data-season="winter"] .topnav a.active::after,
html[data-season="winter"] .topnav a[aria-current="page"]::after {
  background-color: #d5f4ff;
  height: 2px;
}
/* Footer – tillräckligt ljus text mot den midnattsblå bakgrunden. */
html[data-season="winter"] .site-footer {
  color: #f6fbff;
}
html[data-season="winter"] .site-footer .footer-name,
html[data-season="winter"] .site-footer .footer-links a,
html[data-season="winter"] .site-footer .footer-bottom a {
  color: #ffffff;
}
html[data-season="winter"] .site-footer .footer-identity p,
html[data-season="winter"] .site-footer .footer-bottom p,
html[data-season="winter"] .site-footer .footer-inner p {
  color: #e3f1f8;
}
html[data-season="winter"] .site-footer a:hover {
  color: #bfeeff;
  text-decoration: underline;
}
html[data-season="winter"] .site-footer a:focus-visible {
  outline-color: #ffffff;
}


/* =============================================================
   NORDIC WINTER 2.4 — visible frost, snow and aurora.
   Append after Winter 2.3. No HTML, scripts or images required.
   ============================================================= */
:root[data-season="winter"] {
  --winter-glacier: #dff6ff;
  --winter-northern-light: #76d7c8;
}
/* Iced glass: crystalline frost concentrated at the edges of navigation.
   The ::after layer is entirely decorative and never blocks interactions. */
html[data-season="winter"] .header {
  border-bottom: 3px solid #f0fcff;
  background-image:
    radial-gradient(ellipse 36% 170% at 5% -35%, rgba(211,251,255,.34), transparent 75%),
    radial-gradient(ellipse 28% 120% at 97% -28%, rgba(201,242,255,.29), transparent 80%),
    linear-gradient(105deg,#081c2c,#14394f 58%,#23556b);
  box-shadow: 0 2px 0 #a8d9eb, 0 7px 20px rgba(21,64,88,.24);
}
html[data-season="winter"] .header::after {
  opacity: 1;
  height: 100%;
  background-image:
    /* star-shaped ice crystals near the top corners */
    linear-gradient(25deg, transparent 48%,rgba(239,253,255,.55) 49%,rgba(239,253,255,.55) 51%,transparent 52%),
    linear-gradient(155deg, transparent 48%,rgba(239,253,255,.45) 49%,rgba(239,253,255,.45) 51%,transparent 52%),
    repeating-linear-gradient(126deg,transparent 0 11px,rgba(229,250,255,.35) 12px,transparent 13px 24px),
    repeating-linear-gradient(54deg,transparent 0 13px,rgba(217,247,255,.31) 14px,transparent 15px 28px),
    radial-gradient(circle at 5% 70%,#fff 0 2px,transparent 3px),
    radial-gradient(circle at 96% 40%,#effcff 0 2px,transparent 3px),
    linear-gradient(to bottom,rgba(235,253,255,.30),transparent 53%,rgba(222,250,255,.24));
  -webkit-mask-image: linear-gradient(to right,#000 0%,rgba(0,0,0,.80) 10%,transparent 27%,transparent 73%,rgba(0,0,0,.80) 90%,#000 100%);
  mask-image: linear-gradient(to right,#000 0%,rgba(0,0,0,.80) 10%,transparent 27%,transparent 73%,rgba(0,0,0,.80) 90%,#000 100%);
}
/* Single navigation underline: use only the site's existing ::after line. */
html[data-season="winter"] .topnav a.active,
html[data-season="winter"] .topnav a[aria-current="page"] {
  background: transparent;
  text-decoration: none;
  box-shadow: none;
  border-bottom-color: transparent;
}
html[data-season="winter"] .topnav a.active::after,
html[data-season="winter"] .topnav a[aria-current="page"]:not(:last-child)::after {
  height: 2px;
  background: #daf6ff;
}
/* Layered icy glow and static snow-speckle texture in the hero. */
html[data-season="winter"] .home-page .hero-intro {
  background-color: #d4ebf5;
  background-image:
    radial-gradient(circle at 10% 22%,rgba(255,255,255,.98) 0 2px,transparent 3px),
    radial-gradient(circle at 27% 83%,rgba(255,255,255,.88) 0 1px,transparent 2px),
    radial-gradient(circle at 45% 9%,rgba(255,255,255,.90) 0 2px,transparent 3px),
    radial-gradient(circle at 80% 17%,rgba(255,255,255,.96) 0 2px,transparent 3px),
    radial-gradient(circle at 92% 75%,rgba(255,255,255,.94) 0 2px,transparent 3px),
    radial-gradient(ellipse 48% 70% at 83% 50%,rgba(123,197,224,.55),transparent 79%),
    radial-gradient(ellipse 44% 60% at 15% 90%,rgba(255,255,255,.8),transparent 90%),
    linear-gradient(142deg,#fbfeff 4%,#e3f3fa 46%,#b7dce9 100%);
  box-shadow: inset 0 -8px 0 rgba(255,255,255,.62),inset 0 25px 38px rgba(251,255,255,.35);
}
/* Keep original hero decorative panel geometry; make it visibly frosted. */
html[data-season="winter"] .home-page .hero-intro::before {
  background:
    repeating-linear-gradient(45deg,transparent 0 24px,rgba(255,255,255,.26) 25px 26px,transparent 27px 46px),
    linear-gradient(135deg,rgba(255,255,255,.66),rgba(150,204,222,.12));
  border: 2px solid rgba(255,255,255,.78);
  box-shadow: inset 0 0 35px rgba(255,255,255,.65),0 8px 35px rgba(44,116,149,.13);
}
html[data-season="winter"] .home-page .hero-intro::after {
  background:
    repeating-linear-gradient(135deg,transparent 0 20px,rgba(250,254,255,.44) 21px 22px,transparent 23px 39px),
    linear-gradient(155deg,rgba(255,255,255,.64),rgba(121,186,206,.17));
  border: 2px solid rgba(255,255,255,.72);
  box-shadow: inset 0 0 32px rgba(255,255,255,.58);
}
html[data-season="winter"] .home-page .hero-portrait-wrap::before {
  border: 3px solid #f6fdff;
  box-shadow: 0 0 0 9px rgba(218,245,253,.47),0 0 0 11px rgba(255,255,255,.55),0 23px 64px rgba(32,96,127,.2),inset 0 0 35px rgba(255,255,255,.9);
}
/* Snow-capped portfolio cards: no ::before needed, so cards retain layout. */
html[data-season="winter"] .home-page .portfolio-section .project-card {
  border: 1px solid #9fc4d4;
  border-top: 5px solid #ecfaff;
  background-image:
    radial-gradient(ellipse 45px 12px at 8% 0%,rgba(209,235,245,.90) 40%,transparent 100%),
    radial-gradient(ellipse 60px 14px at 49% 0%,rgba(214,238,248,.86) 45%,transparent 100%),
    radial-gradient(ellipse 38px 10px at 93% 0%,rgba(216,240,249,.9) 40%,transparent 100%),
    linear-gradient(#fbfeff,#f5fbfe);
  box-shadow: 0 10px 32px rgba(28,89,120,.12),inset 0 6px 0 rgba(232,248,255,.8);
  transition: border-color .18s ease,box-shadow .18s ease;
}
html[data-season="winter"] .home-page .portfolio-section .project-card:hover,
html[data-season="winter"] .home-page .portfolio-section .project-card:focus-within {
  border-color: #629fbd;
  border-top-color: #e6f8ff;
  box-shadow: 0 11px 34px rgba(28,89,120,.17);
}
html[data-season="winter"] .home-page .portfolio-section .project-card h3,
html[data-season="winter"] .home-page .portfolio-section .project-card h4,
html[data-season="winter"] .home-page .portfolio-section .project-card h3 a,
html[data-season="winter"] .home-page .portfolio-section .project-card h4 a {
  color: #102638 !important;
  -webkit-text-fill-color: #102638;
}
/* Static northern lights on the testimonials panel, beneath all content. */
html[data-season="winter"] #reko.testimonials {
  background-color: #0b2435;
  background-image:
    radial-gradient(ellipse 54% 40% at 15% -12%,rgba(82,211,178,.35),transparent 85%),
    radial-gradient(ellipse 37% 55% at 68% 0%,rgba(89,160,217,.37),transparent 85%),
    radial-gradient(ellipse 30% 55% at 92% 30%,rgba(145,133,219,.18),transparent 85%),
    linear-gradient(130deg,#0b2232 0%,#15394a 57%,#102b3d 100%);
  border-top: 3px solid rgba(177,238,238,.7);
}
html[data-season="winter"] #reko .testimonial-slider .testimonial,
html[data-season="winter"] #reko .testimonial-slider p,
html[data-season="winter"] #reko .testimonial-slider small,
html[data-season="winter"] #reko .testimonial-slider span {
  color: #f4fbff;
}
html[data-season="winter"] #reko .testimonial-slider .testimonial::before {
  color: #e7fbff;
  text-shadow: 0 0 16px rgba(174,242,255,.75);
}
/* Frost finishing the page, with strong footer readability. */
html[data-season="winter"] .site-footer {
  border-top: 3px solid #b6dfec;
  background-image: radial-gradient(ellipse 80% 90% at 50% 0%,rgba(69,126,157,.36),transparent 85%),linear-gradient(125deg,#0b2232,#17384c);
  color: #f6fbff;
}
html[data-season="winter"] .site-footer a,
html[data-season="winter"] .site-footer .footer-name {color: #fff;}
html[data-season="winter"] .site-footer p {color: #e7f3fb;}
@media (max-width: 600px) {
  html[data-season="winter"] .header::after {opacity:.9;}
  html[data-season="winter"] .home-page .hero-intro {
    background-image: radial-gradient(circle at 12% 13%,#fff 0 1px,transparent 2px),radial-gradient(circle at 87% 26%,#fff 0 2px,transparent 3px),radial-gradient(ellipse at 80% 35%,rgba(157,207,224,.48),transparent 80%),linear-gradient(150deg,#fbfeff,#dceff7 72%,#bfddea);
  }
  html[data-season="winter"] .home-page .portfolio-section .project-card {border-top-width: 4px;}
}
@media (forced-colors: active) {
  html[data-season="winter"] .header::after {display:none;}
  html[data-season="winter"] .home-page .portfolio-section .project-card h3,
  html[data-season="winter"] .home-page .portfolio-section .project-card h4 {color:CanvasText !important;-webkit-text-fill-color:CanvasText;}
}

/* =============================================================
   NORDIC WINTER 2.5 — even more winter atmosphere
   Stronger aurora, visible frost, snowdrifts and colder surfaces.
   Appended after 2.4 so it overrides earlier winter rules only.
   ============================================================= */
:root[data-season="winter"] {
  --winter-snow: #f7fdff;
  --winter-ice-glow: #d9f5ff;
  --winter-polar: #9edaf0;
  --winter-aurora-1: rgba(121, 224, 196, 0.34);
  --winter-aurora-2: rgba(122, 198, 255, 0.28);
  --winter-aurora-3: rgba(173, 150, 255, 0.18);
}

html[data-season="winter"] body {
  background:
    radial-gradient(ellipse at top, rgba(238,249,255,.75), transparent 46%),
    linear-gradient(180deg, #f7fcff 0%, #eef7fb 100%);
}

/* Stronger winter identity in the global chrome */
html[data-season="winter"] .header {
  border-bottom: 4px solid #f4fdff;
  background-image:
    radial-gradient(ellipse 42% 165% at 2% -44%, rgba(224,248,255,.44), transparent 78%),
    radial-gradient(ellipse 34% 145% at 98% -40%, rgba(210,242,255,.40), transparent 80%),
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(95,189,215,.10), transparent 80%),
    linear-gradient(106deg, #071927 0%, #12354a 58%, #214f66 100%);
  box-shadow:
    0 2px 0 #bbe8f4,
    0 8px 26px rgba(12, 49, 72, .28),
    inset 0 -1px 0 rgba(255,255,255,.18);
}
html[data-season="winter"] .header::after {
  background-image:
    radial-gradient(circle at 4% 22%, rgba(255,255,255,.98) 0 2px, transparent 3px),
    radial-gradient(circle at 11% 64%, rgba(244,253,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 89% 26%, rgba(255,255,255,.98) 0 2px, transparent 3px),
    radial-gradient(circle at 95% 68%, rgba(241,252,255,.96) 0 2px, transparent 3px),
    repeating-linear-gradient(126deg, transparent 0 10px, rgba(235,252,255,.42) 11px 12px, transparent 13px 23px),
    repeating-linear-gradient(54deg, transparent 0 12px, rgba(219,247,255,.36) 13px 14px, transparent 15px 26px),
    linear-gradient(to bottom, rgba(241,253,255,.42), transparent 58%, rgba(224,249,255,.22));
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.88) 12%, transparent 31%, transparent 69%, rgba(0,0,0,.88) 88%, #000 100%);
  mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,.88) 12%, transparent 31%, transparent 69%, rgba(0,0,0,.88) 88%, #000 100%);
}
html[data-season="winter"] .topnav a {
  text-shadow: 0 1px 0 rgba(0,0,0,.16);
}
html[data-season="winter"] .topnav a.active::after,
html[data-season="winter"] .topnav a[aria-current="page"]::after {
  height: 2px;
  background: #effcff;
  box-shadow: 0 0 10px rgba(225,249,255,.55);
}

/* Winter hero: more visible aurora, snowdrifts and icy brightness */
html[data-season="winter"] .home-page .hero-intro {
  position: relative;
  overflow: hidden;
  background-color: #dceff7;
  background-image:
    radial-gradient(ellipse 46% 28% at 18% 8%, var(--winter-aurora-1), transparent 76%),
    radial-gradient(ellipse 42% 24% at 62% 2%, var(--winter-aurora-2), transparent 76%),
    radial-gradient(ellipse 26% 18% at 84% 14%, var(--winter-aurora-3), transparent 82%),
    radial-gradient(circle at 8% 24%, rgba(255,255,255,.98) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 74%, rgba(255,255,255,.92) 0 2px, transparent 3px),
    radial-gradient(circle at 43% 10%, rgba(255,255,255,.96) 0 2px, transparent 3px),
    radial-gradient(circle at 66% 17%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 86% 24%, rgba(255,255,255,.97) 0 2px, transparent 3px),
    radial-gradient(circle at 94% 76%, rgba(255,255,255,.93) 0 2px, transparent 3px),
    radial-gradient(ellipse 45% 55% at 84% 48%, rgba(136,205,227,.62), transparent 77%),
    radial-gradient(ellipse 38% 42% at 14% 90%, rgba(255,255,255,.88), transparent 88%),
    linear-gradient(145deg, #fbfeff 0%, #e8f5fb 44%, #c1dfeb 100%);
  box-shadow:
    inset 0 -12px 0 rgba(248,253,255,.95),
    inset 0 20px 42px rgba(248,253,255,.36),
    inset 0 -22px 26px rgba(232,245,251,.55);
}
/* The existing geometric panels become more icy and luminous */
html[data-season="winter"] .home-page .hero-intro::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.54) 0 2px, transparent 3px),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.28) 19px 20px, transparent 21px 36px),
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(161,214,231,.18));
  border: 2px solid rgba(255,255,255,.86);
  box-shadow: inset 0 0 38px rgba(255,255,255,.72), 0 10px 38px rgba(41,109,139,.14);
}
html[data-season="winter"] .home-page .hero-intro::after {
  background:
    radial-gradient(circle at 74% 28%, rgba(255,255,255,.56) 0 2px, transparent 3px),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(250,254,255,.46) 19px 20px, transparent 21px 34px),
    linear-gradient(155deg, rgba(255,255,255,.70), rgba(128,191,211,.20));
  border: 2px solid rgba(255,255,255,.78);
  box-shadow: inset 0 0 34px rgba(255,255,255,.62), 0 8px 30px rgba(45,105,132,.10);
}
/* Lower edge feels colder and slightly snowier. */
html[data-season="winter"] .home-page .hero-intro {
  border-bottom: 1px solid #b7d6e2;
}
html[data-season="winter"] .home-page .hero-portrait-wrap::before {
  border: 3px solid #fbfeff;
  background:
    linear-gradient(140deg, rgba(255,255,255,.78), rgba(167,220,235,.26)),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(250,254,255,.22) 15px 16px, transparent 17px 28px);
  box-shadow:
    0 0 0 10px rgba(221,247,255,.54),
    0 0 0 12px rgba(255,255,255,.56),
    0 24px 68px rgba(22,84,114,.22),
    inset 0 0 42px rgba(255,255,255,.92);
}
html[data-season="winter"] .home-page .hero-kicker {
  color: #6c2b3f;
  text-shadow: 0 1px 0 rgba(255,255,255,.42);
}
html[data-season="winter"] .home-page .hero-intro h1 {
  color: #102a39;
}
html[data-season="winter"] .home-page .hero-lead,
html[data-season="winter"] .home-page .hero-text {
  color: #1b4050;
}

/* Snowier cards and slightly colder surrounding surfaces */
html[data-season="winter"] .home-page .portfolio-section {
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,.78), transparent 45%),
    linear-gradient(180deg, #f7fcff 0%, #edf6fa 100%);
}
html[data-season="winter"] .home-page .portfolio-section .project-card {
  border: 1px solid #a9cddd;
  border-top: 6px solid #f2fcff;
  background-image:
    radial-gradient(ellipse 58px 16px at 10% 0%, rgba(230,245,250,.96) 40%, transparent 100%),
    radial-gradient(ellipse 72px 16px at 47% 0%, rgba(232,246,251,.96) 42%, transparent 100%),
    radial-gradient(ellipse 52px 14px at 84% 0%, rgba(231,246,250,.94) 40%, transparent 100%),
    linear-gradient(#fcfeff, #f4fafc);
  box-shadow: 0 12px 34px rgba(28,89,120,.13), inset 0 7px 0 rgba(236,249,255,.92);
}
html[data-season="winter"] .home-page .portfolio-section .project-card h3,
html[data-season="winter"] .home-page .portfolio-section .project-card h4,
html[data-season="winter"] .home-page .portfolio-section .project-card h3 a,
html[data-season="winter"] .home-page .portfolio-section .project-card h4 a,
html[data-season="winter"] .home-page .portfolio-section .portfolio-heading {
  color: #0c2233 !important;
  -webkit-text-fill-color: #0c2233;
}
html[data-season="winter"] .home-page .portfolio-section .project-card p {
  color: #25404c;
}

/* More visible northern lights and crisper quote marks */
html[data-season="winter"] #reko.testimonials {
  background-color: #081e2e;
  background-image:
    radial-gradient(ellipse 62% 44% at 10% -8%, rgba(109, 233, 188, .42), transparent 76%),
    radial-gradient(ellipse 38% 54% at 56% -2%, rgba(109, 180, 239, .42), transparent 82%),
    radial-gradient(ellipse 32% 46% at 92% 16%, rgba(165, 139, 248, .24), transparent 84%),
    linear-gradient(132deg, #081f2f 0%, #12394c 58%, #0c2a3b 100%);
  border-top: 3px solid rgba(203, 245, 255, .88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
html[data-season="winter"] #reko .testimonial-slider .testimonial::before {
  color: #f3fdff;
  text-shadow: 0 0 18px rgba(194,246,255,.82), 0 0 3px rgba(255,255,255,.95);
}
html[data-season="winter"] #reko .testimonial-slider > p,
html[data-season="winter"] #reko .testimonial-slider > p span,
html[data-season="winter"] #reko .testimonial-slider > p small,
html[data-season="winter"] #reko .testimonial-slider a {
  color: #f5fbff;
}

/* Footer becomes more like the end of a frozen night landscape */
html[data-season="winter"] .site-footer {
  border-top: 4px solid #caecf7;
  background-image:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(89, 160, 196, .28), transparent 80%),
    linear-gradient(125deg, #091c2b, #143349 58%, #102a3d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
html[data-season="winter"] .site-footer .footer-name,
html[data-season="winter"] .site-footer .footer-links a,
html[data-season="winter"] .site-footer .footer-bottom a {
  color: #ffffff;
}
html[data-season="winter"] .site-footer .footer-identity p,
html[data-season="winter"] .site-footer .footer-bottom p,
html[data-season="winter"] .site-footer .footer-inner p,
html[data-season="winter"] .site-footer p {
  color: #edf7fb;
}
html[data-season="winter"] .site-footer a:hover,
html[data-season="winter"] .site-footer a:focus-visible {
  color: #d7f3ff;
}

/* Mobile: keep the effect clearly wintery but not too visually noisy. */
@media (max-width: 600px) {
  html[data-season="winter"] .header::after { opacity: .95; }
  html[data-season="winter"] .home-page .hero-intro {
    background-image:
      radial-gradient(ellipse 55% 18% at 20% 2%, rgba(121,224,196,.18), transparent 74%),
      radial-gradient(ellipse 45% 16% at 78% 5%, rgba(122,198,255,.22), transparent 76%),
      radial-gradient(circle at 13% 16%, rgba(255,255,255,.98) 0 1px, transparent 2px),
      radial-gradient(circle at 86% 22%, rgba(255,255,255,.98) 0 2px, transparent 3px),
      radial-gradient(circle at 72% 74%, rgba(255,255,255,.9) 0 1px, transparent 2px),
      linear-gradient(150deg, #fbfeff 0%, #e3f2f8 66%, #c7e1eb 100%);
  }
  html[data-season="winter"] .home-page .portfolio-section .project-card {
    border-top-width: 5px;
  }
}

@media (forced-colors: active) {
  html[data-season="winter"] .header::after { display: none; }
  html[data-season="winter"] .home-page .portfolio-section .project-card h3,
  html[data-season="winter"] .home-page .portfolio-section .project-card h4,
  html[data-season="winter"] .home-page .portfolio-section .portfolio-heading {
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText;
  }
}
