:root {
  --at-night: #0f0a07;
  --at-espresso: #17100c;
  --at-saddle: #2a1810;
  --at-leather: #3a2115;
  --at-rust: #9f4f21;
  --at-copper: #c06d32;
  --at-olive: #4e5c3d;
  --at-sage: #89926a;
  --at-fir: #1f2d25;
  --at-cream: #efe3cd;
  --at-paper: #d2bd98;
  --at-muted: #ac9674;
  --at-line: rgba(239, 227, 205, .16);
  --at-line-strong: rgba(239, 227, 205, .26);
  --at-shadow: 0 26px 90px rgba(0,0,0,.48);
  --at-radius: 4px;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 75% 3%, rgba(192,109,50,.19), transparent 28rem),
    radial-gradient(circle at 18% 28%, rgba(78,92,61,.16), transparent 25rem),
    linear-gradient(180deg, var(--at-night) 0%, #1b110d 42%, #130d0a 100%);
  color: var(--at-cream);
}
body::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  opacity:.34;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,.022) 0 1px, transparent 1px 14px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 34px 34px, 74px 74px, 74px 74px;
  mix-blend-mode: screen;
}
body::after {
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.22;
  background:
    radial-gradient(ellipse at center, transparent 0 54%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 5px);
}
.wp-site-blocks { overflow-x:hidden; }

/* Header and footer */
.at-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15,10,7,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(239,227,205,.14);
  box-shadow: 0 12px 40px rgba(0,0,0,.26);
}
.at-header::after,
.at-footer::before {
  content:"";
  display:block;
  height:1px;
  width:100%;
  background:linear-gradient(90deg, transparent, rgba(192,109,50,.54), transparent);
}
.wp-block-site-title a {
  color: var(--at-cream);
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-decoration:none;
}
.wp-block-site-logo img {
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(239,227,205,.26), 0 10px 28px rgba(0,0,0,.36);
}
.wp-block-navigation a {
  text-decoration:none;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.78rem;
}
.wp-block-navigation a:hover { color: var(--at-copper) !important; }
.at-footer {
  border-top:1px solid rgba(239,227,205,.12);
  background:
    linear-gradient(180deg, rgba(58,33,21,.6), rgba(15,10,7,.95)),
    radial-gradient(circle at 82% 100%, rgba(78,92,61,.25), transparent 25rem);
}

/* Type */
.wp-block-heading,
h1,h2,h3,h4 {
  text-wrap: balance;
  letter-spacing: -.015em;
}
h1.wp-block-heading,
h2.wp-block-heading,
h3.wp-block-heading { text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.at-eyebrow,
.at-stamp,
.at-journal-meta {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:.76rem;
  color: var(--at-copper);
}
.at-stamp {
  display:inline-flex;
  align-items:center;
  max-width:100%;
  border:1px solid rgba(239,227,205,.2);
  background: rgba(210,189,152,.045);
  padding:.55rem .85rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.at-stamp::before,
.at-stamp::after {
  content:"";
  width:22px;
  height:1px;
  background: rgba(192,109,50,.72);
}
.at-stamp::before { margin-right:.65rem; }
.at-stamp::after { margin-left:.65rem; }

/* Hero: cinematic old-school western cinema mood */
.at-hero {
  position:relative;
  isolation:isolate;
  min-height: 78vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid rgba(239,227,205,.12);
  background:
    linear-gradient(90deg, rgba(15,10,7,.96) 0 48%, rgba(15,10,7,.48) 70%, rgba(15,10,7,.16)),
    radial-gradient(circle at 82% 22%, rgba(239,227,205,.18), transparent 13rem),
    linear-gradient(145deg, #0f0a07 0%, #1f2d25 56%, #8d471f 100%);
}
.at-hero::before {
  content:"";
  position:absolute;
  inset:1.15rem;
  z-index:-1;
  border:1px solid rgba(239,227,205,.12);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.38);
  pointer-events:none;
}
.at-hero::after {
  content:"";
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  width:52%;
  z-index:-2;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.35)),
    radial-gradient(ellipse at 56% 48%, rgba(15,10,7,.95) 0 10%, transparent 11%),
    radial-gradient(ellipse at 62% 33%, rgba(15,10,7,.9) 0 16%, transparent 17%),
    linear-gradient(90deg, rgba(15,10,7,.95), transparent 30%),
    url('../img/placeholder-western-pnw.svg') center/cover no-repeat;
  opacity:.78;
  filter: saturate(.8) contrast(1.05) sepia(.18);
}
.at-hero h1 { max-width: 850px; }
.at-hero p { max-width: 650px; }
.at-hero .wp-block-buttons { margin-top:1.6rem; }

/* Panels and cards */
.at-panel,
.is-style-weathered-card,
.at-card,
.wp-block-post.product,
.woocommerce ul.products li.product,
.wc-block-grid__product {
  position:relative;
  border:1px solid rgba(239,227,205,.16);
  background:
    linear-gradient(180deg, rgba(210,189,152,.075), rgba(210,189,152,.03)),
    linear-gradient(135deg, rgba(58,33,21,.74), rgba(25,17,12,.9));
  box-shadow: var(--at-shadow);
  overflow:hidden;
}
.at-panel,
.is-style-weathered-card,
.at-card { padding: clamp(1.25rem, 2.5vw, 2rem); }
.at-panel::before,
.is-style-weathered-card::before,
.at-card::before,
.at-photo-tile::before,
.wp-block-post.product::before {
  content:"";
  position:absolute;
  inset:.46rem;
  border:1px solid rgba(239,227,205,.1);
  pointer-events:none;
}
.at-panel::after,
.at-card::after {
  content:"";
  position:absolute;
  right:1.1rem;
  top:1.1rem;
  width:44px;
  height:44px;
  opacity:.16;
  background:
    linear-gradient(90deg, transparent 47%, var(--at-paper) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, var(--at-paper) 47% 53%, transparent 53%);
  border:1px solid rgba(239,227,205,.35);
  border-radius:50%;
}
.at-panel-soft {
  border:1px solid rgba(239,227,205,.12);
  background:rgba(239,227,205,.045);
  padding: clamp(1rem, 2vw, 1.4rem);
}

/* Gallery trails */
.at-grid-2,.at-grid-3,.at-grid-4 { display:grid; gap:1.1rem; }
.at-grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.at-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.at-grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.at-photo-tile {
  min-height: 380px;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid rgba(239,227,205,.18);
  background: #17100c;
  box-shadow: 0 20px 70px rgba(0,0,0,.36);
}
.at-photo-tile::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(180deg, transparent 20%, rgba(15,10,7,.82) 73%, rgba(15,10,7,.98)),
    radial-gradient(circle at 72% 18%, rgba(192,109,50,.22), transparent 11rem),
    url('../img/placeholder-western-pnw.svg') center/cover no-repeat;
  filter: sepia(.3) saturate(.85) brightness(.72);
  opacity:.9;
}
.at-photo-tile:nth-child(2)::after { background:linear-gradient(180deg, transparent 20%, rgba(15,10,7,.82) 73%, rgba(15,10,7,.98)), radial-gradient(circle at 38% 18%, rgba(78,92,61,.42), transparent 12rem), url('../img/placeholder-western-pnw.svg') center/cover no-repeat; }
.at-photo-tile:nth-child(3)::after { background:linear-gradient(180deg, transparent 20%, rgba(15,10,7,.82) 73%, rgba(15,10,7,.98)), radial-gradient(circle at 65% 20%, rgba(159,79,33,.38), transparent 12rem), url('../img/placeholder-western-pnw.svg') center/cover no-repeat; }
.at-photo-tile:nth-child(4)::after { background:linear-gradient(180deg, transparent 20%, rgba(15,10,7,.82) 73%, rgba(15,10,7,.98)), radial-gradient(circle at 50% 20%, rgba(31,45,37,.58), transparent 13rem), url('../img/placeholder-western-pnw.svg') center/cover no-repeat; }
.at-photo-tile:nth-child(5)::after { background:linear-gradient(180deg, transparent 20%, rgba(15,10,7,.82) 73%, rgba(15,10,7,.98)), radial-gradient(circle at 47% 20%, rgba(172,150,116,.28), transparent 13rem), url('../img/placeholder-western-pnw.svg') center/cover no-repeat; }
.at-photo-tile:nth-child(6)::after { background:linear-gradient(180deg, transparent 20%, rgba(15,10,7,.82) 73%, rgba(15,10,7,.98)), radial-gradient(circle at 50% 20%, rgba(192,109,50,.32), transparent 13rem), url('../img/placeholder-western-pnw.svg') center/cover no-repeat; }
.at-photo-tile > .wp-block-group {
  position:absolute;
  left:1.25rem;
  right:1.25rem;
  bottom:1.25rem;
  padding:1.05rem;
  background:linear-gradient(180deg, rgba(42,24,16,.25), rgba(15,10,7,.78));
  border-top:1px solid rgba(192,109,50,.28);
}
.at-photo-tile h3 { margin:.25rem 0 .35rem; }

/* Journal + image frames */
.wp-block-post-template .wp-block-post,
.wp-block-query .at-card { height:100%; }
.wp-block-post-featured-image img,
.wp-block-post-content img,
.is-style-film-frame img,
.at-masonry img {
  border:1px solid rgba(239,227,205,.16);
  box-shadow:0 18px 55px rgba(0,0,0,.34);
  filter: saturate(.88) contrast(1.02) sepia(.15);
}
.is-style-film-frame,
.wp-block-post-featured-image {
  position:relative;
}
.is-style-film-frame::after,
.wp-block-post-featured-image::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(15,10,7,.35);
}
.at-masonry { columns: 3 260px; column-gap: 1rem; }
.at-masonry figure, .at-masonry .wp-block-image { break-inside:avoid; margin:0 0 1rem; }
.at-journal-meta { color:var(--at-muted); font-size:.72rem; }

/* Shop */
.wp-block-post.product,
.woocommerce ul.products li.product,
.wc-block-grid__product {
  padding:1rem;
}
.wp-block-post.product .wp-block-post-featured-image,
.woocommerce ul.products li.product img,
.wc-block-grid__product-image img {
  background:rgba(0,0,0,.22);
  border:1px solid rgba(239,227,205,.14);
}
.wc-block-components-product-price,
.woocommerce-Price-amount,
.wp-block-woocommerce-product-price { color:var(--at-copper); font-weight:800; }
.woocommerce div.product .product_title { font-family: Georgia, 'Times New Roman', serif; }
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.wc-block-components-button,
.wp-block-button__link {
  border-radius:0 !important;
  box-shadow: inset 0 0 0 1px rgba(239,227,205,.12), 0 14px 36px rgba(0,0,0,.28);
  transition: transform .2s ease, filter .2s ease;
}
.wp-block-button__link:hover,
.woocommerce .button:hover { transform:translateY(-1px); filter:brightness(1.08); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background:rgba(78,92,61,.52) !important;
  color:var(--at-cream) !important;
  border-color:rgba(137,146,106,.7) !important;
}

.at-split-line {
  border-top:1px solid rgba(239,227,205,.13);
  border-bottom:1px solid rgba(239,227,205,.13);
  background:
    linear-gradient(180deg, rgba(58,33,21,.35), rgba(15,10,7,.42)),
    radial-gradient(circle at 7% 100%, rgba(78,92,61,.2), transparent 20rem);
}
.at-session-list { list-style:none; padding-left:0; margin-left:0; }
.at-session-list li { border-bottom:1px solid rgba(239,227,205,.13); padding:.9rem 0; }
.at-session-list li::before { content:'✦'; color:var(--at-copper); margin-right:.7rem; }
.at-session-list li:last-child { border-bottom:0; }

/* Responsive */
@media (max-width: 980px) {
  .at-grid-2,.at-grid-3,.at-grid-4 { grid-template-columns:1fr; }
  .at-hero::after { width:100%; opacity:.24; }
  .at-hero { min-height: 68vh; }
}
@media (max-width: 760px) {
  .at-header { position:relative; }
  .at-hero::before { inset:.55rem; }
  .at-photo-tile { min-height:300px; }
}
