/*
Theme Name: Untold Texas
Theme URI: https://untoldtexas.com/
Author: Untold Texas
Description: A field journal for the stories, films, and places that shaped Texas.
Version: 1.0.0
Text Domain: untold-texas
*/

:root {
  --paper: #d7c09a;
  --paper-light: #ead8b7;
  --paper-deep: #b18a5a;
  --ink: #241b14;
  --ink-soft: #544235;
  --wood: #332117;
  --wood-deep: #1a120d;
  --orange: #bd650f;
  --orange-bright: #e08a1e;
  --line: rgba(36, 27, 20, .28);
  --shadow: 0 18px 40px rgba(0,0,0,.28);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', Arial, sans-serif;
  --hand: 'Bradley Hand', 'Segoe Print', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wood-deep);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.site-shell { overflow: hidden; background: var(--wood-deep); }

.site-header {
  position: relative;
  z-index: 20;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.2), transparent 30%),
    repeating-linear-gradient(10deg, rgba(90,55,24,.05) 0 2px, transparent 2px 8px),
    var(--paper);
  border-bottom: 2px solid rgba(72,42,18,.42);
  box-shadow: 0 5px 0 rgba(18, 10, 6, .18);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 16px;
  background: var(--paper); clip-path: polygon(0 0, 4% 65%, 8% 20%, 13% 78%, 18% 35%, 24% 80%, 29% 22%, 36% 72%, 43% 25%, 51% 78%, 58% 20%, 66% 70%, 73% 25%, 82% 78%, 89% 28%, 96% 70%, 100% 28%, 100% 100%, 0 100%);
}
.header-inner { max-width: 1240px; margin: 0 auto; padding: 16px 28px 12px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); min-width: 170px; }
.brand-wordmark { font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-size: clamp(26px, 3vw, 42px); line-height: .78; letter-spacing: .04em; text-transform: uppercase; text-shadow: 1px 2px 0 rgba(255,255,255,.18), 2px 3px 0 rgba(54,31,13,.24); }
.brand-wordmark span { display: block; }
.brand-image { width: 170px; height: auto; mix-blend-mode: multiply; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 5px 26px; }
.main-nav a { display: inline-block; text-decoration: none; font-family: var(--hand); font-size: 1.18rem; font-weight: 600; padding: 7px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--orange); border-bottom-color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 10px; font-family: var(--hand); white-space: nowrap; }
.header-actions a { text-decoration: none; padding: 7px 10px; border-left: 1px solid var(--line); }
.header-actions .join-link { border: 1px solid var(--ink); }
.mobile-toggle { display: none; border: 2px solid var(--ink); background: transparent; padding: 7px 10px; font: inherit; }

.hero {
  position: relative; min-height: 640px; display: grid; place-items: center; text-align: center; color: #f8e7c6;
  background:
    linear-gradient(180deg, rgba(18,14,12,.15), rgba(18,14,12,.85)),
    radial-gradient(circle at 20% 28%, rgba(214,137,44,.5), transparent 20%),
    linear-gradient(120deg, #273029 0 24%, #6a4228 58%, #e18d27);
  isolation: isolate;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .32; background: repeating-linear-gradient(175deg, transparent 0 40px, rgba(255,255,255,.05) 41px 44px, transparent 45px 86px); mix-blend-mode: screen; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -16px; height: 34px; background: var(--wood-deep); clip-path: polygon(0 0, 3% 45%, 9% 25%, 15% 72%, 22% 22%, 28% 66%, 36% 27%, 42% 80%, 50% 28%, 57% 74%, 65% 20%, 73% 78%, 81% 25%, 90% 72%, 97% 32%, 100% 55%, 100% 100%, 0 100%); }
.hero-content { max-width: 760px; padding: 56px 24px 84px; }
.eyebrow { margin: 0 0 14px; font-family: var(--sans); font-size: .9rem; letter-spacing: .24em; text-transform: uppercase; color: var(--orange-bright); font-weight: 700; }
.hero-logo { margin: 0 auto 2px; font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-size: clamp(70px, 14vw, 180px); line-height: .76; letter-spacing: .03em; color: #9b5d28; text-shadow: 4px 5px 0 #2c1a0f, 7px 8px 20px rgba(0,0,0,.75); text-transform: uppercase; }
.hero-logo span { display: block; }
.hero-tagline { margin: 20px 0 30px; font-family: var(--hand); font-size: clamp(1.1rem, 2.4vw, 1.8rem); color: #fff4dc; letter-spacing: .06em; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 170px; padding: 12px 22px; border: 1px solid #d98b26; background: var(--orange); color: #fff3dd; font-family: var(--sans); font-size: .92rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 0 4px 0 rgba(45,21,7,.38); transition: transform .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--orange-bright); }
.button.button-ghost { background: transparent; border-color: #f1d5a8; }

.pathways { display: grid; grid-template-columns: repeat(4, 1fr); background: repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 3px, transparent 3px 12px), var(--wood); color: #ecd9b8; border-top: 1px solid rgba(255,218,168,.18); border-bottom: 1px solid rgba(255,218,168,.18); }
.pathway { padding: 28px 25px 34px; text-align: center; border-right: 1px solid rgba(255,218,168,.28); }
.pathway:last-child { border-right: 0; }
.pathway-icon { display: block; font-size: 2.3rem; color: var(--paper-deep); margin-bottom: 4px; }
.pathway h2 { margin: 0 0 8px; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 500; }
.pathway p { margin: 0 auto 12px; max-width: 250px; font-size: 1rem; color: #d7c09a; }
.text-link { color: var(--orange-bright); font-family: var(--hand); font-size: 1.3rem; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.community { position: relative; padding: 48px clamp(20px, 7vw, 90px); background: radial-gradient(circle at 92% 12%, rgba(121,85,45,.26), transparent 30%), var(--paper); }
.community::before, .community::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background: var(--paper); }
.community::before { top: -7px; clip-path: polygon(0 0, 6% 70%, 12% 22%, 18% 80%, 24% 28%, 32% 86%, 39% 30%, 47% 78%, 55% 22%, 63% 82%, 72% 28%, 80% 75%, 88% 25%, 95% 72%, 100% 30%, 100% 100%, 0 100%); }
.community::after { bottom: -7px; transform: rotate(180deg); clip-path: polygon(0 0, 6% 70%, 12% 22%, 18% 80%, 24% 28%, 32% 86%, 39% 30%, 47% 78%, 55% 22%, 63% 82%, 72% 28%, 80% 75%, 88% 25%, 95% 72%, 100% 30%, 100% 100%, 0 100%); }
.community-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; align-items: center; }
.section-kicker { margin: 0 0 5px; font-family: var(--hand); font-size: 1.5rem; font-weight: 700; }
.section-title { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; font-weight: 500; }
.section-copy { margin: 0; font-size: 1.05rem; color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { text-align: center; border-left: 1px solid var(--line); padding: 4px 12px; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; color: var(--wood); }
.stat span { display: block; margin-top: 8px; font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }

.stories-section { padding: 60px clamp(20px, 6vw, 76px) 88px; background: var(--wood-deep); color: #f3dfbf; }
.section-heading-row { max-width: 1220px; margin: 0 auto 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-heading-row .section-title { color: #f3dfbf; }
.story-grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-card { background: #4a3527; border: 1px solid rgba(235,205,157,.22); box-shadow: var(--shadow); }
.story-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.45) saturate(.8) contrast(.95); }
.story-card-body { padding: 18px 18px 22px; }
.story-card h3 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.18; font-weight: 500; }
.story-card a { text-decoration: none; }
.story-card a:hover h3, .story-card a:focus-visible h3 { color: var(--orange-bright); }
.story-meta { font-family: var(--sans); font-size: .74rem; color: #d7c09a; letter-spacing: .08em; text-transform: uppercase; }
.story-empty { grid-column: 1 / -1; padding: 30px; border: 1px dashed rgba(234,216,183,.35); text-align: center; color: #d7c09a; }

.page-hero { padding: 90px 20px 72px; background: linear-gradient(180deg, #3a281d, var(--wood-deep)); color: #f7e4c3; text-align: center; }
.page-hero h1 { margin: 0 auto 12px; max-width: 850px; font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 500; line-height: .98; }
.page-hero p { max-width: 740px; margin: 0 auto; font-size: 1.15rem; color: #dcc7a6; }
.content-wrap { max-width: 1000px; margin: 0 auto; padding: 64px 22px 100px; background: var(--paper-light); }
.content-wrap h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; line-height: 1.15; }
.content-wrap h3 { font-size: 1.65rem; font-weight: 500; }
.content-wrap p, .content-wrap li { font-size: 1.1rem; }

.site-footer { background: #120c09; color: #d7c09a; padding: 38px 22px 100px; text-align: center; }
.site-footer a { color: #f2c17a; }
.footer-note { max-width: 700px; margin: 0 auto; font-size: .93rem; }
.mobile-dock { display: none; }

@media (max-width: 980px) {
  .header-inner { padding-inline: 18px; gap: 16px; }
  .brand { min-width: 130px; }
  .brand-wordmark { font-size: 28px; }
  .main-nav ul { gap: 4px 14px; }
  .main-nav a { font-size: 1rem; }
  .header-actions { display: none; }
  .pathways { grid-template-columns: repeat(2, 1fr); }
  .pathway:nth-child(2) { border-right: 0; }
  .pathway:nth-child(-n+2) { border-bottom: 1px solid rgba(255,218,168,.28); }
}
@media (max-width: 700px) {
  body { padding-bottom: 76px; }
  .site-header { position: sticky; top: 0; }
  .header-inner { justify-content: space-between; padding: 10px 16px; }
  .brand-wordmark { font-size: 25px; }
  .main-nav { display: none; }
  .mobile-toggle { display: inline-block; }
  .hero { min-height: 560px; }
  .hero-content { padding-top: 42px; }
  .hero-logo { font-size: clamp(60px, 18vw, 110px); }
  .hero-actions .button { min-width: 145px; padding-inline: 14px; font-size: .78rem; }
  .pathways { grid-template-columns: 1fr 1fr; }
  .pathway { padding: 22px 14px 26px; }
  .pathway-icon { font-size: 1.7rem; }
  .pathway h2 { font-size: 1.15rem; }
  .pathway p { font-size: .86rem; }
  .text-link { font-size: 1.05rem; }
  .community-inner { grid-template-columns: 1fr; gap: 28px; }
  .stats { gap: 5px; }
  .stat { padding-inline: 5px; }
  .stat strong { font-size: 1.8rem; }
  .stat span { font-size: .62rem; }
  .stories-section { padding-bottom: 54px; }
  .section-heading-row { display: block; }
  .section-heading-row .text-link { display: inline-block; margin-top: 5px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card h3 { font-size: 1.2rem; }
  .page-hero { padding: 66px 18px 52px; }
  .content-wrap { padding-top: 42px; }
  .content-wrap p, .content-wrap li { font-size: 1rem; }
  .mobile-dock { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 4px; background: rgba(30,20,15,.92); border: 1px solid rgba(242,193,122,.46); box-shadow: 0 14px 28px rgba(0,0,0,.38); border-radius: 14px; }
  .mobile-dock a { color: #e8cfaa; text-decoration: none; text-align: center; font-family: var(--sans); font-size: .63rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 2px; }
  .mobile-dock a:hover, .mobile-dock a:focus-visible, .mobile-dock a[aria-current="page"] { color: var(--orange-bright); }
  .dock-icon { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
