/* UTSA Mathematics Problem-Solving Club.
 *
 * Palette: burgundy #800020, lifted from `themecolor` in the problem-set
 * LaTeX preambles ("Burgundy for 'Math Club' feel"), so the site and the PDFs
 * students already hold read as one thing. Neutrals are shared with the
 * quantum mathematics group site.
 *
 * Restraint is the point. No hero shadows, no cards, no motion.
 */

:root {
  --burgundy: #800020;
  --burgundy-dark: #5e0018;
  --burgundy-soft: #a3324a;
  --paper: #fdfcfa;
  --paper-sunk: #f4f1ea;
  --rule: #e0ddd4;
  --rule-faint: #ebe8e0;
  --ink: #1f1f1c;
  --ink-muted: #5f5f58;
  --ink-faint: #7a7a72;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--burgundy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--burgundy-soft); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }

/* masthead */
.masthead { background: var(--burgundy); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: .85rem; padding-bottom: .85rem;
}
.wordmark {
  color: #fff; font-family: var(--serif); font-size: 1.1rem;
  text-decoration: none; letter-spacing: .01em;
}
.wordmark:hover { color: #fff; text-decoration: underline; }
.masthead nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.masthead nav a { color: #f3e4e8; font-size: .9rem; text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: #fff; text-decoration: underline; }

/* prose */
.prose { padding-top: 2.5rem; padding-bottom: 3rem; }
.prose h1 {
  font-family: var(--serif); font-weight: 600; font-size: 2rem;
  line-height: 1.2; margin: 0 0 .4rem; color: var(--burgundy-dark);
}
.prose h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  margin: 2.4rem 0 .6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--rule);
}
.prose h3 { font-family: var(--serif); font-size: 1.1rem; margin: 1.8rem 0 .4rem; }
.prose p, .prose li { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }
.subtitle { color: var(--ink-muted); font-size: 1.05rem; margin: 0 0 1.6rem; }
.crumb { font-size: .9rem; margin: 0 0 1.2rem; }
.note { color: var(--ink-muted); font-size: .93rem; }
.build-error { color: var(--burgundy); font-weight: 600; }

/* the standing meeting line, on the landing page and the embed */
.meeting {
  font-family: var(--serif); font-size: 1.05rem;
  background: var(--paper-sunk); border-left: 3px solid var(--burgundy);
  padding: .85rem 1rem; margin: 0 0 1.6rem; max-width: var(--measure);
}

blockquote.epigraph {
  margin: 0 0 1.6rem; padding: 0 0 0 1rem;
  border-left: 2px solid var(--rule);
  font-family: var(--serif); font-style: italic; color: var(--ink-muted);
}
blockquote.epigraph p { margin: 0 0 .3rem; }
blockquote.epigraph cite { font-style: normal; font-size: .88rem; color: var(--ink-faint); }

.btn {
  display: inline-block; background: var(--burgundy); color: #fff;
  font-size: .95rem; padding: .6rem 1.1rem; border-radius: 3px; text-decoration: none;
}
.btn:hover { background: var(--burgundy-dark); color: #fff; }
.btn-quiet {
  background: transparent; color: var(--burgundy);
  border: 1px solid var(--rule); padding: .55rem 1rem;
}
.btn-quiet:hover { background: var(--paper-sunk); color: var(--burgundy-dark); }

/* set listing */
.set-list { list-style: none; margin: 0; padding: 0; }
.set-list li { padding: 1rem 0; border-bottom: 1px solid var(--rule-faint); max-width: none; }
.set-list h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.set-list h3 a { text-decoration: none; }
.set-list h3 a:hover { text-decoration: underline; }
.set-list .set-meta { color: var(--ink-faint); font-size: .85rem; margin: 0 0 .35rem; }
.set-list p { margin: 0; color: var(--ink-muted); font-size: .95rem; }

.term-heading {
  font-family: var(--sans); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-faint);
  margin: 2.2rem 0 .4rem; padding-bottom: 0; border: 0;
}

/* problem listing inside a set */
ol.problems { padding-left: 1.3rem; }
ol.problems li { margin: 0 0 .7rem; max-width: none; }
.p-title { font-family: var(--serif); }
.p-meta { display: block; margin-top: .15rem; font-size: .8rem; color: var(--ink-faint); }
.tag {
  display: inline-block; background: var(--paper-sunk); border: 1px solid var(--rule);
  border-radius: 2px; padding: .05rem .4rem; margin-right: .35rem; color: var(--ink-muted);
}
.tag-diff { border-color: var(--burgundy); color: var(--burgundy); background: transparent; }
.src { font-style: italic; }

/* footer */
.colophon { border-top: 1px solid var(--rule); background: var(--paper-sunk); padding: 1.8rem 0 2.4rem; }
.colophon p { margin: 0 0 .6rem; font-size: .85rem; color: var(--ink-muted); max-width: 42rem; }
.colophon-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.license { color: var(--ink-faint); font-size: .8rem; }

/* ---------------------------------------------------------------------- *
 * Embed card.
 *
 * Framed cross-origin by the official UTSA clubs page, which means the
 * iframe height is fixed by their markup and this card can never negotiate
 * more room. Everything here is sized so the content cannot grow: short copy,
 * no wrapping surprises, and no dependence on the parent's stylesheet.
 * ---------------------------------------------------------------------- */
.embed-body { background: transparent; }
.embed-card {
  border: 1px solid var(--rule); border-top: 3px solid var(--burgundy);
  border-radius: 3px; background: var(--paper);
  padding: 1.1rem 1.25rem; margin: 0;
}
.embed-card h2 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  margin: 0 0 .35rem; color: var(--burgundy-dark);
}
.embed-card p { margin: 0 0 .7rem; font-size: .9rem; color: var(--ink-muted); }
.embed-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.embed-card .btn { font-size: .875rem; padding: .45rem .9rem; }

/* At 320px the heading wraps and the card must still clear 200px of frame.
 * Verified cross-origin at 320, 480 and 800; do not lengthen the copy without
 * re-testing at 320. */
@media (max-width: 26rem) {
  .embed-card { padding: .75rem .85rem; }
  .embed-card h2 { font-size: .98rem; margin-bottom: .3rem; }
  .embed-card p { font-size: .82rem; line-height: 1.45; margin-bottom: .6rem; }
  .embed-actions { gap: .4rem; }
  .embed-card .btn { font-size: .8rem; padding: .4rem .7rem; }
}

@media (max-width: 34rem) {
  .prose h1 { font-size: 1.6rem; }
  .masthead-inner { gap: .5rem; }
}

.hero {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: 3px;
  margin: 0 0 1.8rem;
}

/* Putnam banner on the home page. Deliberately loud: it sits above the hero and
   is the one thing a visitor should see before anything else while registration
   is open. Driven by `putnam:` in _data/club.yml — delete that block and this
   never renders. */
.putnam-ad {
  display: flex; align-items: center; gap: .9rem;
  margin: 1.1rem 0 1.4rem; padding: .85rem 1.05rem;
  background: var(--burgundy); color: #fff;
  border-radius: 3px; text-decoration: none; line-height: 1.35;
}
.putnam-ad:hover, .putnam-ad:focus { background: var(--burgundy-dark); color: #fff; }
.putnam-ad-tag {
  flex: none; font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.6); border-radius: 2px; padding: .28rem .55rem;
}
.putnam-ad-text { flex: 1 1 auto; }
.putnam-ad-go { flex: none; font-size: 1.35rem; line-height: 1; }
@media (max-width: 34rem) {
  .putnam-ad { flex-wrap: wrap; gap: .55rem; }
  .putnam-ad-go { display: none; }
}
