:root {
  color-scheme: light;
  --ink: #191817;
  --ink-soft: #4f4a43;
  --ink-muted: #7a7165;
  --paper: #faf7ef;
  --paper-deep: #eee5d5;
  --pearl: #ffffff;
  --rose: #b94837;
  --jade: #386f65;
  --sage: #d8dfd0;
  --graphite: #202120;
  --metal: #aa8842;
  --line: rgba(25, 24, 23, 0.15);
  --shadow: 0 24px 70px rgba(28, 24, 18, 0.16);
  --radius: 8px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::selection {
  background: var(--sage);
}

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

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

button {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--ink);
  background: rgba(250, 247, 239, 0.84);
  border-bottom: 1px solid rgba(25, 24, 23, 0.08);
  backdrop-filter: blur(18px);
}

.site-header[data-elevated="true"] {
  box-shadow: 0 16px 44px rgba(31, 36, 34, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-width: 0;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper);
  background: var(--graphite);
  border: 1px solid rgba(170, 136, 66, 0.46);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.brand-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.primary-nav a {
  padding: 10px 0;
}

.primary-nav a:hover {
  color: var(--ink);
}

.header-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.control-select {
  min-width: 112px;
  height: 38px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero {
  position: relative;
  min-height: 88vh;
  padding: 124px clamp(18px, 4vw, 54px) 72px;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper-deep);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: var(--hero-image);
  background-position: center right;
  background-size: cover;
  opacity: 0.96;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(250, 247, 239, 0.97) 0%, rgba(250, 247, 239, 0.84) 38%, rgba(250, 247, 239, 0.22) 70%, rgba(250, 247, 239, 0.08) 100%),
    linear-gradient(0deg, rgba(250, 247, 239, 0.9) 0%, rgba(250, 247, 239, 0) 42%);
}

.hero-inner {
  display: grid;
  align-items: end;
  min-height: calc(88vh - 196px);
  max-width: var(--max);
  margin: 0 auto;
}

.hero-copy {
  width: min(680px, 100%);
}

.section-kicker,
.hero-kicker {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6.6vw, 6.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
}

.hero-actions,
.product-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button-primary,
.button-secondary,
.button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button-primary {
  color: var(--paper);
  background: var(--graphite);
  border: 1px solid var(--graphite);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(32, 35, 35, 0.24);
}

.button-quiet {
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
}

.button-primary:hover,
.button-secondary:hover,
.button-quiet:hover {
  transform: translateY(-1px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  width: min(720px, 100%);
  margin-top: 52px;
}

.metric {
  min-height: 86px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(25, 24, 23, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.metric span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.section {
  padding: clamp(70px, 10vw, 128px) clamp(18px, 4vw, 54px);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.45fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.9rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

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

.collection-card,
.product-card,
.standard-card,
.market-card,
.editor-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.collection-card {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
}

.collection-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.collection-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgba(20, 17, 14, 0.78), rgba(20, 17, 14, 0.1) 70%);
}

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

.collection-card > div {
  align-self: end;
  padding: 22px;
}

.collection-card h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.collection-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink-soft);
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--graphite);
  border-color: var(--graphite);
}

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

.product-card {
  display: grid;
  grid-template-rows: 320px auto;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(33, 38, 36, 0.06);
}

.product-media {
  position: relative;
  background: var(--paper-deep);
  overflow: hidden;
}

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

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 6px 10px;
  color: var(--paper);
  background: rgba(32, 35, 35, 0.72);
  border-radius: var(--radius);
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.product-card h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.product-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.price-line {
  color: var(--ink);
  font-weight: 800;
}

.standards-band {
  color: var(--paper);
  background: var(--graphite);
}

.standards-band .section-kicker,
.standards-band .section-heading p {
  color: rgba(255, 255, 255, 0.7);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.standard-card {
  min-height: 220px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

.standard-card strong {
  display: block;
  margin-bottom: 42px;
  color: var(--rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 400;
}

.standard-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 400;
}

.standard-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.market-card {
  padding: 22px;
}

.market-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.market-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.site-footer {
  padding: 42px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.72);
  background: #171a1a;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-inner strong {
  display: block;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
}

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

.loading-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--ink-soft);
}

.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(216, 223, 208, 0.86), rgba(250, 247, 239, 0.96) 46%, rgba(185, 72, 55, 0.16)),
    var(--paper);
}

.admin-app {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 42px;
  align-items: center;
  min-height: 84vh;
}

.admin-login h1,
.admin-shell h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1;
}

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

.editor-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.editor-panel label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.editor-panel input,
.editor-panel textarea,
.editor-panel select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editor-panel textarea {
  min-height: 104px;
  resize: vertical;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--ink-soft);
}

.admin-shell {
  display: grid;
  gap: 22px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pearl);
}

.admin-tab[aria-selected="true"] {
  color: var(--paper);
  background: var(--graphite);
  border-color: var(--graphite);
}

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

.editor-list {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editor-list button {
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editor-list button[aria-current="true"] {
  border-color: var(--graphite);
  box-shadow: inset 3px 0 0 var(--graphite);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.json-editor {
  min-height: 520px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .primary-nav {
    display: none;
  }

  .section-heading,
  .admin-login,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .collection-grid,
  .product-grid,
  .standards-grid,
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    width: 100%;
    max-width: 100vw;
    padding-right: 14px;
    padding-left: 14px;
    overflow: hidden;
  }

  .brand-word {
    white-space: normal;
  }

  .header-controls {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .control-select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 24px;
    padding-left: 10px;
    font-size: 0.94rem;
  }

  .hero {
    min-height: 86vh;
    padding-top: 76px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-lede {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero h1 {
    max-width: min(100%, 330px);
    font-size: clamp(2rem, 9.8vw, 2.28rem);
    line-height: 1.04;
  }

  .hero-lede {
    max-width: min(100%, 330px);
    font-size: 0.98rem;
  }

  .hero::before {
    background-position: center;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(250, 247, 239, 0.95) 0%, rgba(250, 247, 239, 0.84) 48%, rgba(250, 247, 239, 0.36) 100%);
  }

  .hero-metrics,
  .collection-grid,
  .product-grid,
  .standards-grid,
  .market-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 260px auto;
  }

  .footer-inner,
  .admin-topbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
