/* Horno Alzada · wheat, rye and flour */
:root{--wheat:#e8c370;--rye:#2d1a10;--flour:#fbf6ec;--crust:#a4502a;--sage:#4f6147;--disp:"Fraunces",Georgia,serif;--ui:"Manrope",system-ui,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--wheat);color:var(--rye);font:400 1.08rem/1.6 var(--ui);overflow-x:hidden}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
:focus-visible{outline:3px solid var(--rye);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:-999px;top:8px;background:var(--rye);color:var(--flour);padding:.6rem 1rem;z-index:50}.skip:focus{left:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
h1,h2,h3{font-family:var(--disp);font-weight:600;margin:0;line-height:.98;letter-spacing:-.02em;font-variation-settings:"SOFT" 100,"WONK" 1,"opsz" 144}
h2{font-size:clamp(2.4rem,5.4vw,4.6rem);max-width:16ch}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.7rem 1.4rem;border-radius:999px;background:var(--rye);color:var(--flour);text-decoration:none;font:700 1rem var(--ui);transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s}
.btn:hover{transform:translateY(-2px) rotate(-1deg);box-shadow:0 6px 0 rgba(45,26,16,.25)}

.top{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem clamp(1rem,4vw,3rem)}
.logo{display:flex;align-items:center;gap:.55rem;text-decoration:none;font:700 1.3rem/1 var(--disp);min-height:44px}
.logo svg{width:40px;height:40px}
.top nav{display:flex;align-items:center;gap:clamp(.8rem,2vw,1.8rem);font:600 .98rem var(--ui)}
.top nav a{text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.top nav a:not(.btn):hover{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px}

/* hero: the photograph leads, type sits in a rye shade on the left */
.hero{position:relative;display:grid;align-items:end;min-height:calc(100svh - 76px);padding:clamp(2rem,5vw,4.5rem) clamp(1rem,4vw,3rem);color:var(--flour);overflow:hidden;isolation:isolate}
.hero-photo{position:absolute;inset:0;margin:0;z-index:-1;background:#3a2414}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:62% 50%}
.hero-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(33,19,11,.86) 0%,rgba(33,19,11,.62) 34%,rgba(33,19,11,.08) 66%,transparent 80%),linear-gradient(0deg,rgba(33,19,11,.55),transparent 40%)}
.hero-photo figcaption{position:absolute;right:clamp(1rem,4vw,3rem);bottom:clamp(1rem,2.5vw,1.8rem);z-index:1;font:500 .86rem/1.3 var(--ui);color:rgba(251,246,236,.88);max-width:30ch;text-align:right;padding-top:.6rem;border-top:1px solid rgba(251,246,236,.45)}
.hero-text{max-width:40rem}
.hero h1{font-size:clamp(3.4rem,8vw,7.6rem);max-width:9ch;color:var(--flour)}
.lede{font:400 clamp(1.15rem,1.6vw,1.35rem)/1.5 var(--disp);max-width:30ch;margin:1.4rem 0 2rem;color:#f6ead2}
.hero-act{display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap}
.hero .btn{background:var(--wheat);color:var(--rye)}
.open{font-weight:600;font-size:.95rem;color:#f6ead2}
.js .hero-photo img{animation:settle 2.4s cubic-bezier(.2,.7,.2,1) both}
@keyframes settle{from{transform:scale(1.06)}to{transform:none}}
.js .hero h1,.js .hero .lede,.js .hero-act{animation:up .9s cubic-bezier(.2,.8,.2,1) both .2s}
.js .hero .lede{animation-delay:.35s}.js .hero-act{animation-delay:.5s}
@keyframes up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}

/* shelf */
.shelf{background:var(--flour);padding:clamp(3rem,7vw,6rem) clamp(1rem,4vw,3rem);border-radius:clamp(24px,4vw,48px) clamp(24px,4vw,48px) 0 0}
.shelf-head{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:end;margin-bottom:2.5rem}
.shelf-head p{max-width:38ch;margin:0;font:400 1.2rem/1.5 var(--disp)}
.stage{display:none}
.js .stage{display:grid;grid-template-columns:1.5fr 1fr;gap:2.5rem;align-items:center;background:#fffdf8 repeating-linear-gradient(0deg,transparent 0 31px,rgba(45,26,16,.06) 31px 32px);border:1px solid rgba(45,26,16,.14);border-radius:6px;padding:clamp(1rem,3vw,2.5rem);margin-bottom:1.5rem}
.stage-svg{width:100%;height:auto;overflow:visible}
.s-loaf,.loaves button svg{fill:none;stroke:var(--rye);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.sc{stroke:var(--crust);stroke-width:1.3}
.s-loaf{transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.knife{opacity:0}
.stage.cut .knife{animation:knife .7s ease forwards}
@keyframes knife{0%{opacity:0;stroke-dashoffset:250;transform:translateY(-30px)}30%{opacity:1}100%{opacity:0;transform:translateY(10px)}}
.s-slice{opacity:0;transform:translateX(-140px) rotate(-4deg);transform-origin:500px 150px}
.stage.cut .s-slice{opacity:1;transform:none;transition:transform .9s cubic-bezier(.2,.8,.2,1) .35s,opacity .4s ease .35s}
.s-name{font-size:clamp(2.6rem,4.5vw,4rem)}
.s-desc{font:400 1.2rem/1.5 var(--disp);margin:.8rem 0 1.2rem;max-width:32ch}
.stage-text dl{margin:0;display:grid;gap:.8rem}
.stage-text dt{font-weight:700;font-size:.9rem;color:var(--crust)}
.stage-text dd{margin:0}
.loaves{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.loaves li{background:#fffdf8;border-radius:6px;padding:1rem}
.loaves button{all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:.3rem;width:100%;min-height:44px;border-radius:14px}
.loaves button svg{width:100%;max-width:260px;height:auto;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.loaves button b{font:600 1.35rem var(--disp)}
.loaves button:focus-visible{outline:3px solid var(--rye);outline-offset:4px}
.ld{margin:.4rem 0 0;text-align:center}
.js .ld{display:none}
.js .loaves{grid-template-columns:repeat(6,1fr);gap:.8rem;margin-top:2rem}
.js .loaves li:has([aria-pressed="true"]) svg{transform:translateY(-8px) scale(1.06)}
.js .loaves li{padding:.8rem .5rem;background:transparent;border:2px solid transparent;transition:border-color .3s,background-color .3s}
.js .loaves li:hover{background:#fffdf8}
.js .loaves li:hover svg{transform:translateY(-4px) rotate(-2deg)}
.js .loaves li{border-width:1px;border-radius:6px}
.js .loaves li:has([aria-pressed="true"]){border-color:var(--rye);background:#fffdf8}
.js .loaves li:has([aria-pressed="true"]) svg{stroke:var(--crust)}

/* oven */
.oven{background:var(--rye);color:var(--wheat);padding:clamp(3rem,7vw,6rem) clamp(1rem,4vw,3rem)}
.oven-head{display:grid;grid-template-columns:1.25fr 1fr;gap:clamp(1.5rem,4vw,4rem);align-items:end;margin-bottom:clamp(2.5rem,5vw,4rem)}
.oven-photo{margin:0;border-radius:4px;overflow:hidden}
.oven-photo img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:60% 50%}
.oven-p{max-width:40ch;font:400 1.2rem/1.5 var(--disp);color:#f3e2b8;margin:1rem 0 0}
.day{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);position:relative}
.day::before{content:"";position:absolute;left:0;right:0;top:3.1rem;height:2px;background:linear-gradient(90deg,#e8c370,#a4502a)}
.day li{position:relative;padding:4.6rem 1.2rem 0 0}
.day li::before{content:"";position:absolute;top:2.45rem;left:0;width:22px;height:22px;border-radius:50%;background:var(--wheat);box-shadow:0 0 0 6px var(--rye)}
.day time{position:absolute;top:-.6rem;left:2.2rem;font:600 1.6rem var(--disp);color:var(--wheat)}

.day time{top:0;left:0}
.day span{display:block;color:#f6e9c8;max-width:24ch}
.js .day.rv li{opacity:0;transform:translateY(16px);transition:opacity .6s,transform .6s}
.js .day.rv.in li{opacity:1;transform:none}
.js .day.rv.in li:nth-child(2){transition-delay:.12s}.js .day.rv.in li:nth-child(3){transition-delay:.24s}.js .day.rv.in li:nth-child(4){transition-delay:.36s}.js .day.rv.in li:nth-child(5){transition-delay:.48s}

/* counter */
.counter{display:grid;grid-template-columns:1.3fr 1fr .8fr;gap:clamp(1rem,3vw,2.5rem);align-items:center;padding:clamp(3rem,7vw,6rem) clamp(1rem,4vw,3rem)}
.c-photo{margin:0;overflow:hidden;border-radius:200px 200px 24px 24px}
.c-photo img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:58% 50%}
.c-photo.small{border-radius:24px 24px 200px 200px;transform:translateY(3rem)}
.c-photo.small img{aspect-ratio:3/4}
.c-text p{font:400 1.2rem/1.55 var(--disp);max-width:30ch}

/* order */
.order{background:var(--sage);color:var(--flour);display:grid;grid-template-columns:1.4fr 1fr;gap:2rem;align-items:center;padding:clamp(3rem,7vw,6rem) clamp(1rem,4vw,3rem)}
.order p{max-width:40ch;font:400 1.2rem/1.55 var(--disp);margin:1rem 0 2rem}
.order .btn{background:var(--wheat);color:var(--rye)}
.bag{width:min(240px,62%);height:auto;justify-self:center;transform:rotate(3deg)}

/* find */
.find{background:var(--flour);padding:clamp(3rem,7vw,6rem) clamp(1rem,4vw,3rem)}
.find-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);margin-top:2.5rem;align-items:start}
.label{border:2px solid var(--rye);border-radius:18px;padding:1.6rem;background:#fff}
.addr{font:600 1.4rem var(--disp);margin:0 0 1rem}
.label table{width:100%;border-collapse:collapse}
.label th,.label td{text-align:left;padding:.7rem 0;border-top:1px dashed rgba(45,26,16,.35);vertical-align:top}
.label th{font-weight:600;padding-right:1rem}
.find-note{font:400 1.3rem/1.5 var(--disp);max-width:30ch;margin:0}

.foot{background:var(--rye);color:var(--wheat);padding:3rem clamp(1rem,4vw,3rem) 2rem}
.foot-brand{font:600 clamp(3rem,10vw,8rem)/.9 var(--disp);margin:0 0 1rem;letter-spacing:-.03em;font-variation-settings:"SOFT" 100,"WONK" 1}
.foot a{min-height:44px;display:inline-flex;align-items:center}
.credit{margin-top:1.5rem;color:#f3e2b8}
.dock{display:none}

.js .rv{opacity:0;transform:translateY(26px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.8,.2,1)}
.js .rv.in{opacity:1;transform:none}
.js .c-photo.small.rv.in{transform:translateY(3rem)}

@media (max-width:980px){
  .hero,.shelf-head,.order,.find-grid{grid-template-columns:1fr}
  .oven-head{grid-template-columns:1fr}
  .js .stage{grid-template-columns:1fr}
  .js .loaves{grid-template-columns:repeat(3,1fr)}
  .day{grid-template-columns:1fr;gap:0}
  .day::before{left:10px;right:auto;top:0;bottom:0;width:2px;height:auto;background:linear-gradient(#e8c370,#a4502a)}
  .day li{padding:0 0 2rem 3rem}
  .day li::before{top:.2rem}
  .day time,.day li:first-child time{position:static;display:block;margin-bottom:.2rem}
  .counter{grid-template-columns:1fr 1fr}.c-text{grid-column:1/-1;order:-1}
}
@media (max-width:640px){
  .top nav a:not(.btn),.top nav .btn{display:none}
  .hero{min-height:calc(100svh - 76px);padding-bottom:2.2rem}
  .hero-photo img{object-position:74% 50%}
  .hero-photo::after{background:linear-gradient(0deg,rgba(33,19,11,.92) 0%,rgba(33,19,11,.7) 42%,rgba(33,19,11,.1) 72%,transparent)}
  .hero-photo figcaption{top:1rem;bottom:auto;right:1rem;border-top:0;border-bottom:1px solid rgba(251,246,236,.45);padding:0 0 .4rem;max-width:22ch;text-shadow:0 1px 8px rgba(0,0,0,.5)}
  .hero h1{font-size:clamp(3rem,15vw,4.4rem)}
  .lede{margin:1rem 0 1.4rem}
  .js .loaves{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:.6rem;padding-bottom:.6rem;margin:0 -1rem;padding-inline:1rem}
  .js .loaves li{flex:0 0 38%;scroll-snap-align:start}
  .loaves{grid-template-columns:1fr}
  .counter{grid-template-columns:1fr}.c-photo.small{display:none}
  .c-photo{border-radius:160px 160px 20px 20px}.c-photo img{aspect-ratio:4/3.4}
  .bag{width:180px}
  body{padding-bottom:76px}
  .dock{display:flex;align-items:center;justify-content:center;position:fixed;left:.8rem;right:80px;bottom:calc(.7rem + env(safe-area-inset-bottom));min-height:52px;border-radius:999px;background:var(--rye);color:var(--wheat);font:700 1.02rem var(--ui);text-decoration:none;z-index:20;box-shadow:0 8px 24px rgba(45,26,16,.3)}
}
.js .dock{transform:translateY(160%);transition:transform .45s cubic-bezier(.16,1,.3,1)}.js .dock.show{transform:none}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .js .rv,.js .day.rv li{opacity:1;transform:none}
  html{scroll-behavior:auto}
}

/* link to the extra page */
.x-more{margin:1.6rem 0 0}.x-more a{font-weight:600;text-underline-offset:.25em}
