:root {
  --ink: oklch(0.18 0.018 70);
  --soft-ink: oklch(0.34 0.018 73);
  --muted: oklch(0.56 0.021 70);
  --paper: oklch(0.97 0.013 78);
  --ivory: oklch(0.94 0.026 82);
  --sand: oklch(0.86 0.034 76);
  --stone: oklch(0.72 0.018 250);
  --oxblood: oklch(0.34 0.095 18);
  --charcoal: oklch(0.16 0.014 260);
  --line: oklch(0.82 0.018 78);
  --white: oklch(0.99 0.004 78);
  --shadow: 0 22px 70px oklch(0.16 0.014 260 / 0.16);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  align-items: center;
  background: oklch(0.99 0.004 78 / 0.86);
  border-bottom: 1px solid oklch(0.82 0.018 78 / 0.5);
  color: var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  height: 68px;
  left: 0;
  padding: 0 28px;
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, border-color 180ms ease, height 180ms ease;
  z-index: 30;
}

.site-header.is-clear {
  background: transparent;
  border-color: transparent;
}

.site-header.is-clear,
.site-header.is-clear a,
.site-header.is-clear button {
  color: var(--charcoal);
}

.site-header.is-compact {
  height: 58px;
  background: oklch(0.99 0.004 78 / 0.95);
  backdrop-filter: blur(16px);
}

.desktop-nav,
.header-actions {
  align-items: center;
  display: flex;
  gap: 22px;
}

.site-header .brand-mark {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.desktop-nav a,
.panel-nav a,
.site-footer a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1;
  text-align: center;
}

.header-actions {
  justify-content: flex-end;
  grid-column: 3;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 44px;
}

.icon-button svg {
  height: 20px;
  stroke-width: 1.5;
  width: 20px;
}

.cart-count {
  align-items: center;
  background: var(--charcoal);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.64rem;
  font-weight: 700;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 5px;
  position: absolute;
  right: 3px;
  top: 7px;
}

.hero {
  min-height: 86svh;
  position: relative;
}

.hero-image {
  height: 86svh;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero::after {
  background: linear-gradient(180deg, transparent 30%, oklch(0.16 0.014 260 / 0.24) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-content {
  bottom: clamp(28px, 7vw, 82px);
  color: var(--charcoal);
  left: clamp(18px, 5vw, 72px);
  max-width: 520px;
  position: absolute;
  z-index: 1;
}

.eyebrow {
  color: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.15rem, 4.6vw, 4.25rem);
  line-height: 0.94;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.hero-actions,
.section-heading.split,
.cart-summary > div {
  align-items: center;
  display: flex;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid currentColor;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 46px;
  padding: 0 22px;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.button-light {
  background: oklch(0.99 0.004 78 / 0.9);
  border-color: oklch(0.99 0.004 78 / 0.9);
  color: var(--charcoal);
}

.category-strip {
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.category-strip a {
  border-right: 1px solid oklch(0.99 0.004 78 / 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  min-height: 70px;
  padding: 28px 18px;
  text-align: center;
  text-transform: uppercase;
}

.section-pad {
  padding: clamp(52px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  margin: 0 auto clamp(28px, 4vw, 52px);
  max-width: 960px;
  text-align: center;
}

.section-heading .eyebrow,
.detail-copy .eyebrow,
.atelier-copy .eyebrow {
  color: var(--oxblood);
}

.section-heading.split {
  justify-content: space-between;
  max-width: none;
  text-align: left;
}

.section-heading.split h2 {
  max-width: 760px;
}

.text-link,
.feature-tile a {
  border-bottom: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-bottom: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid .section-heading {
  grid-column: 1 / -1;
}

.feature-tile {
  background: var(--ivory);
  min-height: 540px;
  overflow: hidden;
  position: relative;
}

.feature-tile.large {
  grid-column: span 2;
}

.feature-tile img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 650ms ease;
  width: 100%;
}

.feature-tile:hover img {
  transform: scale(1.035);
}

.feature-tile::after {
  background: linear-gradient(180deg, transparent 42%, oklch(0.13 0.018 70 / 0.65) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.feature-tile div {
  bottom: 28px;
  color: var(--white);
  left: 28px;
  position: absolute;
  right: 28px;
  z-index: 1;
}

.feature-tile p {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  min-width: 0;
}

.product-card button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.product-image {
  background: var(--ivory);
  height: clamp(330px, 35vw, 520px);
  overflow: hidden;
  position: relative;
}

.product-image img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 450ms ease;
  width: 100%;
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.quick-add {
  background: oklch(0.99 0.004 78 / 0.94);
  bottom: 12px;
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 700;
  left: 12px;
  letter-spacing: 0.08em;
  min-height: 42px;
  padding: 13px 16px;
  position: absolute;
  right: 12px;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-card:not(:hover) .quick-add {
  opacity: 0;
}

.product-meta {
  display: grid;
  gap: 8px;
  padding-top: 16px;
}

.product-meta h3 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.product-meta p,
.product-meta span {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.atelier-band {
  align-items: stretch;
  background: var(--charcoal);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 680px;
}

.atelier-copy {
  align-self: center;
  max-width: 590px;
  padding: clamp(42px, 7vw, 96px);
}

.atelier-copy p:not(.eyebrow) {
  color: oklch(0.91 0.012 78);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.atelier-band img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.signature-detail {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.detail-media {
  background: var(--ivory);
  min-height: 620px;
  overflow: hidden;
}

.detail-media img {
  height: 100%;
  object-fit: cover;
  object-position: left top;
  width: 100%;
}

.detail-copy {
  max-width: 620px;
}

.detail-copy p {
  color: var(--soft-ink);
  font-size: 1.02rem;
  line-height: 1.8;
}

.detail-list {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.detail-list div {
  display: grid;
  gap: 12px;
  grid-template-columns: 120px 1fr;
  padding: 18px 0;
}

.detail-list div + div {
  border-top: 1px solid var(--line);
}

.detail-list dt {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.detail-list dd {
  color: var(--soft-ink);
  margin: 0;
}

.service-row {
  background: var(--ivory);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: clamp(44px, 6vw, 80px);
  padding-top: clamp(44px, 6vw, 80px);
}

.service-row article {
  border-left: 1px solid var(--line);
  padding: 18px clamp(18px, 3vw, 44px);
}

.service-row article:first-child {
  border-left: 0;
}

.service-row svg {
  color: var(--oxblood);
  height: 26px;
  margin-bottom: 18px;
  stroke-width: 1.4;
  width: 26px;
}

.service-row h3 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-row p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-footer {
  align-items: start;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 42px clamp(18px, 5vw, 72px);
}

.footer-brand {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 14px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 410px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: flex-end;
}

.side-panel {
  background: var(--paper);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100svh;
  max-width: min(430px, 92vw);
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 240ms ease;
  width: 430px;
  z-index: 60;
}

.side-panel.is-open {
  transform: translateX(0);
}

.panel-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 58px;
}

.panel-head p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0;
}

.panel-nav {
  display: grid;
  gap: 4px;
  padding-top: 26px;
}

.panel-nav a {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.field-label {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 24px 0 10px;
  text-transform: uppercase;
}

.search-input {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 50px;
  padding: 0 14px;
  width: 100%;
}

.search-results,
.cart-items {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 20px 0;
}

.result-item,
.cart-item {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px 1fr;
  padding: 0;
  text-align: left;
}

.result-item img,
.cart-item img {
  aspect-ratio: 1;
  background: var(--ivory);
  object-fit: cover;
  width: 72px;
}

.result-item p,
.cart-item p {
  font-weight: 700;
  margin: 0 0 5px;
}

.result-item span,
.cart-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.cart-summary {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 18px;
}

.cart-summary > div {
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-summary .button {
  width: 100%;
}

.page-shade {
  background: oklch(0.13 0.018 70 / 0.38);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 200ms ease;
  z-index: 50;
}

.page-shade.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.product-dialog {
  background: var(--paper);
  border: 0;
  color: var(--ink);
  max-height: min(840px, 92svh);
  max-width: min(1040px, 94vw);
  padding: 0;
  width: 100%;
}

.product-dialog::backdrop {
  background: oklch(0.13 0.018 70 / 0.45);
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.dialog-content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.dialog-content img {
  height: 100%;
  max-height: 840px;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.dialog-info {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 5vw, 58px);
}

.dialog-info h2 {
  margin-bottom: 10px;
}

.dialog-info p {
  color: var(--soft-ink);
  line-height: 1.75;
}

.price-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 10px 0 26px;
}

.price-row strong {
  font-size: 1.05rem;
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}

.size-row button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  height: 42px;
  min-width: 48px;
}

.specs {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
}

.specs li {
  color: var(--soft-ink);
  line-height: 1.55;
}

.desktop-only {
  display: inline-flex;
}

@media (max-width: 980px) {
  .desktop-nav,
  .desktop-only {
    display: none;
  }

  .site-header {
    padding: 0 14px;
  }

  .hero-image {
    object-position: 45% center;
  }

  .category-strip,
  .product-grid,
  .service-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-tile.large {
    grid-column: span 2;
  }

  .atelier-band,
  .signature-detail,
  .dialog-content {
    grid-template-columns: 1fr;
  }

  .atelier-band {
    min-height: 0;
  }

  .atelier-band img {
    max-height: 620px;
  }

  .detail-media {
    min-height: 520px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 58px;
  }

  .site-header.is-clear {
    background: oklch(0.99 0.004 78 / 0.78);
    backdrop-filter: blur(10px);
  }

  .brand-mark {
    font-size: 1.75rem;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-image {
    height: 78svh;
  }

  .hero-content {
    bottom: 22px;
    left: 18px;
    right: 18px;
  }

  .hero h1 {
    max-width: 9ch;
  }

  .hero-actions,
  .section-heading.split {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .category-strip {
    grid-template-columns: 1fr 1fr;
  }

  .category-strip a {
    min-height: 58px;
    padding: 22px 12px;
  }

  .feature-grid,
  .product-grid,
  .service-row {
    grid-template-columns: 1fr;
  }

  .feature-tile,
  .feature-tile.large {
    grid-column: auto;
    min-height: 480px;
  }

  .product-image {
    height: 460px;
  }

  .product-card:not(:hover) .quick-add {
    opacity: 1;
    transform: none;
  }

  .atelier-copy {
    padding: 42px 18px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
  }

  .service-row article,
  .service-row article:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
  }

  .product-dialog {
    max-height: 94svh;
    overflow: auto;
  }
}
