/* Protection Island Community Foundation site styles. Single light theme. */

:root {
  --ink: #0d2730;      /* dark bands, headings */
  --ink-2: #16444f;    /* footer rule */
  --sea: #2a6f7c;      /* icons, rules, links on paper */
  --glass: #8fd3c9;    /* accent on dark bands */
  --fog: #eef2f3;      /* page background */
  --fog-2: #d7e0e3;    /* hairlines */
  --fog-dim: #b3c3c7;  /* secondary text on dark bands */
  --drift: #5b6a6e;    /* secondary text on paper */
  --lamp: #ffd08a;     /* lighthouse lamp */
  --lantern: #b8403c;  /* lantern roof */

  --font-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, system-ui, sans-serif;
  --measure: 62ch;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--glass); outline-offset: 3px; }

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

.hero { background: var(--ink); color: var(--fog); }

.hero__inner {
  padding-block: 1.5rem 2.75rem;
  display: grid;
  gap: 2.75rem;
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mark {
  display: inline-block;
  width: 46px;
  height: 46px;
  color: var(--fog);
}
.mark svg { display: block; width: 100%; height: 100%; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glass);
}

.wordmark {
  margin: 0;
  display: grid;
  gap: 0.4em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}
.wordmark__island {
  font-size: clamp(2.3rem, 7vw, 5.25rem);
  letter-spacing: 0.01em;
}
.wordmark__found {
  font-size: clamp(0.95rem, 2vw, 1.4rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--glass);
  padding-left: 0.12em;
}

.hero__lede {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--fog-dim);
}

.panorama { height: clamp(240px, 38vw, 460px); }
.panorama svg { display: block; width: 100%; height: 100%; }

.lamp { animation: lamp 6s ease-in-out infinite alternate; }
@keyframes lamp {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lamp { animation: none; opacity: 0.9; }
}

/* Body ------------------------------------------------------------------ */

main {
  display: grid;
  gap: 4.5rem;
  padding-block: 4.5rem 5rem;
}

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.tide {
  display: block;
  width: 120px;
  height: 12px;
  margin-bottom: 1.25rem;
  color: var(--sea);
  opacity: 0.7;
}

.areas__grid {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3.5rem;
}

.area {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1.1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fog-2);
}
.area__icon { width: 2.25rem; height: 2.25rem; color: var(--sea); }
.area__icon svg { display: block; width: 28px; height: 28px; }
.area h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.25;
}
.area p { margin: 0; max-width: 44ch; color: var(--drift); }

.status {
  max-width: var(--measure);
  padding-block: 1.5rem;
  border-top: 1px solid var(--fog-2);
  border-bottom: 1px solid var(--fog-2);
  color: var(--drift);
  font-size: 0.95rem;
}
.status p { margin: 0; }

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

.foot {
  background: var(--ink);
  color: var(--fog-dim);
  font-size: 0.92rem;
}
.foot__inner {
  padding-block: 2.5rem 3rem;
  display: grid;
  gap: 1.75rem;
}
.foot__ack { margin: 0; max-width: var(--measure); }
.foot__contact { margin: 0; }
.foot a { color: var(--glass); }
.foot__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-2);
}
.foot__name { font-family: var(--font-display); color: var(--fog); letter-spacing: 0.02em; }

@media (max-width: 40rem) {
  .areas__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  main { gap: 3.5rem; padding-block: 3.25rem 4rem; }
}
