/* ==========================================================================
   Showtrailpickpantry — Sacred Symbol Archive
   Editorial aesthetic / Framed-canvas card style
   ========================================================================== */

:root{
  --ink:#1f1b16;
  --parchment:#f7f2e7;
  --parchment-dark:#eee4cf;
  --accent:#8a2c22;
  --accent-dark:#6e211a;
  --accent-gold:#b8863b;
  --teal:#2f4a43;
  --white:#ffffff;
  --error:#8a2c22;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --space-4:4px;
  --space-8:8px;
  --space-16:16px;
  --space-24:24px;
  --space-40:40px;
  --space-64:64px;
}

*, *::before, *::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font-sans);
  background:var(--parchment);
  color:var(--ink);
  line-height:1.6;
}

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

a{ color:var(--ink); }
a:hover{ color:var(--accent); }

h1,h2,h3,h4,
.site-nav a,
.logo-text,
.footer-brand,
address{
  overflow-wrap:anywhere;
}

h1,h2,h3,h4{
  font-family:var(--font-serif);
  line-height:1.2;
  margin:0 0 var(--space-16);
}

:focus-visible{
  outline:3px solid var(--accent-gold);
  outline-offset:2px;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  background:var(--ink);
  color:var(--parchment);
  padding:12px 20px;
  z-index:999;
}
.skip-link:focus{
  left:16px;
  top:16px;
}

.container{
  max-width:1200px;
  margin-inline:auto;
  padding-inline:24px;
}
@media (max-width:400px){
  .container{ padding-inline:20px; }
}

/* ---------- Header ---------- */
.site-header{
  min-height:60px;
  display:flex;
  align-items:center;
  background:var(--parchment);
  border-bottom:2px solid var(--ink);
}
@media (max-width:768px){
  .site-header{ min-height:52px; }
}
@media (max-width:400px){
  .site-header{ min-height:48px; }
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:nowrap;
  gap:16px;
  width:100%;
  padding-block:8px;
}

.logo{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:var(--ink);
  min-width:0;
  flex-shrink:1;
}
.logo-mark{ flex-shrink:0; color:var(--accent); }
.logo-text{
  font-weight:700;
  font-size:1rem;
}

.site-nav{
  flex-shrink:0;
}
.site-nav ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap:24px;
  margin:0;
  padding:0;
}
.site-nav a{
  text-decoration:none;
  font-weight:600;
  color:var(--ink);
}

@media (min-width:769px){
  .site-nav{
    display:flex;
    align-items:center;
  }
}

.header-actions{
  display:flex;
  align-items:center;
  gap:16px;
  flex-shrink:0;
  margin-left:auto;
}

.hamburger{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  align-self:center;
  gap:5px;
  width:36px;
  height:36px;
  flex-shrink:0;
  background:transparent;
  border:2px solid var(--ink);
  padding:6px;
  cursor:pointer;
}
.hamburger span{
  display:block;
  height:2px;
  width:100%;
  background:var(--ink);
}

.nav-close{ display:none; }

@media (max-width:768px){
  .header-actions{ margin-left:0; }
  .site-nav{
    position:fixed;
    inset:0;
    background:var(--ink);
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:40px;
    padding:64px 24px 24px;
    transform:translateX(100%);
    transition:transform .3s ease;
    z-index:100;
  }
  .site-nav.is-open{ transform:translateX(0); }
  .site-nav ul{ flex-direction:column; align-items:flex-start; gap:24px; }
  .site-nav a{ color:var(--parchment); font-size:1.5rem; }
  .hamburger{ display:flex; }
  .nav-close{
    display:block;
    position:absolute;
    top:16px;
    right:16px;
    width:44px;
    height:44px;
    background:transparent;
    border:2px solid var(--parchment);
    color:var(--parchment);
    font-size:1.5rem;
    line-height:1;
    cursor:pointer;
  }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 20px;
  border:2px solid var(--ink);
  font-weight:700;
  font-size:.95rem;
  text-decoration:none;
  cursor:pointer;
  font-family:var(--font-sans);
  white-space:nowrap;
  transition:transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-cta{
  background:var(--ink);
  color:var(--parchment);
  position:relative;
  align-self:center;
  padding:10px 22px;
  letter-spacing:.02em;
  box-shadow:0 3px 0 var(--accent-gold);
}
.btn-cta::after{
  content:"→";
  display:inline-block;
  margin-left:8px;
  transform:translateX(0);
  transition:transform .25s ease;
}
.btn-cta:hover{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--white);
  transform:translateY(-3px);
  box-shadow:0 5px 0 var(--accent-dark);
}
.btn-cta:hover::after{
  transform:translateX(4px);
}
.btn-cta:active{
  transform:translateY(0);
  box-shadow:0 1px 0 var(--accent-dark);
}
.btn-cta:focus-visible{
  outline:3px solid var(--accent-gold);
  outline-offset:3px;
}
.btn-solid{ background:var(--accent); border-color:var(--accent); color:var(--white); }
.btn-solid:hover{ background:var(--accent-dark); border-color:var(--accent-dark); color:var(--white); }
.btn-outline{ background:transparent; color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--parchment); }

@media (max-width:480px){
  .btn-cta{
    padding:8px 14px;
    font-size:.85rem;
    box-shadow:0 2px 0 var(--accent-gold);
  }
  .btn-cta::after{ margin-left:6px; }
}

@media (max-width:340px){
  .header-actions{ gap:10px; }
  .btn-cta{ padding:7px 10px; font-size:.78rem; }
  .btn-cta::after{ margin-left:4px; }
}

/* ---------- Hero ---------- */
.hero{
  padding:64px 0;
  border-bottom:2px solid var(--ink);
}
.hero-inner{
  display:grid;
  gap:24px;
  max-width:820px;
  min-width:0;
}
.hero h1{
  font-size:clamp(2rem,5vw,3.4rem);
}
.hero .lede{
  font-size:1.2rem;
  line-height:1.7;
  max-width:60ch;
}
.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.page-hero{
  padding:40px 0 64px;
  border-bottom:2px solid var(--ink);
}
.page-hero .breadcrumb{
  font-size:.85rem;
  margin-bottom:16px;
}
.page-hero h1{ font-size:clamp(1.8rem,4.5vw,2.8rem); }
.page-hero .lede{ font-size:1.1rem; max-width:70ch; }
.page-hero img{
  margin-top:40px;
  width:100%;
  height:320px;
  object-fit:cover;
  border:2px solid var(--ink);
}

/* ---------- Archive / Cards (framed canvas, row layout) ---------- */
.archive-section{ padding:64px 0; }
.section-heading{ max-width:70ch; margin-bottom:40px; }
.section-heading p{ font-size:1.05rem; }

.archive-grid{
  display:flex;
  flex-direction:column;
  gap:32px;
}

.entry-card-outer{
  position:relative;
  padding:0 12px 12px 0;
  min-width:0;
}
.entry-card-frame{
  position:absolute;
  top:12px;
  left:12px;
  right:0;
  bottom:0;
  background:var(--accent-gold);
  z-index:0;
}
.entry-card{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:row;
  align-items:stretch;
  background:var(--white);
  border:2px solid var(--ink);
  text-decoration:none;
  color:var(--ink);
  min-width:0;
  transition:transform .25s ease;
}
.entry-card-outer:hover .entry-card,
.entry-card-outer:focus-within .entry-card{
  transform:translate(-8px,-8px);
}
.entry-card img{
  width:340px;
  max-width:40%;
  height:auto;
  min-height:240px;
  object-fit:cover;
  border-right:2px solid var(--ink);
  flex-shrink:0;
}
.entry-card-body{
  padding:32px 40px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  flex:1;
  min-width:0;
}
.entry-tag{
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.75rem;
  font-weight:700;
  color:var(--accent);
}
.entry-card-body h3{ margin:0; font-size:1.5rem; }
.entry-card-body p{ margin:0; line-height:1.6; max-width:60ch; }
.entry-cta{ font-weight:700; }

@media (max-width:768px){
  .entry-card-outer{ padding:0; }
  .entry-card-frame{ top:0; left:0; right:0; bottom:0; }
  .entry-card-outer:hover .entry-card{ transform:none; }
  .entry-card{ flex-direction:column; }
  .entry-card img{
    width:100%;
    max-width:100%;
    height:200px;
    min-height:0;
    border-right:none;
    border-bottom:2px solid var(--ink);
  }
  .entry-card-body{ padding:24px; }
}

/* ---------- Method / stats ---------- */
.method-section{
  padding:64px 0;
  background:var(--parchment-dark);
  border-bottom:2px solid var(--ink);
}
.method-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:40px;
  margin-top:40px;
}
.method-item{ min-width:0; }
.stat{
  display:block;
  font-family:var(--font-serif);
  font-size:2.4rem;
  color:var(--accent);
  margin-bottom:12px;
}
.stat-label{ font-weight:600; }

.pull-quote{
  border-left:4px solid var(--accent);
  padding-left:24px;
  font-family:var(--font-serif);
  font-size:1.3rem;
  font-style:italic;
  margin:40px 0;
  max-width:70ch;
}

/* ---------- Prose / sub-pages ---------- */
.content-section{ padding:64px 0; }
.prose{ max-width:760px; min-width:0; }
.prose p{ margin-bottom:24px; line-height:1.75; }
.prose h2{
  margin-top:64px;
  padding-bottom:8px;
  border-bottom:2px solid var(--ink);
}
.prose h2:first-child{ margin-top:0; }
.prose h3{ margin-top:40px; }
.prose ul, .prose ol{ line-height:1.8; margin-bottom:24px; }

.table-wrap{
  overflow-x:auto;
  margin:24px 0 40px;
}
table{
  border-collapse:collapse;
  width:100%;
  min-width:640px;
}
th, td{
  border:1px solid var(--ink);
  padding:12px 16px;
  text-align:left;
  vertical-align:top;
}
th{ background:var(--ink); color:var(--parchment); }
tbody tr:nth-child(even) td{ background:var(--parchment-dark); }

.pros-cons{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
  margin:24px 0 40px;
}
.pros-cons > div{
  border:2px solid var(--ink);
  padding:24px;
  min-width:0;
}
.pros-cons h3{ margin-top:0; }

.further-reading ul{ line-height:2; padding-left:20px; }

/* ---------- Legal pages ---------- */
.legal-section{ margin-bottom:40px; }
.legal-section h2{
  border-bottom:2px solid var(--ink);
  padding-bottom:8px;
  margin-bottom:24px;
}
.legal-section p, .legal-section li{ line-height:1.75; }
.legal-meta{
  font-size:.9rem;
  margin-bottom:40px;
  padding-bottom:24px;
  border-bottom:1px solid var(--parchment-dark);
}

/* ---------- Contact ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
}
.contact-grid > div{ min-width:0; }
@media (max-width:900px){
  .contact-grid{ grid-template-columns:1fr; }
}

.field{
  margin-bottom:24px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
label{ font-weight:700; }
input, textarea{
  padding:12px 16px;
  border:2px solid var(--ink);
  background:var(--white);
  color:var(--ink);
  font-family:inherit;
  font-size:1rem;
  min-width:0;
  width:100%;
}
.field.is-invalid input,
.field.is-invalid textarea{
  border-color:var(--error);
}
.error-message{
  color:var(--error);
  font-size:.85rem;
  min-height:1.2em;
}
.form-status{
  padding:16px;
  border:2px solid var(--teal);
  background:var(--parchment-dark);
  margin-bottom:24px;
}
.form-status[hidden]{ display:none; }

.contact-details address{ line-height:2; margin-bottom:40px; }

.map-block{
  border:2px solid var(--ink);
  aspect-ratio:4/3;
  position:relative;
  background:
    linear-gradient(var(--parchment-dark) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, var(--parchment-dark) 1px, transparent 1px) 0 0/40px 40px,
    var(--parchment);
  overflow:hidden;
}
.map-pin{
  position:absolute;
  top:42%;
  left:48%;
  transform:translate(-50%,-100%);
  color:var(--accent);
}
.map-caption{
  padding:16px;
  border-top:2px solid var(--ink);
  background:var(--white);
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  font-size:.85rem;
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--ink);
  color:var(--parchment);
  padding:64px 0 24px;
  margin-top:64px;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
  margin-bottom:40px;
}
.footer-grid > div{ min-width:0; }
.footer-brand p{ margin-top:16px; line-height:1.7; }
.footer-col h3{
  font-family:var(--font-sans);
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:.8rem;
  margin-bottom:24px;
}
.footer-col ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.site-footer a{ color:var(--parchment); }
.site-footer a:hover{ color:var(--accent-gold); }
.site-footer address{ font-style:normal; line-height:1.9; }
.footer-bottom{
  border-top:1px solid rgba(247,242,231,0.25);
  padding-top:24px;
  font-size:.85rem;
  line-height:1.8;
}

@media (max-width:768px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:400px){
  .footer-grid{ grid-template-columns:1fr; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:var(--ink);
  color:var(--parchment);
  border-top:4px solid var(--accent-gold);
  padding:24px;
  z-index:200;
  transform:translateY(100%);
  transition:transform .3s ease;
  display:block;
}
.cookie-banner[hidden]{ display:none; }
.cookie-banner.is-visible{ transform:translateY(0); }
.cookie-banner-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  align-items:center;
  justify-content:space-between;
}
.cookie-banner p{ margin:0; max-width:60ch; min-width:0; }
.cookie-banner a{ text-decoration:underline; }
.cookie-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
  }
  html{ scroll-behavior:auto; }
}

/* ---------- Small screens ---------- */
@media (max-width:400px){
  .hero, .archive-section, .method-section, .content-section{ padding:40px 0; }
  .archive-grid{ gap:24px; }
}