/* ==========================================================
   Casino hotel website — stylesheet
   Change the theme by editing the variables below.
   ========================================================== */

:root {
  /* Colors */
  --bg: #170a10;            /* page background (deep wine) */
  --bg-soft: #22101a;       /* second gradient stop */
  --accent: #e9c9a1;        /* headings, labels, rates (champagne) */
  --accent-dim: #a98a70;    /* footer text */
  --text: #f3e9e0;          /* lead paragraphs */
  --text-muted: #cdbab0;    /* card and list text */
  --line: rgba(233, 201, 161, 0.2);
  --line-soft: rgba(233, 201, 161, 0.1);

  /* Fonts */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-label: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --content-width: 684px;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(155deg, #1b0c13 0%, var(--bg) 40%, var(--bg-soft) 75%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
blockquote,
address {
  margin: 0;
}

a {
  color: inherit;
}

/* ---------- Shared pieces ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  padding: 54px 20px 36px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.site-header .eyebrow {
  font-size: 11px;
}

.brand {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.tagline {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
}

/* ---------- Navigation ---------- */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 30px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.site-nav a {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-nav a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- Sections ---------- */

.section {
  padding: 58px 0 62px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 0;
}

.section-last {
  border-bottom: 0;
}

.section h2 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--accent);
}

.lead {
  max-width: 560px;
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

/* ---------- Two-column cards ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  margin-top: 26px;
}

.card h3 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--accent);
}

.card p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Rooms table ---------- */

.rooms {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  text-align: left;
}

.rooms th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.rooms td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  vertical-align: top;
}

.rooms .room-name {
  width: 25%;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  white-space: nowrap;
}

.rooms .rate {
  width: 15%;
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Quote ---------- */

.quote {
  max-width: 560px;
  margin-top: 30px;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  color: var(--accent);
}

/* ---------- House rules ---------- */

.rules {
  margin-top: 30px;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

.rules li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  break-inside: avoid;
}

.rules li::before {
  content: "\2666"; /* diamond suit */
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 10px;
  color: var(--accent);
}

/* ---------- Reserve ---------- */

.contact {
  margin-top: 28px;
  font-family: var(--font-label);
  font-size: 14px;
  font-style: normal;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 50px 20px 56px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.footer-brand a {
  color: inherit;
  text-decoration: none;
}

.footer-brand a:hover,
.footer-brand a:focus-visible {
  color: var(--accent);
}

.footer-note {
  margin-top: 10px;
  font-family: var(--font-label);
  font-size: 10px;
  color: var(--accent-dim);
  opacity: 0.75;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 640px) {
  .site-header {
    padding: 40px 16px 28px;
  }

  .site-header .eyebrow {
    font-size: 10px;
    letter-spacing: 0.22em;
    line-height: 1.8;
  }

  .brand {
    font-size: 36px;
  }

  .site-nav {
    gap: 8px 20px;
    padding: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .section {
    padding: 44px 0 46px;
  }

  .section h2 {
    font-size: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rules {
    columns: 1;
  }

  /* Rooms table becomes stacked rows */
  .rooms thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .rooms,
  .rooms tbody,
  .rooms tr,
  .rooms td {
    display: block;
    width: 100%;
  }

  .rooms tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .rooms tr:first-child {
    border-top: 1px solid var(--line);
  }

  .rooms td,
  .rooms .room-name,
  .rooms .rate {
    width: 100%;
    padding: 2px 0;
    border-bottom: 0;
    white-space: normal;
  }

  .rooms .room-name {
    font-size: 15px;
  }

  .rooms .rate {
    padding-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
