/* CHS Tigers Alumni — school colors: tiger orange, black, white.
   Headlines: Georgia (legacy serif); body: system stack. */
:root {
  --orange: #e85d04;
  --orange-dark: #b44300;
  --orange-ink: #9a3a00;
  --orange-tint: #fef3ec;
  --black: #131313;
  --black-soft: #1e1e1e;
  --ink: #242424;
  --muted: #5f5b54;
  --paper: #ffffff;
  --sand: #f5f1e9;
  --line: #e3ddd0;
  --input-line: #c9c2b4;
  --radius-card: 12px;
  --radius-field: 8px;
  --shadow-sm: 0 1px 2px rgba(19, 19, 19, 0.06);
  --shadow-md: 0 8px 24px rgba(19, 19, 19, 0.10);
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--orange); color: #fff; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--black); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem); margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; margin: 0 0 0.6rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
a { color: var(--orange-dark); text-underline-offset: 2px; }
a:hover { color: var(--black); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* Top bar + nav */
.topbar { background: #0c0c0c; color: #bdbdbd; font-size: 0.82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.topbar a { color: #e8e8e8; text-decoration: none; }
.topbar a:hover { color: #ffb37a; }
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--orange);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 1rem; row-gap: 0.65rem; padding-top: 0.95rem; padding-bottom: 0;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; margin-right: auto; padding-bottom: 0.15rem; }
.brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18); }
.brand b { color: #fff; font-family: Georgia, serif; font-size: 1.22rem; font-weight: 700; letter-spacing: 0.005em; }
.brand small { display: block; color: #c9c9c9; font-size: 0.8rem; font-family: inherit; margin-top: 0.1rem; }
nav.main {
  display: flex; flex: 1 1 100%; align-items: center; gap: 0.3rem;
  overflow-x: auto; scrollbar-width: thin;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.55rem 0 0.7rem;
}
nav.main a {
  color: #f2f2f2; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.55rem 0.9rem; border-radius: 8px; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
nav.main a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
nav.main a[aria-current="page"] { background: var(--orange); color: #fff; }
.cart-link { position: relative; }
.cart-count {
  display: inline-block; min-width: 1.4em; text-align: center;
  background: var(--orange); color: #fff; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; padding: 0.05em 0.35em; margin-left: 0.3em;
}
nav.main a[aria-current="page"] .cart-count { background: rgba(255, 255, 255, 0.28); }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
main .wrap { padding-top: 2.5rem; padding-bottom: 3rem; }
.hero-image { background: var(--black); }
.hero-image img { display: block; width: 100%; max-width: 1400px; margin: 0 auto; height: auto; }
.hero-caption {
  background: var(--black); color: #ececec; text-align: center;
  padding: 0.2rem 24px 1.5rem; font-family: Georgia, serif;
  font-size: clamp(1.05rem, 0.95rem + 0.8vw, 1.3rem); letter-spacing: 0.01em;
}
.hero-caption strong { color: #ff8c42; font-weight: 700; }

/* Interior page headings: short orange rule under the title */
.page-head { max-width: 68ch; margin: 0 0 1.75rem; }
.page-head h1::after {
  content: ""; display: block; width: 3.2rem; height: 4px;
  background: var(--orange); border-radius: 2px; margin-top: 0.7rem;
}
.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

/* Sections */
.stripe-sand { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stripe-sand .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.stripe-sand h2 { margin-bottom: 0.25rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 1.35rem 1.4rem; background: #fff; box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 1.3rem; }
.card p:last-child { margin-bottom: 0; }
.card > a, .card p > a { font-weight: 600; }
.card.solid { background: linear-gradient(160deg, #1c1c1c, #0f0f0f); color: #efefef; border-color: #0f0f0f; }
.card.solid h3 { color: #fff; }
.card.solid a { color: #ffb37a; }
.card.solid .muted { color: #b9b9b9; }
.product-media { overflow: hidden; border-radius: 8px; margin-bottom: 0.9rem; }
.product-media img { margin-bottom: 0; transition: transform 0.25s ease; }
.product-card:hover .product-media img { transform: scale(1.03); }
.card img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 0.9rem; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.price { font-weight: 700; font-size: 1.15rem; color: var(--black); font-variant-numeric: tabular-nums; }
.sku { font-size: 0.8rem; color: var(--muted); }

/* Home intro actions */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 2.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; cursor: pointer; text-decoration: none;
  background: var(--orange); color: #fff !important; font-weight: 700;
  padding: 0.75rem 1.6rem; border-radius: 999px; font-size: 1rem; line-height: 1.3;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.35);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--orange-dark); box-shadow: 0 4px 12px rgba(180, 67, 0, 0.35); }
.btn.dark { background: var(--black-soft); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.btn.dark:hover { background: #000; }
.btn.ghost { background: #fff; color: var(--black) !important; border: 1.5px solid var(--black); box-shadow: none; }
.btn.ghost:hover { background: var(--black); color: #fff !important; }
.btn.small { padding: 0.5rem 1.05rem; font-size: 0.9rem; border-radius: var(--radius-field); box-shadow: none; }

/* Forms */
.form-card { margin-top: 1.5rem; }
.form-card h2 { margin-bottom: 0.25rem; }
label { display: block; font-weight: 650; font-size: 0.92rem; margin: 0.9rem 0 0.3rem; color: var(--black); }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; max-width: 520px; padding: 0.68rem 0.8rem; font-size: 1rem; font-family: inherit;
  color: var(--ink); background: #fff;
  border: 1.5px solid var(--input-line); border-radius: var(--radius-field);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.18);
}
input::placeholder { color: #8f8a80; }
form p:has(button) { margin-top: 1.25rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-sm); }
table.cart { width: 100%; border-collapse: collapse; margin: 0; font-variant-numeric: tabular-nums; }
table.cart th, table.cart td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
table.cart thead th {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); background: var(--sand); border-bottom: 1px solid var(--line);
}
table.cart tbody tr:last-child td { border-bottom: 0; }
table.cart tbody tr:hover td { background: #fbf9f5; }
.cart-total { font-size: 1.2rem; margin-top: 1rem; }
.cart-total b { color: var(--black); }

/* Notices + prose */
.notice {
  border: 1px solid #f0c9a8; background: var(--orange-tint);
  padding: 0.9rem 1.1rem; border-radius: var(--radius-field); margin: 1rem 0; max-width: 68ch;
}
.notice.error { border-color: #e5a3ac; background: #fdf0f1; }
.error-text { color: #a31225; }
.muted { color: var(--muted); }
article#post { max-width: 68ch; }
article#post .muted { font-size: 0.92rem; }

/* Footer */
footer { background: #101010; color: #cfcfcf; border-top: 3px solid var(--orange); }
footer .wrap { padding-top: 2.5rem; padding-bottom: 1.5rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer h3 { color: #fff; font-size: 1rem; font-family: inherit; font-weight: 700; margin-bottom: 0.6rem; }
footer p { font-size: 0.94rem; }
footer a { color: #ffb37a; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .fine {
  grid-column: 1 / -1; border-top: 1px solid #2b2b2b; padding-top: 1.1rem;
  font-size: 0.84rem; color: #9a9a9a; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}

@media (max-width: 860px) {
  .site-header .wrap { padding-top: 0.75rem; row-gap: 0.5rem; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 1.05rem; }
  nav.main { gap: 0.2rem; padding: 0.45rem 0 0.55rem; }
  nav.main a { font-size: 0.9rem; padding: 0.5rem 0.75rem; }
  .topbar .wrap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  main .wrap { padding-top: 1.75rem; }
  .card { padding: 1.1rem 1.15rem; }
  .btn { width: 100%; }
  .btn.small { width: auto; }
  .cta-row .btn { width: auto; flex: 1 1 200px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Yearbooks, scholarships, privacy, and checkout delivery */
.section-gap { margin-top: 2.5rem; }
.year-head { margin: 1.75rem 0 0; font-size: 1.15rem; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; font-size: 1.3rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
fieldset.delivery { border: 1px solid var(--line, #e2ddd3); border-radius: 8px; padding: 0.75rem 1rem; margin: 1rem 0; }
fieldset.delivery legend { font-weight: 700; padding: 0 0.35rem; }
fieldset.delivery label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; margin: 0.4rem 0; }
fieldset.delivery input { width: auto; margin-top: 0.3rem; }
.fine-print { font-size: 0.88rem; color: var(--muted); }
/* Lists that may hold just one or two cards: keep cards card-sized. */
.grid.fill { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
