/* namu.land - Editorial land-survey journal */
:root {
  --linen: #F4F0E8;
  --bark: #2C2418;
  --lichen: #6A7248;
  --clay: #8A7458;
  --canopy: #3A4A28;
  --parchment: #EAE2D0;
  --branch: #B8A888;
  --root: #1A1408;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--linen);
  color: var(--bark);
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.85;
}

/* Masthead */
.masthead {
  padding: 8vh 8vw 4vh;
}
.masthead-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-style: italic;
  color: var(--bark);
  line-height: 1.1;
}
.masthead-rule {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  border-top: 1px solid var(--branch);
  padding-top: 0.5rem;
}
.tree-profile {
  width: 30px;
  height: 40px;
  margin-left: auto;
}
.masthead-subtitle {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

/* Survey */
.survey {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.survey-entry {
  margin-bottom: 4rem;
}

.entry-grid {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 24px;
  align-items: start;
}
.grid-reverse {
  grid-template-columns: 3fr 5fr;
}

.entry-location {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--bark);
  margin-bottom: 0.75rem;
}

.entry-data {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.data-item {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.9375rem;
  color: var(--clay);
}

.entry-summary {
  color: var(--bark);
  margin-bottom: 1rem;
}

/* Progressive disclosure */
.field-notes {
  margin-top: 1rem;
}
.field-notes summary {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lichen);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.field-notes summary::before {
  content: '+';
  font-size: 1rem;
  color: var(--lichen);
  transition: transform 0.3s;
}
.field-notes[open] summary::before {
  content: '-';
}
.notes-body {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--clay);
  margin-top: 1rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--lichen);
}

/* Survey plates */
.entry-plate {
  position: relative;
}
.survey-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--parchment), rgba(184,168,136,0.25));
  filter: sepia(0.15) grayscale(0.6);
  border: 1px solid var(--branch);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}
.photo-tall { aspect-ratio: 3/4; }
.survey-map {
  aspect-ratio: 3/2;
  background: var(--parchment);
  border: 1px solid var(--branch);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}
.map-corner {
  position: absolute;
  font-size: 0.7rem;
  color: var(--branch);
}
.map-tl { top: 8px; left: 8px; }
.map-tr { top: 8px; right: 8px; }
.map-bl { bottom: 8px; left: 8px; }
.map-br { bottom: 8px; right: 8px; }

.photo-label {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.75rem;
  color: var(--clay);
  font-style: italic;
}

/* Pull quote */
.pull-quote {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem 2.5rem;
  background: var(--parchment);
  border-left: 3px solid var(--lichen);
}
.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--bark);
}

/* Root divider */
.root-divider {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}
.root-svg {
  width: 300px;
  height: 30px;
}

/* Endmatter */
.endmatter {
  text-align: center;
  padding: 6rem 2rem 4rem;
}
.end-statement {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--bark);
  margin-bottom: 2rem;
}
.tree-profile-faint {
  width: 40px;
  height: 50px;
  opacity: 0.15;
  margin: 0 auto 1.5rem;
  display: block;
}
.end-rule {
  width: 60px;
  height: 1px;
  background: var(--branch);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .entry-grid, .grid-reverse {
    grid-template-columns: 1fr;
  }
  .masthead { padding: 6vh 5vw 3vh; }
}
