@import url(
  'https://fonts.googleapis.com/css?family=DM+Sans:400,500,600,700'
);
@import url(
  'https://fonts.googleapis.com/css?family=Playfair+Display:500,500i,700,700i'
);
:root {
  --red: #a42640;
  --dark: #442632;
  --pink: #f8e4e6;
  --paper: #fffaf7;
  --line: #e5c8cc;
  --olive: #515a39;
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
.wrap { width: min(1180px, calc(100% - 96px)); margin: auto; }
.header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  font-size: 24px;
  text-decoration: none;
  color: var(--red);
  letter-spacing: -1px;
}
.brand span:not(.brand-icon) { font-weight: 400; }
.brand small { font-size: 14px; letter-spacing: 0; }
.brand-icon { font-size: 30px; margin-right: 6px; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { font-size: 14px; text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 1px solid var(--red);
  border-radius: 6px;
  padding: 17px 25px;
  background: var(--red);
  color: white;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.button:hover { background: #801d32; transform: translateY(-2px); }
.button.small { padding: 12px 19px; font-size: 14px; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #f5d9de;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 24%;
  background: url('assets/granger-alexander-romance.png')
    right center / cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f5d9de 2%,
    #f5d9deef 27%, #f5d9de00 64%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: 35px; }
.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.6;
  margin: 0 0 18px;
}
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(62px, 6.3vw, 86px);
  letter-spacing: -3px;
  line-height: 1.05;
  margin: 0 0 24px;
}
h1 em, h2 em { color: var(--red); }
.hero-copy { font-size: 21px; line-height: 1.5; margin: 0 0 16px; }
.hero-detail { font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.hero-caption { display: block; font-size: 12px; margin-top: 13px; }
.love-stamp {
  position: absolute;
  z-index: 1;
  right: 3%;
  bottom: 30px;
  width: 116px;
  height: 116px;
  border: 2px solid var(--red);
  outline: 1px solid var(--red);
  outline-offset: -7px;
  border-radius: 50%;
  text-align: center;
  padding: 20px 8px;
  color: var(--red);
  font-size: 22px;
  line-height: .9;
  transform: rotate(12deg);
  background: #f8e4e6cf;
}
.love-stamp span { font-size: 10px; letter-spacing: 2px; }
.ticker {
  display: flex;
  justify-content: space-around;
  gap: 24px;
  padding: 20px 24px;
  color: var(--red);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
}
h2 { font-size: clamp(32px, 3.3vw, 44px); line-height: 1.2; margin: 0; }
.profiles { padding-block: 80px 58px; scroll-margin-top: 20px; }
.section-top { display: flex; justify-content: space-between; gap: 25px; }
.section-top > p { font-size: 14px; line-height: 1.7; margin-top: 30px; }
.filters { display: flex; gap: 8px; margin: 30px 0; }
.filters button {
  border: 1px solid var(--line);
  padding: 9px 20px;
  border-radius: 25px;
  background: transparent;
  color: var(--dark);
  font-size: 14px;
}
.filters button[aria-pressed='true'] {
  color: white;
  background: var(--red);
  border-color: var(--red);
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.portrait {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #ebccc8;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.card:nth-child(2) .portrait { background: #dddcc9; }
.card:nth-child(3) .portrait { background: #e7c9ae; }
.card-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--paper);
  color: var(--red);
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 6px 9px;
  font-weight: 700;
}
.card-body { padding: 23px; }
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h3 { font-size: 27px; margin: 0; }
.save {
  background: none;
  color: var(--red);
  border: 0;
  font-size: 28px;
  padding: 0 2px;
}
.card-sub { color: #795966; font-size: 12px; margin: 8px 0 20px; }
.card-quote { font-size: 16px; line-height: 1.6; min-height: 77px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.tags span { background: #f3e9e5; padding: 6px 8px; font-size: 11px; }
.card-action {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--red);
  background: none;
  font-size: 14px;
  font-weight: 600;
}
.card-action:hover { background: var(--pink); }
.disclaimer { text-align: center; font-size: 12px; margin-top: 22px; }
.manifesto { background: #f4e5e5; padding-block: 65px; }
.manifesto-inner {
  display: grid;
  grid-template-columns: .9fr 1fr;
  align-items: center;
  gap: 100px;
}
.manifesto p:not(.eyebrow) { font-size: 16px; line-height: 1.8; }
.heart-medal {
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--red);
  font-size: 180px;
  text-shadow: 5px 6px 0 #dcb6bd;
  transform: rotate(-8deg);
  border: 1px solid #d8b6bd;
  border-radius: 50%;
  aspect-ratio: 1;
  width: 310px;
  margin: auto;
}
.heart-medal span { font-size: 25px; letter-spacing: 15px; text-shadow: none; }
.text-link { font-size: 14px; text-underline-offset: 5px; }
.advice { padding-block: 75px; text-align: center; }
.advice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 38px;
}
.advice article > span { color: var(--red); font-size: 35px; }
.advice h3 { font-size: 22px; margin-top: 14px; }
.advice article p { font-size: 14px; line-height: 1.7; }
.closing { text-align: center; padding: 60px 20px; background: #f5d9de; }
.closing .button { margin-top: 26px; }
.closing > p:last-child { font-size: 13px; margin-top: 20px; }
.footer {
  padding-block: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.footer .brand { font-size: 20px; }
.footer p, .footer > span { font-size: 11px; line-height: 1.7; }
dialog {
  width: min(530px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--dark);
  padding: 45px 35px 35px;
}
dialog::backdrop { background: #44263299; backdrop-filter: blur(4px); }
.close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  color: var(--red);
  background: none;
  font-size: 30px;
}
dialog h2 { margin-bottom: 20px; }
dialog p { line-height: 1.7; }
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 10px;
  border: 1px solid var(--line);
  padding: 15px;
  background: none;
  color: var(--dark);
  border-radius: 5px;
}
.quiz-option:hover { background: var(--pink); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
@media (min-width: 1500px) {
  .hero-art { inset-inline-start: 35%; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .header { height: 80px; }
  nav a { display: none; }
  .brand { font-size: 21px; }
  .brand small { display: none; }
  .hero { min-height: 720px; }
  .hero-inner { padding-top: 35px; }
  .hero-art {
    inset: 260px -60px 0 0;
    background-position: right 32%;
  }
  .hero::after {
    background: linear-gradient(#f5d9de 0%, #f5d9de 30%,
      #f5d9de00 73%);
  }
  h1 { font-size: 62px; }
  .hero-copy { font-size: 19px; }
  .hero-detail { font-size: 14px; }
  .love-stamp { bottom: 20px; left: 20px; right: auto; }
  .ticker { flex-wrap: wrap; gap: 12px 20px; font-size: 10px; }
  .ticker span { width: calc(50% - 20px); }
  .section-top { display: block; }
  .section-top > p { margin-top: 16px; }
  .profiles { padding-block: 50px 35px; }
  .profile-grid { grid-template-columns: 1fr; gap: 24px; }
  .portrait { height: 280px; }
  .card-quote { min-height: auto; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 35px; }
  .heart-medal { width: 200px; font-size: 110px; }
  .heart-medal span { font-size: 17px; }
  .manifesto { padding-block: 40px; }
  .advice { padding-block: 50px; }
  .advice-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer { flex-direction: column; text-align: center; gap: 8px; }
  .footer p { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}

.watch { padding-block: 15px 65px; text-align: center; }
.watch-intro { max-width: 650px; margin: 20px auto; line-height: 1.7; }
.watch .advice-grid { text-align: left; gap: 30px; }
.watch article { border-top: 1px solid var(--line); padding-top: 25px; }
.watch article .eyebrow { margin: 0 0 12px; }
.watch article p { line-height: 1.7; font-size: 15px; }
.watch .disclaimer { margin-top: 35px; }

.card-title { gap: 12px; align-items: start; }
.card-title h3 { font-size: 25px; }
@media (max-width: 800px) {
  .hero { min-height: 820px; }
  .hero-art { inset: 480px 0 0; }
  .hero::after {
    background: linear-gradient(#f5d9de 0%, #f5d9de 45%,
      #f5d9de00 70%);
  }
  .hero-caption { max-width: 250px; }
  .love-stamp { width: 100px; height: 100px; padding-top: 16px; }
}

.factions { padding-block: 65px 0; }
.faction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 35px;
}
.faction-grid article { border-top: 2px solid #a9916b; padding-top: 22px; }
.faction-symbol { color: var(--olive); font-size: 38px; }
.faction-grid .eyebrow { font-size: 10px; margin-top: 16px; }
.faction-grid h3 { font-size: 30px; }
.faction-grid p:not(.eyebrow) { line-height: 1.7; font-size: 16px; }
.faction-motto { font-size: 13px; font-style: italic; color: var(--red); }
@media (max-width: 800px) {
  .faction-grid { grid-template-columns: 1fr; }
  .filters { flex-wrap: wrap; }
  .filters button { padding: 9px 15px; }
}

.card { display: flex; flex-direction: column; }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-title h3 { min-height: 90px; }
.card-quote { min-height: 105px; }
.tags { margin-top: auto; min-height: 48px; align-content: start; }
@media (max-width: 800px) {
  .card-title h3, .card-quote { min-height: auto; }
  .tags { min-height: auto; }
}

.text-button {
  border: 0;
  padding: 6px 0;
  color: var(--red);
  background: none;
  font-size: 14px;
  text-underline-offset: 4px;
}
.text-button:hover { text-decoration: underline; }
.dialog-actions { display: flex; align-items: center; gap: 20px; }
.match-row {
  display: flex;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.match-row img { border-radius: 6px; object-fit: cover; }
.match-row h3 { font-size: 22px; }
.match-row p { margin: 5px 0; font-size: 14px; }
.match-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 800px) {
  nav { gap: 12px; }
  nav .button.small { padding: 10px; }
  .header .brand { font-size: 17px; }
  .header .brand-icon { font-size: 22px; margin-right: 0; }
  .dialog-actions { flex-wrap: wrap; gap: 12px; }
}

body {
  background: url('assets/granger-alexander-romance.png')
    center / cover fixed;
}
main { background: var(--paper); }
.header, .footer {
  width: 100%;
  padding-inline: max(24px, calc((100% - 1180px) / 2));
  background: #fffaf7b3;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.hero-art { inset: 0; background-position: center; }
.hero::after { display: none; }
.hero-copy-panel {
  display: inline-block;
  max-width: 490px;
  padding: 28px;
  border-radius: 8px;
  background: #fffaf7ad;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@media (max-width: 800px) {
  .header, .footer { padding-inline: 16px; }
  .hero { min-height: 900px; }
  .hero-inner { padding-top: 24px; }
  .hero-art { inset: 0; background-position: 68% center; }
  .hero-copy-panel { padding: 20px; width: 100%; }
  h1 { font-size: clamp(44px, 14vw, 62px); }
}
@media (max-width: 800px) {
  .header nav .button.small { display: none; }
}
[hidden] { display: none !important; }
.faction-icon { display: block; width: 100%; height: 200px; }
.roster-search {
  display: block;
  max-width: 420px;
  font-size: 14px;
  margin-bottom: 25px;
}
.roster-search input {
  display: block;
  width: 100%;
  font: inherit;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 5px;
  color: var(--dark);
}
.more-players { max-width: 260px; margin: 28px auto 0; }
.play-view { padding-block: 35px 70px; min-height: 75vh; }
.play-view > .text-button { margin-bottom: 30px; }
.play-view h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -1px; }
.play-intro { max-width: 650px; font-size: 18px; line-height: 1.7; }
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 35px;
}
.strategy-card {
  background: #f8e4e6;
  color: var(--dark);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.strategy-card:hover { border-color: var(--red); background: #f5d9de; }
.strategy-card img { width: 100%; height: 170px; }
.strategy-card strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 28px;
  margin-block: 20px 12px;
}
.strategy-card span { font-size: 16px; line-height: 1.6; }
.game-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.game-heading > img { object-fit: contain; }
.game-heading p:not(.eyebrow) { line-height: 1.6; }
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: 60px;
  margin-top: 25px;
}
.game-score { font-size: 16px; margin-bottom: 16px; }
.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.memory-card {
  aspect-ratio: 1;
  border: 2px solid #b56c7b;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, #a42640 0 6px,
    #ab344d 6px 12px);
  color: #ffe1d6;
  font-family: Georgia, serif;
  font-size: clamp(32px, 5vw, 64px);
  box-shadow: inset 0 0 0 6px #a42640;
}
.memory-card:hover { border-color: #523a28; }
.memory-card.is-open {
  background: #fff3df;
  color: var(--red);
  box-shadow: inset 0 0 0 5px #f1d8b3;
}
.memory-card.is-matched { opacity: .6; border-color: var(--olive); }
.game-aside { padding-top: 35px; }
.game-aside h2 { font-size: 28px; }
.game-aside p { font-size: 16px; line-height: 1.8; }
.game-result {
  display: grid;
  grid-template-columns: minmax(200px, 360px) 1fr;
  gap: 50px;
  align-items: center;
}
.game-result > img { width: 100%; height: auto; border-radius: 8px; }
.game-result p { line-height: 1.7; }
.saved-roster { max-width: 800px; margin-block: 30px; }
@media (max-width: 800px) {
  .strategy-grid { grid-template-columns: 1fr; }
  .strategy-card { padding: 20px; }
  .strategy-card img { height: 130px; }
  .game-heading > img { width: 90px; height: 90px; }
  .game-layout, .game-result { grid-template-columns: 1fr; gap: 25px; }
  .game-aside { padding-top: 0; }
  .memory-board { gap: 8px; }
  .memory-card { font-size: 36px; }
  .game-result > img { max-width: 300px; }
}
.memory-card.is-open span {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.memory-card img {
  width: min(85%, 100px);
  height: auto;
  object-fit: contain;
  border-radius: 3px;
}
.memory-card small { font: 500 13px 'DM Sans', sans-serif; }
@media (max-width: 800px) {
  .memory-card.is-open span { padding: 4px; gap: 2px; }
  .memory-card small { font-size: 10px; }
}

.hero { min-height: calc(100svh - 152px); }
.hero-inner {
  min-height: calc(100svh - 152px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  gap: 120px;
  padding-block: 30px;
}
.hero-copy-panel { padding: 24px; }
.hero-copy-panel h1 { margin-bottom: 14px; }
.hero-copy-panel > p { font-size: 18px; margin: 0; }
.home-strategies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  background: #fffaf7b3;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  overflow: hidden;
}
.home-strategies button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-right: 1px solid #a4264026;
  color: var(--dark);
  background: transparent;
  font-family: Georgia, serif;
  font-size: 24px;
}
.home-strategies button:last-child { border-right: 0; }
.home-strategies button:hover { background: #f9e0e0c9; }
.home-strategies img { width: 85px; height: 70px; }
.footer { min-height: 52px; padding-block: 12px; justify-content: center; }
.card-title h3 { min-height: 60px; }
@media (max-width: 800px) {
  .hero, .hero-inner { min-height: calc(100svh - 132px); }
  .hero-inner { gap: 160px; padding-block: 20px; }
  .hero-copy-panel { width: auto; padding: 20px; }
  .home-strategies button {
    flex-direction: column;
    gap: 5px;
    padding: 10px 5px;
    font-size: 17px;
  }
  .home-strategies img { width: 80px; height: 60px; }
  .hero-art { background-position: 66% center; }
  .header .brand { font-size: 16px; }
  .header nav { gap: 14px; }
  .header .text-button { font-size: 12px; }
  .memory-board { grid-template-columns: repeat(3, 1fr); }
  .memory-card small { font-size: 12px; }
}
.header { height: 64px; }
.header, .footer { background: #fffaf75c; }
.footer { min-height: 32px; padding-block: 6px; }
.hero, .hero-inner { min-height: calc(100svh - 96px); }
.hero-copy-panel, .home-strategies {
  background: #fffaf75c;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@media (max-width: 800px) {
  .header { height: 56px; }
  .hero, .hero-inner { min-height: calc(100svh - 88px); }
}

.profile-grid { align-items: start; }
.card .portrait { height: 190px; }
.card .card-body { padding: 16px; gap: 12px; }
.card .card-title h3 { min-height: 0; margin: 0; font-size: 24px; }
.card .card-quote { min-height: 0; margin: 0; line-height: 1.5; }
.card .tags { min-height: 0; margin: 0; gap: 5px; }
.card .tags span { padding: 4px 6px; line-height: 1.4; font-size: 12px; }
.card .card-action { padding: 9px; }
@media (max-width: 800px) {
  .card .portrait { height: 210px; }
}
h1, h2, h3 { font-weight: 700; }
h1 { font-size: clamp(40px, 4.5vw, 60px); letter-spacing: -1px; }
h2 { font-size: clamp(28px, 3vw, 36px); }
.play-view h1 { font-size: clamp(32px, 4vw, 48px); }
.card .card-title h3 { font-size: 22px; }
.hero-copy-panel > p { font-size: 16px; }

.hero-inner { gap: 22px; }
.home-carousel { width: min(390px, 100%); }
.home-carousel > a { display: block; }
.gallery-frame {
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #fffaf75c;
}
.gallery-frame img { display: block; width: 100%; height: 100%; }
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  padding: 0 8px;
  color: var(--dark);
  border-radius: 4px;
  background: #fffaf75c;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.gallery-controls .text-button { font-size: 12px; }
#gallery-caption { font-size: 12px; text-align: center; }
.is-patch .gallery-frame {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #5c644d 0 2px,
    #606850 2px 4px);
}
.is-patch .gallery-frame img {
  width: 68%;
  height: 85%;
  object-fit: contain;
  border: 3px dashed #cfc3a0;
  border-radius: 50%;
  padding: 7px;
  filter: drop-shadow(2px 3px 2px #26302180);
}
@media (max-width: 800px) {
  .hero-inner { gap: 18px; }
  .home-carousel { width: 100%; }
}
