/* USA Magnets and More — "Tailgate Americana" design system
   Evolved from the 2003-2006 original: navy #000080 / red #CC3300 / cream #FCFCDE / ribbon yellow */

:root {
  --navy: #1b2a4a;
  --navy-deep: #11203b;
  --navy-ink: #22273a;
  --red: #b22234;
  --red-bright: #cf3a3a;
  --cream: #faf6ec;
  --cream-deep: #f1ead8;
  --paper: #fffdf7;
  --yellow: #e8b931;
  --yellow-soft: #f4d984;
  --skyblue: #a9c0dc;
  --text: #2b2f3a;
  --text-soft: #5a6070;
  --line: #ddd3bd;
  --radius: 10px;
  --shadow-magnet: 6px 6px 0 rgba(27, 42, 74, 0.16);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

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

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

/* ---------- Flag stripe motif ---------- */
.flag-stripe {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 48px,
    var(--paper) 48px 96px,
    var(--navy) 96px 144px,
    var(--paper) 144px 192px
  );
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(17, 32, 59, 0.35); }

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
}
.brand-star {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  background: var(--red);
  color: var(--yellow-soft);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.25);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--yellow-soft);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: #e9edf5;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
}
.site-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.site-nav a.active { background: var(--red); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  opacity: 0.62;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(17,32,59,0.88) 18%, rgba(17,32,59,0.25) 65%, rgba(17,32,59,0.05));
}
.hero-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  width: 100%;
}
.hero-kicker {
  font-family: var(--font-display);
  color: var(--yellow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 14em;
}
.hero-content p {
  max-width: 34em;
  font-size: 1.1rem;
  color: #dfe6f2;
  margin: 0;
}

/* ---------- Heritage strip ---------- */
.heritage-strip {
  background: var(--red);
  color: #fff;
}
.heritage-strip ul {
  list-style: none;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  max-width: 1140px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.2rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.heritage-strip li::before { content: "\2605\00a0\00a0"; color: var(--yellow-soft); }

/* ---------- Layout ---------- */
.page-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.page-wrap.wide { max-width: 1140px; }

article.content { background: transparent; }

/* Page hero figure (interior pages) */
.page-hero {
  margin: 1.75rem 0 2.25rem;
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-magnet);
  background: var(--paper);
}
.page-hero img { width: 100%; max-height: 430px; object-fit: cover; }
.page-hero figcaption {
  font-size: 0.85rem;
  color: var(--text-soft);
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--line);
  font-style: italic;
}

.inline-figure {
  margin: 2.25rem 0;
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-magnet);
  background: var(--paper);
}
.inline-figure img { width: 100%; object-fit: cover; }
.inline-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-soft);
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--line);
  font-style: italic;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
article.content h1 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 4px solid var(--red);
  position: relative;
}
article.content h1::after {
  content: "";
  position: absolute;
  left: 0; bottom: -10px;
  width: 96px; height: 4px;
  background: var(--yellow);
}
h2 {
  font-size: 1.45rem;
  font-weight: 600;
  margin: 2.4rem 0 0.8rem;
}
h2::before { content: "\2605"; color: var(--red); margin-right: 0.55rem; font-size: 0.9em; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.8rem 0 0.6rem; }

p { margin: 0 0 1.15rem; }

ul, ol { padding-left: 1.4rem; margin: 0 0 1.3rem; }
li { margin-bottom: 0.5rem; }
li::marker { color: var(--red); }

strong { color: var(--navy-ink); }

blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--paper);
  border-left: 6px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 3px 3px 0 rgba(27,42,74,0.08);
}
blockquote p { margin: 0; font-size: 1.02rem; }
blockquote cite { display: block; margin-top: 0.5rem; font-style: normal; font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }

/* ---------- Category card grid (homepage) ---------- */
.magnet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.magnet-grid li { margin: 0; }
.magnet-card {
  display: block;
  height: 100%;
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-magnet);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.magnet-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(178, 34, 52, 0.28);
  color: var(--text);
}
.magnet-card .card-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
  margin-bottom: 0.6rem;
}
.magnet-card h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.magnet-card p { margin: 0; font-size: 0.93rem; color: var(--text-soft); }

/* ---------- Contact form (decorative) ---------- */
.contact-form {
  margin: 2rem 0;
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-magnet);
}
.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 1rem 0 0.3rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--skyblue); border-color: var(--navy); }
.contact-form button {
  margin-top: 1.3rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.8rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(27,42,74,0.25);
}
.contact-form button:hover { background: var(--navy); }
.form-note { font-size: 0.88rem; color: var(--text-soft); margin-top: 0.9rem; }

/* ---------- Star divider ---------- */
.star-divider {
  text-align: center;
  color: var(--red);
  letter-spacing: 1.2em;
  margin: 3rem 0 1rem;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #c7d0e2;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.8rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-about p { font-size: 0.93rem; margin: 0.6rem 0 0; }
.footer-brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  font-size: 1.05rem;
}
.footer-brand::before { content: "\2605 "; color: var(--yellow); }
.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow-soft);
  margin: 0 0 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.45rem; }
.site-footer a { color: #c7d0e2; text-decoration: none; font-size: 0.93rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  text-align: center;
  font-size: 0.85rem;
  padding: 1.1rem 1.25rem;
  color: #8e9ab1;
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: 5rem 1.25rem;
}
.notfound .big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin: 0;
}
.notfound h1 { border: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem 0 0.75rem; }
  .header-inner { flex-wrap: wrap; }
  .hero img { height: 380px; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  body { font-size: 1rem; }
}
