/* TANGLY.CA — Style Sheet
   Design: Evidence room meets field station
   Palette: Pitcher plant + Newfoundland rock/fog/bog
   Updated: March 2026
*/

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&family=DM+Sans:wght@400;500&display=swap');

/* ===== VARIABLES ===== */
:root {
  --forest: #1a3a2a;
  --forest-light: #2a5a42;
  --stone: #d4c5a9;
  --stone-light: #e8e2d6;
  --stone-pale: #f2ede4;
  --bog: #8b6914;
  --bog-muted: #a6893a;
  --earth: #2c2416;
  --earth-soft: #3d3428;
  --rock: #5a5550;
  --fog: #c4bdb2;
  --white: #faf8f4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-ui: 'DM Sans', 'Helvetica Neue', sans-serif;

  --max-width: 740px;
  --max-width-wide: 960px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== BASE ===== */
html {
  font-size: 19px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--earth);
  background-color: var(--white);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--max-width-wide);
}

/* ===== HEADER / NAV ===== */
.site-header {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--fog);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: var(--max-width-wide);
}

.site-name {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--forest);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-name:hover {
  color: var(--forest-light);
}

.site-logo {
  height: 28px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--rock);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--forest);
}

/* ===== HOME HERO ===== */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--earth);
  max-width: 580px;
  margin-bottom: var(--space-sm);
}

.hero .subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--rock);
  max-width: 520px;
  line-height: 1.65;
}

/* ===== SECTION DIVIDER ===== */
.section-rule {
  border: none;
  border-top: 1px solid var(--fog);
  margin: var(--space-lg) 0;
}

/* ===== ARCHIVE / CONTENT LISTING ===== */
.archive-section {
  padding: var(--space-lg) 0 var(--space-xl);
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bog-muted);
  margin-bottom: var(--space-lg);
}

.post-list {
  list-style: none;
}

.post-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--stone-light);
}

.post-item:first-child {
  padding-top: 0;
}

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

.post-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--rock);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
  display: flex;
  gap: var(--space-sm);
  align-items: baseline;
}

.post-type {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--fog);
  background: var(--earth-soft);
  padding: 0.15em 0.5em;
  border-radius: 2px;
}

.post-type--deck { background: var(--forest); color: var(--stone-light); }
.post-type--audio { background: var(--bog); color: var(--white); }
.post-type--video { background: var(--earth-soft); color: var(--stone); }
.post-type--text { background: transparent; color: var(--rock); border: 1px solid var(--fog); }

.post-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.post-title a {
  color: var(--earth);
  text-decoration: none;
  transition: color 0.2s;
}

.post-title a:hover {
  color: var(--forest);
}

.post-desc {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--rock);
  line-height: 1.6;
  max-width: 600px;
}

/* ===== SINGLE POST ===== */
.post-header {
  padding: var(--space-xl) 0 var(--space-md);
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--earth);
  margin-bottom: var(--space-xs);
}

.post-header .post-meta {
  margin-bottom: 0;
}

.post-body {
  padding: var(--space-md) 0 var(--space-xl);
}

.post-body p {
  margin-bottom: var(--space-sm);
}

.post-body .source-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--rock);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--stone-light);
  margin-top: var(--space-lg);
  line-height: 1.5;
}

/* Embedded PDF viewer */
.pdf-embed {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--fog);
  margin: var(--space-md) 0;
  background: var(--stone-pale);
}

/* Embedded audio */
.audio-embed {
  width: 100%;
  margin: var(--space-md) 0;
}

/* ===== ABOUT SECTION (minimal) ===== */
.about-section {
  padding: var(--space-lg) 0 var(--space-xl);
}

.about-section p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--rock);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  max-width: 600px;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--fog);
}

.site-footer .container {
  max-width: var(--max-width-wide);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.footer-text {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--fog);
  letter-spacing: 0.02em;
}

.footer-text a {
  color: var(--rock);
  text-decoration: none;
}

.footer-text a:hover {
  color: var(--forest);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  html { font-size: 17px; }

  .site-header .container {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .post-title {
    font-size: 1.25rem;
  }

  .post-header h1 {
    font-size: 1.75rem;
  }

  .pdf-embed {
    height: 60vh;
  }
}
