/* BangkokRestaurants.org */

:root {
  --paper: #F4EFE6;
  --ink: #1A1714;
  --stone: #6B6259;
  --hairline: #D9D0C1;
  --brass: #9A7B4F;
  --night: #0F0E0C;
  --ivory: #EDE6DA;

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --text: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--brass); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1.1em; }

.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }

/* Top bar */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.15;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark span { display: block; }

.nav { display: flex; gap: 0.9rem; }
.nav a {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.4rem 0;
}
.nav a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.nav .wide { display: none; }
@media (max-width: 379px) { .bar .nav .mid { display: none; } }

@media (min-width: 720px) {
  .wordmark { font-size: 0.95rem; letter-spacing: 0.2em; }
  .wordmark span { display: inline; }
  .nav { gap: 2rem; }
  .nav a { letter-spacing: 0.16em; }
  .nav .wide { display: inline; }
}

/* Hero */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 34rem;
  color: var(--ivory);
  background: var(--night) var(--poster) 62% 50% / cover no-repeat;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(15, 14, 12, 0.6) 0%,
    rgba(15, 14, 12, 0.35) 30%,
    rgba(15, 14, 12, 0.4) 65%,
    rgba(15, 14, 12, 0.8) 100%);
}
.hero > *:not(video) { position: relative; z-index: 1; }
.hero .bar { border-bottom-color: rgba(237, 230, 218, 0.2); }
.hero a:hover { color: #fff; }

.statement {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  text-align: center;
}
.statement h1 {
  font-weight: 300;
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  line-height: 1.12;
  max-width: 16ch;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

.scroll-cue {
  align-self: center;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ivory);
}
.scroll-cue .label { color: inherit; font-size: 0.62rem; }
.scroll-cue i {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--ivory) 50%, rgba(237, 230, 218, 0.15) 50%);
  background-size: 1px 200%;
  animation: cue 2.4s ease-in-out infinite;
}
@media (min-width: 720px) { .statement h1 { max-width: 24ch; } }
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero video { display: none; }
  .scroll-cue i { animation: none; }
}

/* Column and sections */

.wrap { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(4rem, 11vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-head h2 { font-size: clamp(2rem, 6vw, 2.9rem); }
.section-head a { text-decoration: none; white-space: nowrap; }

.intro { color: var(--stone); max-width: 36em; margin-bottom: 2rem; }

/* Page title (inner pages) */

.page-head { padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(2rem, 6vw, 3rem); }
.page-head h1 { font-weight: 300; font-size: clamp(2.75rem, 10vw, 5rem); margin: 0.75rem 0 1.25rem; }
.page-head .standfirst {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.35rem, 3.6vw, 1.7rem);
  line-height: 1.35;
  color: var(--stone);
  max-width: 30em;
  margin: 0;
}

/* Rows: left marker, text, optional right meta */

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--hairline);
}
.marker {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--brass);
}
.row h3 { font-size: 1.75rem; font-weight: 500; }
.row h3 a { text-decoration: none; }
.row h3 a::after { content: ""; position: absolute; inset: 0; }
.row:hover h3 a { color: var(--brass); }
.row .label { display: block; margin: 0.45rem 0 0.6rem; }
.row p { margin: 0; }
.row h3 + p { margin-top: 0.5rem; }
.row p + p { margin-top: 0.6rem; }
.verdict-line { font-style: italic; }
.row .meta { grid-column: 2; }

@media (min-width: 720px) {
  .row { grid-template-columns: 4rem 1fr auto; column-gap: 1.5rem; }
  .row .meta { grid-column: 3; grid-row: 1; text-align: right; padding-top: 0.6rem; }
}

/* Nested detail */

details { margin-top: 0.9rem; }
summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--brass); }
details[open] summary::before { content: "\2212"; }
details ul {
  margin: 0.9rem 0 0;
  padding: 1rem 1.25rem;
  list-style: none;
  background: rgba(217, 208, 193, 0.35);
  border-left: 1px solid var(--brass);
}
details li + li { margin-top: 0.5rem; }

/* Prose */

.prose { max-width: 38rem; }
.prose p { text-wrap: pretty; }
.lead > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.6em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--brass);
}
.prose h2 { font-size: 1.9rem; margin: 2.5rem 0 1rem; }

/* Figures */

.photo { margin: 0 0 clamp(2.5rem, 7vw, 4rem); }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--hairline); }
.photo figcaption { margin-top: 0.75rem; }

/* Review page */

.review-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 1.5rem; }

.the-table {
  margin: 3rem 0 0;
  border-top: 1px solid var(--ink);
}
.the-table h2 { font-size: 1.9rem; margin: 1.5rem 0 0.5rem; }
.the-table dl { margin: 0; }
.the-table div {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}
.the-table div:last-child { border-bottom: 0; }
.the-table dt { margin-bottom: 0.25rem; }
.the-table dd { margin: 0; }
@media (min-width: 720px) {
  .the-table div { grid-template-columns: 9rem 1fr; gap: 1.5rem; }
  .the-table dt { margin: 0.35rem 0 0; }
}

.verdict {
  margin: 2.5rem 0 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.verdict p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.25;
  margin: 0.5rem 0 0;
  text-wrap: balance;
}

.byline { margin-top: 2rem; }

/* Contact block */

.contact-lines { list-style: none; margin: 0; padding: 0; }
.contact-lines li { padding: 1rem 0; border-top: 1px solid var(--hairline); }
.contact-lines li:last-child { border-bottom: 1px solid var(--hairline); }
.contact-lines .label { display: block; margin-bottom: 0.25rem; }
.contact-lines .value { font-family: var(--display); font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* Footer */

.footer {
  background: var(--night);
  color: var(--ivory);
  padding: clamp(3.5rem, 9vw, 5rem) 0 2.5rem;
}
.footer .wordmark { font-size: 1.15rem; }
.footer p { color: rgba(237, 230, 218, 0.7); margin: 1rem 0 2rem; }
.footer .nav { flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-bottom: 2.5rem; }
.footer .nav .wide { display: inline; }
.footer .label { color: rgba(237, 230, 218, 0.5); }
.footer a:hover { color: #fff; }

/* Article (keyword-led format) */

.crumbs { display: block; }
.crumbs a { text-decoration: none; }
.page-head h1 { text-wrap: balance; }
article .page-head h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.answer { font-size: 1.3rem; line-height: 1.5; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li + li { margin-top: 0.4rem; }
.prose h3 { font-size: 1.4rem; font-weight: 500; margin: 1.75rem 0 0.4rem; }
blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 1px solid var(--brass);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
}
.pair { display: grid; gap: 1rem; margin: 0 0 clamp(2.5rem, 7vw, 4rem); }
.pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--hairline); }
.pair figcaption { margin-top: 0.6rem; }
@media (min-width: 600px) { .pair { grid-template-columns: 1fr 1fr; } }
.faq { margin-top: 3rem; border-top: 1px solid var(--ink); }
