/*
  Your Room · shared stylesheet for /your-room/.
  All rules prefixed .yr-* — no leaks into other pages.
  Reuses the same warm palette as /family-tree/ (--ft-* tokens live in
  family-tree.css, loaded on this page too) so the "door" feels continuous.
  Locked visual: 2026-09-01.
*/

.yr-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 16px 72px;
  background: var(--ft-cream, #FDFBF5);
  color: var(--ft-ink, #2D2419);
  font-family: "Cormorant Garamond", "Baskerville", "Georgia", serif;
}

.yr-main {
  width: 100%;
  max-width: 880px;
}

.yr-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.yr-kicker {
  font-family: "Inter", "Helvetica Neue", sans-serif;
  color: var(--ft-moss, #5A6B4F);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.yr-title {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  color: var(--ft-wax, #6B1F2E);
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: 0.3px;
  line-height: 1.05;
}

.yr-verse {
  font-size: 19px;
  font-style: italic;
  color: var(--ft-ink, #2D2419);
  margin: 0 0 4px;
  line-height: 1.45;
}

.yr-citation {
  font-family: "Inter", "Helvetica Neue", sans-serif;
  color: var(--ft-muted, #6B6355);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.yr-privacy {
  font-family: "Inter", "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ft-ink, #2D2419);
  background: var(--ft-gold-warm, #FFF3C9);
  border: 1px solid var(--ft-gold, #B08D57);
  border-radius: 10px;
  padding: 12px 18px;
  max-width: 560px;
  margin: 0 auto;
}

.yr-intro {
  text-align: center;
  max-width: 560px;
  margin: 34px auto 30px;
}

.yr-intro-title {
  font-size: 22px;
  color: var(--ft-wax, #6B1F2E);
  font-weight: 600;
  margin: 0 0 10px;
}

.yr-intro-body {
  font-family: "Inter", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ft-ink, #2D2419);
  margin: 0;
}

.yr-tally {
  text-align: center;
  font-family: "Inter", "Helvetica Neue", sans-serif;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--ft-muted, #6B6355);
  margin: 34px 0 18px;
}

.yr-tally strong {
  color: var(--ft-wax, #6B1F2E);
}

/* Empty vs. lived-in states — toggled by JS via body class */
.yr-page-shell.yr-has-visits .yr-intro { display: none; }
.yr-page-shell:not(.yr-has-visits) .yr-tally { display: none; }

.yr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

@media (min-width: 560px) {
  .yr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 820px) {
  .yr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.yr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 20px 12px 16px;
  background: var(--ft-cream, #FDFBF5);
  border: 1px solid var(--ft-line, #E5DFD1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.yr-card:hover,
.yr-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 31, 46, 0.10);
  border-color: var(--ft-gold, #B08D57);
}

.yr-card-glyph {
  width: 22px;
  height: 30px;
  margin-bottom: 10px;
  opacity: 0.35;
}

.yr-card-glyph path {
  fill: var(--ft-muted, #6B6355);
}

.yr-card.yr-visited {
  background: var(--ft-gold-warm, #FFF3C9);
  border-color: var(--ft-gold, #B08D57);
}

.yr-card.yr-visited .yr-card-glyph {
  opacity: 1;
}

.yr-card.yr-visited .yr-card-glyph path {
  fill: var(--ft-wax, #6B1F2E);
}

.yr-card-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ft-ink, #2D2419);
  margin: 0 0 2px;
  line-height: 1.2;
}

.yr-card-wing {
  font-family: "Inter", "Helvetica Neue", sans-serif;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ft-muted, #6B6355);
  margin: 0 0 8px;
}

.yr-card-status {
  font-family: "Inter", "Helvetica Neue", sans-serif;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ft-muted, #6B6355);
  margin: 0;
}

.yr-card.yr-visited .yr-card-status {
  color: var(--ft-wax, #6B1F2E);
}

/* Your Room self-card (the 12th door: "you are here") is not a link --
   it never lifts/hovers like the clickable cards, and it never loses its
   lit state (it isn't toggled by JS at all -- no data-href attribute). */
.yr-card--self {
  cursor: default;
}

.yr-card--self:hover,
.yr-card--self:focus-visible {
  transform: none;
  box-shadow: none;
}

.yr-footer-links {
  text-align: center;
  margin: 44px auto 0;
  font-family: "Inter", "Helvetica Neue", sans-serif;
  font-size: 14px;
}

.yr-footer-links a {
  color: var(--ft-wax, #6B1F2E);
  text-decoration: none;
  border-bottom: 1px solid var(--ft-gold, #B08D57);
  padding-bottom: 1px;
}

.yr-footer-links a:hover { color: var(--ft-wax-deep, #4A0E1B); }

.yr-footer-sep {
  color: var(--ft-line, #E5DFD1);
  margin: 0 10px;
}

/* No-JS / before-JS-runs default: the welcome-empty state above already
   shows correctly (tally hidden, intro shown, every card reads "Not yet
   opened" as pre-rendered in the HTML) — no extra rules needed here.
   The .yr-no-js marker class is kept only as a debugging hook. */
