/* The home page and the family's Your stats page (owner, 2026-11-24,
   layout A: paritas-home notes/studies/home-page-and-packs.html). */

/* The family's font (owner, 2026-11-17), as in the games: Atkinson
   Hyperlegible Next, served from here (fonts/, SIL Open Font License in
   fonts/OFL.txt). */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/atkinson-hyperlegible-next-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/atkinson-hyperlegible-next-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-display: block;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #faf9f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666562;
  --line: #e4e2dd;
  --edge: #d5d2cb;
  --accent: #1a1a1a;
  --streak: #a85f1c;
  --paridoku: #f7d8a3;
  --equinox: #d8cdf2;
  --ordo: #c9e3cd;
  --kepler: #c3d7f6;
  --sans: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181c;
    --card: #1f2025;
    --text: #f1f0ee;
    --muted: #a3a4aa;
    --line: #2e3036;
    --edge: #3a3c43;
    --accent: #f1f0ee;
    --streak: #e3a35a;
    --paridoku: #543c17;
    --equinox: #40365c;
    --ordo: #27452f;
    --kepler: #27406a;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* The bar at the top: the name on the left, Your stats on the right. */
.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  max-width: 860px;
  min-height: 56px;
  margin: 0 auto;
  padding: 4px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
}
.top-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.top-link:hover {
  text-decoration-color: currentColor;
}
/* A family badge not yet seen, as on the games' start screens. */
.top-dot {
  position: absolute;
  top: 8px;
  right: -11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #eca552;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}
.day {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.day-sub {
  margin: 2px 0 0;
  color: var(--muted);
}

/* The four twists: a colour card each. */
.twists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.twist {
  display: grid;
  grid-template-columns: minmax(8.5rem, 1fr) minmax(0, 42%);
  height: 100%;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}
.twist.paridoku {
  background: var(--paridoku);
}
.twist.equinox {
  background: var(--equinox);
}
.twist.ordo {
  background: var(--ordo);
}
.twist.kepler {
  background: var(--kepler);
}
.twist-words {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
}
.twist h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}
.twist-line {
  font-size: 0.95rem;
  line-height: 1.3;
}
.twist-state {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.ticks {
  display: inline-flex;
  gap: 5px;
}
.ticks i {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
}
.ticks i.on {
  background: var(--text);
}
.ticks svg {
  width: 72%;
  height: 72%;
  fill: none;
  stroke: var(--bg);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.twist-art {
  position: relative;
}
.twist-art img {
  position: absolute;
  inset: 12px 0 0 12px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  object-position: left top;
  border-radius: 8px 0 0 0;
}

/* The four classics, in black and white. */
.sec {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 12px;
  margin: 28px 0 10px;
}
.sec h2 {
  margin: 0;
  font-size: 1.25rem;
}
.sec span {
  color: var(--muted);
  font-size: 0.92rem;
}
.classics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.classic {
  display: block;
  height: 100%;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.classic img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.classic h3 {
  margin: 8px 0 0;
  font-size: 1.05rem;
  line-height: 1.25;
}
.classic span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}
@media (hover: hover) {
  .twist:hover,
  .classic:hover {
    border-color: var(--accent);
  }
}
@media (prefers-contrast: more) {
  .twist,
  .classic {
    border-color: var(--text);
  }
}
@media (forced-colors: active) {
  .top-dot {
    background: Highlight;
  }
  .ticks i.on {
    background: CanvasText;
    forced-color-adjust: none;
  }
  .ticks svg {
    stroke: Canvas;
  }
}
@media (max-width: 620px) {
  main {
    padding-top: 18px;
  }
  .day {
    font-size: 1.45rem;
  }
  .twists {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
  }
  .twist {
    min-height: 124px;
  }
  .twist-words {
    padding: 12px;
  }
  .classics {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    gap: 10px;
  }
}
.promise {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

/* Words about the family, below the games: for players and search engines. */
.about {
  margin-top: 36px;
  font-size: 0.95rem;
}
.about h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.about p {
  margin: 12px 0 0;
}
.about a {
  color: inherit;
  text-underline-offset: 3px;
}
/* What sets the family apart (owner, 2026-11-07). */
.why {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.why li {
  position: relative;
  padding-left: 22px;
}
.why li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}
.learn a {
  white-space: nowrap;
}

/* Your stats: the family's two badges, and a line a game. */
.kept {
  margin: 2px 0 0;
  color: var(--muted);
}
.fam-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.fam-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.fam-badge b {
  display: block;
  line-height: 1.25;
}
.fam-badge small {
  display: block;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--muted);
}
.fam-new {
  position: absolute;
  top: -8px;
  left: 30px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--text);
  color: var(--card);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.medal {
  display: block;
  flex: none;
  overflow: visible;
  filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.22)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}
.medal.is-locked {
  filter: grayscale(1) contrast(0.85);
  opacity: 0.45;
}
@media (prefers-contrast: more) {
  .medal.is-locked {
    opacity: 0.7;
  }
}
.fam-rows {
  margin: 14px 0 0;
  padding: 0 14px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.fam-rows li + li {
  border-top: 1px solid var(--line);
}
.fam-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  min-height: 52px;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
}
.fam-row img {
  flex: none;
}
.fam-name {
  flex: 1;
  min-width: 6rem;
  font-weight: 600;
}
.fam-row:hover .fam-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fam-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--streak);
}
.fam-count.none {
  font-weight: 400;
  color: var(--muted);
}
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0 16px 32px;
}
