:root {
  --ink: #17212b;
  --muted: #5f6975;
  --paper: #fffaf2;
  --soft: #f1eadf;
  --sea: #0b6f78;
  --sea-dark: #084d55;
  --sun: #f2b84b;
  --coral: #c95f4d;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 33, 43, 0.14);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 160px; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 24px;
  background-color: #041730;
  background-image: linear-gradient(90deg, rgba(4, 23, 48, 0.04), rgba(4, 23, 48, 0.18)), var(--header-logo);
  background-position: center, left center;
  background-size: cover, contain;
  background-repeat: no-repeat, no-repeat;
  background-origin: padding-box, content-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.12);
}
/* ── Header – rad 1: logobild ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #041730;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(23, 33, 43, 0.18);
}
.header-brand-row {
  background-image: linear-gradient(90deg, rgba(4,23,48,0.04), rgba(4,23,48,0.22)), var(--header-logo);
  background-position: center, left center;
  background-size: cover, contain;
  background-repeat: no-repeat, no-repeat;
  background-origin: padding-box, content-box;
  padding: 0 24px;
}
.header-brand-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}
.brand {
  display: block;
  min-height: 110px;
  text-decoration: none;
}
.brand-logo, .brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Header – rad 2: nav-länkrad ── */
.header-nav-row {
  background: rgba(4, 23, 48, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0 24px;
}
.nav-links {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 7px 0;
}
.nav-links a, .music-toggle {
  text-decoration: none;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--white);
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(8, 77, 85, 0.42);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.nav-links a:hover, .music-toggle:hover, .music-toggle.is-playing { background: rgba(8, 77, 85, 0.68); }
.mobile-nav { display: none; }
.hero {
  min-height: calc(100vh - 118px);
  display: grid;
  align-items: center;
  color: var(--white);
  background: linear-gradient(90deg, rgba(8, 77, 85, 0.88), rgba(8, 77, 85, 0.54) 47%, rgba(8, 77, 85, 0.08)), var(--hero-image) center / cover;
}
.hero-inner, .wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.hero-inner { padding: 76px 0 92px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #ffe9b5;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.hero-kicker::before { content: ""; width: 44px; height: 3px; background: var(--sun); border-radius: 999px; }
h1 { max-width: 790px; margin: 0; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 0.95; }
.hero-lead { max-width: 660px; margin: 28px 0 0; font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255, 255, 255, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.button, .trip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}
.button.primary { background: var(--sun); color: #1e262f; }
.button.secondary { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.38); background: rgba(255, 255, 255, 0.08); }
.section { padding: 84px 0; }
.section.alt { background: var(--soft); }
.intro { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr); gap: 42px; align-items: start; }
.section-label { margin: 0 0 12px; color: var(--coral); font-weight: 900; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.08em; }
h2 { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.04; }
.copy p, .trip-body p, .article p { margin: 0 0 18px; font-size: 1.08rem; color: #2d3742; }
.note-panel, .trip-card, .article-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 33, 43, 0.08);
}
.note-panel { position: sticky; top: 100px; padding: 26px; }
.note-panel h3 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.2; }
.note-panel p, .trip-heading p { margin: 0; color: var(--muted); }
.trip-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.trip-heading p { max-width: 520px; font-size: 1.05rem; }
.trips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trip-card { display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: 180px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.trip-card:hover { transform: translateY(-5px); box-shadow: 0 28px 60px rgba(23, 33, 43, 0.18); }
.trip-card--hidden { display: none !important; }
.trip-media { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.trip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.trip-card:hover .trip-media img { transform: scale(1.06); }
.trip-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.trips-more { text-align: center; margin-top: 36px; }
.date { color: var(--coral); font-weight: 900; text-transform: uppercase; font-size: 0.83rem; letter-spacing: 0.08em; margin-bottom: 10px; }
.trip-body h3 { margin: 0 0 12px; font-size: clamp(1.15rem, 1.8vw, 1.55rem); line-height: 1.15; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 24px; padding: 0; list-style: none; }
.facts li { padding: 7px 10px; border-radius: 999px; background: rgba(11, 111, 120, 0.1); color: var(--sea-dark); font-size: 0.9rem; font-weight: 800; }
.trip-link { min-height: 42px; padding: 0 14px; background: var(--sea); color: var(--white); font-size: 0.94rem; }
.trip-link.alt { background: transparent; color: var(--sea-dark); border: 1px solid rgba(8, 77, 85, 0.25); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.article-card { overflow: hidden; }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article { padding: clamp(24px, 4vw, 44px); }
/* ── Portal-sektion ─────────────────────────────────── */
.portal {
  padding: 48px 0 64px;
  background: var(--paper);
}

/* Grid – 3 kolumner */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Enskilt kort: text överst, bild fyller botten */
.portal-card {
  background: var(--white);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(23, 33, 43, 0.09);
  border: 1px solid rgba(23, 33, 43, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 100px;
}
.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(23, 33, 43, 0.15);
}

/* Textdel (övre halvan) */
.portal-card-body {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Typ-badge */
.portal-card-type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  background: var(--sea);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 9px;
  align-self: flex-start;
}

/* Datum */
.portal-card-date {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* Titel */
.portal-card-body h3 {
  margin: 0 0 10px;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.22;
  color: var(--ink);
  font-weight: 800;
}

/* Beskrivning */
.portal-card-body p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

/* Länkrad */
.portal-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* Pill-knappar – kompakta */
.portal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  border: 1.5px solid rgba(8, 77, 85, 0.28);
  color: var(--sea-dark);
  background: transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.portal-link:hover { background: var(--sea); color: var(--white); border-color: var(--sea); }
.portal-link--book { background: var(--sea); color: var(--white); border-color: var(--sea); }
.portal-link--book:hover { background: var(--sea-dark); border-color: var(--sea-dark); }

/* Bilddel (nedre halvan – fyller bredden) */
.portal-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}
.portal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portal-card:hover .portal-card-image img { transform: scale(1.05); }

/* Platshållare när ingen bild finns */
.portal-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--soft) 0%, #e0d8cd 100%);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--sea);
}

/* ── Övriga sidor ─────────────────────────────────── */
.page-hero { background: var(--sea-dark); color: var(--white); padding: 74px 0; }
.page-hero p { max-width: 680px; color: rgba(255,255,255,.86); font-size: 1.1rem; }
.closing { background: var(--sea-dark); color: var(--white); text-align: center; padding: 72px 0; }
.closing p { width: min(780px, calc(100% - 32px)); margin: 0 auto; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.15; font-weight: 900; }
footer { padding: 26px 0; background: #14202a; color: rgba(255, 255, 255, 0.72); text-align: center; font-size: 0.95rem; }
@media (max-width: 820px) {
  html { scroll-padding-top: 56px; }
  .site-header { position: relative; }
  .header-brand-row { padding: 0 14px; }
  .header-nav-row { padding: 0 14px; overflow-x: auto; }
  .nav-links { flex-wrap: nowrap; overflow-x: auto; padding: 7px 0; gap: 5px; width: auto; }
  .brand { min-height: 88px; }
  .mobile-nav { position: sticky; top: 0; z-index: 19; display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; background: #041730; }
  .mobile-nav a, .mobile-nav .music-toggle { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; font-size: .9rem; font-weight: 850; white-space: nowrap; }
  .hero { min-height: 620px; background: linear-gradient(180deg, rgba(8,77,85,.74), rgba(8,77,85,.52)), var(--hero-image) center / cover; }
  .intro { grid-template-columns: 1fr; }
  .trips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-panel { position: static; }
  .trip-heading { display: block; }
}
@media (max-width: 520px) {
  .section { padding: 48px 0; }
  .portal { padding: 36px 0 48px; }
  .portal-grid { grid-template-columns: 1fr; }
  .hero-actions, .link-row { flex-direction: column; }
  .button, .trip-link { width: 100%; }
  .trips { grid-template-columns: 1fr; }
}
