/* ── Sanna y Felo ───────────────────────────────────────────────
   Palette sampled from their own photographs: the deep red of the
   Faroese house wall behind their portraits, the turquoise and gold
   of the Caribbean/Faroe banner, honey wood from the cabin.
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg:         #0E2A1F;
  --surface:    #16382A;
  --surface-hi: #1D4634;
  --line:       #2A5741;
  --accent:     #B5252B;   /* Faroese barn red */
  --accent-lo:  #7E1A1E;
  --sea:        #2FBAA8;   /* Caribbean water */
  --sun:        #E8A94B;   /* sunset */
  --wood:       #B98A4B;   /* the cabin */
  --wood-lo:    #8A6234;
  --text:       #F4EFE6;
  --muted:      #A3BCAE;

  --wrap: 520px;
  --r: 18px;
  --switch:     #2E8B5F;   /* language toggle knob */
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A slow warm wash so the flat green doesn't read as dead space. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(47,186,168,.16), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(232,169,75,.07), transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px 56px;
}

/* ── Language toggle ─────────────────────────────────────────── */
.lang {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(244,239,230,.22);
  border-radius: 999px;
  background: rgba(9,25,18,.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  font: 500 12px/1 "DM Sans", sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
}
.lang .off  { opacity: .5; }
.lang .sep  { opacity: .35; }
.lang:hover { border-color: rgba(244,239,230,.4); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { text-align: center; }

.banner {
  position: relative;
  margin: 0 -18px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, #124034, #0E2A1F);
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: fade .6s var(--ease) both;
}
/* Let the photo sink into the page instead of ending on a hard edge. */
.banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent, rgba(14,42,31,.55) 45%, var(--bg));
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.avatars {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: -58px;
}
/* Each person's icons belong to that person — never one merged strip. */
.who .socials { gap: 10px; }
.who .socials a { width: 34px; height: 34px; }
.who .socials svg { width: 19px; height: 19px; }
.avatars:not(.one) .who { position: relative; }
.avatars:not(.one) .who + .who::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 128px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line), transparent);
}
.avatars.one { gap: 0; }

.who { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.avatar {
  display: block;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1.5px rgba(244,239,230,.35), 0 12px 26px rgba(0,0,0,.4);
  background: var(--surface);
  transition: transform .25s var(--ease);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
a.avatar:hover { transform: translateY(-3px); }

.who-name {
  margin: 0;
  font: 500 15px/1 "DM Sans", sans-serif;
  letter-spacing: .01em;
}
.flag { font-size: .9em; }

.name {
  margin: 16px 0 6px;
  font: 700 clamp(28px, 8vw, 34px)/1.1 "Fraunces", Georgia, serif;
  letter-spacing: -.01em;
}

.tagline {
  margin: 0 auto 18px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 15px;
}

/* ── Social icons ────────────────────────────────────────────── */
.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  opacity: .82;
  transition: opacity .2s, transform .2s var(--ease);
}
.socials svg { width: 23px; height: 23px; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }

.hero > .socials { margin-top: 4px; }

/* ── Blocks & section headers ────────────────────────────────── */
.block { margin-top: 30px; }

.sec {
  margin: 0 0 10px 2px;
  color: var(--muted);
  font: 500 11px/1 "DM Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  position: relative;
  display: block;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
  animation: rise .5s var(--ease) both;
}
.card:hover  { border-color: #3B7458; background: var(--surface-hi); }
.card:active { transform: translateY(1px); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.block:nth-of-type(1) .card { animation-delay: .05s; }
.block:nth-of-type(2) .card { animation-delay: .11s; }
.block:nth-of-type(3) .card { animation-delay: .17s; }
.block:nth-of-type(4) .card { animation-delay: .23s; }
.block:nth-of-type(5) .card { animation-delay: .29s; }

.card-body { display: block; padding: 14px 16px; }
.card-label { display: block; font-size: 16px; font-weight: 500; }
.card-meta  { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }

/* Simple full-width rows */
.card.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
}
.card.row .ico { display: grid; place-items: center; width: 22px; color: var(--muted); flex: none; }
.card.row .card-body { flex: 1; padding: 0; }
.card.row .card-body .card-meta { margin-top: 2px; text-align: left; }
.card.row .ico svg { width: 20px; height: 20px; }
.card.row .card-label { flex: 1; }
.card.row .card-meta { margin: 0; text-align: right; }

/* ── Video ───────────────────────────────────────────────────── */
.video .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0b2019;
}
.video .thumb img { width: 100%; height: 100%; object-fit: cover; }

.video .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  transition: transform .25s var(--ease);
}
.video .play svg { width: 26px; height: 26px; fill: var(--text); }
.video:hover .play { transform: scale(1.08); }
.video .card-title { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.35; }

/* ── Venezuela ───────────────────────────────────────────────── */
.vzla { padding-left: 10px; }

/* Tricolour ribbon down the left edge */
.vzla .ribbon {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(to bottom,
    #FFCE00 0 33.3%, #00247D 33.3% 66.6%, #CF142B 66.6%);
}
/* A flag catching the sun */
.vzla::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 30%, rgba(255,206,0,.10) 50%, transparent 68%);
}
.vzla .stars {
  display: block;
  width: 168px;
  height: 32px;
  margin: 15px auto -4px;
  fill: #fff;
}
.vzla .stars use {
  opacity: .62;
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.vzla:hover .stars use,
.vzla:focus-visible .stars use {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.9));
  transition-delay: calc(var(--i) * .07s);
}
.vzla .card-body { padding-top: 8px; text-align: center; }

/* ── The stay ────────────────────────────────────────────────── */
.stay {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-color: var(--wood-lo);
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(185,138,75,.20), transparent 62%),
    var(--surface);
}
.stay:hover { border-color: var(--wood); background:
    radial-gradient(120% 90% at 18% 0%, rgba(185,138,75,.30), transparent 62%),
    var(--surface-hi); }

.cabin { width: 66px; height: 80px; flex: none; }
.cabin-body   { fill: var(--wood-lo); }
.cabin-roof   { fill: none; stroke: var(--wood); stroke-width: 6; stroke-linecap: round; }
.cabin-door   { fill: #5E4123; }
.cabin-stilts rect { fill: #6B7A63; }
.cabin-steps  { fill: none; stroke: var(--wood-lo); stroke-width: 3; stroke-linejoin: round; }

/* the light goes on inside */
.cabin-win {
  fill: #3A2E1E;
  transition: fill .3s var(--ease), filter .3s var(--ease);
}
.stay:hover .cabin-win,
.stay:focus-visible .cabin-win {
  fill: var(--sun);
  filter: drop-shadow(0 0 7px rgba(232,169,75,.85));
}
.stay .card-body { padding: 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.foot {
  margin-top: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .06em;
}
.foot a { border-bottom: 1px solid rgba(163,188,174,.35); padding-bottom: 1px; }
.foot a:hover { color: var(--text); border-color: var(--text); }

/* ── Motion off ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* ══ Sand theme — /felo and /sanna ════════════════════════════════
   The root stays jungle green. These two go light: sand ground,
   deep-green type, and the same Faroese red on the play badge so the
   three pages still read as one family.
   ══════════════════════════════════════════════════════════════════ */

[data-theme="sand"] {
  --switch:     #2E8B5F;
  --bg:         #EDE4D4;
  --surface:    #F8F2E7;
  --surface-hi: #FFFDF8;
  --line:       #D9CCB5;
  --text:       #14392A;
  --muted:      #6B8577;
  --green:      #2E6B4F;
  --wood:       #9A6E36;
  --wood-lo:    #6E4C22;
}

[data-theme="sand"] body::before {
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(47,186,168,.10), transparent 70%),
    radial-gradient(70% 45% at 50% 100%, rgba(46,107,79,.07), transparent 70%);
}

[data-theme="sand"] .banner::after {
  background: linear-gradient(to bottom, transparent, rgba(237,228,212,.55) 45%, var(--bg));
}

/* The portrait sits inside the banner, not straddling its edge. */
.banner { position: relative; }

.avatars.inset {
  position: absolute;
  inset: 0;
  z-index: 3;
  align-items: flex-end;
  padding-bottom: 14px;
  margin: 0;
}
.avatars.inset .avatar {
  width: 132px;
  height: 132px;
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(20,57,42,.18), 0 14px 34px rgba(20,57,42,.28);
}

[data-theme="sand"] .name    { color: var(--text); margin-top: 12px; }
[data-theme="sand"] .tagline { color: var(--green); }
[data-theme="sand"] .sec     { color: var(--green); opacity: .8; }

[data-theme="sand"] .socials a { color: var(--green); opacity: .9; }
[data-theme="sand"] .socials a:hover { opacity: 1; }

[data-theme="sand"] .card {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20,57,42,.05);
}
[data-theme="sand"] .card:hover {
  border-color: var(--green);
  background: var(--surface-hi);
}
[data-theme="sand"] .card.row .ico { color: var(--green); }
[data-theme="sand"] .foot { color: var(--muted); }
[data-theme="sand"] .foot a { border-color: rgba(107,133,119,.5); }

/* Venezuela: no blue field — each star carries its own soft shadow
   so it lifts off the sand on its own. */
[data-theme="sand"] .vzla .stars { fill: #00247D; }
[data-theme="sand"] .vzla .stars use {
  opacity: 1;
  filter: drop-shadow(0 1.5px 2px rgba(20,57,42,.30));
}
[data-theme="sand"] .vzla:hover .stars use,
[data-theme="sand"] .vzla:focus-visible .stars use {
  filter: drop-shadow(0 2px 5px rgba(20,57,42,.7));
}
[data-theme="sand"] .vzla::after {
  background: linear-gradient(102deg, transparent 34%, rgba(255,206,0,.16) 50%, transparent 66%);
}

/* The cabin needs a deeper wood to hold up against sand. */
[data-theme="sand"] .cabin-body   { fill: var(--wood-lo); }
[data-theme="sand"] .cabin-roof   { stroke: var(--wood); }
[data-theme="sand"] .cabin-door   { fill: #3F2C13; }
[data-theme="sand"] .cabin-stilts rect { fill: #55684F; }
[data-theme="sand"] .cabin-win    { fill: #2C2412; }
[data-theme="sand"] .stay {
  border-color: var(--wood);
  background: radial-gradient(120% 90% at 18% 0%, rgba(154,110,54,.14), transparent 62%), var(--surface);
}
[data-theme="sand"] .stay:hover {
  background: radial-gradient(120% 90% at 18% 0%, rgba(154,110,54,.22), transparent 62%), var(--surface-hi);
}

/* ══ Language switch — an on/off pill, centred at the top ══════════ */
.lang {
  position: absolute;
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  width: 96px;
  padding: 3px;
  border: 1px solid rgba(244,239,230,.30);
  border-radius: 999px;
  background: rgba(9,25,18,.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 600 11.5px/1 "DM Sans", sans-serif;
  letter-spacing: .09em;
  cursor: pointer;
}
.lang .opt {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 24px;
  color: var(--text);
  opacity: .55;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
.lang .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--switch);
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  transition: transform .28s var(--ease);
}
.lang[data-lang="en"] .knob { transform: translateX(100%); }
.lang[data-lang="es"] .opt:first-of-type,
.lang[data-lang="en"] .opt:last-of-type { opacity: 1; color: #fff; }

[data-theme="sand"] .lang {
  border-color: rgba(20,57,42,.22);
  background: rgba(255,253,248,.72);
}
[data-theme="sand"] .lang .opt { color: var(--text); }


/* ══ Faroe Islands guide — a header link plus a three-row topic table ══ */
.guide { padding: 0; }
.guide-head {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}
.fcross { width: 30px; height: 22px; flex: none; border-radius: 3px;
          box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.guide-head .card-body { flex: 1; padding: 0; }
.guide .arrow { color: var(--muted); font-size: 15px; transition: transform .2s var(--ease); }
.guide a:hover .arrow { transform: translateX(3px); color: var(--text); }

.topics { margin: 0; padding: 0; list-style: none; }
.topics li + li { border-top: 1px solid var(--line); }
.topics a {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 16px; min-height: 52px;
  transition: background .2s;
}
.topics a:hover { background: rgba(255,255,255,.04); }
.tnum {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--sea); color: var(--sea);
  font: 600 11.5px/1 "DM Sans", sans-serif;
}
.tbody { display: block; }
.ttitle { display: block; font-size: 14.5px; font-weight: 500; }
.tdesc  { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
