/*
Theme Name: What We Carry
Description: Stories from Australian generalists. Requires the "What We Carry — Stories" plugin.
Version: 1.1.0
Author: GP Academy
License: GPL-2.0-or-later
Text Domain: wwc
*/

:root {
  --ink: #1c1b19;
  --ink-2: #26241f;
  --ink-line: #33312c;
  --cream: #f1efe8;
  --cream-card: #fbfaf7;
  --mute: #c9c5bb;
  --mute-2: #8f8b82;
  --body-on-cream: #3d3a34;
  --meta-on-cream: #6b675f;
  --terracotta: #b5472a;
  --terracotta-dark: #8f3620;
  --font: "Lora", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--terracotta); }
a:hover { color: var(--terracotta-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.12; text-wrap: pretty; }
p { margin: 0; }

.wrap { width: min(1248px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--cream); color: var(--ink); padding: 8px 12px; z-index: 10; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--cream);
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 4px;
  font-size: 17px;
  line-height: 1.2;
  min-height: 44px;
}
.btn:hover { background: var(--terracotta-dark); color: var(--cream); }
.btn--ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(0,0,0,0.06); color: inherit; }
.btn--small { padding: 11px 20px; font-size: 15px; }

/* Header */
.site-header { padding: 24px 0; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { color: var(--cream); text-decoration: none; font-size: 22px; letter-spacing: .02em; }
.nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--mute); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--cream); }

/* Banner + Hero */
.banner { background: var(--ink); }
.banner img { width: 100%; height: auto; display: block; max-height: 420px; object-fit: cover; object-position: center; }
.hero__single .hero__copy { max-width: 760px; }
.hero__single h1 { font-size: clamp(36px, 4.6vw, 60px); }
/* Hero */
.hero { padding: 48px 0 88px; }
.hero__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 64px); }
.hero__lede { font-size: 20px; color: var(--mute); max-width: 520px; }
.hero__cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero__note { font-size: 14px; color: var(--mute-2); }
.hero__image { border-radius: 12px; overflow: hidden; background: #3b2a22; aspect-ratio: 4 / 3; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Story wall */
.wall { background: var(--cream); color: var(--ink); padding: 80px 0; }
.wall__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.wall h2 { font-size: clamp(28px, 3vw, 36px); }
.wall__count { font-size: 15px; color: var(--meta-on-cream); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.card {
  background: var(--cream-card);
  border-top: 3px solid var(--terracotta);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}
.card h3 { font-size: 22px; font-weight: 500; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--terracotta); }
.card__quote { color: var(--body-on-cream); flex-grow: 1; font-size: 16px; }
.card__quote::before { content: "\201C"; }
.card__quote::after { content: "\201D"; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--meta-on-cream); }
.card__meta a { text-decoration: none; }
.wall__more { display: flex; justify-content: center; margin-top: 40px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; font-size: 15px; }
.pagination .page-numbers { padding: 8px 12px; text-decoration: none; color: var(--ink); }
.pagination .current { border-bottom: 2px solid var(--terracotta); }

/* Why / prompts */
.why { padding: 80px 0; }
.why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.why__text { display: flex; flex-direction: column; gap: 16px; }
.why h2 { font-size: clamp(28px, 3vw, 36px); }
.why p { font-size: 18px; color: var(--mute); }
.prompt { background: var(--ink-2); border-radius: 12px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.prompt h3 { font-size: 26px; }
.prompt p { color: var(--mute); }
.prompt .btn { align-self: flex-start; }

/* Single story */
.story { background: var(--cream); color: var(--ink); padding: 72px 0 96px; }
.story__inner { width: min(720px, 100% - 48px); margin-inline: auto; display: flex; flex-direction: column; gap: 28px; }
.story__kicker { font-size: 14px; color: var(--meta-on-cream); letter-spacing: .04em; text-transform: uppercase; }
.story h1 { font-size: clamp(32px, 4vw, 48px); }
.story__byline { font-size: 16px; color: var(--meta-on-cream); border-top: 3px solid var(--terracotta); padding-top: 12px; width: fit-content; }
.story__body { font-size: 19px; line-height: 1.7; color: var(--body-on-cream); }
.story__body p { margin: 0 0 1.2em; }
.story__body p:last-child { margin-bottom: 0; }
.story__audio { width: 100%; }
.story__themes { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.story__themes a { text-decoration: none; border: 1px solid var(--meta-on-cream); border-radius: 999px; padding: 6px 12px; color: var(--meta-on-cream); }
.story__share { border-top: 1px solid #ddd8cc; padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.story__share p { color: var(--body-on-cream); }
.story__nav { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.story__nav a { text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--ink-line); padding: 32px 0; font-size: 14px; color: var(--mute-2); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Generic pages */
.page-content { background: var(--cream); color: var(--ink); padding: 72px 0; }
.page-content .story__inner { gap: 20px; }

@media (max-width: 900px) {
  .hero__grid, .why__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 24px 0 56px; }
  .hero__image { order: -1; aspect-ratio: 16 / 9; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 20px; }
  .wall, .why, .story { padding: 48px 0; }
  .hero__cta .btn { width: 100%; text-align: center; }
  .prompt { padding: 28px; }
  .site-footer .wrap { flex-direction: column; }
}
