:root {
  --paper: #f4efe6;
  --paper-2: #e7e0d2;
  --ink: #161513;
  --muted: #5e5952;
  --line: #d8d0c3;
  --white: #fffdf9;
  --hot: #ef4b24;
  --green: #1d6b45;
  --lime: #d7f06a;
  --header-offset: 108px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  margin-bottom: 10px;
  color: var(--hot);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button,
.product-action,
.cart-button,
.icon-button {
  border: 1.5px solid var(--ink);
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.button:hover,
.product-action:hover,
.cart-button:hover {
  background: var(--hot);
  border-color: var(--hot);
  color: white;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
}

.button-ghost:hover {
  color: white;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--hot);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 44px;
  padding: 8px 12px 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.85rem;
}

.cart-button:hover span {
  color: var(--ink);
}

#intro {
  padding: var(--header-offset) 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
}

.lede {
  max-width: 38rem;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-collage img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  padding: 16px;
  background: var(--white);
  border: 1.5px solid var(--ink);
}

#about,
#shop {
  scroll-margin-top: 92px;
}

#about {
  padding: 28px 0 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  padding-top: 36px;
  border-top: 1.5px solid var(--ink);
}

.about-grid h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.about-copy p + p {
  margin-top: 14px;
}

.about-points {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  padding-left: 16px;
  border-left: 3px solid var(--hot);
  font-weight: 600;
}

#shop {
  padding-bottom: 88px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--ink);
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 18px;
  background: var(--paper-2);
  border-bottom: 1.5px solid var(--ink);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px;
}

.product-body h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.price {
  font-size: 1.05rem;
  font-weight: 600;
}

.product-action {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.product-action.is-in-cart {
  background: transparent;
  color: var(--ink);
}

.product-action.is-in-cart:hover {
  background: var(--hot);
  color: white;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
}

.site-footer .brand {
  color: var(--paper);
}

.site-footer .brand img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.45);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 21, 19, 0.62);
}

#summary-overlay {
  z-index: 40;
}

.modal {
  width: min(640px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 22px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}

.modal-header,
.cart-item,
.footer-inner,
.qty-controls {
  display: flex;
  align-items: center;
}

.modal-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.modal-header h2,
.summary-modal h2 {
  font-size: 2.2rem;
}

.icon-button {
  min-height: 40px;
  padding: 8px 12px;
  background: transparent;
  font-weight: 700;
}

.modal-section + .modal-section {
  margin-top: 18px;
}

.modal-section h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.empty-cart {
  color: var(--muted);
}

.cart-item {
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 1rem;
}

.line-price {
  margin-top: 4px;
  font-weight: 700;
}

.cart-item-controls {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.qty-controls {
  gap: 8px;
}

.qty-controls button,
.text-button {
  min-width: 36px;
  min-height: 36px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.qty-controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.text-button {
  padding: 6px 10px;
}

.qty-value {
  min-width: 1.2ch;
  font-weight: 700;
  text-align: center;
}

.field {
  margin-bottom: 8px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--white);
  border: 1.5px solid var(--ink);
}

.field input[aria-invalid="true"] {
  border-color: var(--hot);
}

.field-error,
.checkout-error {
  min-height: 1.2em;
  margin-top: 4px;
  color: var(--hot);
  font-size: 0.92rem;
  font-weight: 600;
}

.checkout-error:empty {
  display: none;
}

.total-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1.5px solid var(--ink);
}

#cart-total {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.cart-actions {
  display: flex;
  gap: 10px;
}

.cart-actions .button {
  flex: 1;
}

.summary-modal {
  display: grid;
  gap: 14px;
}

#summary-items {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

#summary-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.reference {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1020px) {
  .product-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 800px) {
  :root {
    --header-offset: 148px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    padding-bottom: 8px;
  }

  .hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .footer-inner,
  .cart-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner {
    padding: 24px 0;
  }
}

@media (max-width: 560px) {
  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item-controls {
    width: 100%;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }

  .modal {
    max-height: 100%;
    padding: 16px;
  }

  .overlay {
    padding: 0;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
