:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color: #14253e;
  background: #f5f7f9;
  --navy: #102846;
  --blue: #17458e;
  --blue-dark: #10366f;
  --yellow: #ffd264;
  --muted: #4b5e75;
  --line: #dce4ed;
  --gutter: clamp(1rem, 4vw, 3.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #3067bc; outline-offset: 4px; }
[hidden] { display: none; }
section[id] { scroll-margin-top: 2rem; }

.shell { width: min(100% - 2 * var(--gutter), 86rem); margin-inline: auto; }
.content-width { width: min(100% - 2 * var(--gutter), 73rem); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 2; padding: .75rem 1rem; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: #fff; border-bottom: 1px solid #e7edf3; }
.header-inner {
  width: min(100% - 2 * var(--gutter), 86rem);
  min-height: 4.8rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; font-size: 1.3rem; font-weight: 750; letter-spacing: -.06em; text-decoration: none; }
.brand-dot { color: #2459a4; }
.header-inner nav, .header-actions { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.header-inner nav a { text-decoration: none; color: #334962; font-size: .9375rem; font-weight: 600; }
.header-inner nav a:hover, .site-footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .3em; }
.header-actions { justify-content: flex-end; gap: .5rem; white-space: nowrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .7rem 1.12rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  font-size: .9375rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.header-actions .button { min-height: 2.65rem; }
.button-quiet:hover { background: #edf3fa; }
.button-blue { background: var(--blue); color: #fff; }
.button-blue:hover { background: var(--blue-dark); }
.button-yellow { background: var(--yellow); color: #17243a; }
.button-yellow:hover { background: #ffe194; }
.button-outline { border-color: #a7bad2; color: white; }
.button-outline:hover { background: #ffffff19; border-color: white; }
.hero .button:focus-visible, .closing .button:focus-visible { outline-color: #fff; }

.hero {
  margin-top: clamp(1rem, 2.5vw, 2.25rem);
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  min-height: clamp(30rem, 40vw, 37rem);
  overflow: hidden;
  border-radius: 1.15rem;
  background: var(--navy);
  color: #fff;
}
.hero-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 4vw, 5rem);
}
.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.hero-eyebrow { display: flex; align-items: center; gap: .7rem; color: #dbe8fb; }
.swedish-flag { position: relative; display: inline-block; width: 1.45rem; height: .94rem; flex: none; overflow: hidden; border-radius: .12rem; background: #1766ad; vertical-align: -.09rem; }
.swedish-flag::before, .swedish-flag::after { content: ""; position: absolute; background: #ffd264; }
.swedish-flag::before { inset: 0 auto 0 31%; width: 14%; }
.swedish-flag::after { inset: 42% 0 auto; height: 18%; }
h1 { margin-top: 1.3rem; font-size: clamp(3.05rem, 5.15vw, 5.7rem); line-height: .99; letter-spacing: -.075em; font-weight: 750; }
h1 em { color: var(--yellow); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.085em; }
.hero-description { max-width: 25rem; margin-top: 1.6rem; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.62; color: #e0eaf8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.hero-photo { position: relative; min-width: 0; background: #27456b; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero-photo::after { content: ""; position: absolute; inset: 58% 0 0; background: linear-gradient(transparent, #0b193970); pointer-events: none; }
.hero-photo figcaption { display: flex; align-items: center; gap: .45rem; position: absolute; right: 1.15rem; bottom: 1.15rem; z-index: 1; padding: .55rem .8rem; border-radius: .4rem; background: #10223de8; color: white; font-size: .875rem; font-weight: 600; }
svg { display: block; width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.hero-photo svg { width: 1rem; height: 1rem; color: var(--yellow); }

.benefits { padding-block: clamp(3.8rem, 6.5vw, 6.5rem); text-align: center; }
.section-eyebrow { color: var(--blue); margin-bottom: .65rem; }
h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); font-weight: 750; line-height: 1.06; letter-spacing: -.065em; }
.section-intro { max-width: 39rem; margin: 1rem auto 0; }
.section-intro, .benefit p, .album-content > p:not(.eyebrow), .faq-list p, .account-panel > p { color: var(--muted); line-height: 1.65; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; text-align: left; }
.benefit { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .95rem; background: white; }
.icon-tile { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .75rem; background: #eaf1fb; color: var(--blue); }
.benefit h3 { margin: 1rem 0 .5rem; font-size: 1.25rem; letter-spacing: -.035em; }

.album-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.album-photo { position: relative; overflow: hidden; border-radius: 1rem; background: #d5e2ee; }
.album-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.album-photo figcaption { position: absolute; inset: auto auto .9rem .9rem; padding: .55rem .75rem; border-radius: .4rem; background: white; font-size: .875rem; font-weight: 650; }
.album-photo figcaption span { color: var(--blue); padding-inline: .2rem; }
.album-content > p:not(.eyebrow) { margin-top: 1rem; max-width: 31rem; }

.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; padding-block: clamp(3.8rem, 7vw, 7rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.65rem; padding-block: .75rem; list-style: none; cursor: pointer; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { padding: 0 1.25rem 1rem 0; }

.closing { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-radius: 1rem; background: var(--navy); color: #fff; padding: clamp(1.5rem, 4vw, 3.5rem); }
.closing h2 { font-size: clamp(1.85rem, 3.1vw, 3rem); }
.closing p { margin-top: .6rem; color: #e0eaf8; line-height: 1.55; }
.closing .button { flex-shrink: 0; }
.site-footer { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; min-height: 5.5rem; padding-block: 1rem; }
.footer-inner > p, .footer-inner > a:last-child { color: var(--muted); font-size: .875rem; }
.footer-inner .swedish-flag { margin-right: .35rem; }

.account-dialog { position: fixed; width: min(100% - 2rem, 29rem); max-height: calc(100% - 2rem); padding: clamp(1.5rem, 5vw, 2.4rem); border: 0; border-radius: 1rem; color: #14253e; box-shadow: 0 1rem 4rem #081e473d; }
.account-dialog::backdrop { background: #0b1b34a8; }
.close-dialog { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: .5rem; background: #edf3fa; color: var(--navy); }
.close-dialog:hover { background: #dee9f7; }
.close-dialog svg { width: 1.2rem; height: 1.2rem; }
.account-panel h2 { max-width: calc(100% - 1.2rem); font-size: clamp(1.75rem, 5vw, 2.35rem); }
.account-panel h2:focus { outline: none; }
.account-panel > p { margin-top: .65rem; }
.account-form { display: grid; gap: .85rem; margin-top: 1.2rem; }
.account-form label { display: grid; gap: .35rem; font-size: .9375rem; font-weight: 650; }
.account-form input { width: 100%; min-height: 2.8rem; padding: .5rem .7rem; border: 1px solid #a8b8cb; border-radius: .45rem; color: inherit; font-size: 1rem; font-weight: 400; }
.account-form .button { margin-top: .25rem; }
.account-panel .account-switch { margin-top: 1.1rem; font-size: .9375rem; }
.account-switch a { color: var(--blue); font-weight: 700; }
.maintenance .icon-tile { margin-bottom: .9rem; }
.maintenance .button { margin-top: 1.15rem; }
.noscript-message { padding: 1rem var(--gutter); background: var(--yellow); }

@media (max-width: 52rem) {
  .header-inner { grid-template-columns: 1fr auto; padding-block: .7rem; gap: .75rem 1rem; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; gap: 1.5rem; }
  .hero-content { padding: 2rem; }
  h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
}

@media (max-width: 40rem) {
  .brand { font-size: 1.15rem; gap: .42rem; }
  .header-inner .brand img { width: 1.9rem; height: 1.9rem; }
  .header-actions { gap: .12rem; }
  .header-actions .button { padding-inline: .55rem; font-size: .875rem; }
  .header-inner nav { justify-content: space-between; gap: .75rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 2rem 1.25rem; }
  h1 { font-size: clamp(2.65rem, 10vw, 4.4rem); }
  .hero-description { margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.3rem; }
  .hero-photo { min-height: 14rem; aspect-ratio: 5 / 3; }
  .hero-photo figcaption { right: .7rem; bottom: .7rem; }
  .benefit-grid, .album-section, .faq { grid-template-columns: 1fr; }
  .album-section, .faq { gap: 1.35rem; }
  .closing { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 22rem) {
  .header-inner { grid-template-columns: 1fr; }
  .header-inner nav { grid-row: 3; }
  .header-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
