/* Anzathu: shared stylesheet */

:root {
  --ink: #4d3f32;
  --paper: #fdf9f2;
  --paper-dim: #ebe6df;
  --rust: #6a543d;
  --forest: #6a543d;
  --line: #c8c1b8;
  --muted: #8b8075;
  --gold: #ffd846;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

a {
  color: var(--rust);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1.2em;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.site-header .wrap {
  max-width: 920px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
}

.site-nav a.active {
  color: var(--rust);
  border-bottom: 2px solid var(--rust);
  padding-bottom: 2px;
}

/* Hero */

.hero {
  padding: 72px 0 48px;
}

.hero .wrap {
  max-width: 920px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  max-width: 12ch;
}

.hero .dek {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 46ch;
}

/* Sections */

.section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.section .wrap {
  max-width: 920px;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 48px;
}

@media (max-width: 680px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Empty state */

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 32px;
  background: var(--paper-dim);
  color: var(--muted);
}

.empty-state p:last-child {
  margin-bottom: 0;
}

/* Coverage list */

.coverage-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.coverage-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.coverage-list li:last-child {
  border-bottom: none;
}

.coverage-list .tag {
  font-family: Georgia, serif;
  font-weight: 600;
  min-width: 140px;
  color: var(--forest);
}

/* Article */

.article-header {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--line);
}

.article-header .kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 10px;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.byline {
  color: var(--muted);
  font-size: 0.95rem;
}

.article-body {
  padding: 40px 0 64px;
}

.article-body .wrap {
  max-width: var(--max-width);
}

.article-body p {
  font-size: 1.08rem;
}

.article-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.article-body figure {
  margin: 32px 0;
}

.article-body figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

.portrait-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portrait-block img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.portrait-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.photo-gallery figcaption {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Post cards (Recent Posts / Spotlight listing) */

.post-cards {
  display: grid;
  gap: 28px;
}

.post-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.post-card:last-child {
  border-bottom: none;
}

.post-card-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper-dim);
}

.post-card-cover.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 8px;
  border: 1px dashed var(--line);
}

.post-card h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.post-card .section-label {
  margin-bottom: 6px;
}

@media (max-width: 560px) {
  .post-card {
    grid-template-columns: 96px 1fr;
    gap: 14px;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  max-width: 920px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--muted);
}

.button {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
}

.button:hover {
  background: var(--rust);
  color: var(--paper);
  text-decoration: none;
}

.signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
}

.signup-form input[type="email"]:focus {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}

.signup-form .button {
  border: none;
  cursor: pointer;
}

/* Resources page */

.resource-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-item h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.resource-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 8px;
}

.resource-item p:last-child {
  margin-bottom: 0;
}

.glossary dt {
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--rust);
  margin-top: 18px;
}

.glossary dt:first-child {
  margin-top: 0;
}

.glossary dd {
  margin: 4px 0 0;
  color: var(--ink);
}

/* Editorial refresh: masthead, logo mark, kicker, pull box, featured post */

.masthead-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--rust), var(--gold));
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark svg {
  flex-shrink: 0;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 16px;
}

.pull-box {
  background: var(--paper-dim);
  border-left: 4px solid var(--gold);
  padding: 26px 30px;
  border-radius: 2px;
}

.pull-box p:last-child {
  margin-bottom: 0;
}

.featured-post {
  display: grid;
  gap: 18px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.featured-post .post-card-cover {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

.featured-post .section-label {
  color: var(--rust);
}

.featured-post h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 8px;
}

.featured-post p {
  font-size: 1.05rem;
  color: var(--ink);
}

/* Homepage polish: photo crop fix, section tint, colored post category */

.featured-post .post-card-cover {
  aspect-ratio: 3 / 2;
  object-position: center 22%;
}

.section-tint {
  background: var(--paper-dim);
}

.post-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--muted);
}

.post-meta .post-tag {
  color: var(--rust);
  font-weight: 700;
}

/* Story location map */

.story-map-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 4px;
}

.story-map-wrap svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
}

.continent-shape {
  fill: var(--paper-dim);
  stroke: var(--line);
  stroke-width: 1.5;
}

.map-island {
  fill: var(--paper-dim);
  stroke: var(--line);
  stroke-width: 1.2;
}

.map-pin {
  cursor: pointer;
}

.map-pin circle {
  fill: var(--rust);
  stroke: var(--paper);
  stroke-width: 2;
  transition: r 0.15s ease, fill 0.15s ease;
}

.map-pin:hover circle,
.map-pin:focus circle {
  fill: var(--gold);
}

.map-pin text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  fill: var(--ink);
}

.map-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

.map-caption a {
  font-weight: 600;
}

/* About page portrait */

.about-photo {
  width: 180px;
  border-radius: 6px;
  margin-top: 20px;
  border: 1px solid var(--line);
}

/* Header brand block with tagline */

.site-header .wrap {
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0 42px;
}

/* Suggest-a-story form */

.suggest-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  max-width: 520px;
}

.suggest-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.suggest-form input[type="text"],
.suggest-form input[type="email"],
.suggest-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
}

.suggest-form textarea {
  min-height: 110px;
  resize: vertical;
}

.suggest-form input:focus,
.suggest-form textarea:focus {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}

.suggest-form .button {
  border: none;
  cursor: pointer;
  justify-self: start;
}

/* Decorative texture and coverage icons */

.site-footer {
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.6px);
  background-size: 24px 24px;
}

.hero {
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.6px);
  background-size: 28px 28px;
  background-position: 0 0;
}

.coverage-list li {
  align-items: center;
}

.coverage-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.post-card-cover.placeholder {
  background-image: radial-gradient(circle, var(--line) 1.5px, transparent 2px);
  background-size: 18px 18px;
  background-color: var(--paper-dim);
}

.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.section-divider span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
}

.section-divider span:first-child,
.section-divider span:last-child {
  background: var(--gold);
}

/* --- Hero split layout with illustration --------------------------------- */

.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
}

.hero-copy {
  padding-bottom: 24px;
}

.hero-art {
  margin: 0;
  align-self: end;
}

.hero-art svg,
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 320px;
  margin-left: auto;
  filter: drop-shadow(0 10px 18px rgba(77, 63, 50, 0.13));
}

@media (max-width: 780px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-art svg,
  .hero-art img {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* --- Hero artwork internals ----------------------------------------------- */

.art-sun {
  transform-origin: 150px 168px;
}

.art-band {
  transform-origin: center bottom;
}

.art-frame {
  fill: none;
  stroke: var(--rust);
  stroke-width: 2.5;
}

.art-rule {
  stroke: var(--rust);
  stroke-opacity: 0.28;
  stroke-width: 1;
  fill: none;
}

.art-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 4px;
  background: var(--paper-dim);
}
