/* ==========================================================================
   Lotus Garden Chinese & Thai Cuisine
   One stylesheet for the whole site. Plain, fast, readable.
   ========================================================================== */

:root {
  --paper:      #F4F1E8;
  --paper-2:    #EAE5D6;
  --card:       #FFFDF7;
  --ink:        #1A1812;
  --ink-2:      #5C5648;
  --ink-3:      #736D5D;
  --accent:     #B2301A;
  --accent-2:   #8E2413;
  --night:      #14170F;
  --night-ink:  #F2EEE2;
  --rule:       #D8D2C0;
  --green:      #3F6B33;
  --ok:         #2E6B3E;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --wrap: 68rem;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(40, 34, 20, .07), 0 6px 16px -6px rgba(40, 34, 20, .13);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); }
p  { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-2); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.nums  { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

/* ---------- header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__in {
  max-width: var(--wrap); margin-inline: auto;
  padding: .7rem var(--gap);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand img { display: block; width: 44px; height: 44px; border-radius: 10px; flex: none; }
.brand > span { display: block; }
.brand b {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; line-height: 1.1; letter-spacing: -.02em;
}
.brand i {
  display: block; font-style: normal;
  font-family: var(--font-text); font-weight: 500; font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px;
}

.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink-2); text-decoration: none;
  padding: .4rem .7rem; border-radius: 6px;
  font-weight: 500; font-size: .95rem;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); font-weight: 600; }

.callbtn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--accent); color: #fff;
  padding: .5rem .9rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: background .15s ease, transform .1s ease;
}
.callbtn:hover { background: var(--accent-2); color: #fff; }
.callbtn:active { transform: translateY(1px); }

/* ---------- page furniture ---------------------------------------------- */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.25rem, 3vw, 2rem); }
.page-head p { color: var(--ink-2); max-width: 62ch; }
section { padding-block: clamp(1.75rem, 4vw, 3rem); }
.section-rule { border-top: 1px solid var(--rule); }

.notice {
  background: #FFF6E3;
  border: 1px solid #E8D5A6;
  border-left: 4px solid #D99B1C;
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  font-size: .95rem;
  color: #4A3C16;
}
.notice strong { color: #2F2609; }

/* ---------- facts strip ------------------------------------------------- */
.facts {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts > div { background: var(--card); padding: 1rem 1.1rem; }
.facts dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: .3rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts dd span { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-2); margin-top: .15rem; }

/* ---------- menu -------------------------------------------------------- */
.menu-nav {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: .9rem 0;
}
.menu-nav a {
  font-size: .9rem; font-weight: 500; text-decoration: none;
  color: var(--ink-2); background: var(--card);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: .35rem .8rem;
}
.menu-nav a:hover { border-color: var(--accent); color: var(--accent); }

.menu-group { margin-bottom: clamp(2rem, 4vw, 3rem); scroll-margin-top: 5.5rem; }
.menu-group__head { border-bottom: 2px solid var(--ink); padding-bottom: .4rem; margin-bottom: .35rem; }
.menu-group__head h2 { margin: 0; }
.menu-group__note { font-size: .9rem; color: var(--ink-2); margin: 0 0 1rem; }

.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem 1rem;
  align-items: baseline;
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
}
.item:last-child { border-bottom: 0; }
.item__name { font-weight: 600; }
.item__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item__desc { grid-column: 1 / -1; font-size: .92rem; color: var(--ink-2); margin: 0; }

/* price variants inside one item */
.variants { grid-column: 1 / -1; margin: .45rem 0 0; padding: 0; list-style: none; display: grid; gap: .2rem; }
.variants li {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  font-size: .94rem; color: var(--ink-2);
  padding-left: 1rem; border-left: 2px solid var(--rule);
}
.variants b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* markers */
.tag {
  display: inline-block; vertical-align: middle;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .12rem .4rem; border-radius: 4px; margin-left: .4rem;
  white-space: nowrap;
}
.tag--spicy { background: #FBE3DE; color: #8E2413; }
.tag--veg   { background: #E3F0DE; color: #2C5A25; }
.tag--out   { background: #F0E2C2; color: #6A4C0C; }
.tag--pop   { background: #E6E9F5; color: #2E3E7A; }

.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .88rem; color: var(--ink-2); margin: 0 0 1.5rem; padding: .8rem 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.legend span { display: inline-flex; align-items: center; }

/* ---------- dish cards -------------------------------------------------- */
.dishes {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.dish {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.dish svg {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 3;
  background: radial-gradient(85% 80% at 42% 26%, #FFFDF6 0%, #EFE9D9 60%, #E0D8C2 100%);
  border-bottom: 1px solid var(--rule);
}
.dish__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.dish__body h3 { margin: 0; }
.dish__meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.dish__meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dish__body p { font-size: .94rem; color: var(--ink-2); margin: 0; }

/* ---------- steps ------------------------------------------------------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: .9rem; align-items: start; }
.steps li::before {
  content: counter(s);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.steps h3 { margin: 0 0 .2rem; font-size: 1.05rem; font-family: var(--font-text); font-weight: 600; letter-spacing: 0; }
.steps p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* ---------- cards / callouts -------------------------------------------- */
.cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color .15s ease, transform .1s ease; }
.card--link:hover { border-color: var(--accent); color: inherit; }
.card--link .go { color: var(--accent); font-weight: 600; font-size: .92rem; }

.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: .85rem 1.1rem;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq summary::marker { color: var(--accent); }
.faq p { margin: .6rem 0 0; color: var(--ink-2); font-size: .96rem; }

/* ---------- hero -------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.2rem; border-radius: 999px;
  text-decoration: none; font-weight: 600;
  border: 1px solid var(--ink);
  color: var(--ink); background: transparent;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

/* ---------- footer ------------------------------------------------------ */
.site-footer {
  background: var(--night); color: var(--night-ink);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-block: clamp(2rem, 5vw, 3rem);
}
.site-footer a { color: #FF7A5C; }
.footer-grid {
  display: grid; gap: 1.5rem var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.site-footer h2 { font-family: var(--font-text); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #A29C8B; margin: 0 0 .5rem; font-weight: 600; }
.site-footer p { margin: 0 0 .4rem; font-size: .95rem; }
.footer-phone {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: #FF7A5C; text-decoration: none; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; display: inline-block;
}
.footer-fine {
  margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid #2C3024;
  font-size: .82rem; color: #A29C8B; max-width: 70ch; line-height: 1.6;
}

@media (max-width: 560px) {
  .site-header__in { padding-block: .6rem; }
  .brand b { font-size: 1rem; }
  .brand img { width: 36px; height: 36px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 0; }
  .nav a { padding: .35rem .5rem; font-size: .88rem; }
  .item { grid-template-columns: 1fr auto; }
}

/* ---------- reviews ----------------------------------------------------- */
.rating-summary {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  align-items: center;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.4rem;
}
@media (max-width: 620px) { .rating-summary { grid-template-columns: 1fr; } }
.rating-big { text-align: center; }
.rating-big strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 3.4rem; line-height: 1; letter-spacing: -.03em;
}
.rating-big span { display: block; color: var(--ink-2); font-size: .9rem; margin-top: .35rem; }
.stars { color: #D99B1C; font-size: 1.1rem; letter-spacing: .1em; }

.bars { display: grid; gap: .35rem; }
.bar { display: grid; grid-template-columns: 5.5rem 1fr 2.5rem; gap: .6rem; align-items: center; font-size: .88rem; }
.bar__track { background: var(--paper-2); border-radius: 999px; height: 9px; overflow: hidden; }
.bar__fill { background: #D99B1C; height: 100%; border-radius: 999px; }
.bar b { text-align: right; color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }

.subscores { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin-top: var(--gap); }
.subscores > div { background: var(--card); padding: .9rem 1rem; text-align: center; }
.subscores dt { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.subscores dd { margin: .2rem 0 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

.reviews { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.review {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.review__stars { color: #D99B1C; font-size: .95rem; letter-spacing: .08em; }
.review__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 0; letter-spacing: -.01em; }
.review blockquote { margin: 0; font-size: .96rem; color: var(--ink-2); }
.review blockquote p { margin: 0 0 .5em; }
.review blockquote p:last-child { margin-bottom: 0; }
.review figcaption { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--rule); font-size: .84rem; color: var(--ink-3); }
.review figcaption b { color: var(--ink); font-weight: 600; }
.review--critical { background: #FBF7EE; }

.mentions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.mentions li {
  background: var(--card); border: 1px solid var(--rule); border-radius: 999px;
  padding: .35rem .85rem; font-size: .9rem; font-weight: 500;
}
.mentions b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* Links sitting alone in small print are still tap targets. Give them height. */
.notice a, .small a { display: inline-block; padding-block: .25rem; }

/* menu groups carry their own bottom margin; don't also pay section padding */
section.menu-group { padding-block: 0; }

/* four-item card groups: two-by-two, never a lone orphan tile on a third row */
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .cards--2 { grid-template-columns: minmax(0, 1fr); } }


/* the supplied lockup, leading the home page */
.hero__logo {
  display: block;
  width: min(340px, 72vw);
  height: auto;
  border-radius: 14px;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 2px 4px rgba(60, 14, 10, .16), 0 14px 34px -12px rgba(60, 14, 10, .34);
}

/* ==========================================================================
   Print. People print the menu and stick it on the fridge, so make that work:
   drop the chrome, keep the food and the phone number, never break an item
   across two pages.
   ========================================================================== */
@media print {
  :root { --paper: #fff; --card: #fff; --rule: #bbb; }

  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }

  /* chrome and anything you cannot act on from paper */
  .site-header, .callbtn, .nav, .skip, .menu-nav,
  .hero__actions, .btn, .card--link .go, .site-footer,
  .faq summary::marker, .dish svg, .hero__logo { display: none !important; }

  /* a printed page needs its own masthead */
  main::before {
    content: "Lotus Garden  ·  Chinese & Thai Cuisine  ·  Princeville Center, Unit C-101, Kaua'i  ·  (808) 826-9999  ·  Open daily 11am to 9pm";
    display: block;
    font-weight: 600;
    font-size: 10pt;
    padding-bottom: .5rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #000;
  }

  .wrap { max-width: none; padding: 0; }
  section { padding-block: .6rem; }
  .page-head { padding-block: 0 .8rem; }

  h1 { font-size: 22pt; }
  h2 { font-size: 15pt; }
  h3 { font-size: 11.5pt; }
  .lede { font-size: 11pt; color: #000; max-width: none; }

  /* keep a dish and its price together */
  .item, .dish, .review, .card, .steps li, .menu-group__head { break-inside: avoid; }
  .menu-group { break-inside: auto; }
  .menu-group__head { break-after: avoid; }

  /* two columns of menu on paper: it is a list, not an argument */
  .items { columns: 2; column-gap: 2.2rem; }
  .item { break-inside: avoid; border-bottom: 1px solid #ddd; }
  .item__desc { font-size: 9.5pt; color: #333; }
  .variants li { font-size: 9.5pt; }

  .notice { border: 1px solid #999; background: #f4f4f4; color: #000; }
  .tag { border: 1px solid #999; }

  /* spell out links that are not obvious on paper */
  a[href^="tel:"]::after { content: ""; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #555; word-break: break-all; }

  @page { margin: 14mm; }
}
