:root {
  --paper: #efe6d8;
  --ink: #1c1712;
  --muted: #6e6458;
  --line: #d9cbb8;
  --copper: #b85c38;
  --copper-deep: #8f3f24;
  --panel: #f7f1e7;
  --shadow: 0 24px 60px rgba(28, 23, 18, 0.16);
}

* {
  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.5;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 6vw;
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}

.logo {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 560;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--copper);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a,
.footer a {
  color: var(--ink);
  text-decoration: none;
}

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

.cart-btn,
.btn,
.icon-btn {
  font: inherit;
  cursor: pointer;
}

.cart-btn {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: var(--copper);
  color: var(--paper);
  font-size: 0.75rem;
}

.hero {
  padding: 12vh 6vw 8vh;
  max-width: 70rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--copper);
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 0.95;
  margin: 0 0 1.4rem;
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--copper-deep);
}

.lede {
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.hero-actions,
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
}

.btn.ghost:hover,
.cart-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn.full {
  width: 100%;
}

.stats {
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
  gap: 2.5rem;
}

.stats strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 5rem 6vw;
}

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

.section-head h2,
.about-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 0.7rem;
}

.section-head p,
.about-card p {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.8rem 0.8rem 1.1rem;
}

.swatch {
  height: 14rem;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.meta,
.price {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  color: var(--ink);
  margin: 0.6rem 0 0.9rem;
  font-weight: 500;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.steps span {
  display: block;
  color: var(--copper);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

.steps h3 {
  margin: 0 0 0.5rem;
}

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

.about-card {
  max-width: 40rem;
  padding: 2.5rem;
  border: 1px solid var(--line);
  background: #eadfcf;
}

.about-card .note {
  margin-top: 1.4rem;
  color: var(--ink);
}

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 44rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.full {
  grid-column: 1 / -1;
}

input,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.8rem 0.9rem;
  border-radius: 0;
}

.form-status {
  margin: 0;
}

.form-status.ok {
  color: var(--copper-deep);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(28, 23, 18, 0.35);
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(26rem, 100%);
  background: var(--panel);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-head h2 {
  margin: 0;
}

.icon-btn {
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow: auto;
}

.cart-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }

  .steps,
  .order-form {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8vh;
  }
}
