@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  --black: #09090b;
  --charcoal: #121214;
  --charcoal-raised: #222226;
  --charcoal-soft: #2b2b30;
  --text: #eeeae2;
  --muted: #b8b8bd;
  --gold: #d6a94f;
  --gold-light: #f5db8b;
  --coral: #e48262;
  --shadow: 0 22px 60px rgba(0, 0, 0, .46);
  --page-gutter: clamp(1.25rem, 6vw, 6rem);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--charcoal); color: var(--text); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.04; }

.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 50; padding: .7rem 1rem; background: var(--text); color: var(--black); }
.skip-link:focus { left: 1rem; }

.site-head {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem var(--page-gutter);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: var(--black);
}
.brand { min-width: 0; overflow: hidden; color: #f5ecd7; font: 700 clamp(1.15rem, 2vw, 1.55rem) var(--serif); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.site-head__actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: .55rem; }
.member-access-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: .62rem .82rem;
  color: #ddd7cb;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.member-access-link:hover, .member-access-link:focus-visible { color: var(--gold-light); }
.foundry-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .68rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.foundry-link:hover, .foundry-link:focus-visible { background: var(--gold); color: #111113; transform: translateY(-1px); }

.intro {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(4.25rem, 8vw, 7.5rem) var(--page-gutter);
  background: radial-gradient(circle at 78% 28%, rgba(255, 255, 255, .07), transparent 31%), linear-gradient(135deg, #252529, #0b0b0d);
}
.intro::before { content: ''; position: absolute; inset: auto 0 0; height: 9px; background: repeating-linear-gradient(90deg, var(--gold) 0 38px, transparent 38px 48px); }
.intro > .eyebrow, .intro > h1, .intro > .intro__copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1.1rem; color: #b8cbbd; font-size: .72rem; font-weight: 700; letter-spacing: .2em; }
.intro h1 { max-width: 900px; font-size: clamp(3rem, 7vw, 6.7rem); letter-spacing: -.045em; }
.intro h1 em { color: var(--coral); font-style: normal; }
.intro__copy { max-width: 600px; margin: 2rem 0 0; color: #c8c8cc; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.dice-sketch { position: absolute; z-index: 1; right: -2%; top: -5%; width: min(56vw, 800px); height: auto; opacity: .5; pointer-events: none; transform: rotate(-2deg); filter: saturate(.82) contrast(1.08); }

.rounds { max-width: 1600px; margin: auto; padding: clamp(4.5rem, 8vw, 8rem) var(--page-gutter); }
.round-section + .round-section { margin-top: 7rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.6rem; }
.section-heading--ruled { padding-bottom: 1.4rem; border-bottom: 1px solid rgba(214, 169, 79, .28); }
.section-heading h2 { color: #f5ecd7; font-size: clamp(2.8rem, 6vw, 5.4rem); }

.round-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 29rem), 1fr)); gap: 1.5rem; }
.round-card {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(214, 169, 79, .2);
  border-radius: 26px;
  background: var(--charcoal-raised);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.round-card:hover { transform: translateY(-5px); border-color: rgba(214, 169, 79, .42); box-shadow: 0 28px 70px rgba(0, 0, 0, .55); }
.round-card:not(.round-card--image) { min-height: 430px; background: linear-gradient(145deg, #252529, #18181b); }
.round-card__image, .round-card__scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.round-card__image { object-fit: cover; }
.round-card__scrim { background: linear-gradient(to top, rgba(7, 7, 9, .97) 2%, rgba(14, 14, 17, .72) 53%, rgba(8, 8, 10, .16)); }
.round-card__author { position: absolute; z-index: 2; top: clamp(1rem, 2.5vw, 1.5rem); right: clamp(1rem, 2.5vw, 1.5rem); display: grid; gap: .1rem; max-width: min(68%, 16rem); margin: 0; padding: .5rem .75rem; border: 1px solid rgba(245, 219, 139, .55); border-radius: 12px; background: rgba(8, 8, 10, .94); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); color: #fff; line-height: 1.25; text-align: right; }
.round-card__author span { color: var(--gold-light); font-size: .64rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.round-card__author strong { overflow: hidden; font-size: .91rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.round-card__content { position: relative; z-index: 1; width: 100%; padding: clamp(1.4rem, 3vw, 2.3rem); }
.round-card--author .round-card__content { padding-top: clamp(5rem, 7vw, 5.5rem); }
.round-card:not(.round-card--image) .round-card__content { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.round-card__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.pill { display: inline-flex; padding: .42rem .72rem; border-radius: 99px; background: #e3efe5; color: #171719; font-size: .7rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.pill--online { background: #dbe8f3; }
.pill--hybrid { background: #f5e1bd; }
.pill--flexible { background: #e8dcf2; }
.pill--type { background: var(--coral); color: #25120d; }
.round-card--image .pill { box-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
.round-card__title { font-size: clamp(2rem, 3.6vw, 3.5rem); letter-spacing: -.025em; }
.round-card--image .round-card__title { color: white; -webkit-text-stroke: 1.5px var(--gold); paint-order: stroke fill; text-shadow: 0 2px 12px black, 0 0 2px black; }
.round-card__kicker { margin: .5rem 0; color: var(--gold-light); font-weight: 700; }
.round-card__description { max-width: 620px; }
.round-card__description p { margin: .8rem 0; }
.round-card--image .round-card__description { color: #f3eee3; }
.round-card--image .round-card__kicker,
.round-card--image .round-card__description,
.round-card--image .round-card__facts dt,
.round-card--image .round-card__facts dd { -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 6px #000; }
.round-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.25rem; width: 100%; margin-top: auto; padding-top: 1.15rem; }
.round-card__facts { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; margin: 0; }
.round-card__facts div { display: flex; gap: .4rem; }
.round-card__facts dt { color: var(--muted); }
.round-card__facts dd { margin: 0; font-weight: 700; }
.round-card__external-link { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid var(--gold); border-radius: 99px; color: var(--gold-light); font-size: .78rem; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background .2s ease, color .2s ease; }
.round-card__external-link:hover, .round-card__external-link:focus-visible { background: var(--gold); color: var(--black); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.round-card__actions { width: 100%; display: flex; flex-wrap: wrap; gap: .65rem; }
.round-card__actions:empty { display: none; }
.round-card__link { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.3rem; padding: .75rem 1.05rem; border-radius: 99px; background: #3b3b42; color: white; font-weight: 700; text-decoration: none; }
.round-card--image .round-card__link { background: var(--gold); color: #111113; }

footer { display: flex; justify-content: space-between; padding: 2.4rem var(--page-gutter); background: var(--black); color: #d9d9dc; }
footer span { font-family: var(--serif); font-weight: 700; }
footer p { margin: 0; font-size: .86rem; }

.js .round-card { opacity: 0; transform: translateY(22px); }
.js .round-card.is-visible { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease; }

.brand:focus-visible, .member-access-link:focus-visible, .round-card__link:focus-visible, .round-card__external-link:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; border-radius: 4px; }

@media (max-width: 900px) {
  .section-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-head { min-height: 74px; gap: .6rem; padding: .65rem 1.1rem; }
  .brand { flex: 1 1 100%; font-size: .98rem; white-space: nowrap; }
  .site-head__actions { flex: 1 1 100%; justify-content: flex-start; }
  .member-access-link, .foundry-link { min-height: 2.35rem; padding: .5rem .65rem; font-size: .68rem; }
  .intro { min-height: 520px; padding-top: 4.5rem; }
  .intro h1 { max-width: 330px; font-size: 3.1rem; }
  .intro__copy { max-width: 310px; }
  .dice-sketch { right: -57%; top: 3.5rem; width: 135vw; opacity: .17; }
  .rounds { padding-top: 4.5rem; }
  .round-section + .round-section { margin-top: 5.5rem; }
  .section-heading h2 { font-size: 3.35rem; }
  .round-card { min-height: 0; }
  .round-card--image { min-height: 480px; }
  .round-card__meta { margin-top: 1rem; }
  .round-card__author { max-width: min(70%, 15rem); }
  .pill { font-size: .65rem; letter-spacing: .035em; }
  footer { display: block; }
  footer p { margin-top: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .round-card, .member-access-link, .foundry-link { transition: none !important; }
  .js .round-card { opacity: 1; transform: none; }
}
/* Author links remain independent of the round detail action. */
.round-card__author a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.round-card__author a:hover { color: var(--gold-light); }
.round-card__author a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

