/* ==========================================================================
   Topo The Lake — reviews of Europe's land-based casinos

   The subject is places you physically walk into, so photography leads:
   a full-bleed hero, images as numbered plates, and deep navy panels cutting
   between limestone sections. Bodoni carries the display voice, Karla the
   reading.

   Deliberately shares nothing with casihub.com — different families, palette,
   grid and signature. Two sites in one niche running the same template is a
   footprint worth avoiding.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg:         #f6f2ea;
  --bg-2:       #ece4d5;
  --surface:    #fffdf9;
  --ink:        #101823;
  --slate:      #48566a;
  --slate-2:    #7b8698;
  --brass:      #8c6f26;
  --brass-lt:   #c9a24f;
  --rule:       #ddd1ba;

  /* A dark band inside a light page. Kept separate from --bg so it stays
     dark in both themes. */
  --panel:      #101823;
  --on-panel:   #f2ece0;
  --on-panel-2: #9aa5b5;

  --display: 'Bodoni Moda', 'Didot', 'Times New Roman', Georgia, serif;
  --body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 76rem;
  --pad: clamp(1.15rem, 4vw, 3rem);
  --band: clamp(3.5rem, 8vw, 6.5rem);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg:         #0d131b;
  --bg-2:       #131c26;
  --surface:    #161f2b;
  --ink:        #eee8dc;
  --slate:      #a3aebe;
  --slate-2:    #78849a;
  --brass:      #cfa652;
  --brass-lt:   #ddbd77;
  --rule:       #26313f;
  --panel:      #070c12;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg:         #0d131b;
    --bg-2:       #131c26;
    --surface:    #161f2b;
    --ink:        #eee8dc;
    --slate:      #a3aebe;
    --slate-2:    #78849a;
    --brass:      #cfa652;
    --brass-lt:   #ddbd77;
    --rule:       #26313f;
    --panel:      #070c12;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* Sticky footer: short pages (an archive with three posts) would otherwise
     leave the footer floating mid-screen with page background beneath it. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--bg);
  padding: 0.8rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.skip:focus { left: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* --- type -------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow__link { text-decoration: none; }
.eyebrow__link:hover { text-decoration: underline; }

.band__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.band__title--lead { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.4rem); }
.band__standfirst {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--slate);
}

.prose__p { margin: 0 0 1.15rem; max-width: 62ch; }
.prose__h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 2.6rem 0 0.7rem;
}
.prose__h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 2.4rem 0 0.7rem;
}
.prose__list { margin: 0 0 1.2rem; padding-left: 1.2rem; max-width: 62ch; }
.prose__list li { margin-bottom: 0.45rem; }
.prose__list li::marker { color: var(--brass); }
.prose__quote {
  margin: 1.8rem 0;
  padding-left: 1.3rem;
  border-left: 2px solid var(--brass);
  color: var(--slate);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.9rem 1.7rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn::after { content: '→'; font-size: 1rem; letter-spacing: 0; }
.btn:hover { background: var(--brass); transform: translateY(-1px); }
.btn--light { background: var(--on-panel); color: var(--panel); }
.btn--light:hover { background: var(--brass-lt); color: var(--panel); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* --- masthead ---------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex: none;
}
.wordmark__name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.wordmark__rule { width: 1.5rem; height: 1px; background: var(--brass); }
.wordmark__tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.masthead__actions { display: flex; align-items: center; gap: 0.5rem; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
  padding-block: 0.3rem;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.22s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-current::after { right: 0; }
.nav__link.is-current { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .nav__link::after { transition: none; } }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  flex: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { color: var(--brass); border-color: var(--brass); }
.icon-btn svg { width: 1rem; height: 1rem; fill: currentColor; }

.theme__moon { display: none; }
:root[data-theme='dark'] .theme__moon { display: block; }
:root[data-theme='dark'] .theme__sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme__moon { display: block; }
  :root:not([data-theme]) .theme__sun { display: none; }
}

.nav__toggle { display: none; }

/* --- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--rule);
}
.hero__inner { position: relative; z-index: 2; }
.hero__text { max-width: 32ch; }
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.7rem, 1.4rem + 5.2vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0 0 1.3rem;
  text-wrap: balance;
}
.hero__lead {
  max-width: 44ch;
  margin: 0 0 1.6rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--slate);
}

/* Full-bleed art behind the headline, on pages that have any. */
.hero--art {
  min-height: clamp(30rem, 66vh, 46rem);
  display: grid;
  align-items: end;
  border-bottom: 0;
  color: var(--on-panel);
}
/* .wrap carries `margin-inline: auto`, which on a grid item overrides stretch
   and shrink-wraps it — the headline drifted to the middle of the viewport.
   An explicit width restores the shared page grid. */
.hero--art .hero__inner { width: 100%; }
.hero--art .hero__lead { color: var(--on-panel-2); }
.hero--art .eyebrow { color: var(--brass-lt); }
.hero--art .hero__text { max-width: 38ch; }
/* Review titles run to 60+ characters; at the home page's display size they
   fill the whole viewport, so long headlines step down a size. */
.hero__title--long { font-size: clamp(2.1rem, 1.3rem + 3.1vw, 3.7rem); }
.hero--art .hero__text--wide { max-width: 46ch; }

.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 12, 18, 0.95) 6%, rgba(8, 12, 18, 0.55) 46%, rgba(8, 12, 18, 0.28) 100%),
    linear-gradient(to right, rgba(8, 12, 18, 0.78), transparent 64%);
}
.hero__credit {
  position: absolute;
  right: var(--pad);
  bottom: 1rem;
  z-index: 2;
  margin: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 236, 224, 0.5);
}

/* --- plates: the site's signature -------------------------------------- */

.plate { margin: 0; }
.plate__img { width: 100%; border-radius: 0.4rem; }
.plate__cap {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--brass);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

/* --- bands ------------------------------------------------------------- */

.band { padding-block: var(--band); }
.band--top { padding-bottom: calc(var(--band) * 0.5); }
/* Consecutive bands on one background would otherwise stack both paddings. */
.band + .band:not(.band--sunk) { padding-top: 0; }
.band--sunk { background: var(--bg-2); border-block: 1px solid var(--rule); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split--solo { grid-template-columns: minmax(0, 1fr); }
.split__figure { display: grid; gap: 1.75rem; }

/* --- cards ------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.card { display: flex; flex-direction: column; }
.card__media { overflow: hidden; border-radius: 0.5rem; margin-bottom: 1.1rem; }
.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__img { transform: scale(1.04); }
.card__num {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--brass);
  line-height: 1;
}
.card__title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--brass); }
.card__text { margin: 0 0 0.9rem; color: var(--slate); font-size: 0.95rem; }
.card__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  transition: border-color 0.15s ease;
}
.card__link:hover { border-bottom-color: var(--brass); }
@media (prefers-reduced-motion: reduce) {
  .card__img { transition: none; }
  .card:hover .card__img { transform: none; }
}

.plates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* --- testimonials ------------------------------------------------------ */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
}
.stars { display: inline-flex; gap: 0.15rem; margin-bottom: 1rem; }
.stars__s { width: 0.95rem; height: 0.95rem; fill: var(--brass-lt); }
.quote__text {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.45;
}
.quote__text p { margin: 0; }
.quote__by { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.quote__avatar {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.quote__name { margin: 0; font-weight: 700; font-size: 0.92rem; }
.quote__role {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-2);
}

/* --- closing panel ----------------------------------------------------- */

.closer {
  position: relative;
  background: var(--panel);
  color: var(--on-panel);
  padding-block: var(--band);
  overflow: hidden;
}
.closer::before {
  content: '';
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 30rem;
  background: radial-gradient(ellipse at center, rgba(201, 162, 79, 0.17), transparent 65%);
  pointer-events: none;
}
.closer__inner { position: relative; max-width: 46rem; }
.closer__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  line-height: 1.06;
  margin: 0 0 1rem;
}
.closer__text {
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  color: var(--on-panel-2);
  max-width: 52ch;
}

/* --- review (post) ----------------------------------------------------- */

.review__body {
  max-width: 42rem;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--band);
}
/* A review opens larger, like a magazine standfirst. */
.review__body .prose__p:first-child {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
}
.review__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-lt);
}
.review__meta a { text-decoration: none; }
.review__meta a:hover { text-decoration: underline; }

/* --- listing (archive) ------------------------------------------------- */

.listing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.listing__link { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.listing__media {
  position: relative;
  overflow: hidden;
  border-radius: 0.6rem;
  margin-bottom: 1.2rem;
}
.listing__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.listing__link:hover .listing__media img { transform: scale(1.05); }
.listing__num {
  position: absolute;
  left: 0.9rem;
  top: 0.7rem;
  z-index: 2;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f2ece0;
  text-shadow: 0 1px 14px rgba(8, 12, 18, 0.85);
}
.listing__title {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 0.6rem;
}
.listing__link:hover .listing__title { color: var(--brass); }
.listing__desc { display: block; color: var(--slate); margin-bottom: 0.9rem; font-size: 0.95rem; }
.listing__meta {
  display: block;
  margin-top: auto;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-2);
}
@media (prefers-reduced-motion: reduce) {
  .listing__media img { transition: none; }
  .listing__link:hover .listing__media img { transform: none; }
}

/* --- contact ----------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__rows { margin: 0; }
.contact__row {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--rule);
}
.contact__row:last-child { border-bottom: 1px solid var(--rule); }
.contact__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 0.3rem;
}
.contact__value {
  margin: 0;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.contact__value a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact__value a:hover { border-bottom-color: var(--brass); color: var(--brass); }

/* --- footer ------------------------------------------------------------ */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer__name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.footer__tag { margin: 0; color: var(--slate); max-width: 30ch; font-size: 0.92rem; }
.footer__label {
  margin: 0 0 0.7rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.footer__address,
.footer__lines {
  margin: 0;
  font-style: normal;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.8;
}
.footer__lines a { text-decoration: none; }
.footer__lines a:hover { color: var(--brass); }
.footer__links { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; line-height: 2; }
.footer__links a { text-decoration: none; color: var(--slate); }
.footer__links a:hover { color: var(--brass); }
.footer__fine { border-top: 1px solid var(--rule); padding-block: 1.3rem 2rem; }
.footer__fine p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--slate-2);
  max-width: 62ch;
  line-height: 1.7;
}

/* --- entrance ---------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .reveal--1 { animation-delay: 0.06s; }
  .reveal--2 { animation-delay: 0.14s; }
  .reveal--3 { animation-delay: 0.22s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* --- responsive -------------------------------------------------------- */

@media (max-width: 62rem) {
  .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 52rem) {
  .wordmark__tag { display: none; }
  .nav__toggle { display: inline-flex; }

  /* The nav collapses into a sheet under the bar.
     Offsets stay at 0: .masthead__inner is already full width at these
     viewports, so bleeding it by --pad only cancelled the list's own padding
     (links sat flush against the screen edge) and overflowed the right side. */
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 40px -24px rgba(8, 12, 18, 0.55);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem var(--pad) 0.9rem;
  }
  .nav__list li + li { border-top: 1px solid var(--rule); }
  .nav__link { display: block; padding-block: 0.95rem; font-size: 0.85rem; }
  .nav__link::after { display: none; }

  .hero--art { min-height: 30rem; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .contact__row { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
}
