/* Færøerne 2027 — shared stylesheet.
   Mobile-first: the site is read on a phone in the car and on the trail.
   No external fonts or CDNs — it has to load on hotel and mobile networks. */

:root {
  /* Palette: basalt, moss, fog, sea. Picked for the Faroese landscape. */
  --basalt: #1d242a;
  --basalt-soft: #2c363f;
  --slate: #55646f;
  --fog: #e8eaea;
  --paper: #f6f5f1;
  --moss: #4f6b4a;
  --moss-light: #6f8c68;
  --sea: #35607c;
  --sea-light: #5b8aa6;
  --sand: #c9b79a;
  --rust: #9c5433;
  --line: #d6d8d6;

  --shadow-sm: 0 1px 2px rgba(29, 36, 42, 0.08), 0 2px 8px rgba(29, 36, 42, 0.06);
  --shadow-md: 0 2px 6px rgba(29, 36, 42, 0.10), 0 10px 28px rgba(29, 36, 42, 0.10);

  --radius: 14px;
  --nav-h: 56px;
  --wrap: 1080px;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* `clip` and not `hidden`: `overflow-x: hidden` on html kills position:sticky. */
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--basalt);
  font-family: var(--sans);
  /* 16px minimum everywhere — iOS zooms on smaller text in form fields. */
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

/* [hidden] must come before any display rule that would otherwise win. */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sea);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--basalt);
  color: var(--fog);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.9rem;
  min-height: var(--nav-h);
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.nav-brand span {
  color: var(--sand);
  font-size: 0.85rem;
  font-family: var(--sans);
  font-weight: 400;
  margin-left: 0.45rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--fog);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--basalt-soft);
}

.nav-links a[aria-current='page'] {
  background: var(--moss);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--basalt);
  color: var(--paper);
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 46vw;
  min-height: 220px;
  max-height: 440px;
  object-fit: cover;
  opacity: 0.6;
}

.hero-text {
  position: relative;
  padding: 1.6rem 0 1.9rem;
  background: var(--basalt);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--sand);
  margin: 0 0 0.5rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 8vw, 3.2rem);
  margin-bottom: 0.3rem;
  color: #fff;
}

.hero-dates {
  font-size: 1.05rem;
  color: var(--fog);
  margin: 0;
}

/* ---------- Page header for the inner pages ---------- */

.page-head {
  background: var(--basalt);
  color: var(--paper);
  padding: 1.5rem 0 1.6rem;
}

.page-head h1 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.page-head p {
  margin: 0;
  color: var(--fog);
  max-width: 56ch;
}

/* ---------- Sections and cards ---------- */

main {
  padding: 1.6rem 0 2.5rem;
}

section {
  margin-bottom: 2.4rem;
}

section > h2 {
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--line);
}

.lead {
  font-size: 1.05rem;
  color: var(--basalt-soft);
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.15rem;
}

.card h3 {
  margin-bottom: 0.35rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--slate);
  margin: 0 0 0.3rem;
}

.card-value {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0;
}

/* ---------- Countdown ---------- */

.countdown {
  background: var(--moss);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.4rem;
}

.countdown-number {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 14vw, 4rem);
  line-height: 1;
  display: block;
}

.countdown-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0.35rem 0 0;
}

/* ---------- Photo shortcuts ---------- */

.shortcuts {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.shortcut {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow-md);
  background: var(--basalt);
}

.shortcut img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  opacity: 0.85;
}

.shortcut-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  background: linear-gradient(to top, rgba(18, 23, 27, 0.88), rgba(18, 23, 27, 0));
}

.shortcut-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.shortcut-caption span {
  font-size: 0.85rem;
  color: var(--fog);
}

/* ---------- Figures with photo credit ---------- */

figure {
  margin: 0 0 1.4rem;
}

figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

figcaption {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 0.4rem;
  line-height: 1.5;
}

.photo-credit {
  display: block;
  font-size: 0.76rem;
  color: var(--slate);
}

/* ---------- Tables ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 460px;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--fog);
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--basalt-soft);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: none;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

tfoot td {
  font-weight: 700;
  background: var(--fog);
  border-top: 2px solid var(--slate);
}

/* ---------- Day plan ---------- */

.day {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--sea);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
}

.day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.7rem;
  margin-bottom: 0.6rem;
}

.day-date {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.day-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.day ul {
  margin: 0 0 0.8rem;
  padding-left: 1.15rem;
}

.day li {
  margin-bottom: 0.3rem;
}

.day-meta {
  font-size: 0.85rem;
  color: var(--slate);
  border-top: 1px dashed var(--line);
  padding-top: 0.55rem;
  margin: 0;
}

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: 1px;
}

.badge-booked {
  background: #e0ece0;
  color: #2f5c2f;
}

.badge-estimate {
  background: #f2e6d4;
  color: #7a5320;
}

.badge-open {
  background: #f0dcd6;
  color: var(--rust);
}

.badge-free {
  background: var(--fog);
  color: var(--basalt-soft);
}

/* ---------- Callouts ---------- */

.note {
  border-left: 4px solid var(--sand);
  background: #fdfbf6;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1rem;
  margin: 0 0 1.2rem;
}

.note strong {
  display: block;
  margin-bottom: 0.2rem;
}

.note-warn {
  border-left-color: var(--rust);
  background: #fdf6f3;
}

.note p:last-child {
  margin-bottom: 0;
}

.recommend {
  border: 2px solid var(--moss);
  background: #f3f7f1;
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1.4rem;
}

.recommend h3 {
  color: var(--moss);
  margin-top: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--basalt);
  color: var(--fog);
  padding: 1.8rem 0 2.2rem;
  font-size: 0.86rem;
  line-height: 1.6;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
}

.site-footer a {
  color: var(--sand);
}

.site-footer ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.sources {
  word-break: break-word;
}

.disclaimer {
  border-top: 1px solid var(--slate);
  padding-top: 0.9rem;
  margin-top: 0.4rem;
  color: var(--fog);
}

/* ---------- Larger screens ---------- */

@media (min-width: 620px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.75rem; }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .shortcuts { grid-template-columns: repeat(3, 1fr); }
  .shortcut img { height: 160px; }

  main { padding: 2.2rem 0 3rem; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .shortcut img { height: 200px; }
  .hero img { height: 38vw; }
}

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