:root {
  --paper: #f7f1ea;
  --paper-2: #fbf7f2;
  --ink: #3d2a24;
  --ink-soft: #6b524c;
  --gold: #c4a36a;
  --gold-2: #d4bc8c;
  --rose: #d4a5a0;
  --deep: #3d2a24;
  --line: rgba(27, 20, 16, 0.12);
  --shadow: 0 28px 70px rgba(42, 32, 27, 0.14);
  --radius: 2px;
  --max: 1180px;
  --header: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

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

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

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

h1,
h2,
h3,
.serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: #fff;
  padding: 8px 12px;
}

.announce {
  background: var(--deep);
  color: #f6efe6;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header);
  padding: 0 28px;
  background: rgba(243, 236, 226, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  height: 72px;
  width: auto;
}

.brand-logo-foot {
  height: 96px;
  margin-bottom: 10px;
  background: #fbf7f2;
  border-radius: 50%;
}

.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.brand-mark span {
  color: var(--gold);
}

.brand small {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.btn {
  border: 0;
  cursor: pointer;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  background: transparent;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--deep);
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

.menu-btn {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  background: var(--deep);
  color: #f7f1e8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.btn:hover {
  background: #3d312a;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  color: #fff;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: calc(100vh - 116px);
}

.hero-copy {
  padding: 72px 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 86px);
  margin: 0 0 20px;
}

.hero p.lead {
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: #ddd5c8;
}

.hero-media img,
.hero-media .ph,
.hero-media .media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper-2);
  min-height: 560px;
}

.float-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 210px;
  background: var(--paper-2);
  padding: 12px;
  box-shadow: var(--shadow);
}

.float-card img,
.float-card .ph,
.float-card .media-fill {
  height: 160px;
  width: 100%;
  object-fit: cover;
  min-height: 0;
}

.float-card p {
  margin: 10px 0 0;
  font-size: 13px;
}

.float-card strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: var(--paper-2);
}

.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: slide 28s linear infinite;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 0;
}

.section-head p {
  max-width: 340px;
  margin: 0;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.split-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.split-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  background: #3d312a;
}

.split-card img,
.split-card .ph,
.split-card .media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 460px;
  transition: transform 0.8s ease;
}

.split-card:hover img {
  transform: scale(1.04);
}

.split-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 20, 16, 0.62), transparent 52%);
  pointer-events: none;
}

.split-copy {
  position: absolute;
  inset: auto 28px 28px 28px;
  z-index: 1;
  color: #fff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.split-copy h3 {
  font-size: 48px;
  margin: 0 0 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
}

.card {
  background: var(--paper-2);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #efe6d8;
}

.card-media img,
.card-media .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--paper-2);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
}

.card-body {
  padding: 12px 6px 8px;
}

.card-body h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 6px;
}

.card-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(61, 42, 36, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.story img,
.story-photo,
.story-photo img,
.story-photo .ph {
  width: 100%;
  height: 560px;
  object-fit: cover;
  background: var(--paper-2);
}

.quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 20px;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.note {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.note h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.page-hero {
  padding: 64px 0 80px;
}

.page-hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  margin: 8px 0 12px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 28px;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  min-height: 36px;
  padding: 0 14px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.chip.is-on,
.chip:hover {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding-bottom: 80px;
}

.product-layout h1 {
  font-size: clamp(28px, 5vw, 48px);
}

.product-gallery {
  display: grid;
  gap: 12px;
  align-content: start;
}

.product-layout img,
.product-photo,
.product-photo img,
.product-photo .ph {
  width: 100%;
  height: 480px;
  max-height: 480px;
  object-fit: contain;
  background: #efe6d8;
}

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--line);
  background: #efe6d8;
  cursor: pointer;
}

.product-thumbs img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.product-thumbs button.is-on {
  border-color: var(--deep);
}

.product-colors {
  margin: 8px 0 20px;
}

.color-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  cursor: pointer;
}

.color-chip.is-on {
  border-color: var(--deep);
  background: #fff;
}

.price {
  font-size: 22px;
  margin: 12px 0 20px;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

label span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 12px 14px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-ok {
  display: none;
  padding: 16px;
  background: #e8f0e4;
  border: 1px solid #b7c9ae;
}

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.map-block {
  min-height: 320px;
  background: var(--deep);
  color: #f4ece2;
  padding: 32px;
}

.footer {
  background: var(--deep);
  color: #efe6da;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer a:hover {
  color: var(--gold-2);
}

.fine {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  font-size: 12px;
  color: #cabbac;
}

.drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer-bg {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.drawer.is-open .drawer-bg {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--paper-2);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  padding: 28px;
  overflow: auto;
}

.drawer.is-open .drawer-panel {
  transform: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img,
.cart-item .ph {
  width: 72px;
  height: 88px;
  object-fit: contain;
  background: #efe6d8;
}

.empty {
  color: var(--ink-soft);
}

.nav-mobile {
  display: none;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .split-3,
  .story,
  .product-layout,
  .visit,
  .footer-grid,
  .grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .notes {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .menu-btn,
  .nav-mobile {
    display: block;
  }

  .nav-mobile {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 16px 28px 24px;
  }

  .nav-mobile.is-open {
    display: grid;
    gap: 14px;
  }

  .header {
    position: relative;
  }

  .hero-copy {
    padding: 40px 24px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }

  .hero,
  .story,
  .product-layout,
  .visit,
  .footer-grid,
  .split,
  .split-3 {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .card-body {
    padding: 10px 2px 6px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 12px;
  }

  .product-layout img,
  .product-photo,
  .product-photo img,
  .product-photo .ph {
    height: 300px;
    max-height: 300px;
  }

  .brand-logo {
    height: 56px;
  }

  .header {
    padding: 0 16px;
  }

  .float-card {
    width: 160px;
  }
}

.media-fill {
  display: block;
  width: 100%;
  height: 100%;
}

.ph {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 20px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  color: var(--ink-soft);
}

.ph-cloth {
  background:
    radial-gradient(circle at 18% 20%, rgba(196, 163, 106, 0.2), transparent 42%),
    linear-gradient(160deg, #efe6d8, #e0d0bf);
}

.ph-gold {
  background:
    radial-gradient(circle at 80% 16%, rgba(196, 163, 106, 0.4), transparent 46%),
    linear-gradient(160deg, #f4ead8, #d8c4a0);
}

.admin-slots,
.admin-add {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.admin-add {
  margin-bottom: 28px;
  padding: 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-card,
.admin-row {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 14px;
}

.admin-thumb,
.admin-thumb img,
.admin-thumb .ph {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.admin-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-edit {
  display: grid;
  gap: 8px;
}

.admin-edit label span,
.admin-add label span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.admin-edit textarea,
.admin-add textarea {
  min-height: 120px;
  width: 100%;
}

.product-desc {
  white-space: pre-wrap;
  color: var(--ink-soft);
  max-width: 42em;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-file {
  position: relative;
  overflow: hidden;
}

.admin-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-error {
  color: #8a2d2d;
}

.admin-list {
  margin-top: 24px;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-check input {
  width: auto;
}

.admin-row.is-hidden {
  opacity: 0.55;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin: 8px 0 16px;
}

.admin-count {
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.admin-results {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  margin-bottom: 24px;
}

.admin-result {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 8px;
  cursor: pointer;
}

.admin-result.is-on {
  border-color: var(--deep);
}

.admin-result img,
.admin-result .ph {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #efe6d8;
}

.admin-result strong {
  display: block;
}

.admin-result small {
  color: var(--ink-soft);
}

.admin-editor {
  padding: 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.admin-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}

.admin-shot {
  width: 110px;
}

.admin-shot img,
.admin-shot .ph {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: #efe6d8;
}

.admin-shot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.admin-shot-actions button {
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
  padding: 4px 6px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .admin-row,
  .admin-toolbar,
  .admin-result {
    grid-template-columns: 1fr;
  }
}
