/* Ramada Inn Speedway archive — "Speedway Americana" design system
   Asphalt charcoal + racing orange + Daytona blue over warm cream.
   Big Shoulders Display (condensed speedway headings) + Barlow (body). */

:root {
  --asphalt: #1b1d21;
  --asphalt-2: #25282e;
  --cream: #faf5ec;
  --paper: #fffdf7;
  --orange: #e8590c;
  --orange-dark: #bf4a09;
  --blue: #2f6fa8;
  --blue-dark: #245680;
  --red: #a8252b;
  --ink: #26241f;
  --muted: #6f6a60;
  --line: #e4dccb;
  --radius: 6px;
  --shadow: 0 10px 28px rgba(27, 29, 33, 0.12);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1, h2, h3, h4 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--asphalt);
  margin: 2.2rem 0 0.9rem;
}

h2 { font-size: 2rem; padding-top: 0.4rem; position: relative; }
h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 5px;
  background: linear-gradient(90deg, var(--orange) 0 60%, var(--blue) 60% 100%);
}
h3 { font-size: 1.45rem; color: var(--asphalt-2); }

p { margin: 0 0 1.1rem; }

a { color: var(--blue); text-decoration-color: rgba(47, 111, 168, 0.4); text-underline-offset: 2px; }
a:hover { color: var(--orange-dark); text-decoration-color: var(--orange); }

ul, ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
li { margin-bottom: 0.45rem; }

code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f0e8d8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.4em;
  color: var(--red);
}

strong { color: var(--asphalt); }

/* ---------- checkered motif ---------- */
.checker {
  height: 14px;
  background:
    repeating-conic-gradient(#16181c 0% 25%, #f6f1e6 0% 50%) 0 0 / 28px 28px;
}

/* ---------- top nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--asphalt);
  border-bottom: 3px solid var(--orange);
  transition: box-shadow 0.25s ease;
}
.site-nav.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.brand {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f6f1e6;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand .accent { color: var(--orange); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #d9d2c2;
  text-decoration: none;
  border-radius: 4px;
}
.nav-links a:hover { color: #fff; background: var(--asphalt-2); }
.nav-links a.active { color: var(--orange); }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--orange);
  border-radius: 4px;
  color: #f6f1e6;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

/* ---------- archive ribbon ---------- */
.archive-ribbon {
  background: var(--red);
  color: #fdf3ee;
  text-align: center;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
}
.archive-ribbon strong { color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,29,33,0.18) 0%, rgba(27,29,33,0.78) 92%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 4.5rem 1.25rem 2.2rem;
}
.hero h1 {
  margin: 0 0 0.4rem;
  color: #fdfaf2;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-shadow: 0 3px 14px rgba(0,0,0,0.45);
}
.hero .kicker { color: var(--orange); }

/* ---------- marquee header (no-photo pages) ---------- */
.marquee {
  background: var(--asphalt);
  background-image: linear-gradient(135deg, rgba(232,89,12,0.16) 0%, rgba(47,111,168,0.14) 100%);
  padding: 3.4rem 0 2.2rem;
}
.marquee-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.marquee h1 {
  margin: 0;
  color: #fdfaf2;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.kicker {
  display: block;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.55rem;
}

/* ---------- main content ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 2.4rem 1.25rem 3.5rem; }

.lede {
  font-size: 1.22rem;
  line-height: 1.6;
  color: #3d3a33;
  border-left: 5px solid var(--orange);
  padding-left: 1.1rem;
  margin: 0.4rem 0 1.6rem;
}

.note { font-size: 0.92rem; color: var(--muted); font-style: italic; }

/* figures */
figure {
  margin: 1.8rem 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
figure img { width: 100%; }
figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.65rem 0.95rem;
  border-top: 3px solid var(--orange);
  background: var(--paper);
}

/* tables — rate cards */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.98rem;
}
thead th {
  background: var(--asphalt);
  color: #f6f1e6;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 3px solid var(--orange);
}
tbody td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
tbody tr:nth-child(even) { background: #f7f1e3; }
tbody tr:last-child td { border-bottom: none; }

/* guestbook quotes */
blockquote {
  margin: 1.6rem 0;
  padding: 1.3rem 1.4rem 1.1rem 3.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0.7rem;
  top: 0.4rem;
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--orange);
}
blockquote p { margin-bottom: 0.6rem; }
blockquote footer {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--blue-dark);
}

/* gallery grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 1.8rem 0;
}
.photo-grid figure { margin: 0; }
.photo-grid img { aspect-ratio: 3 / 2; object-fit: cover; }

/* decorative forms */
.archive-form {
  margin: 1.6rem 0 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: grid;
  gap: 0.9rem;
  max-width: 560px;
}
.archive-form label {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--asphalt-2);
  display: grid;
  gap: 0.3rem;
}
.archive-form input,
.archive-form textarea {
  font-family: "Barlow", sans-serif;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cfc6b2;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.archive-form input:focus,
.archive-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.archive-form button {
  justify-self: start;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.6rem;
  cursor: pointer;
}
.archive-form button:hover { background: var(--orange-dark); }
.form-ack { color: var(--blue-dark); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--asphalt);
  color: #c9c2b2;
  font-size: 0.95rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.6rem 1.25rem 1.2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h4 {
  color: var(--orange);
  font-size: 1.1rem;
  margin: 0 0 0.7rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: #ddd6c6; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.footer-legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.6rem;
  border-top: 1px solid #34373e;
  font-size: 0.82rem;
  color: #98927f;
}
.footer-legal p { margin: 0 0 0.4rem; }

/* ---------- 404 ---------- */
.err-wrap { text-align: center; padding: 4rem 1.25rem 5rem; }
.err-code {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 1;
  color: var(--orange);
  margin: 0;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-inner { flex-wrap: wrap; padding: 0.6rem 1.25rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.4rem 0 0.8rem;
  }
  .nav-links.open { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { min-height: 330px; }
}

/* per-page hero backgrounds */
.hero--index { background-image: url('/images/hero-home.jpg'); }
.hero--attractions { background-image: url('/images/speedway-race.jpg'); }
.hero--features { background-image: url('/images/pool-courtyard.jpg'); }
.hero--golf { background-image: url('/images/golf-fairway.jpg'); }
.hero--supercross { background-image: url('/images/supercross-jump.jpg'); }
