:root {
  --bg:#101613;
  --panel:#1a211c;
  --text:#e9e7dc;
  --muted:#a4ab9f;
  --accent:#d1b58a;
  --line:#343d34;
}

* { box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Georgia,'Times New Roman',serif;
  line-height:1.7;
}

a { color:inherit; text-decoration:none; }

header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:25px 7%;
  border-bottom:1px solid var(--line);
  background:#101613;
}

.logo {
  font-size:19px;
  letter-spacing:4px;
  font-weight:bold;
}

nav {
  display:flex;
  gap:25px;
  flex-wrap:wrap;
}

nav a {
  font-family:Arial,sans-serif;
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--muted);
}

nav a:hover { color:var(--accent); }

.hero {
  min-height:620px;
  display:flex;
  align-items:center;
  padding:90px 9%;
  background:
    linear-gradient(90deg,rgba(10,17,13,.93),rgba(10,17,13,.3)),
    url('/assets/images/hero.jpg') center/cover;
}

.hero-content { max-width:750px; }

.eyebrow {
  color:var(--accent);
  letter-spacing:4px;
  font:12px Arial,sans-serif;
  text-transform:uppercase;
}

h1 {
  font-size:clamp(48px,7vw,100px);
  font-weight:normal;
  line-height:1.05;
  margin:25px 0;
}

h2 {
  font-size:clamp(32px,4vw,56px);
  font-weight:normal;
  line-height:1.2;
}

h3 {
  font-size:27px;
  font-weight:normal;
}

p { color:var(--muted); }

.hero p {
  font-size:19px;
  max-width:570px;
}

.button {
  display:inline-block;
  margin-top:25px;
  padding:15px 28px;
  border:1px solid var(--accent);
  color:var(--accent);
  font:12px Arial,sans-serif;
  letter-spacing:2px;
  text-transform:uppercase;
}

.button:hover {
  background:var(--accent);
  color:#101613;
}

section { padding:85px 9%; }

.section-heading {
  max-width:760px;
  margin-bottom:45px;
}

.grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:25px;
}

.card {
  background:var(--panel);
  border:1px solid var(--line);
  overflow:hidden;
}

.card img {
  width:100%;
  height:260px;
  object-fit:cover;
  display:block;
  transition:transform .4s;
}

.card:hover img { transform:scale(1.035); }

.card-body { padding:25px; }

.meta {
  color:var(--accent);
  font:11px Arial,sans-serif;
  letter-spacing:2px;
  text-transform:uppercase;
}

.card h3 { margin:12px 0; }

.feature {
  background:#1a211c;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.feature-inner {
  max-width:850px;
  margin:auto;
  text-align:center;
}

.article {
  max-width:850px;
  margin:auto;
}

.article img {
  width:100%;
  max-height:530px;
  object-fit:cover;
  margin:25px 0;
}

.article p { font-size:18px; }

footer {
  padding:45px 9%;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

footer small {
  color:var(--muted);
  font:12px Arial,sans-serif;
}

@media(max-width:850px) {
  header {
    flex-direction:column;
    gap:20px;
  }

  nav {
    justify-content:center;
    gap:15px;
  }

  .grid { grid-template-columns:1fr; }

  .hero { min-height:520px; }

  section { padding:60px 6%; }
}


/* THE QUIET EARTH — PHOTO EDITION */

.hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(10,17,13,.92),
      rgba(10,17,13,.30)
    ),
    url('/assets/images/hero.jpg');
  background-position:center;
  background-size:cover;
}

.site-menu-button {
  display:none;
  appearance:none;
  background:transparent;
  color:#e9e7dc;
  border:1px solid #49554a;
  border-radius:6px;
  padding:9px 14px;
  font:20px Arial,sans-serif;
  cursor:pointer;
}

.card img,
.article img {
  background:#25332a;
}

.article img {
  border-radius:3px;
  cursor:zoom-in;
}

.photo-lightbox {
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.95);
  align-items:center;
  justify-content:center;
  padding:20px;
}

.photo-lightbox.open {
  display:flex;
}

.photo-lightbox img {
  max-width:96vw;
  max-height:88vh;
  object-fit:contain;
}

.photo-lightbox button {
  position:absolute;
  top:20px;
  right:20px;
  border:1px solid #777;
  background:#151515;
  color:white;
  border-radius:50%;
  width:44px;
  height:44px;
  font-size:25px;
  cursor:pointer;
}

.photo-credit {
  font:12px Arial,sans-serif;
  color:#a4ab9f;
  margin-top:8px;
}

.photo-credit a {
  color:#d1b58a;
}

.credits-list {
  display:grid;
  gap:22px;
}

.credit-item {
  padding:22px;
  border:1px solid #343d34;
  background:#1a211c;
}

.credit-item p {
  overflow-wrap:anywhere;
}

@media(max-width:850px) {
  header {
    position:relative;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    padding:18px 6%;
    gap:10px;
  }

  header .logo {
    font-size:14px;
    letter-spacing:2px;
  }

  .site-menu-button {
    display:block;
  }

  header nav {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    z-index:100;
    padding:18px 6% 25px;
    background:#101613;
    border-bottom:1px solid #343d34;
    flex-direction:column;
    gap:0;
  }

  header nav.menu-open {
    display:flex;
  }

  header nav a {
    display:block;
    padding:13px 4px;
    border-bottom:1px solid #29332b;
  }

  .article h1 {
    font-size:clamp(42px,11vw,65px);
    overflow-wrap:break-word;
  }

  .article h2 {
    font-size:clamp(26px,7vw,37px);
  }

  .hero {
    min-height:540px;
  }

  .hero p {
    font-size:17px;
  }
}


/* THE QUIET EARTH — INTERACTIVE ATLAS V1 */

.qe-atlas {
  margin:55px 0 75px;
}

.qe-atlas-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}

.qe-atlas-heading h2 {
  margin:12px 0;
}

.qe-map-counter {
  color:#d1b58a;
  font:12px Arial,sans-serif;
  letter-spacing:3px;
  white-space:nowrap;
}

.qe-map {
  position:relative;
  width:100%;
  aspect-ratio:2 / 1;
  min-height:260px;
  overflow:hidden;
  background:
    radial-gradient(
      ellipse at 50% 45%,
      #20352e 0%,
      #101d1a 75%
    );
  border:1px solid #435448;
}

.qe-map-grid {
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(
      rgba(190,190,170,.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(190,190,170,.08) 1px,
      transparent 1px
    );
  background-size:10% 25%;
}

.qe-map-land {
  position:absolute;
  background:#52684e;
  opacity:.7;
  filter:drop-shadow(0 0 15px rgba(0,0,0,.2));
}

/* Stylized continents, not a navigational map. */

.qe-land-america {
  left:9%;
  top:13%;
  width:23%;
  height:40%;
  clip-path:polygon(
    0 20%,20% 0,70% 5%,100% 35%,
    78% 70%,55% 80%,40% 100%,
    20% 65%,5% 55%
  );
}

.qe-land-south-america {
  left:27%;
  top:47%;
  width:13%;
  height:46%;
  clip-path:polygon(
    20% 0,85% 12%,100% 40%,
    65% 75%,45% 100%,
    20% 65%,0 30%
  );
}

.qe-land-europe {
  left:47%;
  top:15%;
  width:14%;
  height:27%;
  clip-path:polygon(
    0 20%,35% 0,85% 10%,
    100% 55%,60% 100%,15% 80%
  );
}

.qe-land-africa {
  left:46%;
  top:40%;
  width:18%;
  height:46%;
  clip-path:polygon(
    15% 0,75% 0,100% 35%,
    70% 75%,45% 100%,
    10% 70%,0 30%
  );
}

.qe-land-asia {
  left:58%;
  top:12%;
  width:35%;
  height:43%;
  clip-path:polygon(
    0 20%,20% 0,75% 0,
    100% 25%,85% 60%,
    65% 80%,40% 100%,
    20% 70%,5% 65%
  );
}

.qe-land-australia {
  left:79%;
  top:70%;
  width:13%;
  height:20%;
  clip-path:polygon(
    10% 25%,50% 0,95% 30%,
    80% 85%,35% 100%,0 65%
  );
}

.qe-pin {
  position:absolute;
  z-index:5;
  transform:translate(-50%,-50%);
  width:35px;
  height:35px;
  border-radius:50%;
  border:1px solid rgba(209,181,138,.6);
  background:rgba(209,181,138,.15);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.qe-pin span {
  width:11px;
  height:11px;
  background:#d1b58a;
  border-radius:50%;
  box-shadow:0 0 18px #d1b58a;
}

.qe-pin:hover,
.qe-pin.active {
  background:rgba(209,181,138,.4);
  transform:translate(-50%,-50%) scale(1.15);
}

.qe-pin:focus-visible {
  outline:2px solid white;
  outline-offset:4px;
}

.qe-map-label {
  position:absolute;
  left:20px;
  color:rgba(230,230,215,.55);
  font:10px Arial,sans-serif;
  letter-spacing:2px;
  pointer-events:none;
}

.qe-map-label-top {
  top:18px;
}

.qe-map-label-bottom {
  bottom:18px;
}

.qe-map-info {
  display:grid;
  grid-template-columns:40% 60%;
  border:1px solid #343d34;
  border-top:0;
  background:#1a211c;
}

.qe-map-info img {
  width:100%;
  height:100%;
  min-height:300px;
  object-fit:cover;
}

.qe-map-info-text {
  padding:30px 35px;
}

.qe-map-info-text h3 {
  font-size:35px;
  margin:12px 0;
}

.qe-map-coordinates {
  margin-top:20px;
  color:#d1b58a;
  font:12px Arial,sans-serif;
  letter-spacing:2px;
}

.qe-map-info-text .button {
  margin-top:25px;
}

@media(max-width:700px) {
  .qe-atlas-heading {
    align-items:start;
    flex-direction:column;
  }

  .qe-map {
    aspect-ratio:1.5 / 1;
  }

  .qe-map-info {
    grid-template-columns:1fr;
  }

  .qe-map-info img {
    height:230px;
    min-height:0;
  }

  .qe-map-info-text {
    padding:25px;
  }

  .qe-map-info-text h3 {
    font-size:29px;
  }

  .qe-pin {
    width:28px;
    height:28px;
  }

  .qe-pin span {
    width:9px;
    height:9px;
  }

  .qe-map-label {
    font-size:8px;
  }
}
