:root{
  --paper:#f3efe6;
  --paper2:#efe7d7;
  --ink:#1f1b16;
  --muted:#5f564c;
  --wood:#7a5b3a;
  --wood2:#6a4a2f;
  --moss:#3f5a44;
  --moss2:#2f4334;
  --line:rgba(31,27,22,.14);
  --shadow:0 12px 40px rgba(18,14,10,.18);
  --radius:18px;
  --radius2:12px;
  --max:1040px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:rgba(243,239,230,.9);
  background:var(--paper);
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing:.01em;
  line-height:1.5;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(63,90,68,.10), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(122,91,58,.10), transparent 55%),
    radial-gradient(900px 600px at 30% 90%, rgba(122,91,58,.08), transparent 60%),
    linear-gradient(to bottom, rgba(31,27,22,.035), rgba(31,27,22,0));
  mix-blend-mode:multiply;
  opacity:.9;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(0deg, rgba(31,27,22,.025) 0px, rgba(31,27,22,.025) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(31,27,22,.018) 0px, rgba(31,27,22,.018) 1px, transparent 1px, transparent 4px);
  opacity:.25;
}

a{color:inherit}

.wrap{max-width:var(--max);margin:0 auto;padding:0 18px}

.skip{
  position:absolute;left:-999px;top:10px;
  background:var(--paper2);
  padding:10px 12px;
  border:1px solid rgba(243,239,230,.3);
  border-radius:10px;
}
.skip:focus{left:12px;z-index:30}

.top{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(31,27,22,.85);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}
.top__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand__mark{
  width:38px;height:38px;border-radius:11px;
  background:
    linear-gradient(135deg, rgba(122,91,58,.95), rgba(63,90,68,.55)),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 45%);
  box-shadow:0 8px 22px rgba(18,14,10,.18);
  border:1px solid rgba(31,27,22,.14);
}
.brand__name{font-weight:700;letter-spacing:.02em;color:rgba(243,239,230,1)}
.brand__tag{font-size:13px;color:rgba(243,239,230,.8)}

.nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.nav__link{
  text-decoration:none;
  font-size:14px;
  color:rgba(243,239,230,.9);
  padding:8px 10px;
  border-radius:12px;
}
.nav__link:hover{background:rgba(243,239,230,.2);color:rgba(243,239,230,1)}

.cart{
  border:1px solid rgba(243,239,230,.3);
  background:rgba(243,239,230,.2);
  padding:8px 10px;
  border-radius:14px;
  font-size:14px;
  color:rgba(243,239,230,.9);
  cursor:pointer;
  display:flex;align-items:center;gap:8px;
}
.cart:hover{background:rgba(243,239,230,.3)}
.cart__count{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:22px;height:22px;
  border-radius:11px;
  background:rgba(243,239,230,.3);
  border:1px solid rgba(243,239,230,.4);
  font-size:12px;
}

.hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero__media{
  position:absolute;
  inset:0;
  background-image: url("assets/hero-bg.jpg");
  background-size:cover;
  background-position:center;
  filter:saturate(.9) contrast(.98);
  transform:scale(1.02);
}
.hero__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(243,239,230,.10), rgba(243,239,230,.86) 62%, rgba(243,239,230,.98));
}
.hero__content{
  position:relative;
  padding:72px 18px 52px;
}
.hero__title{
  margin:0;
  font-size:44px;
  line-height:1.05;
  max-width:18ch;
  text-shadow:0 1px 0 rgba(243,239,230,.7);
}
.hero__lead{max-width:54ch;color:rgba(31,27,22,.84);margin:12px 0 22px;font-size:17px}
.hero__actions{display:flex;gap:10px;flex-wrap:wrap}

.section{padding:52px 0}
.section__head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap}
.section__title{margin:0;font-size:22px;letter-spacing:.02em}
.section__hint{margin:0;color:rgba(243,239,230,.9);font-size:14px;max-width:54ch}

.about{max-width:72ch}
.about p{margin:0 0 12px;color:rgba(31,27,22,.86)}

.grid{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
}

.card{
  grid-column:span 6;
  background:rgba(239,231,215,.55);
  border:1px solid rgba(243,239,230,.3);
  border-radius:var(--radius);
  overflow:hidden;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  box-shadow:0 12px 28px rgba(18,14,10,.08);
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 36px rgba(18,14,10,.12);
  background:rgba(239,231,215,.72);
}

.card__media{
  aspect-ratio: 4 / 3;
  background-size:cover;
  background-position:center;
  border-bottom:1px solid var(--line);
}

.card__body{padding:14px 14px 16px}
.card__name{margin:0 0 4px;font-size:18px;letter-spacing:.01em}
.card__desc{margin:0 0 10px;color:rgba(243,239,230,.9);font-size:14px}
.card__row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.price{font-weight:700}
.pill{
  font-size:12px;
  color:rgba(31,27,22,.76);
  border:1px solid rgba(31,27,22,.16);
  padding:6px 10px;
  border-radius:999px;
  background:rgba(243,239,230,.7);
}

.btn{
  appearance:none;
  border:1px solid rgba(63,90,68,.25);
  background:rgba(63,90,68,.12);
  color:rgba(243,239,230,.9);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:14px;
  transition:background-color .18s ease, transform .18s ease;
}
.btn:hover{background:rgba(63,90,68,.16)}
.btn:active{transform:translateY(1px)}

.btn--ghost{
  background:transparent;
  border:1px solid rgba(31,27,22,.18);
}
.btn--ghost:hover{background:rgba(31,27,22,.05)}

.footer{
  border-top:1px solid var(--line);
  padding:28px 0 44px;
  background:rgba(239,231,215,.36);
}
.footer__inner{display:flex;justify-content:space-between;gap:22px;flex-wrap:wrap}
.footer__title{font-weight:700;margin-bottom:6px}
.footer__link{display:block;text-decoration:none;color:rgba(31,27,22,.84);margin:4px 0}
.footer__link:hover{text-decoration:underline}
.footer__small{color:rgba(243,239,230,.9);font-size:13px;margin-top:10px;max-width:38ch}

.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:50;
}
.modal[aria-hidden="false"]{display:block}
.modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(18,14,10,.52);
  animation:fadeIn .18s ease both;
}
.modal__panel{
  position:relative;
  margin:6vh auto;
  max-width:980px;
  background:rgba(243,239,230,.98);
  border:1px solid rgba(255,255,255,.25);
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
  width:calc(100% - 28px);
  animation:popIn .18s ease both;
}
.modal__close{
  position:absolute;
  top:10px;right:12px;
  width:36px;height:36px;
  border-radius:18px;
  border:1px solid rgba(243,239,230,.3);
  background:rgba(239,231,215,.8);
  cursor:pointer;
  font-size:22px;
  line-height:0;
}
.modal__close:hover{background:rgba(239,231,215,1)}

.modal__body{display:grid;grid-template-columns:1.2fr 1fr}
.modal__media{
  min-height:340px;
  background-size:cover;
  background-position:center;
  border-right:1px solid var(--line);
}
.modal__content{padding:22px}
.modal__title{margin:0 0 8px;font-size:24px}
.modal__desc{margin:0 0 10px;color:rgba(31,27,22,.86)}
.modal__note{margin:0 0 16px;color:rgba(243,239,230,.9);font-size:13px}
.modal__row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}

.drawer{
  position:fixed;
  inset:0;
  display:none;
  z-index:60;
}
.drawer[aria-hidden="false"]{display:block}
.drawer__backdrop{
  position:absolute;
  inset:0;
  background:rgba(18,14,10,.46);
  animation:fadeIn .18s ease both;
}
.drawer__panel{
  position:absolute;
  top:0;right:0;
  height:100%;
  width:min(420px, 92vw);
  background:rgba(243,239,230,.98);
  border-left:1px solid var(--line);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  animation:slideIn .18s ease both;
}
.drawer__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 16px;border-bottom:1px solid var(--line)}
.drawer__title{font-weight:700}
.drawer__close{
  width:36px;height:36px;border-radius:18px;
  border:1px solid rgba(243,239,230,.3);
  background:rgba(239,231,215,.8);
  cursor:pointer;
  font-size:22px;
  line-height:0;
}
.drawer__body{padding:14px 16px;overflow:auto;flex:1}
.drawer__foot{padding:14px 16px;border-top:1px solid var(--line);display:grid;gap:10px}
.drawer__total{display:flex;align-items:baseline;justify-content:space-between}
.drawer__small{color:rgba(243,239,230,.9);font-size:12px}

.item{
  border:1px solid rgba(243,239,230,.3);
  background:rgba(239,231,215,.55);
  border-radius:16px;
  padding:12px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-bottom:10px;
}
.item__name{font-weight:700}
.item__meta{color:rgba(243,239,230,.9);font-size:13px}
.item__actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.smallbtn{
  border:1px solid rgba(31,27,22,.18);
  background:transparent;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.smallbtn:hover{background:rgba(31,27,22,.05)}

.reveal{opacity:0;transform:translateY(6px)}
.reveal.is-in{opacity:1;transform:none;transition:opacity .5s ease, transform .5s ease}

@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{opacity:0;transform:translateY(6px) scale(.99)}to{opacity:1;transform:none}}
@keyframes slideIn{from{transform:translateX(10px);opacity:.9}to{transform:none;opacity:1}}

@media (max-width: 860px){
  .hero__content{padding:58px 18px 46px}
  .hero__title{font-size:36px}
  .modal__body{grid-template-columns:1fr}
  .modal__media{border-right:0;border-bottom:1px solid var(--line);min-height:260px}
}

@media (max-width: 640px){
  .card{grid-column:span 12}
  .top__inner{align-items:flex-start}
  .nav{gap:8px}
  .nav__link{padding:8px 8px}
}

@media (prefers-reduced-motion: reduce){
  .reveal,.reveal.is-in{transition:none}
  .card{transition:none}
  .modal__backdrop,.modal__panel,.drawer__backdrop,.drawer__panel{animation:none}
}
