/* ==========================================================================
   ROCKY DOG GOODS — quiet editorial leather house
   Brand-true: Fino-style serif headings (Playfair Display on the free web),
   Spectral body, paper / slate / muted leather tan from the live site theme.
   Layout language: bare photography, hairline rules, numbered notes,
   generous whitespace. No cards, no icon rows, no gloss.
   ========================================================================== */

:root {
  /* Palette — from the live site theme */
  --paper: #f6f6f6;
  --ink: #141414;
  --slate: #232b33;
  --slate-deep: #171d23;
  --tan: #a6805f;
  --tan-deep: #8a6749;
  --mist: #d9dadc;

  --text-soft: rgba(20, 20, 20, 0.64);
  --text-on-dark: #f6f6f6;
  --text-on-dark-soft: rgba(246, 246, 246, 0.66);

  --font-display: "Playfair Display", "Fino", Georgia, serif;
  --font-body: "Spectral", Georgia, serif;

  --frame: clamp(1.25rem, 4.5vw, 4rem);
  --ease: cubic-bezier(0.25, 1, 0.4, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--tan);
  color: #fff;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

.frame {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: var(--frame);
}

/* text links — quiet, underlined, no buttons */
.text-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--tan);
  padding-bottom: 0.3rem;
  transition: color 0.25s, border-color 0.25s;
}

.text-link:hover {
  color: var(--tan-deep);
}

.text-link--light {
  color: var(--text-on-dark);
  border-color: rgba(246, 246, 246, 0.6);
}

.text-link--light:hover {
  color: #fff;
  border-color: #fff;
}

/* marginal notes — small, parenthetical, human */
.margin-note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
}

/* gentle reveal — opacity only */
.reveal {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
  }
}

/* ==========================================================================
   Top line + header
   ========================================================================== */

.topline {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-soft);
  padding: 0.6rem var(--frame);
  border-bottom: 1px solid var(--mist);
  background: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 246, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand img {
  height: 40px;
  width: auto;
  /* the mark is white line-art — print it in ink on paper */
  filter: brightness(0) opacity(0.88);
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a,
.nav-cart {
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-cart:hover {
  border-color: var(--tan);
  color: var(--tan-deep);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* ==========================================================================
   Hero — one photograph, one sentence
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--slate-deep);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 29, 35, 0.82) 0%, rgba(23, 29, 35, 0.28) 45%, rgba(23, 29, 35, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  color: var(--text-on-dark);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 7.5vw, 6rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  max-width: 14em;
  text-wrap: balance;
  animation: rise 1.1s var(--ease) both;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: clamp(1.8rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(246, 246, 246, 0.28);
  animation: rise 1.1s 0.25s var(--ease) both;
}

.hero-meta {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Manifesto — one large paragraph, off-center
   ========================================================================== */

.manifesto {
  padding-block: clamp(5rem, 11vw, 9rem) clamp(3rem, 7vw, 5rem);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.manifesto-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.42;
  max-width: 24em;
}

@media (max-width: 720px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   The goods — bare images, hairline captions, staggered grid
   ========================================================================== */

.shop {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(5rem, 10vw, 8rem);
}

.shop-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--ink);
}

.shop-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1.5rem, 3.5vw, 3.5rem);
  row-gap: clamp(3.5rem, 7vw, 6rem);
}

.piece {
  display: block;
  text-decoration: none;
}

.piece--a { grid-column: 1 / 8; }
.piece--b { grid-column: 9 / 13; margin-top: clamp(3rem, 8vw, 7rem); }
.piece--c { grid-column: 2 / 6; }
.piece--d { grid-column: 7 / 13; margin-top: clamp(2rem, 5vw, 4rem); }

.piece-index {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan-deep);
  margin-bottom: 0.8rem;
}

.piece-media {
  overflow: hidden;
  background: var(--mist);
}

.piece-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.piece:hover .piece-media img,
.piece:focus-visible .piece-media img {
  transform: scale(1.03);
}

.ratio-wide { aspect-ratio: 4 / 3; }
.ratio-square { aspect-ratio: 1; }
.ratio-tall { aspect-ratio: 3 / 4; }

.piece-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ink);
}

.piece-caption h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
}

.piece:hover .piece-caption h3 {
  font-style: italic;
}

.piece-price {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-soft);
}

.piece-note {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-top: 0.4rem;
  max-width: 30em;
}

@media (max-width: 860px) {
  .shop-grid {
    grid-template-columns: 1fr;
    row-gap: 3.5rem;
  }
  .piece--a,
  .piece--b,
  .piece--c,
  .piece--d {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .ratio-wide,
  .ratio-square {
    aspect-ratio: 4 / 3;
  }
  .ratio-tall {
    aspect-ratio: 1;
  }
}

/* ==========================================================================
   Full-bleed pause — one image, five words
   ========================================================================== */

.pause {
  position: relative;
  overflow: hidden;
  background: var(--slate-deep);
}

.pause img {
  width: 100%;
  height: min(78vh, 720px);
  object-fit: cover;
  opacity: 0.82;
}

.pause-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: var(--frame);
  color: var(--text-on-dark);
}

.pause-line {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 400;
  line-height: 1.1;
}

.pause-sub {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  margin-top: 1.1rem;
}

/* ==========================================================================
   Story — offset photo, signed copy
   ========================================================================== */

.story {
  padding-block: clamp(5rem, 11vw, 9rem);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.story-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-photo figcaption {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-soft);
  margin-top: 0.7rem;
}

.story-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.story-text p {
  color: var(--text-soft);
  margin-bottom: 1.1rem;
  max-width: 34em;
}

.story-text p em {
  color: var(--ink);
}

.story-sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 1.6rem;
}

@media (max-width: 860px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-photo {
    max-width: 460px;
  }
}

/* ==========================================================================
   From the bench — quiet film loop
   ========================================================================== */

.film {
  position: relative;
  background: var(--slate-deep);
  margin-bottom: clamp(5rem, 11vw, 9rem);
}

.film video {
  display: block;
  width: 100%;
  height: min(82vh, 760px);
  object-fit: cover;
}

.film-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 3.5rem var(--frame) 1.4rem;
  background: linear-gradient(to top, rgba(23, 29, 35, 0.65), transparent);
  color: var(--text-on-dark);
}

.film-caption p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--text-on-dark-soft);
}

/* ==========================================================================
   Materials — a numbered ledger, not icon cards
   ========================================================================== */

.materials {
  padding-block: 0 clamp(5rem, 11vw, 9rem);
}

.material-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: 1.8rem;
  border-top: 1px solid var(--mist);
}

.material-row:last-child {
  border-bottom: 1px solid var(--mist);
}

.material-num {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--tan-deep);
}

.material-row h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
}

.material-row p {
  color: var(--text-soft);
  font-size: 0.9688rem;
  max-width: 34em;
}

@media (max-width: 720px) {
  .material-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* ==========================================================================
   Footer — slate, big mark, one row of links
   ========================================================================== */

.site-footer {
  background: var(--slate);
  color: var(--text-on-dark-soft);
  padding-block: clamp(3.5rem, 8vw, 6rem) 2rem;
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246, 246, 246, 0.16);
}

.footer-logo {
  height: clamp(56px, 8vw, 84px);
  width: auto;
}

.footer-tag {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-on-dark);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.2rem;
  padding-block: 2rem;
}

.footer-nav a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-dark-soft);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text-on-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(246, 246, 246, 0.16);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-bottom a {
  text-decoration: none;
  color: inherit;
}

.footer-bottom a:hover {
  color: var(--text-on-dark);
}
