/* SWC link in bio. Website type + blue, on the cream used by the
   one-off pages (nextgen, bookclub, marathon). Light only. */

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FFFDF6;      /* page: one-off pages' cream */
  --card: #ffffff;
  --panel: #1a1613;      /* swc-site --panel, the offer card */
  --text: #1a1613;       /* swc-site light text */
  --muted: #57504a;
  --line: rgba(26, 22, 19, 0.16);
  --blue: #0084cc;       /* swc-site --blue */
  --blue-vivid: #009de6;
  --blue-pale: #9ed3f6;
  --blue-text: #0271a9;  /* swc-site --accent-text, blue that reads on light */
  --blue-wash: #e9f4fb;
  --radius: 14px;
  --pad: 16px;
  color-scheme: light only;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
header, main, footer { overflow-x: clip; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: 520px; margin: 0 auto; padding: 0 var(--pad); }

.display {
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 14px; }
.top img { width: 84px; height: 84px; flex: none; margin-left: -8px; }
.top h1 { font-size: 1.45rem; }
.top p { margin-top: 6px; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }

/* ---------- intro offer ---------- */
.offer {
  background: var(--panel);
  color: #f7f6f4;
  border-radius: var(--radius);
  padding: 14px 14px 12px;
}
.offer h2 { font-size: clamp(1.5rem, 7vw, 1.95rem); }
.offer-name { margin-top: 6px; font-weight: 600; font-size: 0.9rem; color: var(--blue-pale); }
.offer-line { margin-top: 4px; font-size: 0.85rem; color: #dbdad6; }
.btn {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0 1.2em;
  border-radius: 12px;
  background: var(--blue); color: #fff;
  font-weight: 650; font-size: 1rem; letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--blue-vivid); }
.btn:active { transform: scale(0.985); }
.btn-ico { width: 20px; height: 20px; }

/* ---------- section headings ---------- */
.sec { font-size: 0.95rem; letter-spacing: 0.04em; margin: 22px 0 9px; }

/* ---------- event + news cards ---------- */
.cards { display: grid; gap: 8px; }
.card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 8px 9px 9px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--blue); }
.card:active { transform: scale(0.99); }
.thumb {
  flex: none; width: 76px; height: 76px;
  border-radius: 9px; overflow: hidden;
  background: var(--blue-wash);
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.contain img { object-fit: contain; padding: 7px; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card-body strong { font-weight: 650; font-size: 1rem; line-height: 1.2; }
.card-date { font-weight: 600; font-size: 0.82rem; color: var(--blue-text); }
.card-line { font-size: 0.84rem; color: var(--muted); line-height: 1.32; }
.card-go { flex: none; width: 20px; height: 20px; color: var(--blue-text); }

/* ---------- quick links ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  display: flex; flex-direction: column; gap: 8px;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tile:hover { border-color: var(--blue); }
.tile:active { transform: scale(0.985); }
.tile-ico { width: 34px; height: 34px; color: var(--blue); }
.tile-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tile-text strong { font-weight: 650; font-size: 0.95rem; line-height: 1.2; }
.tile-text span { font-size: 0.78rem; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- footer ---------- */
footer { padding-top: 22px; padding-bottom: 28px; text-align: center; color: var(--muted); font-size: 0.82rem; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 8px; }
footer nav a { font-weight: 600; color: var(--blue-text); padding: 6px 0; }
.nojs { margin-top: 16px; text-align: center; }
.nojs a { color: var(--blue-text); font-weight: 600; text-decoration: underline; }

@media (min-width: 560px) {
  .top { padding-top: 32px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
