:root {
  color-scheme: light;
  --bg: #f8f3eb;
  --surface: #fffdfa;
  --surface-soft: #f1e8dc;
  --text: #221f1b;
  --muted: #6d6259;
  --accent: #9f7a42;
  --accent-soft: #d9c7a8;
  --border: rgba(34, 31, 27, 0.14);
  --shadow: 0 22px 54px rgba(50, 39, 27, 0.11);
  --header-bg: rgba(248, 243, 235, 0.92);
  --radius: 6px;
  --max-width: 1200px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151311;
  --surface: #1e1b18;
  --surface-soft: #25211d;
  --text: #f7f1e8;
  --muted: #c8bcae;
  --accent: #d0b071;
  --accent-soft: #6a5636;
  --border: rgba(247, 241, 232, 0.16);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
  --header-bg: rgba(21, 19, 17, 0.92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  transition: background-color 180ms ease, color 180ms ease;
}

body.menu-open {
  overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--max-width), calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-shell {
  display: flex;
  align-items: center;
  width: min(1280px, calc(100vw - 40px));
  min-height: 76px;
  margin: 0 auto;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
}

.brand-mark .logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  overflow: hidden;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-line {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 28px;
}

.desktop-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  margin-left: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  background: var(--text);
  color: var(--bg);
}

.button-dark {
  background: var(--text);
  color: var(--bg);
}

.button-dark:hover {
  background: transparent;
  color: var(--text);
}

.button-small {
  display: none;
  min-height: 42px;
  padding: 10px 16px;
}

.button-large {
  min-width: 178px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 34px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
}

.theme-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 180ms ease;
}

html[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(16px);
}

.theme-toggle [data-theme-toggle-label] {
  display: none;
  min-width: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
  transition: transform 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  display: grid;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  background: var(--header-bg);
  transition: max-height 220ms ease, border-color 220ms ease;
}

.mobile-nav.is-open {
  max-height: 420px;
  border-color: var(--border);
}

.mobile-nav a {
  margin: 0 20px;
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  color: var(--text);
  font-weight: 650;
}

.mobile-nav .button {
  width: calc(100% - 40px);
  margin: 16px 20px 20px;
  border-bottom: 1px solid var(--text);
}

.hero {
  padding: 96px 0 104px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

.hero-copy {
  max-width: 530px;
}

.eyebrow,
.card-kicker,
.footer-note {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
}

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

h1,
h2,
h3 {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 22px;
  font-size: 64px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.18;
}

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

.hero-subtitle {
  max-width: 520px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

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

.hero-art {
  margin: 0;
}

.hero-library-card img,
.image-panel img,
.process-images img,
.collection-card img {
  filter: saturate(0.94) contrast(1.04);
}

.hero-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-library-card {
  overflow: hidden;
  min-width: 0;
  border: 8px solid var(--surface);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(50, 39, 27, 0.1);
}

html[data-theme="dark"] .hero-library-card {
  box-shadow: none;
}

.hero-library-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-art figcaption {
  max-width: 420px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 0 42px;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 0;
  font-size: 17px;
}

.collection-grid {
  display: grid;
  gap: 28px;
}

.collection-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 38px rgba(50, 39, 27, 0.08);
}

html[data-theme="dark"] .collection-card {
  box-shadow: none;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  padding: 12px;
  background: var(--surface);
}

.card-content {
  display: grid;
  align-content: start;
  padding: 0 24px 26px;
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

.card-content p:not(.card-kicker):not(.card-meta) {
  margin-bottom: 22px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  border-bottom: 1px solid currentColor;
  color: var(--text);
  font-weight: 700;
}

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

.purpose-section,
.how-section {
  background: var(--surface);
}

.split-layout,
.process-layout {
  display: grid;
  gap: 54px;
  align-items: center;
}

.text-panel {
  max-width: 570px;
}

.text-panel p:not(.eyebrow) {
  font-size: 17px;
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 12px solid var(--surface);
  box-shadow: var(--shadow);
}

.process-layout {
  align-items: start;
}

.process-images {
  display: grid;
  gap: 20px;
}

.process-primary,
.process-secondary {
  width: 100%;
  object-fit: cover;
  border: 12px solid var(--surface);
  box-shadow: var(--shadow);
}

.process-primary {
  aspect-ratio: 4 / 3;
}

.process-secondary {
  aspect-ratio: 4 / 3;
}

.steps-grid {
  display: grid;
  gap: 20px;
}

.step-card {
  min-height: 100%;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.step-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.step-card p {
  margin-bottom: 0;
}

.shop-cta {
  padding: 96px 0;
  background: var(--bg);
}

.cta-shell {
  display: grid;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 42px;
}

.cta-shell p {
  max-width: 690px;
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding: 44px 0 28px;
}

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-brand img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.footer-brand p {
  max-width: 420px;
  margin-bottom: 4px;
  color: var(--muted);
}

.footer-name {
  color: var(--text) !important;
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.footer-note {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0 22px;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 560px) {
  .theme-toggle [data-theme-toggle-label] {
    display: inline;
  }

  .button-small {
    display: inline-flex;
  }

  .footer-brand {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

@media (min-width: 820px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  }

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

  .split-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  }

  .process-layout {
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  }

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

  .steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cta-shell {
    grid-template-columns: 1fr auto;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-links {
    grid-template-columns: repeat(5, auto);
    align-items: center;
    gap: 20px;
  }
}

@media (max-width: 819px) {
  .container,
  .header-shell {
    width: min(100% - 40px, var(--max-width));
  }

  .site-header {
    position: sticky;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark,
  .brand-mark .logo {
    width: 44px;
    height: 44px;
  }

  .header-shell {
    min-height: 68px;
    gap: 10px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }

  .theme-toggle {
    justify-content: center;
  }

  .theme-toggle-track {
    width: 26px;
    height: 16px;
  }

  .theme-toggle-knob {
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
  }

  html[data-theme="dark"] .theme-toggle-knob {
    transform: translateX(10px);
  }

  .hero,
  .section,
  .shop-cta {
    padding: 64px 0;
  }

  .hero-grid,
  .split-layout,
  .process-layout {
    gap: 34px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 420px;
    font-size: 36px;
    line-height: 1.08;
  }

  h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  h3 {
    font-size: 22px;
  }

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

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

  .hero-library {
    gap: 10px;
    padding: 10px;
  }

  .hero-library-card,
  .image-panel img,
  .process-primary,
  .process-secondary,
  .collection-card img {
    border-width: 8px;
  }

  .cta-shell {
    padding: 28px;
  }
}

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