/* =============================================================
   V-KTV — menu.vktv.id
   App-style e-menu: dark luxury canvas, brass + champagne, photography-led.
   Cover-tile grid → one page per category (subcategories kept as labelled
   blocks, no extra tap) → tap a photo for a full-screen gallery.
   Shares the V-KTV PIK 2 brand system (tokens + Fraunces/Archivo). Self-hosted
   Latin subsets, declared here so the page needs one CSS request and no CSP
   style hash. All interaction is same-origin /script.js (script-src 'self').
   ============================================================= */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 500;font-display:swap;src:url(/fonts/fraunces-normal.woff2) format('woff2')}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:300 500;font-display:swap;src:url(/fonts/fraunces-italic.woff2) format('woff2')}
@font-face{font-family:'Archivo';font-style:normal;font-weight:100 900;font-stretch:62.5% 125%;font-display:swap;src:url(/fonts/archivo-normal.woff2) format('woff2')}

:root{
  /* Surface */
  --bg:#0a0604;
  --bg-2:#120c08;
  --bg-3:#1a110b;
  --surface:#22160e;
  --card:#110b07;

  /* Text */
  --ink:#f5ead9;
  --ink-dim:#c6b393;
  --ink-mute:#8a7a63;
  --ink-faint:#584d3e;

  /* Accent */
  --accent:#d1a878;         /* brass */
  --accent-2:#ecd6ae;       /* light champagne */
  --accent-deep:#8a6638;    /* bronze */

  /* Lines */
  --line:rgba(209,168,120,.14);
  --line-2:rgba(209,168,120,.28);
  --line-strong:rgba(209,168,120,.52);

  /* Type */
  --serif:"Fraunces","Noto Serif SC",Georgia,serif;
  --sans:"Archivo","PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;

  /* Motion */
  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);

  /* Layout — phone-first column */
  --col:28rem;             /* 448px */
}

/* reset + base */
*,*::before,*::after{box-sizing:border-box}
html,body,div,section,article,header,footer,main,
h1,h2,h3,h4,h5,h6,p,ul,ol,li,figure,button{margin:0;padding:0}
ul,ol{list-style:none}
html{color-scheme:dark}
body{
  max-width:var(--col);min-height:100vh;margin-inline:auto;position:relative;
  background:radial-gradient(ellipse at top,var(--bg-3),var(--bg) 58%,#050302);
  color:var(--ink);
  font:400 16px/1.6 var(--sans);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;-webkit-tap-highlight-color:transparent;
  box-shadow:0 0 80px rgba(0,0,0,.6);
}
img,svg{display:block;max-width:100%}
img{height:auto}
a{color:inherit;text-decoration:none}
button{cursor:pointer;background:none;border:none;color:inherit;font:inherit}
em{font-style:italic;color:var(--accent-2);font-family:var(--serif);font-weight:420}
:focus-visible{outline:1px solid var(--accent);outline-offset:3px}
::selection{background:var(--accent);color:var(--bg)}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}
.no-scrollbar::-webkit-scrollbar{display:none}

/* Atmosphere — film grain */
.grain{
  position:fixed;inset:0;z-index:100;pointer-events:none;
  opacity:.04;mix-blend-mode:overlay;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   Top bar (not sticky) — centred wordmark, back button when inside a category
   ============================================================= */
.topbar{
  position:relative;display:flex;justify-content:center;
  padding:20px;border-bottom:1px solid var(--line);
}
.icon-btn{
  display:flex;align-items:center;justify-content:center;
  color:var(--accent);transition:opacity .3s var(--ease),transform .2s var(--ease);
}
.icon-btn svg{width:24px;height:24px}
.icon-btn:active{transform:scale(.92)}
.back-btn{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:42px;height:42px}
.brand{display:inline-flex;flex-direction:column;align-items:center;gap:8px}
.brand-logo{
  width:76px;height:auto;display:block;
  filter:drop-shadow(0 2px 5px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(209,168,120,.12));
}
.brand-mark{
  font-family:var(--serif);font-weight:500;font-size:13px;line-height:1;
  letter-spacing:.04em;color:var(--accent-2);white-space:nowrap;
}
.brand-mark .amp{opacity:.7;margin:0 1px}
.brand-sub{
  display:flex;flex-direction:column;align-items:center;gap:4px;
  font-family:var(--sans);font-stretch:112%;font-size:9.5px;font-weight:500;
  letter-spacing:.16em;text-transform:uppercase;color:var(--accent);line-height:1;
}
.brand-sub-line{display:inline-flex;align-items:center;gap:.6em;white-space:nowrap}
.brand-sub .sep{color:var(--accent-deep)}
.brand-sub .dim{color:var(--ink-mute);letter-spacing:.22em}

/* =============================================================
   Screens — a gentle fade as each one is shown
   ============================================================= */
main{padding:0 0 44px}
.screen{animation:fade .4s var(--ease-out) both}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---- Landing: cover-tile grid ---- */
.screen-categories{padding:16px}
.cat-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cat-tile{
  position:relative;aspect-ratio:3/4;border-radius:10px;overflow:hidden;
  display:block;box-shadow:0 10px 24px -10px rgba(0,0,0,.7);
  transition:transform .2s var(--ease);background:var(--bg-2);
}
.cat-tile:active{transform:scale(.96)}
/* a lone trailing tile (odd count) spans full width as a wide banner */
.cat-grid .cat-tile:last-child:nth-child(odd){grid-column:1/-1;aspect-ratio:5/2}
.cat-img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:brightness(.42);transition:transform .6s var(--ease-out);
}
.cat-tile:hover .cat-img{transform:scale(1.05)}
.cat-frame{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line);border-radius:10px;
}
.cat-label{
  font-family:var(--serif);font-size:15px;letter-spacing:.2em;text-indent:.2em;
  text-transform:uppercase;color:var(--accent-2);font-weight:500;
  text-shadow:0 2px 14px rgba(0,0,0,.5);
}

/* ---- Category page: quiet title + subcategory blocks ---- */
.cat-title{
  font-family:var(--serif);font-weight:480;text-align:center;
  font-size:23px;letter-spacing:.26em;text-indent:.26em;text-transform:uppercase;
  color:var(--accent-2);padding:34px 16px 2px;
}
.cat-body{padding:0 16px}

.sub-title{
  display:flex;align-items:center;gap:16px;margin:0;padding:26px 0 16px;
  cursor:pointer;list-style:none;
  font-family:var(--serif);font-weight:500;font-size:17px;
  letter-spacing:.2em;text-transform:uppercase;color:var(--accent-2);
}
.sub-title::-webkit-details-marker{display:none}
.sub-title::before{
  content:"";flex:none;width:0;height:0;
  border:5px solid transparent;border-left-color:currentColor;
  transition:transform .2s var(--ease);
}
.sub[open]>.sub-title::before{transform:rotate(90deg)}
.sub-title::after{content:"";flex:1;height:1px;background:var(--line)}
.sub[open]>.menu-grid{padding-bottom:12px}
.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 14px}
.item-card{
  display:flex;flex-direction:column;text-align:left;gap:10px;
  background:none;border:0;padding:0;transition:transform .2s var(--ease);
}
.item-card:not(.item-card--text):active{transform:scale(.97)}
.item-thumb{
  display:block;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:var(--bg-2);
}
.item-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease-out)}
.item-card:hover .item-thumb img{transform:scale(1.04)}
/* No photo yet: the card keeps the photo-card shape, with a picture glyph. */
.item-thumb--empty{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7a63' stroke-opacity='.55' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.6' y='4.6' width='18.8' height='14.8' rx='2.2'/%3E%3Ccircle cx='8.6' cy='9.6' r='1.5'/%3E%3Cpath d='M3.4 17.2 8.6 11.8l3.6 3.9 2.6-2.6 4.8 4.6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;background-size:40px;
}
.item-meta{display:flex;flex-direction:column;gap:5px}
.item-name{
  font-family:var(--serif);font-size:13px;line-height:1.32;letter-spacing:.04em;
  text-transform:uppercase;color:var(--ink);min-height:2.5em;
  overflow-wrap:anywhere;
}
.item-price{
  font-family:var(--sans);font-stretch:112%;font-weight:700;font-size:14.5px;
  line-height:1.35;letter-spacing:.06em;color:var(--accent);
}
.coming-soon{
  text-align:center;color:var(--ink-mute);font-family:var(--serif);
  font-size:13px;letter-spacing:.34em;text-transform:uppercase;padding:54px 0 24px;
}

/* =============================================================
   Lightbox — tap a photo for a full-screen, swipeable gallery
   ============================================================= */
.lightbox{
  position:fixed;inset:0;z-index:200;background:rgba(6,4,2,.95);
  /* 100dvh = the currently-visible height, so the panel bottom never hides behind
     the mobile browser chrome (height wins over inset:0's bottom for abspos). */
  height:100dvh;
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}
body.lb-open{overflow:hidden}
.lb-close{position:absolute;top:8px;right:8px;z-index:2;width:46px;height:46px;color:var(--accent-2)}
.lb-track{display:flex;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory}
.lb-slide{
  /* scroll-snap-stop:always = a fast/over-swipe can't fly past intermediate
     slides; the gallery stops at the very next photo instead of flinging to
     the end of the category. */
  scroll-snap-align:center;scroll-snap-stop:always;flex:0 0 100%;height:100%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:16px;padding:56px 18px 26px;
}
/* flex:1 1 auto + min-height:0 lets the photo SHRINK to fit, so the name+price
   below it are always on-screen (mobile browser chrome / nav bar eats viewport;
   a fixed 72vh image used to push the price off the bottom). */
.lb-figure{margin:0;display:flex;justify-content:center;flex:1 1 auto;min-height:0;max-height:72vh}
.lb-figure img{
  max-height:100%;width:auto;max-width:100%;height:auto;border-radius:12px;
  box-shadow:0 30px 70px -28px rgba(0,0,0,.9);
}
.detail-eyebrow{
  text-align:center;font-family:var(--sans);font-stretch:115%;font-weight:600;
  font-size:11px;letter-spacing:.32em;text-transform:uppercase;color:var(--accent);
}
.detail-foot{text-align:center}
.detail-name{
  font-family:var(--serif);font-weight:420;font-size:20px;
  letter-spacing:.1em;text-transform:uppercase;color:var(--ink);
}
.detail-price{
  font-family:var(--sans);font-stretch:112%;font-weight:700;font-size:17px;
  letter-spacing:.08em;color:var(--accent);margin-top:7px;
}

/* =============================================================
   Footer
   ============================================================= */
.footer{
  border-top:1px solid var(--line);padding:34px 20px 44px;text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:16px;
}
.footer .brand-mark{font-size:15px;padding:8px 12px;border:1px solid var(--accent);border-radius:4px}
.footer-meta{font-size:13px;line-height:1.7;color:var(--ink-dim)}
.footer-meta a{color:var(--accent);border-bottom:1px solid var(--line-2)}
.footer-legal{font-size:11px;letter-spacing:.04em;color:var(--ink-faint)}

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
