/* Kora Coffee House: warm, cozy, low light. Light-brown theme with dark amber accents.
   Change the look by editing the variables below. */
:root {
  --bg: #efe0cb;          /* light brown page */
  --surface: #f8eedf;     /* cards */
  --line: #d9c3a5;
  --ink: #36200f;         /* dark brown text */
  --muted: #7a5a43;
  --accent: #b4521a;      /* dark orange (logo) */
  --accent-ink: #fff7ec;
  --accent-deep: #8a3d10;
  --night: #261710;       /* low-light sections */
  --night-ink: #f3e3cc;
  --glow: #f2a65a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(54, 32, 15, .12);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent-deep); font-weight: 700; margin-bottom: .6rem; }
.night .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--glow); }
.night .note, .night blockquote footer { color: #c9ad8c; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); border-bottom: 1px solid rgba(242, 166, 90, .35); color: var(--night-ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--night-ink); text-decoration: none; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
.brand svg { width: 38px; height: 38px; }
.nav { display: flex; gap: .25rem; }
.nav a { color: var(--night-ink); text-decoration: none; padding: .5rem .9rem; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(242, 166, 90, .18); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; font: inherit; font-weight: 700; min-height: 48px; }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost { background: transparent; color: var(--accent-deep); }
.btn.ghost:hover { background: rgba(180, 82, 26, .1); }
.btn.on-dark.ghost { color: var(--night-ink); border-color: var(--glow); }
.btn.on-dark.ghost:hover { background: rgba(242, 166, 90, .15); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero: a dim room with a warm lamp glow */
.hero { background: radial-gradient(ellipse at 75% 20%, rgba(242, 166, 90, .38), transparent 55%), radial-gradient(ellipse at 15% 90%, rgba(180, 82, 26, .35), transparent 50%), var(--night); color: var(--night-ink); padding: 4.5rem 0 4rem; }
.hero p.lead { font-size: 1.2rem; max-width: 36rem; color: #e8d3b6; }
.hero .today { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(242, 166, 90, .35); padding: .45rem .9rem; border-radius: 999px; font-size: .95rem; margin-bottom: 1.2rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #8a8a8a; }
.dot.open { background: #7bd88f; box-shadow: 0 0 8px #7bd88f; }
.dot.closed { background: #e07a5f; }
.page-head { background: var(--night); color: var(--night-ink); padding: 2.6rem 0 2.2rem; background-image: radial-gradient(ellipse at 85% 0%, rgba(242, 166, 90, .3), transparent 60%); }
.page-head p { color: #e8d3b6; margin: 0; max-width: 40rem; }

/* Cards and grids */
.grid { display: grid; gap: 1.2rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.night { background: var(--night); color: var(--night-ink); }
.night .card { background: #34221a; border-color: #4a3226; box-shadow: none; }
.night .muted { color: #c9ad8c; }
.night a { color: var(--glow); }

/* Photo placeholders: swap for real <img> when photos arrive */
.ph { position: relative; border-radius: var(--radius); min-height: 200px; display: grid; place-items: end start; padding: 1rem; color: #f8e6cc; font-size: .85rem; overflow: hidden;
  background: radial-gradient(circle at 70% 25%, rgba(242, 166, 90, .55), transparent 45%), linear-gradient(135deg, #5a3420, #2c1b12); }
.ph::before { content: "Photo"; position: absolute; top: .9rem; right: .9rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; border: 1px solid rgba(248, 230, 204, .4); padding: .1rem .5rem; border-radius: 999px; }
.ph.tall { min-height: 320px; }
.ph.a { background: radial-gradient(circle at 30% 30%, rgba(242, 166, 90, .5), transparent 45%), linear-gradient(160deg, #6b3d22, #2a1a12); }
.ph.b { background: radial-gradient(circle at 80% 70%, rgba(220, 140, 70, .5), transparent 50%), linear-gradient(200deg, #4d2c1a, #261710); }
.ph.c { background: radial-gradient(circle at 50% 10%, rgba(255, 196, 120, .5), transparent 50%), linear-gradient(120deg, #7a4a2b, #33201a); }

/* Menu */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .95rem; }
.chips a:hover { border-color: var(--accent); }
.menu-cat { margin-bottom: 2.5rem; scroll-margin-top: 5rem; }
.menu-cat > h2 { border-bottom: 2px solid var(--accent); padding-bottom: .4rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.menu-cat > h2 small { font-size: .9rem; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.item { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.item .name { font-weight: 700; }
.item .price { font-weight: 700; white-space: nowrap; color: var(--accent-deep); }
.item .desc { grid-column: 1; color: var(--muted); font-size: .95rem; margin: 0; }
.tag { display: inline-block; font-size: .7rem; padding: .05rem .5rem; border-radius: 999px; border: 1px solid var(--line); margin-left: .35rem; vertical-align: middle; color: var(--muted); }
.tag.veg { border-color: #5d8a4a; color: #3f6b2e; }
.tag.today { border-color: var(--accent); color: var(--accent-deep); }
.note { font-size: .9rem; color: var(--muted); }

/* Hours table, forms, FAQ */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
.hours tr.today { font-weight: 700; color: var(--accent-deep); }
.night .hours th, .night .hours td { border-color: #4a3226; }
.night .hours tr.today { color: var(--glow); }
form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input, select, textarea { width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fffaf2; font: inherit; color: var(--ink); min-height: 48px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .7rem; }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: .5rem; }
blockquote { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
blockquote footer { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.map { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { background: #1d120c; color: #d8c1a0; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: var(--glow); }
.site-footer .cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 1.5rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.fine { border-top: 1px solid #3a2a20; padding-top: 1rem; font-size: .85rem; color: #a58c6f; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; padding: .5rem 0; gap: .25rem; }
  .nav { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: .15rem; }
  .nav a { padding: .5rem .25rem; font-size: .9rem; text-align: center; }
  .row2 { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .chips, .no-print, .hero, .page-head .actions { display: none !important; }
  body { background: #fff; color: #000; }
  .page-head { background: none; color: #000; padding: 0; }
  .page-head p { color: #333; }
  .item { break-inside: avoid; }
  /* The menu can grow onto more pages: a title stays with its first items, and photos stay on the website. */
  .menu-cat > h2 { break-after: avoid; }
  .menu-section .menu-compact .menu-cat { break-inside: auto; }
  .menu-section img { display: none !important; }
  /* Name and contact details at the top of page 1, so they print however long the menu gets. */
  .print-only.print-head { display: flex; }
}
.print-only { display: none; }
.print-head { align-items: center; gap: 14px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid #b4521a; }
.print-head img { width: 52px; height: 52px; }
.print-head strong { font-family: var(--serif); font-size: 1.5rem; }
.print-head p { margin: 0; font-size: .85rem; color: #333; line-height: 1.4; }

/* Menu on dark sections (the home page taste) */
.night .item { border-color: #4a3226; }
.night .item .desc { color: #c9ad8c; }
.night .item .price { color: var(--glow); }
.night .menu-cat > h2 { border-color: var(--glow); }
.night .menu-cat > h2 small { color: #c9ad8c; }
.night .tag { border-color: #6a4a38; color: #d9bf9f; }
.night .tag.veg { border-color: #8bb57a; color: #a9d596; }
.night .tag.today { border-color: var(--glow); color: var(--glow); }

/* Menu page: compact, side-by-side sections so the whole menu fits one laptop screen.
   Phones and narrow windows get one column and scroll. */
.menu-wide { width: min(1320px, 100% - 2rem); }
.page-head.compact { padding: 1.1rem 0 1rem; }
.page-head.compact .wrap { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
.page-head.compact h1 { font-size: 1.9rem; margin: 0; }
.page-head.compact p { font-size: .95rem; }
.menu-section { padding: 1.1rem 0 1.5rem; }
.btn.small { min-height: 34px; padding: .3rem .9rem; font-size: .85rem; margin-left: .8rem; }
.menu-foot { margin: .4rem 0 0; }
@media (min-width: 900px) {
  .menu-section .chips { display: none; }
  .menu-compact { column-count: 4; column-gap: 2.2rem; }
  .menu-compact .menu-cat { break-inside: avoid; margin-bottom: 1.1rem; }
  .menu-compact .menu-cat > h2 { font-size: 1.15rem; margin-bottom: .1rem; padding-bottom: .25rem; }
  .menu-compact .menu-cat > h2 small { display: none; }
  .menu-compact .item { padding: .3rem 0; font-size: .93rem; line-height: 1.3; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .menu-compact { column-count: 2; column-gap: 1.8rem; }
  .menu-compact .menu-cat { break-inside: avoid; }
}

/* Buttons keep their own text colour inside dark sections */
.night a.btn { color: var(--accent-ink); }
.night a.btn.on-dark.ghost { color: var(--night-ink); }
.night .grid > .card { align-self: start; }

/* Membership page */
.member-hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem; }
.member-hero .copy { flex: 999 1 26rem; min-width: 0; }
.member-hero .phone-wrap { flex: 1 1 17rem; display: flex; justify-content: center; }
.phone { width: 290px; max-width: 100%; border-radius: 38px; background: #1d120c; padding: 12px; border: 1px solid #4a3226; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.phone .screen { border-radius: 28px; background: var(--bg); color: var(--ink); padding: 1.2rem 1rem; display: grid; gap: .75rem; font-size: .9rem; }
.phone .balance { border-radius: 18px; background: var(--night); color: var(--night-ink); padding: 1rem; display: grid; gap: .4rem; }
.phone .balance .row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .75rem; color: #c9ad8c; }
.phone .amount { font-family: var(--serif); font-weight: 700; font-size: 2.1rem; line-height: 1; }
.phone .small { font-size: .8rem; color: #c9ad8c; }
.phone .tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .65rem .8rem; display: grid; gap: .45rem; }
.phone .tile .row { display: flex; justify-content: space-between; gap: .5rem; }
.phone .bar { height: 8px; border-radius: 999px; background: var(--line); }
.phone .bar span { display: block; height: 8px; width: 70%; border-radius: 999px; background: var(--accent); }
.phone .order { background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-height: 44px; display: grid; place-items: center; font-weight: 700; }
.badge { display: inline-block; background: var(--accent); color: var(--accent-ink); font-family: var(--sans); font-weight: 700; font-size: .75rem; letter-spacing: 0; text-transform: none; padding: .15rem .6rem; border-radius: 999px; white-space: nowrap; }
.step-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--accent); margin: 0 0 .5rem; }
.level p { margin: 0 0 .6rem; }
.level-name { display: flex; justify-content: space-between; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--muted); }
.level-amount { font-family: var(--serif); font-weight: 700; font-size: 2.3rem; line-height: 1.1; }
.level-off { font-size: 1.25rem; font-weight: 700; color: var(--accent-deep); }
.level .level-points { border-top: 1px dashed var(--line); padding-top: .6rem; margin: 0; color: var(--muted); }
.level.featured { background: var(--night); color: var(--night-ink); border-color: #4a3226; background-image: radial-gradient(ellipse at 85% 0%, rgba(242, 166, 90, .3), transparent 60%); }
.level.featured .level-name, .level.featured .level-off { color: var(--glow); }
.level.featured .level-points { color: #c9ad8c; border-color: #4a3226; }
.night .card h3 { color: #fff; }
