:root {
  --orange: #E8562E;
  --orange-deep: #C8401B;
  --pastel-orange: #F9CE7C;
  --yellow: #FEF1BA;
  --pastel-red: #FF8D8D;
  --brown: #563923;
  --cream: #FFF9EF;
  --cream-2: #FFF4E4;
  --line: #F3E2CC;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--brown); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--brown); }
a:hover { color: var(--orange-deep); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brown); color: var(--yellow); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 2px; }
.muted { opacity: 0.8; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-orange { background: var(--orange); color: #fff; font-size: 19px; }
.btn-orange:hover { background: var(--orange-deep); color: #fff; }
.btn-outline { background: transparent; border-color: var(--orange); color: var(--brown); font-weight: 600; font-size: 17px; }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-white { background: #fff; color: var(--brown); font-weight: 600; }
.btn-ghost { background: transparent; color: var(--brown); font-weight: 600; }
.btn-small { min-height: 40px; padding: 8px 16px; background: var(--brown); color: var(--yellow); font-size: 14px; }
.btn-small:hover { background: var(--orange-deep); color: #fff; }
.btn-block { width: 100%; }

/* header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a { padding: 10px 12px; font-weight: 500; font-size: 16px; text-decoration: none; }
.main-nav a[aria-current] { color: var(--orange-deep); font-weight: 600; }

/* hero */
.hero { display: flex; flex-wrap: wrap; background: var(--cream-2); }
.hero-copy { flex: 1 1 420px; padding: 56px 24px 56px max(24px, calc((100vw - 1200px) / 2 + 24px)); display: flex; flex-direction: column; gap: 22px; justify-content: center; align-items: flex-start; }
.eyebrow { font-size: 14px; letter-spacing: 0.1em; font-weight: 500; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(42px, 4.6vw, 60px); line-height: 1.05; letter-spacing: 0.03em; text-transform: uppercase; color: var(--orange); }
.lead { font-size: 19px; max-width: 470px; }
.hero-art { flex: 1 1 520px; min-height: 420px; background: var(--pastel-orange); position: relative; overflow: hidden; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; padding-top: 64px; padding-bottom: 24px; text-align: center; }
.feature { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.feature h2 { font-size: 19px; font-weight: 600; }
.dot { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.dot-a { background: #F08A5D; } .dot-b { background: var(--orange); } .dot-c { background: var(--pastel-orange); color: var(--brown); } .dot-d { background: var(--pastel-red); }

/* products */
.creations { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.creations-intro { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; font-size: 18px; }
.kicker { font-size: 18px; font-weight: 500; }
.serif-h { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4vw, 48px); line-height: 1.05; }
.product-grid { flex: 999 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.product-img { position: relative; }
.product-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.badge { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: var(--orange-deep); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; }
.product-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.product-body h3 { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.product-body p { font-size: 13px; line-height: 1.45; }
.product-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--orange-deep); }

/* picks */
.picks { background: #fff; padding: 64px 0; }
.picks .wrap { display: flex; flex-direction: column; gap: 12px; }
.picks-note { max-width: 640px; font-size: 17px; }
.pick-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pick { padding: 22px; border-radius: 16px; background: var(--cream-2); text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.pick-dot { width: 44px; height: 44px; border-radius: 50%; }
.pick-name { font-weight: 600; font-size: 17px; }
.pick-cta { font-weight: 700; margin-top: auto; }

/* banner */
.banner { position: relative; min-height: 280px; overflow: hidden; background: #8A3A17; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-copy { position: relative; padding-top: 48px; padding-bottom: 48px; color: #fff; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.banner h2 { font-family: 'Caveat', cursive; font-weight: 500; font-size: 52px; line-height: 1; text-shadow: 0 1px 2px rgba(60, 20, 0, 0.35); }
.banner p { max-width: 460px; font-size: 17px; text-shadow: 0 1px 2px rgba(60, 20, 0, 0.45); }

/* affiliates */
.affiliates { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.affiliates > div { display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.form > div, .form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
input, select, textarea { padding: 12px; border-radius: 10px; border: 1.5px solid #E5C9A8; font: inherit; font-weight: 400; color: var(--brown); background: #fff; }
.form-msg { font-weight: 600; }
.form-msg.err { color: #B3261E; }
.form-msg.ok { font-family: var(--serif); font-size: 26px; font-weight: 700; }

/* footer */
.site-footer { background: #fff; padding: 32px 0 20px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-row > img { height: 42px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.footer-links a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; }
.studio { font-weight: 600; }
.fine { margin-top: 12px; font-size: 13px; }

/* order dialog */
dialog { border: none; border-radius: 20px; padding: 0; max-width: 460px; width: calc(100% - 32px); color: var(--brown); }
dialog::backdrop { background: rgba(86, 57, 35, 0.5); }
.dialog-inner { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.dialog-inner h2 { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.order-price { font-weight: 700; font-size: 20px; color: var(--orange-deep); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 640px) {
  .brand img { height: 38px; }
  .main-nav a { padding: 10px 8px; font-size: 15px; }
  .hero-art { min-height: 300px; }
  .banner h2 { font-size: 42px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
