/* ===========================================================
   Field & Standard — shared stylesheet
   Theme colors live here. To restyle the store, edit the
   custom properties in :root below (one-line edits).
   Motion: cross-document view transitions + scroll reveals
   (see site.js). Everything honors prefers-reduced-motion.
   =========================================================== */

:root {
  --ink: #16140f; /* near-black ink — text, footer, buttons */
  --ink-soft: #6f6a5e; /* secondary text */
  --bone: #f5f3ed; /* page background (warm ivory) */
  --bone-deep: #ece8de; /* alternate section / tile background */
  --oxide: #7d3a26; /* accent — the painted-handle red */
  --hairline: #ddd7c9; /* hairline rules and borders */
  --maxw: 1180px; /* content max width */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-decoration: none;
}
a:hover {
  color: var(--oxide);
}

em {
  font-family: var(--font-display);
  font-size: 1.08em;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oxide);
  margin-bottom: 1.2rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ===========================================================
   Motion system
   - Cross-document view transitions give every page change a
     soft lift; the header and announce bar are named so they
     hold still while content swaps beneath them.
   - [data-rise] elements play an entrance on load (hero).
   - [data-reveal] elements fade up when scrolled into view;
     site.js staggers children of [data-reveal-group].
   The .js gate keeps content visible when scripts are off.
   =========================================================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-out 0.26s ease both;
}
::view-transition-new(root) {
  animation: vt-in 0.5s var(--ease-out) both;
}
@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.site-header {
  view-transition-name: site-header;
}
.announce {
  view-transition-name: announce;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.js [data-rise] {
  opacity: 0;
  animation: rise 0.9s var(--ease-out) forwards;
  animation-delay: var(--rise-delay, 0s);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease var(--reveal-delay, 0s),
    transform 0.7s var(--ease-out) var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
  .js [data-rise] {
    opacity: 1;
    animation: none;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-art img,
  .hero-art svg,
  .collection-tile img,
  .collection-tile svg,
  .product-thumb img,
  .product-thumb svg {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 16px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 243, 237, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 32px;
  gap: 24px;
}

.nav-links,
.nav-utility {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-utility {
  justify-content: flex-end;
}

.nav-links a,
.nav-utility a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 4px;
}
.nav-links a:hover,
.nav-utility a:hover {
  color: var(--ink);
}

/* Underline slides in from the left on hover, out to the right on leave. */
.nav-links a::after,
.nav-utility a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after,
.nav-utility a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a[aria-current="page"] {
  color: var(--ink);
}
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}
.brand:hover {
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn,
.btn-outline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    letter-spacing 0.3s ease;
}
.btn {
  background: var(--ink);
  color: var(--bone);
}
.btn:hover {
  background: transparent;
  color: var(--ink);
  letter-spacing: 0.26em;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--bone);
  letter-spacing: 0.26em;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 88px;
  text-align: center;
}
.hero h1 {
  margin: 0 auto 0.25em;
  max-width: 16ch;
}
.hero .lead {
  margin: 0 auto 2.4em;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-art {
  margin-top: 72px;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background:
    radial-gradient(90% 140% at 75% 0%, #d8cfbd 0%, transparent 60%),
    linear-gradient(165deg, #e6e0d2 0%, #cfc6b2 55%, #b3a78d 100%);
}
/* Slow Ken Burns drift; site.js adds a gentle scroll parallax on the frame. */
.hero-art img,
.hero-art svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  animation: hero-drift 26s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from {
    transform: scale(1.03) translateY(0);
  }
  to {
    transform: scale(1.09) translateY(-14px);
  }
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 58ch;
  margin: 0 auto 56px;
}
.section-head p {
  color: var(--ink-soft);
}

.section-deep {
  background: var(--bone-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.rule {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}
.product-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
}

.product-card {
  text-align: center;
}
.product-card a {
  display: block;
}

.product-thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bone-deep);
  margin-bottom: 18px;
}
.product-thumb img,
.product-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.product-card:hover .product-thumb img,
.product-card:hover .product-thumb svg {
  transform: scale(1.06);
}

.product-num {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.15em;
}
.product-line {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.5em;
}
.product-price {
  font-size: 0.88rem;
  color: var(--oxide);
  margin: 0;
}

/* "View" hint slides up under the price on hover. */
.product-view {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  width: fit-content;
  margin: 12px auto 0;
  padding-bottom: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s var(--ease-out);
}
.product-card:hover .product-view {
  opacity: 1;
  transform: none;
}

.badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--oxide);
  padding: 4px 10px;
  margin-bottom: 12px;
}

/* ---------- Journal (blog.html) ---------- */
/* An editorial single-column list; rows come from the posts source via the
   fetch repeater, so the skeleton bars below stand in while it loads and
   .post-empty is the wired-but-no-entries state. */
.post-list {
  max-width: 760px;
  margin: 0 auto;
}
.post-card {
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
}
.post-meta {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.post-tag {
  color: var(--oxide);
}
.post-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.35em;
}
.post-title a:hover {
  color: var(--oxide);
}
.post-excerpt {
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 1em;
}
.post-read {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* Skeleton bars ({.exists skeleton} rows) while the posts source loads. */
.post-skeleton {
  display: block;
  background: var(--bone-deep);
  margin-bottom: 12px;
}
.post-skeleton-meta {
  width: 140px;
  height: 0.8rem;
}
.post-skeleton-title {
  width: 60%;
  height: 2rem;
}
.post-skeleton-headline {
  width: 80%;
  height: 3rem;
}
.post-skeleton-line {
  width: 100%;
  height: 0.9rem;
}
.post-skeleton-line.short {
  width: 40%;
}
.post-card.is-loading .post-skeleton {
  animation: post-skeleton-pulse 1.4s ease-in-out infinite;
}
@keyframes post-skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .post-card.is-loading .post-skeleton {
    animation: none;
  }
}

/* One full entry (the /blog/:slug permalink — repeaters/blog-entry.html). */
.post-entry-head {
  padding-top: 48px;
}
.post-entry-region {
  max-width: 720px;
  margin: 0 auto;
}
.post-back {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.post-back::before {
  content: "\2190\00a0\00a0";
}
.post-entry-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 0.5em;
}
.post-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1.2em;
}
.post-body p:first-of-type {
  font-size: 1.18rem;
  color: var(--ink-soft);
}

/* Next/prev entry navigation (repeaters/blog-entry.html — the reserved
   prev./next. neighbor fields). Two columns; the spacer keeps "Older" right
   when the newest entry has nothing newer. */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.post-nav-link {
  max-width: 44%;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
}
.post-nav-link:hover {
  color: var(--oxide);
}
.post-nav-older {
  text-align: right;
}
.post-nav-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.post-nav-spacer {
  flex: 1;
}

.post-empty {
  text-align: center;
  padding: 48px 0 24px;
}
.post-empty h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.post-empty p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto;
}

/* ---------- Editorial collection tiles ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.collection-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--bone);
}
.collection-tile img,
.collection-tile svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.collection-tile:hover img,
.collection-tile:hover svg {
  transform: scale(1.05);
}
/* Ink wash so the label stays legible over photography. */
.collection-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 20, 15, 0.62), rgba(22, 20, 15, 0.04) 60%);
}
.collection-tile .tile-copy {
  position: relative;
  z-index: 1;
  padding: 36px 40px;
}
.collection-tile h3 {
  font-size: 2rem;
  color: var(--bone);
  margin-bottom: 0.2em;
}
.collection-tile .tile-link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  border-bottom: 1px solid rgba(245, 243, 237, 0.5);
  padding-bottom: 3px;
  transition: border-color 0.3s ease;
}
.collection-tile .tile-link::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.35s var(--ease-out);
}
.collection-tile:hover .tile-link {
  border-bottom-color: var(--bone);
}
.collection-tile:hover .tile-link::after {
  transform: translateX(5px);
}
.tile-camp {
  background: linear-gradient(170deg, #2e3526 0%, #16140f 100%);
}
.tile-workshop {
  background: linear-gradient(170deg, #4a3a2a 0%, #211a12 100%);
}

/* ---------- Ethos columns ---------- */
.ethos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
.ethos-grid h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.ethos-grid p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 32ch;
  margin: 0 auto;
}
.ethos-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--oxide);
  margin-bottom: 14px;
}

/* ---------- Quote band ---------- */
.quote {
  text-align: center;
}
.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  max-width: 30ch;
  margin: 0 auto 0.8em;
}
.quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Story / about ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.story-art {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(165deg, #ddd5c2 0%, #b9ad92 100%);
}
.story-art img,
.story-art svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---------- Full-bleed photo bands ---------- */
.photo {
  padding: 0;
}
.photo img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}
.visit-art {
  margin-bottom: 56px;
}
.visit-art img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.story-copy p {
  color: var(--ink-soft);
}
.story-copy p:first-of-type {
  color: var(--ink);
  font-size: 1.12rem;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.facts li span:last-child {
  color: var(--ink-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- Contact / visit ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-info dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--oxide);
  margin-top: 24px;
}
.contact-info dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
}
.contact-info dl {
  margin: 0;
}

.form-field {
  margin-bottom: 22px;
}
.form-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--ink);
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b8b2a4;
  padding: 72px 0 48px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-grid h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0 0 18px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  margin-bottom: 10px;
}
.footer-grid a {
  color: #b8b2a4;
}
.footer-grid a:hover {
  color: var(--bone);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  display: block;
  margin-bottom: 16px;
}
.footer-tagline {
  max-width: 30ch;
}

.newsletter {
  display: flex;
  border-bottom: 1px solid #4a463c;
  max-width: 320px;
}
.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--bone);
  font: inherit;
  font-size: 0.9rem;
  padding: 10px 0;
}
.newsletter input::placeholder {
  color: #7d7869;
}
.newsletter input:focus {
  outline: none;
}
.newsletter button {
  background: transparent;
  border: none;
  color: var(--bone);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 0 10px 16px;
  transition: color 0.3s ease;
}
.newsletter button:hover {
  color: #d98a6a;
}

.footer-fine {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid #2e2b22;
  padding-top: 28px;
  font-size: 0.78rem;
  color: #7d7869;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .product-grid,
  .product-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .ethos-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  /* Stack the header: wordmark centered on top, links beneath. */
  .nav {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 12px;
    padding: 14px 20px;
  }
  .nav-links {
    gap: 22px;
  }
  .nav-utility {
    display: none;
  }
  .brand {
    order: -1;
    font-size: 1.05rem;
  }
  .product-grid,
  .product-grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 72px 0 64px;
  }
}
