:root {
  --ink: #082438;
  --hero: #06343c;
  --mint: #9ac7af;
  --paper: #f4f4ed;
  --line: #dfe5df;
}

.geist-normal {
  font-family: "Geist", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Geist", sans-serif;
  color: var(--ink);
  background: #eef0e9;
}

.page {
  width: min(1440px, calc(100% - 48px));
  min-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-mark { width: 25px; height: 25px; }

.nav {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-left: auto;
}

.nav-link {
  color: #294651;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  font-family: "Geist", sans-serif;
}

.nav-link.active { color: var(--hero); }

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--hero);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  font-family: "Geist", sans-serif;
  text-decoration: none;
}

.menu-button { display: none; }

.archive-section {
  min-height: 620px;
}

.archive-hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 48px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(2, 34, 43, .98) 0%, rgba(5, 48, 56, .94) 48%, rgba(7, 58, 62, .55) 100%),
    radial-gradient(circle at 75% 30%, #5a8b82 0, #06343c 48%, #062832 100%);
  color: #fff;
}

.hero-copy { min-width: 640px; }

.archive-hero {
  justify-content: space-between;
  gap: 24px;
}

.search {
  width: 320px;
  height: 42px;
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 2px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}

.search:focus-within {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .16);
}

.search svg {
  width: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #d9e7e2;
  stroke-width: 1.8;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.search input::placeholder { color: #bcd0c9; }

.hero-kicker {
  display: none;
  margin: 0 0 8px;
  color: #bfd5cb;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.archive-hero h1 {
  margin: 0 0 7px;
  font-family: "Geist", sans-serif;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.archive-hero p:not(.hero-kicker) {
  max-width: 640px;
  margin: 0;
  color: #cddbd7;
  font-size: 16px;
  line-height: 1.5;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: -100px;
  padding: 0 24px;
}

.folder-card {
  min-width: 0;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(44, 69, 67, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.folder-photo {
  border-radius: 8px;
  width: 100%;
  height: 280px;
  display: block;
  order: -1;
  object-fit: cover;
  object-position: center 58%;
  image-rendering: smooth;
  margin-bottom: 20px;
}

.folder-card::before,
.folder-card:nth-child(2n)::before {
  content: none;
}

.folder-card h2 {
  margin: 0 0 5px;
  font-family: "Geist", sans-serif;
  font-size: 16px;
  line-height: 1.15;
}

.folder-card p {
  margin: 0;
  color: #6d7f7b;
  font-size: 14px;
  line-height: 1.45;
}

.folder-arrow,
.folder-icon { display: none; }

.empty-state {
  margin: 18px 22px 0;
  padding: 60px 20px;
  border: 1px dashed #bfcac4;
  color: #6d7f7b;
  text-align: center;
}

@media (max-width: 760px) {
  .page { width: 100%; min-height: 100vh; margin: 0; border-radius: 0; }
  .site-header { height: 72px; padding: 0 18px; }
  .nav { display: none; }
  .nav.open {
    position: absolute;
    z-index: 10;
    top: 72px;
    right: 12px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    width: 210px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(20, 45, 48, .12);
  }
  .nav.open .nav-link,
  .nav.open .nav-button {
    padding: 12px;
  }
  .menu-button {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    border: 0;
    background: transparent;
  }
  .menu-button span { width: 21px; height: 2px; margin-left: auto; background: var(--ink); }
  .archive-section { min-height: calc(100vh - 72px); padding: 0 12px 24px; }
  .archive-hero {
    min-height: 220px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
  }
  .search { width: 100%; flex-basis: 42px; margin: 12px 0 0; }
  .hero-kicker { display: block; }
  .archive-hero h1 { font-size: 31px; }
  .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 4px 0; }
}

@media (max-width: 480px) {
  .folder-grid { grid-template-columns: 1fr; }
  .folder-card { min-height: 180px; }
  .folder-card::before { height: 92px; }
}
