@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/sofia-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/sofia-latin-700-normal.woff2") format("woff2");
  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: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/sofia-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/sofia-latin-800-normal.woff2") format("woff2");
  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: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/golos-text-latin-400-normal.woff2") format("woff2");
  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: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/golos-text-latin-500-normal.woff2") format("woff2");
  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: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/golos-text-latin-600-normal.woff2") format("woff2");
  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;
}

:root {
  --desk: #070605;
  --sheet: #100e0c;
  --sheet-2: #161310;
  --under: #2a1214;
  --ink: #e8e0d4;
  --ink-soft: #c4b5a4;
  --line: #5c4a3e;
  --red: #d6453c;
  --red-deep: #e06a5c;
  --blood: #8f1d22;
  --bone: #f3ece2;
  --focus: #e06a5c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: "Golos Text", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

body::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(86vw, 920px);
  height: min(86vw, 920px);
  top: -16rem;
  left: -12rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      #0a0707 0 22%,
      #1a090a 34%,
      #8a221c 36%,
      #4a100e 50%,
      #2a0c0c 64%,
      transparent 74%);
  pointer-events: none;
}

::selection {
  background: #6e1418;
  color: var(--bone);
}

.rail,
.top,
main,
.colophon {
  position: relative;
  z-index: 1;
}

.rail {
  height: 28px;
  background:
    radial-gradient(circle at 16px 14px, var(--desk) 5.5px, transparent 6px) 0 0 / 34px 28px,
    var(--sheet);
  border-bottom: 1px dashed var(--line);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--sheet-2);
  color: var(--ink);
  padding: .4rem .7rem;
  z-index: 5;
}
.skip:focus { top: .6rem; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  gap: .75rem 1.4rem;
  padding: 1.4rem 0 .8rem;
  flex-wrap: wrap;
}

.mark {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 800;
  font-size: 2.15rem;
  letter-spacing: -0.03em;
  line-height: .85;
  color: var(--ink);
  text-decoration: none;
}
.mark span { color: var(--red); }

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
}
.top nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.top nav a:hover { text-decoration: underline; text-underline-offset: .16em; }

.invite {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  border: 0;
  background: var(--blood);
  color: var(--bone);
  padding: .8rem .95rem .8rem 1.05rem;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  line-height: 1;
  cursor: not-allowed;
}
.invite:disabled { opacity: 1; }
.invite-state {
  font-family: "Golos Text", sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1.5px solid var(--bone);
  padding: .32rem .42rem .28rem;
  line-height: 1.1;
  animation: press .45s cubic-bezier(.16, 1, .3, 1) both;
}
.top .invite {
  margin-left: auto;
  font-size: 1.35rem;
  padding: .55rem .7rem .55rem .8rem;
}
.top .invite-state { font-size: .66rem; }

@keyframes press {
  from { transform: scale(.94); }
  to { transform: scale(1); }
}

.status {
  margin: .75rem 0 0;
  max-width: 42ch;
  color: var(--ink-soft);
}

h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: .92;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .95fr);
  gap: 2rem 2.5rem;
  align-items: end;
  padding: .4rem 0 3.2rem;
  min-height: calc(100vh - 6.5rem);
}

.stack { position: relative; }
.under {
  position: absolute;
  inset: 1.1rem 0 0 1.15rem;
  background: var(--under);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 1rem 1rem;
  text-align: right;
}
.under-day {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 6vw, 4.4rem);
  line-height: .8;
  letter-spacing: -0.03em;
  color: var(--red-deep);
}
.under-month {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.face {
  position: relative;
  min-height: 24.5rem;
  background: var(--sheet-2);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8.25rem), calc(100% - 8.25rem) 100%, 0 100%);
  padding: 1rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.face-month {
  margin: 0;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: .9;
  text-transform: lowercase;
}
.face-num {
  margin: 0;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(8.5rem, 18vw, 13.5rem);
  letter-spacing: -0.035em;
  line-height: .78;
}
.face-note {
  margin: .35rem 0 0;
  max-width: 18ch;
  color: var(--ink-soft);
}
.stack-note {
  margin: .7rem 0 0;
  color: var(--ink-soft);
  max-width: 36ch;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  max-width: 9ch;
}
.hero-copy .dek {
  margin: 1.15rem 0 0;
  max-width: 42ch;
  font-size: 1.125rem;
}
.phase {
  margin: 1.15rem 0 0;
  font-family: "Golos Text", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0;
  line-height: 1.35;
  max-width: 28ch;
}

.rule {
  border: 0;
  height: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 3px;
}

section { padding: 4.2rem 0 .2rem; }
section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  max-width: 14ch;
}
.prose p, .narrow { max-width: 68ch; }
.prose p { margin: 0 0 1rem; }
.prose a, .sources a, .close a {
  color: var(--red-deep);
  text-underline-offset: .16em;
}

.frames {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  counter-reset: frame;
}
.frames li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: .4rem 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.frames li::before {
  counter-increment: frame;
  content: counter(frame);
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: .8;
  letter-spacing: -0.03em;
  color: var(--red);
}
.frames h3 {
  margin: 0 0 .35rem;
  font-size: 2rem;
}
.frames p { margin: 0; max-width: 62ch; }

.table-scroll { overflow-x: auto; margin-top: 1.2rem; }
table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 1rem;
}
caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: .6rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .75rem .7rem .75rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
thead th {
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
tbody th { font-weight: 600; width: 16%; }

.months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 1.8rem;
  margin-top: 1.4rem;
}
.month h3 { margin: 0 0 .35rem; font-size: 2.3rem; }
.dow, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dow span {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: .25rem;
}
.dow span:nth-child(6),
.dow span:nth-child(7) { color: var(--red-deep); }
.day, .edge {
  min-height: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  padding: 0;
}
.edge { color: #a89888; }
.day.weekend:not(.is-today) { color: var(--red-deep); }
.day { cursor: pointer; border-radius: 50%; }
.day:hover { background: #2a2420; }
.day.is-start:not(.is-today) { box-shadow: inset 0 0 0 2px var(--red); }
.day.is-selected:not(.is-today) { background: #3a2824; }
.day.is-today { background: var(--blood); color: var(--bone); }
.day.is-today:hover { background: #6e1418; }
.detail {
  margin: 1.2rem 0 0;
  min-height: 4.6rem;
  max-width: 68ch;
  font-size: 1.08rem;
}

.test { margin: .4rem 0 1.2rem; padding-left: 1.2rem; max-width: 62ch; }
.test li { margin: .35rem 0; padding-left: .2rem; }

.forms article {
  padding: 1.15rem 0 1.25rem;
  border-top: 1px dashed var(--line);
  max-width: 68ch;
}
.forms h3 { margin: 0 0 .4rem; font-size: 2.1rem; }
.forms ul { margin: 0; padding-left: 1.15rem; }
.forms li { margin: .28rem 0; }

.faq { max-width: 68ch; }
.faq details { border-top: 1px solid var(--line); padding: .85rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
}
.faq details p { margin: .7rem 0 0; }

.close { padding-bottom: 2rem; }
.close h2 { max-width: 12ch; }
.close .invite { margin-top: .4rem; }

.sources { padding-bottom: 3.5rem; }
.sources h2 { font-size: clamp(2rem, 4vw, 3rem); }
.sources ul { margin: 0; padding-left: 1.15rem; max-width: 75ch; }
.sources li { margin: .4rem 0; }
footer.colophon {
  padding: 0 0 2.4rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    align-items: start;
  }
  .hero-copy { order: -1; }
  .hero-copy h1 { max-width: 12ch; }
  .top .invite { margin-left: 0; }
  .months { grid-template-columns: 1fr; max-width: 28rem; }
  .face { min-height: 18.5rem; }
  .face-num { font-size: clamp(7.5rem, 38vw, 11rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .invite-state { animation: none; }
}
