/* Bageri Linnea: a made-up bakery, built to show what a proposal can look like. */

@font-face { font-family: Gambetta; src: url(../fonts/gambetta-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Gambetta; src: url(../fonts/gambetta-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Switzer; src: url(../fonts/switzer-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Switzer; src: url(../fonts/switzer-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Switzer; src: url(../fonts/switzer-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --cream: #f6f1e8;
  --paper: #fbf8f2;
  --ink: #2a2119;
  --muted: #6b5a44;
  --crust: #7a4a22;
  --crust-dark: #5c3616;
  --soft: #ece4d6;
  --line: #ddd1bd;
  --open: #3f8a4c;
  --shut: #b0543a;
  --m: clamp(20px, 4.4vw, 64px);
  --serif: Gambetta, Georgia, 'Times New Roman', serif;
  --sans: Switzer, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--crust); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The demo bar says plainly that this is an example. Hidden inside the frames on alfredg.se. */
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding: 10px var(--m); background: var(--ink); color: var(--cream); font-size: .875rem; }
.demo-bar p { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.demo-bar strong { font-weight: 600; }
.demo-bar span { opacity: .78; }
.demo-bar a { white-space: nowrap; text-underline-offset: .2em; }
.in-frame .demo-bar { display: none; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--m); background: var(--cream); border-bottom: 1px solid var(--line); }
.name { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.top nav a { font-weight: 500; text-decoration: none; transition: color .2s; }
.top nav a:hover { color: var(--crust); }
.call { padding: 11px 20px; border-radius: 999px; background: var(--crust); color: var(--cream); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s; }
.call:hover { background: var(--crust-dark); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--crust); color: var(--cream); font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.btn:hover { background: var(--crust-dark); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--cream); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: clamp(28px, 4.4vw, 72px); align-items: center; padding: clamp(36px, 5vw, 80px) var(--m) clamp(56px, 7vw, 112px); }
.where { margin-bottom: 18px; color: var(--muted); font-size: .9375rem; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.4rem); line-height: 1; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .9375rem; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--open); box-shadow: 0 0 0 4px rgb(63 138 76 / .16); }
.status.closed .dot { background: var(--shut); box-shadow: 0 0 0 4px rgb(176 84 58 / .16); }
.hero-text { max-width: 33em; margin-top: 24px; font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 6px; }

/* Breads */
.breads { padding: clamp(56px, 7vw, 112px) var(--m); border-top: 1px solid var(--line); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; align-items: end; margin-bottom: clamp(28px, 3.4vw, 48px); }
.head p { justify-self: end; max-width: 28em; color: var(--muted); }
.breads h2, .fika h2, .order h2, .visit h2 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); }
.bread-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 36px); margin: 0; padding: 0; list-style: none; }
.bread-cards img { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 18px; object-fit: cover; border-radius: 6px; }
.bread-cards h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.6rem; }
.bread-cards h3 span { color: var(--crust); font-family: var(--sans); font-size: 1rem; font-weight: 600; white-space: nowrap; }
.bread-cards p { margin-top: 6px; color: var(--muted); }
.bread-list { margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bread-list li { display: grid; grid-template-columns: minmax(10em, 15em) 1fr auto; gap: 4px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bread-list li > :first-child { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.bread-list .desc { color: var(--muted); }
.bread-list li > :last-child { font-weight: 600; white-space: nowrap; }

/* Fika */
.fika { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--ink); color: var(--cream); }
.fika-img img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.fika-copy { padding: clamp(48px, 6vw, 96px) var(--m); }
.fika-copy > p { max-width: 28em; margin-top: 16px; opacity: .8; }
.menu { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid rgb(246 241 232 / .2); }
.menu li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgb(246 241 232 / .2); }
.menu li > :first-child { font-family: var(--serif); font-size: 1.35rem; }
.menu li > :last-child { font-weight: 600; white-space: nowrap; }

/* Order */
.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; padding: clamp(56px, 7vw, 112px) var(--m); background: var(--soft); }
.order-copy p { max-width: 30em; margin: 20px 0 32px; font-size: 1.125rem; }
.order-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.order-img figcaption { margin-top: 10px; color: var(--muted); font-size: .875rem; }

/* Visit */
.visit { padding: clamp(56px, 7vw, 112px) var(--m); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(28px, 3.4vw, 48px); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 1px solid var(--line); }
.hours td { font-weight: 500; text-align: right; }
.hours tr.today th, .hours tr.today td { color: var(--crust); font-weight: 600; }
.hours tr.today th::after { content: ' · i dag'; font-weight: 400; }
.street { margin-bottom: 12px; font-family: var(--serif); font-size: 1.85rem; font-weight: 600; line-height: 1.1; }
.address p + p { margin-top: 14px; }
.map { width: 100%; height: auto; border-radius: 6px; }

.foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding: 48px var(--m) 56px; border-top: 1px solid var(--line); }
.foot-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.foot a { text-underline-offset: .2em; }
.foot-note { width: 100%; color: var(--muted); font-size: .8125rem; }

.thumb-bar { display: none; }

@media (max-width: 1080px) {
  .visit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .map { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { padding-bottom: 76px; font-size: 1.0625rem; }
  .top { padding-block: 14px; }
  .top nav, .call-num { display: none; }
  .name { font-size: 1.5rem; }
  .call { padding: 9px 18px; }
  .hero { grid-template-columns: 1fr; padding-top: 20px; gap: 24px; }
  .hero-img { order: -1; }
  .hero-img img { aspect-ratio: 3 / 2; }
  .hero h1 { font-size: 2.45rem; }
  .status { margin-top: 20px; }
  .actions .btn { flex: 1 1 auto; }
  .head { grid-template-columns: 1fr; }
  .head p { justify-self: start; }
  .bread-cards { grid-template-columns: 1fr; gap: 32px; }
  .bread-list li { grid-template-columns: 1fr auto; }
  .bread-list .desc { grid-column: 1 / -1; grid-row: 2; }
  .fika, .order, .visit-grid { grid-template-columns: 1fr; }
  .fika-img img { min-height: 0; aspect-ratio: 3 / 2; }
  .thumb-bar { position: fixed; inset: auto 0 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(246 241 232 / .97); border-top: 1px solid var(--line); }
  .thumb-bar a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; background: var(--crust); color: var(--cream); font-weight: 600; text-decoration: none; }
  .thumb-bar a + a { background: var(--ink); }
}

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