/* The café samples' one stylesheet: the one-page site (samples/cafe) and the 4-page site (samples/cafe-site) */
:root { --cream: #fbf6ee; --espresso: #2a1a10; --bark: #5b3a24; --roast: #9a3412; --roast-dark: #7c2d12; --latte: #f3e3cf; --line: #e8d8c4; --night: 20 12 8; --section: clamp(72px, 9vw, 120px); --h2: clamp(2.25rem, 1.5rem + 2.2vw, 3.25rem); }
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--cream); color: var(--espresso); font: 16px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0; }
h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--roast); outline-offset: 3px; }
/* on the dark photos and bands the roast ring is too faint, so it turns latte there */
.skip:focus-visible, .sample :focus-visible, .top :focus-visible, .hero :focus-visible, .banner :focus-visible, .band :focus-visible, .order :focus-visible, .foot :focus-visible { outline-color: var(--latte); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.label { margin-bottom: 14px; color: var(--roast); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sample { margin: 0; padding: 8px 16px; background: var(--espresso); color: #f8eadb; text-align: center; font-size: 13px; }
.sample a { color: #fff; font-weight: 600; }
.skip { position: absolute; top: 8px; left: 12px; z-index: 10; padding: 10px 18px; border-radius: 999px; background: var(--latte); color: var(--espresso); font-weight: 600; text-decoration: none; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The header sits on the first photo of every page, so it is light on dark */
.page { position: relative; }
.top { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; max-width: 1200px; margin: 0 auto; padding: 20px; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-family: Fraunces, Georgia, serif; font-size: 23px; font-weight: 700; text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--latte); }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 500; }
.nav a:not(.btn) { padding: 4px 0; border-bottom: 2px solid transparent; text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--roast); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--roast-dark); }
.btn svg { width: 18px; height: 18px; }
.btn-small { padding: 9px 18px; }
.btn-light { background: var(--latte); color: var(--espresso); }
.btn-light:hover { background: #fff; }
.btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .85); }
.btn-line:hover { background: rgb(255 255 255 / .12); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; color: var(--roast); font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more svg { width: 18px; height: 18px; }

/* A photo across the whole width with the words on it: the home page's hero and each inner page's banner */
.hero, .banner { position: relative; isolation: isolate; display: grid; align-content: end; overflow: hidden; background: var(--espresso); color: #fff; }
.hero > img, .banner > img, .band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before, .banner::before, .band::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero { min-height: clamp(600px, 94svh, 920px); padding: 120px 0 28px; }
.hero::before { background: linear-gradient(180deg, rgb(var(--night) / .6), rgb(var(--night) / .35) 30%, rgb(var(--night) / .7) 62%, rgb(var(--night) / .92)); }
.hero .label, .banner .label { color: #f0c49a; }
.hero h1 { max-width: 13ch; font-size: clamp(44px, 6.4vw, 88px); text-wrap: balance; }
.lead { max-width: 26em; margin: 22px 0 32px; color: #fbf1e6; font-size: clamp(17px, 1.6vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; gap: 14px; margin: 56px 0 0; padding: 22px 0 0; border-top: 1px solid rgb(255 255 255 / .22); list-style: none; color: #f3e6d6; font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts svg { width: 20px; height: 20px; flex: none; color: var(--latte); }
.facts b { color: #fff; font-weight: 600; }
.banner { min-height: clamp(340px, 50svh, 480px); padding: 120px 0 48px; }
.banner::before { background: linear-gradient(180deg, rgb(var(--night) / .6), rgb(var(--night) / .45) 40%, rgb(var(--night) / .85)); }
.banner h1 { font-size: clamp(44px, 6.4vw, 80px); }
.banner .lead { margin-bottom: 0; }

/* The menu, set like a printed one: name, a dotted line, the price */
.menu { padding: var(--section) 0; }
.menu-head { margin-bottom: 48px; }
.menu-head h2, .block h2, .visit h2, .cta h2, .faq h2 { font-size: var(--h2); }
.sub { max-width: 34em; margin-top: 14px; color: var(--bark); font-size: 18px; text-wrap: pretty; }
.menu-layout { display: grid; gap: 40px; align-items: start; }
.menu-photo { width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; object-fit: cover; }
.menu-lists { display: grid; gap: 48px 64px; }
.col h2 { margin-bottom: 24px; font-size: clamp(32px, 1.6rem + 1.2vw, 42px); }
.col .group + .group { margin-top: 44px; }
.group h3 { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; color: var(--roast); font-family: Inter, system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.group h3::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.items { margin: 0; padding: 0; list-style: none; }
.items li { padding: 16px 0; }
.items li + li { border-top: 1px dashed var(--line); }
.item { display: flex; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 600; }
.item .dots { flex: 1; min-width: 16px; border-bottom: 2px dotted #cdb8a0; transform: translateY(-4px); }
.price { color: var(--roast); font-weight: 600; white-space: nowrap; }
.desc { margin-top: 4px; color: var(--bark); font-size: 17px; }
.tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--latte); color: var(--roast-dark); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }

/* A dark band across a photo, for the café's story */
.band { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(380px, 62svh, 560px); padding: var(--section) 20px; overflow: hidden; color: #fff; text-align: center; }
.band::before { background: rgb(var(--night) / .7); }
.band h2 { max-width: 16ch; margin: 0 auto; font-size: clamp(34px, 5vw, 60px); }
.band p { max-width: 34em; margin: 18px auto 0; color: #f3e6d6; font-size: 18px; text-wrap: balance; }
.band .more { color: var(--latte); }

/* Three photos as one block: a tall one beside two stacked, and on a phone one large above two squares */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 1200px; margin: 0 auto; padding: var(--section) 20px; list-style: none; }
.gallery li { position: relative; overflow: hidden; border-radius: 6px; }
.gallery li:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery li:first-child img { aspect-ratio: 4 / 5; }

/* Visiting and ordering, side by side */
.visit { background: var(--latte); }
.visit .wrap { display: grid; gap: 40px; padding-top: var(--section); padding-bottom: var(--section); }
.where { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; color: var(--bark); font-size: 17px; }
.where svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--roast); }
/* the phone number keeps its line height but gets a 44 px tap target */
.where a { display: inline-block; margin-block: -10px; padding-block: 10px; color: var(--espresso); font-weight: 600; }
.hours { margin: 32px 0 0; padding: 0; max-width: 460px; font-size: 17px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #dcc6aa; }
.hours div:last-child { border-bottom: 1px solid #dcc6aa; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--bark); }
.order { padding: 40px 32px; border-radius: 6px; background: var(--espresso); color: #f8eadb; }
.order h2, .order h3 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); }
.order p { margin: 14px 0 28px; color: #eeddc9; font-size: 17px; text-wrap: pretty; }

/* The light band that closes a page, just above the dark footer */
.cta { padding: clamp(64px, 7vw, 96px) 20px; background: var(--latte); text-align: center; }
.cta h2 { max-width: 18ch; margin: 0 auto; }
.cta p { max-width: 32em; margin: 16px auto 32px; color: var(--bark); font-size: 18px; text-wrap: balance; }

/* The 4-page site's own sections */
.block { padding: var(--section) 0; }
.block .more { margin-top: 40px; }
.cards { display: grid; gap: 48px 28px; margin: 48px 0 0; padding: 0; list-style: none; }
.cards img { width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 20px; }
.cards h3 { font-size: 24px; }
.cards .price { font-size: 18px; }
.cards p { margin-top: 8px; color: var(--bark); font-size: 17px; }
.story { display: grid; gap: 40px; align-items: center; }
.story img { width: 100%; aspect-ratio: 4 / 5; border-radius: 6px; object-fit: cover; }
.story h2 { margin-bottom: 24px; font-size: var(--h2); }
.story p:not(.label) { max-width: 34em; margin-top: 16px; color: var(--bark); font-size: 18px; text-wrap: pretty; }
.story h2 + p { margin-top: 0; }
.values { display: grid; gap: 32px; margin: 0; padding: 0 0 var(--section); list-style: none; }
.values li { padding-top: 20px; border-top: 2px solid var(--espresso); }
.values strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 26px; line-height: 1.2; }
.values span { display: block; margin-top: 8px; color: var(--bark); font-size: 17px; }

/* Questions on the contact page, each one opens on its own */
.faq { padding: var(--section) 0; }
.faq .wrap { display: grid; gap: 32px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1em; color: var(--roast); font-size: 28px; font-weight: 400; line-height: 1; text-align: center; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 36em; padding-bottom: 24px; color: var(--bark); font-size: 17px; text-wrap: pretty; }

/* The footer: the name, hours, address, ways to reach the café and the pages, on espresso */
.foot { background: var(--espresso); color: #e8d6c1; }
.foot-main { display: grid; gap: 36px 40px; padding-block: clamp(64px, 8vw, 96px) 40px; }
.foot-about p { max-width: 22em; margin-top: 16px; text-wrap: pretty; }
.foot h2 { margin-bottom: 16px; color: #f0c49a; font-family: Inter, system-ui, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.foot dl, .foot ul { margin: 0; padding: 0; list-style: none; }
.foot dt { color: #fff; font-weight: 600; }
.foot dd { margin: 0; }
.foot dd + dt { margin-top: 14px; }
.foot address { font-style: normal; }
.foot address p + p { margin-top: 18px; }
.foot ul { display: grid; gap: 18px; }
.foot a { color: #fff; text-underline-offset: 3px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
/* footer links keep their line height but get 44 px tap targets */
.foot-main a:not(.brand) { display: inline-block; margin-block: -10px; padding-block: 10px; }
.foot .brand { margin-block: -7px; padding-block: 7px; color: #fff; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px 0 32px; border-top: 1px solid rgb(255 255 255 / .16); color: #d5bfa6; font-size: 14px; }

/* Motion only moves and fades, never holds back the first screen, and is off for visitors who ask for less motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: calc(var(--i, 0) * 90ms); }
  .reveal.pending { opacity: 0; transform: translateY(18px); }
  .btn { transition: background-color .2s, transform .2s; }
  .btn:hover { transform: translateY(-1px); }
  .gallery img { transition: transform .8s ease; }
  .gallery li:hover img { transform: scale(1.02); }
  .faq summary::after { transition: transform .2s; }
}
@media (min-width: 720px) {
  .wrap, .top, .gallery { padding-inline: 32px; }
  .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; }
  .menu-lists { grid-template-columns: repeat(2, 1fr); }
  .cards, .values { grid-template-columns: repeat(3, 1fr); }
  .visit .wrap, .story { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .order { padding: 48px; }
  /* the tall photo fills both rows, so its own size never stretches them */
  .gallery { grid-template-columns: 11fr 9fr; gap: 16px; }
  .gallery li:first-child { grid-column: auto; grid-row: span 2; }
  .gallery li:first-child img { position: absolute; inset: 0; aspect-ratio: auto; }
  .gallery li + li img { aspect-ratio: 4 / 3; }
  .foot-main { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero { padding-bottom: 36px; }
  .hero::before { background: linear-gradient(90deg, rgb(var(--night) / .9), rgb(var(--night) / .62) 38%, rgb(var(--night) / .12) 72%), linear-gradient(0deg, rgb(var(--night) / .85), transparent 30%); }
  .menu-layout { grid-template-columns: 5fr 7fr; gap: 64px; }
  .menu-photo { aspect-ratio: 4 / 5; position: sticky; top: 24px; }
  .menu-layout .menu-lists { grid-template-columns: 1fr; }
  .faq .wrap { grid-template-columns: 4fr 8fr; gap: 64px; }
  .foot-main { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
}
/* On a phone the words sit on dark at the top and the photo shows below them, instead of under the words */
@media (max-width: 700px) {
  .hero { min-height: 0; padding-bottom: 300px; }
  .hero > img { top: auto; height: 340px; object-position: 72% 50%; }
  .hero::before { background: linear-gradient(180deg, rgb(var(--night)) calc(100% - 340px), rgb(var(--night) / .1) calc(100% - 170px), rgb(var(--night) / .3)); }
}
@media (max-width: 560px) {
  /* the 4-page header takes two rows here */
  .hero, .banner { padding-top: 156px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .nav a:not(.btn) { display: none; }
  .pages { order: 1; width: 100%; justify-content: space-between; }
  .pages a:not(.btn) { display: inline; }
  /* a long dish name keeps its dotted line; its tag drops below it */
  .item .tag { display: block; width: fit-content; margin: 6px 0 0; }
}
@media (max-width: 719px) {
  .foot ul { grid-template-columns: 1fr 1fr; }
}
