/* Layout: the page follows one evening on the deck, top to bottom: the sky, the live camera, the two hours, the menu, the people behind it, how to come. */
/* One committed dusk look (Koh Mak sky after 6 pm), so a single theme by choice. */
:root {
  --night: #15132e;      /* page ground, the sky twenty minutes after sunset */
  --ink: #0e0d22;
  --dusk: #1f1c42;       /* raised surfaces */
  --line: #363163;
  --sand: #f7eee5;       /* text */
  --haze: #b8afce;       /* secondary text */
  --coral: #ff7a66;      /* accent */
  --apricot: #ffb56b;
  --violet: #8a6bc0;
  --celadon: #9fd3bd;    /* Thai celadon glaze, for the pottery */
  --celadon-deep: #163431;
  --mist: #cfe4da;
  --live: #d32f2f;
  --white: #ffffff;
  --glass: rgba(21, 19, 46, .62);

  --display: 'Corben', 'Cooper Black', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 4.2vw, 2.75rem);
  --step-4: clamp(2.7rem, 7.4vw, 5rem);
  --wrap: 1140px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--sand); font: 400 var(--step-0)/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow { font: 500 .78rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--apricot); }


/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; }
.mark .s { fill: var(--coral); }
.mark .r { fill: var(--apricot); }
.brand-name { font: 700 1.3rem/1 var(--display); white-space: nowrap; }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 500; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--haze); }
.nav a:hover { color: var(--sand); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--dusk); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--haze); }
.status.open i { background: var(--celadon); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(159, 211, 189, .6); } 100% { box-shadow: 0 0 0 10px rgba(159, 211, 189, 0); } }
@media (max-width: 720px) { .nav { display: none; } .top-in { gap: 12px; } .status { margin-left: auto; } }

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero-in { padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(200px, 24vw, 320px); display: grid; gap: 20px; justify-items: start; }
.hero h1 { font: 700 var(--step-4)/1.02 var(--display); max-width: 11ch; text-shadow: 0 2px 28px rgba(10, 8, 30, .35); }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; text-shadow: 0 1px 16px rgba(10, 8, 30, .45); }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { display: grid; gap: 3px; padding: 10px 16px; border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .08); }
.facts .k { font: 500 .68rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--haze); }
.facts .v { font-weight: 600; font-variant-numeric: tabular-nums; }

/* sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 660px; }
.sec-head h2 { font: 700 var(--step-3)/1.1 var(--display); }
.sub { color: var(--haze); font-size: var(--step-1); line-height: 1.5; }

/* live camera */
.cam { position: relative; margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(255, 122, 102, .3); }
.cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.osd { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font: 500 .76rem/1.2 var(--mono); letter-spacing: .06em; color: var(--white); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.osd-b { top: auto; bottom: 0; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 6px; background: var(--live); padding: 3px 8px; border-radius: 6px; text-shadow: none; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 560px) { .cam { aspect-ratio: 4 / 3; } .osd { font-size: .68rem; padding: 10px 12px; } }

.archive-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 56px 0 18px; }
.archive-head h3 { font: 700 var(--step-2)/1.2 var(--display); }
.archive-head p { color: var(--haze); }
.archive { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.archive li { display: grid; gap: 8px; min-width: 0; }
.archive canvas { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; display: block; background: var(--dusk); }
.cap { display: flex; justify-content: space-between; gap: 8px; font: 400 .76rem/1.3 var(--mono); color: var(--haze); }
.cap b { color: var(--sand); font-weight: 500; }
@media (max-width: 900px) { .archive { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .archive { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the evening */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--apricot), var(--coral) 45%, var(--violet) 75%, var(--line)); }
.timeline li { position: relative; padding-top: 42px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--night); border: 2px solid var(--haze); }
.timeline li.sun::before { background: var(--apricot); border-color: var(--apricot); box-shadow: 0 0 0 6px rgba(255, 181, 107, .18), 0 0 26px var(--coral); }
.timeline time { font: 500 var(--step-2)/1 var(--mono); font-variant-numeric: tabular-nums; }
.timeline h3 { font: 700 var(--step-1)/1.2 var(--display); color: var(--apricot); }
.timeline p { color: var(--haze); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; padding-left: 40px; }
  .timeline::before { left: 9px; right: auto; top: 4px; bottom: 4px; width: 2px; height: auto; background: linear-gradient(180deg, var(--apricot), var(--coral) 45%, var(--violet) 75%, var(--line)); }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -40px; top: 2px; }
}

/* together */
.together { padding-block: clamp(56px, 8vw, 104px); border-block: 1px solid var(--line); background: radial-gradient(120% 140% at 85% 120%, rgba(255, 122, 102, .22), rgba(255, 122, 102, 0) 60%), var(--dusk); }
.together-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.together h2 { font: 700 var(--step-4)/1.02 var(--display); }
.together h2 span { color: var(--coral); }
.together p { color: var(--haze); font-size: var(--step-1); line-height: 1.5; max-width: 36ch; }
@media (max-width: 800px) { .together-in { grid-template-columns: 1fr; } }

/* menu */
.menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); padding: clamp(22px, 4vw, 48px); background: var(--dusk); border: 1px solid var(--line); border-radius: 24px; }
.menu-col { display: grid; gap: 36px; align-content: start; min-width: 0; }
.block { display: grid; gap: 16px; }
.menu h3 { font: 700 var(--step-2)/1.1 var(--display); }
.grp { display: grid; gap: 3px; }
.row { display: grid; grid-template-columns: minmax(0, auto) minmax(12px, 1fr) auto; column-gap: 10px; align-items: baseline; }
.row .name { font-weight: 600; }
.row .dots { border-bottom: 2px dotted var(--line); align-self: center; transform: translateY(3px); }
.row .price { font: 500 .95rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--apricot); white-space: nowrap; }
.list { color: var(--haze); font-size: .92rem; }
@media (max-width: 720px) { .menu { grid-template-columns: 1fr; } }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--coral); color: var(--night); font-weight: 700; text-decoration: none; border: 1px solid var(--coral); }
.btn:hover { background: var(--apricot); border-color: var(--apricot); }
.btn-ghost { background: transparent; color: var(--celadon); border-color: var(--celadon); }
.btn-ghost:hover { background: var(--celadon); border-color: var(--celadon); color: var(--celadon-deep); }

/* coral pottery */
.coral { background: var(--celadon-deep); }
.coral-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.coral .eyebrow { color: var(--celadon); }
.coral-text { display: grid; gap: 18px; justify-items: start; }
.coral-text h2 { font: 700 var(--step-3)/1.1 var(--display); }
.coral-text p { color: var(--mist); max-width: 56ch; }
.links { display: flex; flex-wrap: wrap; gap: 12px; }
.plate { width: 100%; max-width: 380px; aspect-ratio: 1; border-radius: 50%; justify-self: center; display: block; box-shadow: 0 0 0 10px rgba(159, 211, 189, .12), 0 40px 80px -30px rgba(0, 0, 0, .6); }
@media (max-width: 800px) { .coral-in { grid-template-columns: 1fr; } .plate { max-width: 240px; order: -1; } }

/* visit */
.visit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.visit > div { border-top: 2px solid var(--coral); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.visit h3 { font: 700 var(--step-1)/1.2 var(--display); }
.visit .big { font: 500 var(--step-2)/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.visit p { color: var(--haze); }
.visit a { color: var(--apricot); font-weight: 600; }
@media (max-width: 800px) { .visit { grid-template-columns: 1fr; } }
.season { margin-top: 48px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--dusk); }
.season-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
.season-head h3 { font: 700 var(--step-1)/1.2 var(--display); }
.season-head p { color: var(--haze); }
.sb-track { position: relative; height: 14px; margin-top: 40px; border-radius: 999px; background: var(--line); }
.sb-open { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--apricot), var(--coral), var(--violet)); }
.sb-today { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--sand); }
.sb-today span { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.sb-months { display: grid; grid-template-columns: 31fr 30fr 31fr 31fr 28fr 31fr 30fr 31fr; margin-top: 10px; font: 400 .72rem/1 var(--mono); color: var(--haze); }
.sb-months span { border-left: 1px solid var(--line); padding-left: 4px; min-width: 0; overflow: hidden; }

.foot { border-top: 1px solid var(--line); padding-block: 32px; color: var(--haze); font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot .brand-name { color: var(--sand); font-size: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status.open i, .live i { animation: none; }
}
