/* James Bay Coffee House concept. Mobile first: the base rules are for phones, wider screens are added below.
   Colours come from their sign: teal lettering on black, with the yellow and orange of the round logo. */
:root {
  --ink: #14191c; --ink-2: #1e262b; --espresso: #4a261b;
  --paper: #fbf7ef; --cream: #f3ead9; --card: #fffdf8; --line: #e2d6c0;
  --text: #20282c; --soft: #5a6468;
  --teal: #0d7f84; --teal-bright: #3cc8c6; --sun: #f2c230; --ember: #e8762c;
  --radius: 18px;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.6 var(--body); padding-bottom: 4.25rem; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; margin: 0; text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: var(--teal); text-underline-offset: 0.18em; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
svg.logo { stroke: none; }

.concept { background: var(--ink); color: #d5dadc; font-size: 0.8rem; text-align: center; padding: 0.5rem 1rem; line-height: 1.45; }
.concept a { color: #fff; }
.notice:empty { display: none; }
.notice { background: var(--sun); color: var(--ink); text-align: center; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1.25rem; line-height: 1.4; }

.eyebrow { font: 700 0.8rem/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.9rem; }
.head { max-width: 44rem; margin-bottom: 2.25rem; }
.head h2 + p { margin-top: 1rem; color: var(--soft); font-size: 1.1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3.1rem; padding: 0.7rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s, color 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffd24d; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }

/* ---- Top bar ---- */
.top { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; border-bottom: 1px solid #2c363c; }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand .logo { width: 3rem; height: 3rem; }
.brand-name { font: 800 1.35rem/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--teal-bright); }
.brand-name span { display: block; color: #fff; font-size: 0.8em; letter-spacing: 0.09em; }
.nav { display: none; }
.top-cta { min-height: 2.6rem; padding: 0.5rem 1rem; font-size: 0.92rem; }

/* ---- Hero ---- */
.hero { background: radial-gradient(60rem 30rem at 85% -10%, #1d4a4d 0%, transparent 60%), var(--ink); color: #fff; padding: 2.75rem 0 0; overflow: hidden; }
.hero .eyebrow { color: var(--sun); }
.hero-in { display: grid; gap: 2.5rem; }
h1 { font-size: clamp(3.4rem, 15vw, 6.4rem); font-weight: 900; line-height: 0.9; }
h1 span { color: var(--teal-bright); display: block; }
h1 b { font-weight: inherit; white-space: nowrap; }
.lede { margin-top: 1.4rem; font-size: 1.2rem; color: #d9dfe1; max-width: 32rem; }
.status { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.5rem; padding: 0.5rem 1rem 0.5rem 0.8rem; border-radius: 999px; background: #232d33; font-weight: 700; font-size: 0.98rem; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #8b989e; }
.status[data-state="open"] .dot { background: #4fd87a; box-shadow: 0 0 0 0 rgba(79, 216, 122, 0.6); animation: pulse 2s infinite; }
.status[data-state="closed"] .dot { background: var(--ember); }
@keyframes pulse { 70% { box-shadow: 0 0 0 0.6rem rgba(79, 216, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 216, 122, 0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.75rem; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: 0 2rem 4rem -1.5rem #000; }
.stamp { position: absolute; width: 7.5rem; height: 7.5rem; right: -0.5rem; top: -2rem; transform: rotate(10deg); filter: drop-shadow(0 0.6rem 1rem rgba(0, 0, 0, 0.5)); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; margin-top: 2.75rem; padding: 1.5rem 0 1.75rem; border-top: 1px solid #2c363c; }
.facts li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; color: #b9c3c7; line-height: 1.35; }
.facts svg { width: 1.4rem; height: 1.4rem; color: var(--sun); margin-top: 0.1rem; }
.facts strong { display: block; color: #fff; font-size: 1rem; }

/* ---- Food photos ---- */
.food { padding: 4rem 0; }
.food-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.food-grid li { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.food-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform 0.4s; }
.food-grid li:hover img { transform: scale(1.05); }
.food-grid span { position: absolute; inset: auto 0 0 0; padding: 2.2rem 0.85rem 0.8rem; background: linear-gradient(transparent, rgba(10, 13, 15, 0.9)); color: #fff; font-weight: 700; font-size: 0.9rem; line-height: 1.25; }

/* ---- Menu ---- */
.menu { background: var(--cream); padding: 4rem 0; }
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; font: 700 1rem var(--body); color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 999px; min-height: 2.9rem; padding: 0.5rem 1.25rem; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.menu-group + .menu-group { margin-top: 2.5rem; }
.menu-group-name { font-size: 1.6rem; color: var(--teal); margin-bottom: 1rem; }
.tabbed .menu-group-name { display: none; }
.tabbed .menu-group + .menu-group { margin-top: 0; }
.menu-grid { display: grid; gap: 1.1rem; align-items: start; }
.menu-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.25rem 1.1rem; }
.menu-card h3 { font-size: 1.7rem; color: var(--ink); }
.menu-note { color: var(--soft); font-size: 0.95rem; margin-top: 0.35rem; }
.menu-cols, .menu-rows li { display: grid; gap: 0.5rem; align-items: baseline; }
.cols-1 .menu-rows li { grid-template-columns: 1fr 3.4rem; }
.cols-2 .menu-cols, .cols-2 .menu-rows li { grid-template-columns: 1fr 3.4rem 3.4rem; }
.cols-3 .menu-cols, .cols-3 .menu-rows li { grid-template-columns: 1fr 2.9rem 2.9rem 2.9rem; }
.menu-cols { margin-top: 0.9rem; font: 700 0.72rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.menu-cols span, .price { text-align: right; }
.menu-rows { margin-top: 0.5rem; }
.menu-cols + .menu-rows { margin-top: 0.2rem; }
.menu-rows li { padding: 0.6rem 0; border-top: 1px dashed var(--line); }
.item { font-weight: 500; line-height: 1.3; }
.item small, .menu-names small { display: block; color: var(--soft); font-weight: 400; font-size: 0.86rem; line-height: 1.35; margin-top: 0.15rem; }
.price { font-variant-numeric: tabular-nums; font-weight: 700; }
.menu-names { margin-top: 0.9rem; display: grid; gap: 0; }
.menu-names li { padding: 0.6rem 0; border-top: 1px dashed var(--line); font-weight: 500; line-height: 1.3; }
.extras { display: grid; gap: 1.25rem; margin-top: 2rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
.extras h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.extras p { color: var(--soft); font-size: 0.97rem; }

/* ---- About ---- */
.about { padding: 4rem 0; }
.about-in { display: grid; gap: 2.5rem; }
.about-photos { display: grid; grid-template-columns: repeat(6, 1fr); }
.about-photos img { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; }
.a1 { grid-column: 1 / 6; grid-row: 1; aspect-ratio: 5 / 3; }
.a2 { grid-column: 3 / 7; grid-row: 2; aspect-ratio: 4 / 3; margin-top: -2.5rem; border: 6px solid var(--paper); }
.about-text p + p { margin-top: 1rem; }
.about-text h2 { margin-bottom: 1.25rem; }
.perks { display: grid; gap: 0.6rem; margin-top: 1.75rem; }
.perks li { padding-left: 1.9rem; position: relative; font-weight: 500; }
.perks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314191c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 0.8rem no-repeat; }

/* ---- Reviews ---- */
.reviews { background: var(--ink); color: #fff; padding: 4rem 0; }
.reviews .eyebrow { color: var(--sun); }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; color: #cfd6d9 !important; }
.rating strong { color: #fff; }
.stars { display: inline-flex; gap: 0.1rem; color: var(--sun); font-size: 1.15rem; }
.quotes { display: grid; gap: 1rem; }
.quotes li { background: var(--ink-2); border: 1px solid #2c363c; border-radius: var(--radius); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
.quotes blockquote { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.quotes blockquote::before { content: "\201C"; display: block; font: 900 3.4rem/0.6 var(--display); color: var(--teal-bright); margin-bottom: 0.3rem; }
.who { margin-top: auto; font-weight: 700; }
.who span { color: #9aa6ab; font-weight: 400; }
.more { margin-top: 2rem; }

/* ---- Visit ---- */
.visit { padding: 4rem 0; }
.visit-in { display: grid; gap: 1.25rem; }
.visit-card, .hours-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.visit-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.visit-facts { display: grid; gap: 1.5rem; padding: 1.5rem 1.4rem; }
.visit h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.45rem; margin-bottom: 0.6rem; }
.visit h3 svg { color: var(--teal); width: 1.3rem; height: 1.3rem; }
.visit-facts p + p { margin-top: 0.6rem; }
.visit-facts a { font-weight: 700; }
.email { overflow-wrap: anywhere; }
.hours-card { padding: 1.5rem 1.4rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.hours li:first-child { border-top: 0; }
.hours li.today { font-weight: 700; color: var(--teal); }
.hours li.today span:first-child::after { content: " · today"; font-weight: 500; }
.gift { margin-top: 1.4rem; padding: 1.2rem 1.25rem; border-radius: 14px; background: var(--ink); color: #e6eaeb; }
.gift h3 { color: var(--sun); margin-bottom: 0.35rem; }
.map { margin-top: 1.25rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.map iframe { display: block; width: 100%; height: 20rem; border: 0; }

/* ---- Footer ---- */
.foot { background: var(--ink); color: #b9c3c7; padding: 3rem 0 2rem; font-size: 0.95rem; }
.foot a { color: #fff; }
.foot-in { display: grid; gap: 1.75rem; }
.foot-brand { display: flex; gap: 1rem; align-items: center; }
.foot-brand .logo { width: 5rem; height: 5rem; }
.foot-brand strong { color: #fff; font: 800 1.3rem var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-weight: 700; }
.foot-note { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #262e33; font-size: 0.8rem; color: #8b989e; line-height: 1.55; }

/* ---- Phone action bar ---- */
.bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); border-top: 1px solid #2c363c; padding-bottom: env(safe-area-inset-bottom); }
.bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; min-height: 4rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.82rem; }
.bar a + a { border-left: 1px solid #2c363c; }
.bar svg { width: 1.35rem; height: 1.35rem; color: var(--sun); }

@media (max-width: 26rem) {
  .top-cta { display: none; }
}
@media (min-width: 36rem) {
  .food-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .food-grid img { aspect-ratio: 4 / 3; }
  .food-grid span { font-size: 1rem; padding: 2.5rem 1.1rem 1rem; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .extras { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: 1fr 1fr; }
  .visit-facts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 60rem) {
  body { padding-bottom: 0; font-size: 1.1rem; }
  .bar { display: none; }
  .nav { display: flex; gap: 1.75rem; margin-right: 1.5rem; }
  .nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 0.98rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
  .nav a:hover { border-color: var(--sun); }
  .top-in { min-height: 4.75rem; }
  .brand .logo { width: 3.4rem; height: 3.4rem; }
  .brand-name { font-size: 1.55rem; }
  .hero { padding-top: 4.5rem; }
  .hero-in { grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; }
  .hero-photo img { aspect-ratio: 1 / 1.05; }
  .stamp { width: 10rem; height: 10rem; right: -2rem; top: -3rem; }
  .facts { margin-top: 4.5rem; padding: 1.75rem 0 2rem; }
  .food, .menu, .about, .reviews, .visit { padding: 6rem 0; }
  .food-grid { grid-template-columns: repeat(4, 1fr); }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .about-in { grid-template-columns: 1fr 1fr; align-items: center; gap: 4.5rem; }
  .quotes { grid-template-columns: repeat(4, 1fr); }
  .visit-in { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
  .map iframe { height: 24rem; }
  .foot-in { grid-template-columns: 1fr auto; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Polish (18 Oct): no lonely last words, press feedback, skip link, page not found ---- */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.btn:active { transform: translateY(1px); }
.tabs button { transition: background 0.15s, color 0.15s, transform 0.12s; }
.tabs button:hover { background: var(--cream); }
.tabs button[aria-selected="true"]:hover { background: var(--ink); }
.tabs button:active, .bar a:active, .nav a:active { transform: translateY(1px); }
.bar a:active { background: var(--ink-2); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--sun); color: var(--ink); font-weight: 700; padding: 0.7rem 1.1rem; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }
.lost { background: radial-gradient(60rem 30rem at 85% -10%, #1d4a4d 0%, transparent 60%), var(--ink); color: #fff; min-height: calc(100dvh - 7rem); padding: 4rem 0; }
.lost h1 { max-width: 12ch; }
.lost .btn-line { color: #fff; }
