:root {
  --bg: #0c0c0c;
  --bg-soft: #141414;
  --cream: #f3eee6;
  --muted: #9a958c;
  --dim: #6f6b64;
  --gold: #c4a35a;
  --line: rgba(255, 255, 255, 0.08);
  --danger: #d46a5c;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: #111;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

p {
  margin: 0;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: transparent;
  color: var(--cream);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  border-color: var(--cream);
}

.btn-solid {
  background: var(--gold);
  border-color: var(--gold);
  color: #161410;
}

.btn-solid:hover {
  filter: brightness(1.06);
  color: #161410;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.solid {
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.brand-copy em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--cream);
}

.nav-cta {
  display: flex;
  align-items: center;
}

.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--cream);
}

.cart-link span {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--gold);
  color: #161410;
  font-size: 0.62rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle i,
.nav-toggle i::before,
.nav-toggle i::after {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--cream);
  position: relative;
}

.nav-toggle i::before,
.nav-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle i::before {
  top: -5px;
}

.nav-toggle i::after {
  top: 5px;
}

.hero {
  min-height: 92vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 4.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.15) 0%, rgba(12, 12, 12, 0.55) 55%, var(--bg) 100%),
    var(--hero) center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-logo {
  width: 88px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
}

.hero .lead {
  margin-top: 1rem;
  max-width: 34rem;
  color: #ddd8ce;
  font-size: 1.05rem;
}

section.block {
  padding: 5.5rem 0;
}

.section-head {
  margin-bottom: 2.4rem;
  max-width: 38rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

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

.prose p + p {
  margin-top: 1rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.pillar .n {
  margin-bottom: 0.7rem;
  color: var(--dim);
  font-size: 0.8rem;
}

.dogs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.dog-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.dog-card .meta {
  padding-top: 1rem;
}

.dog-card .role {
  margin-bottom: 0.2rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-band {
  padding: 4.5rem 20px;
  text-align: center;
  border-block: 1px solid var(--line);
}

.quote-band blockquote {
  margin: 0 auto;
  max-width: 640px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.4;
}

.quote-band cite {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.85rem;
}

.masonry {
  columns: 3;
  column-gap: 0.85rem;
}

.masonry a {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.85rem;
}

.masonry img {
  width: 100%;
}

.masonry figcaption {
  padding: 0.55rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 0.7rem;
}

.preview-grid a:first-child {
  grid-row: 1 / span 2;
}

.preview-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 1.2rem;
}

.filters a {
  color: var(--muted);
  font-size: 0.92rem;
}

.filters a.is-active,
.filters a:hover {
  color: var(--cream);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card .thumb {
  height: 240px;
  overflow: hidden;
  background: #151515;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.9rem;
  flex: 1;
}

.cat {
  color: var(--muted);
  font-size: 0.75rem;
}

.price {
  margin-top: 0.15rem;
  color: var(--cream);
}

.stock-out {
  color: var(--danger);
  font-size: 0.85rem;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-hero img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.qty {
  width: 84px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  padding: 0.5rem 0.4rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
}

.cart-table td {
  padding: 1rem 0.4rem 1rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.cart-table img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.totals {
  margin-top: 1.4rem;
  text-align: right;
  font-size: 1.15rem;
}

.form {
  display: grid;
  gap: 0.95rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.form input,
.form textarea,
.form select {
  padding: 0.75rem 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
  color: var(--cream);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form label.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-card p {
  margin: 0.25rem 0;
  color: var(--cream);
}

.contact-card a:hover {
  color: var(--gold);
}

.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer img {
  width: 40px;
  border-radius: 50%;
}

.site-footer nav {
  display: flex;
  gap: 1.2rem;
}

.site-footer nav a,
.site-footer small {
  color: var(--dim);
  font-size: 0.82rem;
}

.site-footer nav a:hover {
  color: var(--cream);
}

.flashes {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
}

.flash {
  color: var(--cream);
  font-size: 0.9rem;
}

.flash.err {
  color: var(--danger);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 40px;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 0;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
}

.empty {
  padding: 1rem 0;
  color: var(--muted);
}

.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 1.5rem;
}

.page-hero p {
  margin-top: 0.6rem;
  max-width: 36rem;
}

.badge {
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 960px) {
  .split,
  .pillars,
  .dogs,
  .product-grid,
  .contact-grid,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 170px 170px;
  }

  .preview-grid a:first-child {
    grid-column: 1 / span 2;
    grid-row: auto;
  }

  .masonry {
    columns: 2;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    background: #0c0c0c;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.4rem 1.4rem;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .brand-copy {
    display: none;
  }

  .hero {
    align-items: center;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .masonry,
  .product-grid {
    columns: 1;
    grid-template-columns: 1fr;
  }

  .cart-table td:nth-child(3),
  .cart-table th:nth-child(3) {
    display: none;
  }
}
