/* ============================================================
   THAI MARINA — demo build by Nimblesite
   Playbook fingerprint: dark evening-elegant. Newsreader +
   Switzer; deep jade-black / cream / gold, chili accents;
   full-bleed photo-scrim hero (THEIR photos), gold hairlines;
   host voice. Facts + imagery from their own live (http-only)
   site. First dark-ground build in the portfolio.
   ============================================================ */

:root {
  --bg:     #101c18;
  --bg-2:   #16261f;
  --cream:  #f3ead8;
  --mut:    #b8ac93;
  --gold:   #cfa14e;
  --chili:  #d84b33;
  --line:   #2c3d34;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 1.05rem; line-height: 1.7; color: var(--cream); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--bg); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.page { max-width: 1040px; margin-inline: auto; padding-inline: var(--pad); }

.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem; line-height: 1; padding: .95rem 1.7rem; background: var(--gold); color: #241a08; border: 1px solid var(--gold); border-radius: 2px; transition: background .2s, color .2s; }
.btn:hover { background: #e0b666; }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--mut); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }

/* util + mast */
.util { background: #0a120f; color: var(--mut); font-size: .92rem; }
.util .page { display: flex; justify-content: space-between; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.util b { color: var(--gold); }
.util a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.mast { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.mast .page { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 78px; }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: .02em; color: var(--cream); }
.wordmark span { color: var(--gold); font-style: italic; }
.mast nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2rem); font-weight: 600; font-size: .96rem; }
.mast nav a:not(.btn) { padding: .3rem 0; border-bottom: 2px solid transparent; }
.mast nav a:not(.btn):hover, .mast nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold); }
.mast .btn { padding: .7rem 1.2rem; font-size: .92rem; }
@media (max-width: 760px) { .mast nav a:not(.btn) { display: none; } }

/* photo-scrim hero */
.hero { position: relative; overflow: hidden; min-height: min(78vh, 640px); display: grid; align-items: end; }
.hero .art { position: absolute; inset: 0; }
.hero .art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,28,24,.55) 0%, rgba(16,28,24,.25) 40%, rgba(16,28,24,.92) 88%), linear-gradient(90deg, rgba(16,28,24,.55), transparent 60%); }
.hero .page { position: relative; z-index: 1; padding-block: 3rem 3.4rem; }
.hero .kicker { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.15rem; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.01em; max-width: 18ch; margin-top: .6rem; }
.hero .lead { color: var(--cream); opacity: .85; max-width: 50ch; margin-top: 1.1rem; font-size: 1.12rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* sections */
.sec { padding-block: clamp(2.8rem, 6vw, 4.8rem) 0; }
.sec:last-of-type { padding-bottom: clamp(2.8rem, 6vw, 4.8rem); }
.sec-kicker { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
h2.title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.7rem); line-height: 1.1; margin-top: .5rem; max-width: 26ch; }
.lead2 { color: var(--mut); max-width: 60ch; margin-top: 1rem; }
.rule { width: 64px; height: 1px; background: var(--gold); margin-top: 1.6rem; }

/* menu list */
.menu-wrap { margin-top: clamp(1.8rem, 4vw, 2.6rem); columns: 2; column-gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 820px) { .menu-wrap { columns: 1; } }
.mcat { break-inside: avoid; margin-bottom: 2.2rem; }
.mcat h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.mcat ul { list-style: none; padding: 0; margin-top: .9rem; }
.mcat li { padding: .45rem 0; }
.mcat li b { font-weight: 600; color: var(--cream); }
.mcat li p { color: var(--mut); font-size: .95rem; margin-top: .15rem; }
.mcat .chili { color: var(--chili); font-size: .85rem; }

/* photo cards */
.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
@media (max-width: 820px) { .dishes { grid-template-columns: 1fr; } }
.dish { border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.dish img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.dish .cap { padding: 1rem 1.2rem; }
.dish .cap b { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.dish .cap p { color: var(--mut); font-size: .95rem; margin-top: .3rem; }

/* band */
.band { margin-top: clamp(2.8rem, 6vw, 4.8rem); background: var(--bg-2); border-block: 1px solid var(--line); }
.band .page { display: grid; grid-template-columns: 1.4fr auto; gap: 1.5rem; align-items: center; padding-block: clamp(2.2rem, 5vw, 3.2rem); }
@media (max-width: 760px) { .band .page { grid-template-columns: 1fr; } }
.band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.1rem); line-height: 1.15; max-width: 28ch; }
.band h2 em { font-style: italic; color: var(--gold); }
.band p { margin-top: .5rem; color: var(--mut); max-width: 56ch; }

/* prose, note, contact */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: clamp(1.4rem, 3vw, 2.2rem); }
@media (max-width: 780px) { .two { grid-template-columns: 1fr; } }
.prose { color: var(--mut); max-width: 62ch; }
.prose p + p { margin-top: 1rem; }
.prose b { color: var(--cream); }
.note { border: 1px dashed var(--line); background: var(--bg-2); padding: 1.2rem 1.4rem; color: var(--mut); font-size: .96rem; }
.photo-card { border: 1px solid var(--line); }
.photo-card img { width: 100%; height: auto; }
.contact-card { background: var(--bg-2); border: 1px solid var(--gold); padding: 1.7rem 1.8rem; }
.contact-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--gold); }
.contact-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-card dl div:last-child { border-bottom: 0; }
.contact-card dt { color: var(--mut); }
.contact-card dd { font-weight: 600; text-align: right; }
.contact-card .btn { width: 100%; justify-content: center; margin-top: 1.1rem; }

/* footer */
.foot { margin-top: clamp(2.8rem, 6vw, 4.8rem); background: #0a120f; border-top: 1px solid var(--line); color: var(--mut); }
.foot .page { padding-block: 2.1rem 1.5rem; }
.foot .row { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; font-size: .95rem; }
.foot .wm { font-family: var(--serif); color: var(--cream); }
.foot a { text-decoration: underline; text-underline-offset: 3px; }
.foot .credit { margin-top: 1.2rem; font-size: .85rem; opacity: .75; }
