/* The index of the guides. Same palette and type as the atlases themselves, so
   arriving at one from here does not feel like leaving a site. */
:root {
  --ink: #18312f;
  --muted: #61716e;
  --deep: #103d38;
  --sea: #1c655d;
  --gold: #dfaa48;
  --rust: #bf6547;
  --cream: #f2eee4;
  --paper: #fffdf8;
  --line: #d9d3c7;
  --shadow: 0 18px 58px rgba(25, 45, 42, 0.12);
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}
a {
  color: inherit;
}
.wrap {
  max-width: 1280px;
  margin: auto;
  padding-inline: 20px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background: linear-gradient(160deg, #17403a, #2b4f4a 55%, #6b5a48);
}
.hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--gold), #f0ce83, var(--rust));
}
.hero-in {
  max-width: 1280px;
  margin: auto;
  padding: clamp(46px, 8vw, 96px) 20px clamp(40px, 6vw, 76px);
}
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.82;
}
.hero h1 {
  font-family: "Literata", Georgia, serif;
  letter-spacing: -0.04em;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.86;
  margin: 0.14em 0 0.3em;
}
.hero p {
  max-width: 720px;
  margin: 0;
  color: #fffaf1;
  font-size: clamp(1rem, 1.9vw, 1.22rem);
}
.hero-meta {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 0.83rem;
  font-weight: 600;
}

main {
  padding-block: clamp(36px, 5vw, 64px) 40px;
}
.group + .group {
  margin-top: clamp(40px, 5vw, 68px);
}
.group-head h2 {
  font-family: "Literata", Georgia, serif;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 4px;
}
.group-head p {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 640px;
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}
.atlas {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.atlas:hover,
.atlas:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 26px 66px rgba(25, 45, 42, 0.2);
}
.atlas-cover {
  position: relative;
  min-height: 208px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 18px 20px;
  color: white;
  background-position: center;
  background-size: cover;
}
.atlas-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 16, 15, 0.05),
    rgba(5, 25, 23, 0.82)
  );
}
.atlas-cover > * {
  position: relative;
  z-index: 1;
}
.atlas-where {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.86;
}
.atlas-name {
  font-family: "Literata", Georgia, serif;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.atlas-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}
.atlas-body h3 {
  margin: 0;
  font-size: 1.05rem;
}
.atlas-dates {
  margin: 3px 0 12px;
  color: var(--sea);
  font-weight: 700;
  font-size: 0.9rem;
}
.atlas-what {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.93rem;
}
.atlas-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.atlas-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ee;
  font-size: 0.76rem;
  font-weight: 600;
}
.atlas-go {
  margin-top: 16px;
  color: var(--sea);
  font-weight: 700;
  font-size: 0.9rem;
}
.atlas:hover .atlas-go span {
  margin-left: 4px;
}

.site-footer {
  padding-block: 26px 70px;
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 72px);
}
.footer-note {
  margin: 0;
  max-width: 900px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding-inline: 14px;
  }
  .hero-in {
    padding-inline: 14px;
  }
  .atlas-grid {
    grid-template-columns: 1fr;
  }
}
