/* ================================================================
   TANGRA LAYOUT (owner request 2026-11-21: site styled after
   tangrarestaurant.com). Header with Explore drawer + Book a Table,
   full-screen hero, paper/media split sections, split footer.
   Loaded after custom.css on every page.
   ================================================================ */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/jost-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/jost-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/source-code-pro-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/source-code-pro-600-latin.woff2") format("woff2"); }

:root {
  --tg-yellow: #fed01a;
  --tg-yellow-h: #ffe063;
  --tg-dark: #2c140f;
  --tg-drawer: #2d1210;
  --tg-red: #d7192a;
  --tg-paper: #f3eee3;
  --tg-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .1 0 0 0 0 .06 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tg-sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --tg-mono: "Source Code Pro", ui-monospace, Menlo, Consolas, monospace;
  --tg-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-display: var(--tg-sans);
  --font-body: var(--tg-mono);
  --fw-head: 600;
}
html.tg-lock, html.tg-lock body { overflow: hidden; }
body { background-color: var(--tg-paper); background-image: var(--tg-tex); }
.tg-paper { background-color: var(--tg-paper); background-image: var(--tg-tex); }

/* ---------- header ---------- */
:root body .tg-header {
  position: sticky; top: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 8px clamp(14px, 2.4vw, 38px);
  background: var(--tg-dark); color: var(--tg-yellow);
  transition: background-color .35s ease, box-shadow .35s ease;
}
:root body.tg-home .tg-header { position: fixed; left: 0; right: 0; background: transparent; }
:root body.tg-home .tg-header.is-solid { background: var(--tg-dark); box-shadow: 0 2px 18px rgba(0,0,0,.25); }
:root body .tg-explore, :root body .tg-book {
  display: inline-flex; align-items: center; gap: 12px; color: inherit; background: none; border: 0; padding: 4px 0;
  cursor: pointer; text-decoration: none;
  font-family: var(--tg-sans) !important; font-weight: 700 !important; font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1; text-transform: uppercase; letter-spacing: .01em;
}
:root body .tg-explore { justify-self: start; }
:root body .tg-book { justify-self: end; }
.tg-explore img { width: clamp(40px, 3.4vw, 54px); height: auto; border-radius: 50%; transition: transform .4s cubic-bezier(.25,1,.5,1); }
.tg-explore[aria-expanded="true"] img { transform: scale(.9); }
.tg-book svg { width: clamp(26px, 2.2vw, 32px); height: auto; color: var(--tg-red); }
.tg-explore:hover .tg-explore__label, .tg-book:hover .tg-book__label { text-decoration: underline; text-underline-offset: 5px; }
.tg-logo { display: block; line-height: 0; }
.tg-logo img { height: clamp(70px, 6.2vw, 92px); width: auto; transition: height .35s ease; }
:root body.tg-home .tg-header:not(.is-solid) .tg-logo img { height: clamp(84px, 8.4vw, 128px); }
@media (max-width: 560px) {
  .tg-explore__label, .tg-book__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tg-logo img, :root body.tg-home .tg-header:not(.is-solid) .tg-logo img { height: 58px; }
}

/* ---------- explore drawer ---------- */
.tg-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(20, 8, 6, .5); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.tg-scrim.is-open { opacity: 1; pointer-events: auto; }
:root body .tg-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 80; width: min(430px, 90vw);
  background: var(--tg-drawer); color: #fff; overflow-y: auto;
  padding: clamp(92px, 11vh, 120px) clamp(24px, 2.6vw, 40px) 40px;
  transform: translateX(-102%); visibility: hidden;
  transition: transform .5s cubic-bezier(.25,1,.5,1), visibility 0s linear .5s;
}
:root body .tg-drawer.is-open { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.25,1,.5,1); }
.tg-drawer ul { list-style: none; margin: 0; padding: 0; }
:root body .tg-drawer__main a:not(#tg-z) {
  display: block; padding: 12px 0; color: #fff; text-decoration: none;
  font-family: var(--tg-sans) !important; font-weight: 700 !important; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.05; text-transform: uppercase;
}
:root body .tg-drawer__main a:hover, :root body .tg-drawer__main a:focus-visible { color: var(--tg-yellow); }
.tg-drawer__sub { display: grid; gap: 22px; margin-top: 34px; padding-top: 26px; border-top: 1px dashed rgba(254, 208, 26, .45); }
:root body .tg-drawer__h { margin: 0 0 8px; color: var(--tg-yellow); font-family: var(--tg-sans) !important; font-weight: 600 !important; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
:root body .tg-drawer__sub a { display: inline-block; padding: 5px 0; color: #f4e8e2; font-family: var(--tg-mono) !important; font-weight: 400 !important; font-size: 15px; text-decoration: none; }
:root body .tg-drawer__sub a:hover { color: var(--tg-yellow); text-decoration: underline; }

/* ---------- booking modal ---------- */
.tg-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 8, 6, .72); }
.tg-modal.is-open { display: flex; }
.tg-modal__box { display: flex; flex-direction: column; width: min(640px, 100%); height: min(90vh, 920px); background: #fff; border: 3px solid var(--tg-yellow); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.tg-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; background: var(--tg-dark); color: var(--tg-yellow); }
:root body .tg-modal__title { margin: 0; max-width: none; font-family: var(--tg-sans) !important; font-weight: 700 !important; font-size: 20px; text-transform: uppercase; }
:root body .tg-modal__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tg-yellow); color: var(--tg-dark); font-size: 28px; line-height: 1; cursor: pointer; }
.tg-modal iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- buttons ---------- */
:root body .tg-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 30px;
  background: var(--tg-yellow); color: var(--tg-dark); border: 2px dashed transparent; text-decoration: none;
  font-family: var(--tg-mono) !important; font-weight: 400 !important; font-size: clamp(17px, 1.45vw, 22px); line-height: 1;
  text-transform: uppercase; letter-spacing: .03em; transition: background-color .2s ease, transform .2s ease;
}
:root body .tg-btn:hover { background: var(--tg-yellow-h); transform: translateY(-2px); }
:root body .tg-paper .tg-btn { border-color: var(--tg-dark); }

/* ---------- hero ---------- */
.tg-hero { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 130px 20px 90px; overflow: hidden; background: #1b0d0a; color: #fff; text-align: center; }
.tg-hero__bg, .tg-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,8,6,.62) 0%, rgba(20,8,6,.28) 26%, rgba(20,8,6,.32) 62%, rgba(20,8,6,.6) 100%); }
.tg-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1200px; }
:root body .tg-hero h1 {
  margin: 0 0 clamp(34px, 6vh, 56px); color: #fff; text-shadow: 0 2px 26px rgba(0,0,0,.35);
  font-family: var(--tg-sans) !important; font-weight: 700 !important; font-size: clamp(2.3rem, 5.2vw, 5.1rem); line-height: 1.02;
  text-transform: uppercase; letter-spacing: .005em;
}
.tg-hero h1 .l { display: block; }
.tg-hero h1 .l::after { content: "."; }
.tg-hero h1 .l--np::after { content: none; }
.tg-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tg-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 50px; max-width: 560px; margin: 0 auto; }

/* ---------- split sections ---------- */
.tg-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.tg-split__text { display: flex; align-items: center; padding: clamp(40px, 5.3vw, 84px); }
.tg-split__media { position: relative; overflow: hidden; background: #1b0d0a; }
.tg-split__media img, .tg-split__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tg-split--rev .tg-split__media { order: -1; }
.tg-frame { position: relative; width: 100%; max-width: 680px; padding: clamp(34px, 4.6vw, 70px) clamp(24px, 3vw, 46px); border: 4px double var(--tg-dark); outline: 2px dashed var(--tg-dark); outline-offset: 7px; margin: 9px; }
:root body .tg-title { margin: 0 0 30px; color: var(--tg-dark); font-family: var(--tg-serif) !important; font-weight: 600 !important; font-size: clamp(2.4rem, 4.2vw, 4.2rem); line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; }
:root body .tg-copy p { margin: 0 0 1.05em; max-width: none; color: var(--tg-dark); font-family: var(--tg-mono) !important; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; }
:root body .tg-copy p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.tg-foot__inner { width: 100%; max-width: 640px; color: var(--tg-dark); }
.tg-foot__btns { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-bottom: 44px; }
:root body .tg-foot__h { margin: 0 0 16px; color: var(--tg-dark); font-family: var(--tg-sans) !important; font-weight: 600 !important; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.1; text-transform: uppercase; letter-spacing: 0; }
.tg-hours { display: grid; grid-template-columns: max-content 1fr; gap: 8px 40px; margin: 0 0 30px; }
:root body .tg-hours dt { font-family: var(--tg-mono) !important; font-weight: 600 !important; font-size: 15px; }
:root body .tg-hours dd { margin: 0; font-family: var(--tg-mono); font-size: 15px; }
.tg-addr { display: grid; gap: 10px; margin-bottom: 36px; font-style: normal; }
:root body .tg-addr a, :root body .tg-legal a, :root body .tg-foot__links a { color: var(--tg-dark); font-family: var(--tg-mono) !important; font-weight: 400 !important; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
:root body .tg-addr a:hover, :root body .tg-foot__links a:hover, :root body .tg-legal a:hover { color: var(--tg-red); }
.tg-foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 36px; padding: 0; }
:root body .tg-foot__links a { text-decoration: none; font-size: 14px; }
:root body .tg-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0; max-width: none; font-family: var(--tg-mono); font-size: 13px; }
:root body .tg-legal > * { font-size: 13px !important; }

/* ---------- inner pages: paper ground under the old layout ---------- */
:root body:not(.tg-home) main { background-color: transparent; }

@media (max-width: 860px) {
  .tg-split { grid-template-columns: 1fr; min-height: 0; }
  .tg-split--rev .tg-split__media, .tg-split__media { order: 2; min-height: 0; aspect-ratio: 4 / 5; }
  .tg-split__text { padding: 56px 18px; }
  .tg-frame { margin: 9px 0; }
  .tg-foot__btns { justify-content: flex-start; }
  .tg-hours { gap: 8px 18px; }
  :root body .tg-hours dt, :root body .tg-hours dd { font-size: 14px; white-space: nowrap; }
  .tg-btns { gap: 16px 18px; }
  :root body .tg-btn { min-height: 54px; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  :root body .tg-drawer, .tg-scrim, .tg-explore img, :root body .tg-btn { transition: none; }
}

/* yellow is a fill colour only: text on paper/white uses the red accent (contrast >= 4.5:1) */
:root body .item-price, :root body .menu-title em { color: var(--accent-ink) !important; }
:root body .chapter .ch-no { -webkit-text-stroke-color: var(--accent-ink); }
