:root {
  color-scheme: dark;
  --night: #101a32;
  --panel: #14213d;
  --ivory: #fff5de;
  --muted: #bac7de;
  --gold: #ffd477;
  --blue: #81abff;
  --line: #2d3e61;
  --hex: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
  --display: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  background: radial-gradient(ellipse at 50% 64%, #192945 0, var(--night) 64%);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
p, h1, h2 { margin: 0; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-width { width: min(1232px, calc(100% - 80px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid #293653; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 41px;
  background: linear-gradient(145deg, #ffdf99, #f3a83e);
  color: #2f2013;
  clip-path: var(--hex);
  font-size: 19px;
}
.brand-copy { display: grid; line-height: 1.2; gap: 3px; }
.brand-copy strong { font-size: 1rem; }
.brand-copy span { color: var(--muted); font-size: .75rem; }
.demo-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #3b527b;
  border-radius: 10px;
  background: #182642;
  color: #dae7ff;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.demo-button > .icon { color: var(--blue); }
.demo-button:hover { background: #24385b; }
.demo-button[aria-pressed="true"] { background: #233c70; border-color: #729cff; }
.toggle-track {
  width: 25px;
  height: 15px;
  border-radius: 12px;
  background: #3f5072;
  padding: 3px;
}
.toggle-track::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d0dbf0;
  transition: transform .2s ease;
}
[aria-pressed="true"] .toggle-track { background: #4f7fe2; }
[aria-pressed="true"] .toggle-track::before { transform: translateX(10px); background: white; }

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(350px, 34vw, 455px);
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid #3c4c68;
  border-radius: 24px;
  background: #152443;
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: center 43% / cover no-repeat url("winter-hive.webp");
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111c36 0%, #111c36e8 22%, #111c368c 43%, transparent 68%);
}
.hero-copy { padding: 38px clamp(26px, 5.1vw, 76px); position: relative; }
.hero-date {
  color: #ffdc91;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: 17px;
}
.hero h1 {
  font: 700 clamp(3.5rem, 5.85vw, 5.6rem)/.94 var(--display);
  letter-spacing: -.058em;
  text-wrap: balance;
}
.hero h1 em { color: var(--gold); display: block; font-weight: 400; }
.hero-subtitle { margin: 16px 0 25px; color: #e5ebfa; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid #ffdf98;
  border-radius: 10px;
  background: linear-gradient(150deg, #ffe4a6, #ffc45f);
  color: #302011;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 6px 22px #100c1738;
  transition: background .2s, transform .2s;
}
.gold-button:hover { background: #ffe6aa; transform: translateY(-2px); }
.hero-actions, .dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.quiet-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #50668b;
  border-radius: 10px;
  background: #192947;
  color: #e6eeff;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.quiet-button:hover, .quiet-button[aria-pressed="true"] { background: #284570; border-color: #729cff; }
.quiet-button .icon { color: var(--blue); }
.hero-actions .quiet-button { min-height: 46px; background: #182744dd; }
.hero-actions .quiet-button:hover { background: #284570; }
button:disabled { cursor: wait; opacity: .7; }

.answers-hero { min-height: 256px; }
.answers-hero .hero-art { background-position: center 47%; }
.answers-hero .hero-art::after {
  background: linear-gradient(90deg, #111c36 0%, #111c36ed 31%, #111c366e 62%, transparent 84%);
}
.answers-hero .hero-copy { padding-block: 30px; }
.answers-hero h1 { font-size: clamp(2.45rem, 6vw, 5.25rem); }
.answers-hero h1 em { display: inline; }
.answers-hero .hero-subtitle { max-width: 410px; margin: 15px 0 0; line-height: 1.5; }
.answers-section { width: min(780px, 100%); margin: 26px auto 24px; }
.answer-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-weight: 650;
}
.answer-filter select {
  appearance: none;
  min-width: 0;
  min-height: 44px;
  width: min(360px, 100%);
  padding: 8px 31px 8px 11px;
  border: 1px solid #506487;
  border-radius: 9px;
  background: #192947 url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23bac7de' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ivory);
  font: 400 .9375rem/1.35 system-ui, sans-serif;
}
.answer-filter select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.demo-note {
  padding: 9px 12px;
  margin-bottom: 14px;
  border-left: 2px solid var(--blue);
  color: #c7d9ff;
  font-size: .875rem;
}
.feed-status, .answer-card {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: radial-gradient(ellipse at 10% 0, #233453, #17253f 73%);
}
.answer-form { display: grid; gap: 12px; text-align: left; }
.answer-form fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.answer-form legend, .answer-field { font-size: .9375rem; font-weight: 650; }
.answer-form legend { margin-bottom: 6px; padding: 0; }
.privacy-options { display: flex; flex-wrap: wrap; gap: 7px; }
.privacy-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #51668c;
  border-radius: 8px;
  color: #dbe7fd;
  font-size: .875rem;
  cursor: pointer;
}
.privacy-options label:has(input:checked) { border-color: var(--gold); color: var(--gold); background: #ffd47714; }
.privacy-options input { margin: 0; width: 16px; height: 16px; accent-color: var(--gold); }
.answer-field input, .answer-field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid #506487;
  border-radius: 9px;
  background: #121f38;
  color: var(--ivory);
  font: 400 1rem/1.45 system-ui, sans-serif;
}
.answer-field input:focus-visible, .answer-field textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.answer-field textarea { resize: vertical; }
.answer-field input::placeholder, .answer-field textarea::placeholder { color: #a8b6d0; }
.form-result, .answer-audience { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.form-result { color: var(--gold); }
.feed-status { padding: 32px 18px; text-align: center; color: var(--muted); }
.feed-status > .icon { color: var(--gold); font-size: 27px; margin-bottom: 8px; }
.feed-status .quiet-button { margin-top: 12px; }
.answer-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.answer-card { display: flex; align-items: start; gap: 14px; padding: 16px; overflow-wrap: anywhere; }
.answer-day-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 44px;
  clip-path: var(--hex);
  background: #ffd477;
  color: #2d2117;
  font-weight: 750;
}
.card-day { color: var(--gold); font-size: .8125rem; font-weight: 700; }
.answer-card h2 { margin: 2px 0 6px; font: 700 1.45rem/1.15 var(--display); }
.card-answer { color: #dce6f9; white-space: pre-wrap; line-height: 1.5; }
.card-author { color: var(--muted); font-size: .875rem; margin-top: 7px; }
.card-author[data-anonymous="true"] { font-style: italic; }
#load-more { margin-top: 12px; }

@media (max-width: 620px) {
  .hero.answers-hero { padding-top: 110px; }
  .answers-hero .hero-copy { padding-block: 25px; }
  .answers-hero .hero-art { background-position: 95% -46px; }
  .answers-hero .hero-art::after { background: linear-gradient(180deg, transparent 4%, #15244345 29%, #152443 68%); }
  .answers-section { margin-top: 21px; }
}

.calendar-section { padding-top: 37px; scroll-margin-top: 12px; }
.calendar-header { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.calendar-header h2, .day-dialog h2 {
  font: 700 clamp(2rem, 3.4vw, 3rem)/1.07 var(--display);
  letter-spacing: -.035em;
}
.calendar-caption { margin-top: 8px; color: var(--muted); line-height: 1.5; }
.progress { width: min(220px, 100%); flex: none; padding-bottom: 4px; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .875rem; }
.progress-label strong { color: var(--gold); }
.progress progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #334362;
  overflow: hidden;
}
progress::-webkit-progress-bar { background: #334362; }
progress::-webkit-progress-value { background: var(--gold); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--gold); border-radius: 8px; }

.calendar-board {
  position: relative;
  overflow: hidden;
  padding: 17px 16px 31px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background:
    radial-gradient(circle at 12% 23%, #d5e7ff6f 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 20%, #ffd47776 0 1.5px, transparent 2px),
    radial-gradient(circle at 91% 69%, #afd1ff59 0 1px, transparent 1.5px),
    radial-gradient(circle at 7% 72%, #aac2f65e 0 1.5px, transparent 2px),
    radial-gradient(ellipse at 50% 16%, #203251, #14213b 71%);
}
.board-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 21px;
  color: var(--muted);
  font-size: .875rem;
  padding-bottom: 17px;
}
.board-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-mark { display: block; width: 12px; height: 14px; clip-path: var(--hex); background: #65799c; }
.legend-mark.available { background: var(--gold); }
.legend-mark.seen { background: var(--blue); }
.honeycomb-frame { width: min(780px, 100%); margin-inline: auto; container-type: inline-size; }
.honeycomb {
  --cell-height: calc(100cqw / 7 * 1.09);
  --row-step: calc(var(--cell-height) * .79);
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  grid-template-rows: repeat(5, var(--row-step));
  padding-bottom: calc(var(--cell-height) - var(--row-step));
}
.honey-cell {
  --edge: #516484;
  --fill: linear-gradient(155deg, #263a5b, #1a2b49 75%);
  --cell-ink: #d3def1;
  --hint: #9aaed0;
  position: relative;
  grid-row: var(--row);
  grid-column: var(--column) / span 2;
  display: grid;
  place-content: center;
  justify-items: center;
  justify-self: center;
  gap: 3px;
  width: calc(100% - 7px);
  height: var(--cell-height);
  padding: 0;
  border: 0;
  clip-path: var(--hex);
  isolation: isolate;
  background: var(--edge);
  color: var(--cell-ink);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.honey-cell::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  clip-path: var(--hex);
  background: var(--fill);
}
.honey-cell:hover, .honey-cell:focus-visible { z-index: 1; transform: translateY(-3px); }
.honey-cell:focus-visible { background: #fff2c8; }
.honey-cell[data-state="locked"]:hover { background: #93aed9; }
.honey-cell[data-state="available"] {
  --edge: #ffe4aa;
  --fill: radial-gradient(ellipse at 40% 16%, #ffeab2, #ffc96b 76%);
  --cell-ink: #3a2717;
  --hint: #725027;
}
.honey-cell[data-state="seen"] {
  --edge: #729cf2;
  --fill: linear-gradient(150deg, #305187, #233d6b);
  --cell-ink: #eff5ff;
  --hint: #a9c8ff;
}
.honey-cell[data-featured="true"][data-state="locked"] {
  --edge: #b58c52;
  --fill: linear-gradient(155deg, #3b3b49, #27334e);
  --cell-ink: #ffe0a0;
  --hint: #ebc787;
}
.honey-cell[data-featured="true"]::before { inset: 3px; }
.honey-cell .cell-number { font: 700 clamp(1.65rem, 3.5vw, 2.65rem)/1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.honey-cell .cell-icon { color: var(--hint); width: 16px; height: 16px; }
.noscript { text-align: center; }

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-block: 23px 30px;
  color: var(--muted);
  font-size: .875rem;
}
.footer-credit { display: flex; align-items: center; gap: 8px; }
.site-footer .icon { color: var(--gold); }
#visitor-settings { width: min(100%, 460px); text-align: center; }
#visitor-settings summary {
  width: fit-content;
  margin-inline: auto;
  padding: 9px 12px;
  color: var(--blue);
  cursor: pointer;
}
#visitor-settings summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.visitor-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-align: left;
}
.visitor-form p { line-height: 1.45; }
.visitor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.visitor-actions button:disabled { opacity: .6; cursor: wait; }
.visitor-reveal { display: flex; align-items: center; gap: 7px; width: fit-content; cursor: pointer; }
.visitor-reveal input { margin: 0; accent-color: var(--gold); }
.visitor-form .form-result:empty { height: 0; margin-top: -12px; }

.day-dialog {
  width: min(464px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 0;
  border: 1px solid #526d9d;
  border-radius: 23px;
  background: radial-gradient(ellipse at 50% 0, #2c4167, #182844 71%);
  color: var(--ivory);
  box-shadow: 0 18px 65px #050a17b5;
}
.day-dialog[open] { animation: show-dialog .23s ease both; }
.day-dialog[data-answer="true"] { width: min(540px, calc(100% - 28px)); }
.day-dialog::backdrop { background: #080f21bb; backdrop-filter: blur(5px); }
body:has(.day-dialog[open]) { overflow: hidden; }
.dialog-card { position: relative; padding: 31px clamp(21px, 5vw, 39px) 34px; text-align: center; }
.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #516689;
  border-radius: 9px;
  background: #233657;
  color: white;
  cursor: pointer;
}
.close-button:hover { background: #354d75; }
.dialog-icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 59px;
  margin: 0 auto 14px;
  clip-path: var(--hex);
  background: var(--gold);
  color: #332514;
  font-size: 22px;
}
.day-dialog[data-locked="true"] .dialog-icon { color: #d5e5ff; background: #365688; }
.dialog-date { margin-bottom: 8px; color: var(--gold); font-size: .875rem; font-weight: 700; }
.day-dialog h2 { font-size: clamp(1.85rem, 6vw, 2.65rem); }
.dialog-message { margin: 14px 0 22px; color: #d9e3f6; line-height: 1.6; white-space: pre-line; }
.day-dialog[data-answer="true"] .dialog-card { padding-block: 23px 26px; }
.day-dialog[data-answer="true"] .dialog-icon { width: 43px; height: 46px; margin-bottom: 9px; font-size: 18px; }
.day-dialog[data-answer="true"] .dialog-message { margin: 10px 0 17px; }
.dialog-done { min-width: 128px; }
@keyframes show-dialog {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 850px) {
  .page-width { width: calc(100% - 40px); }
  .hero h1 { font-size: clamp(3.15rem, 8vw, 5rem); }
}
@media (max-width: 620px) {
  .page-width { width: calc(100% - 28px); }
  .header-inner { min-height: 64px; }
  .brand-mark { width: 34px; height: 37px; font-size: 17px; }
  .demo-button { gap: 7px; padding-inline: 9px; }
  .hero {
    min-height: 0;
    margin-top: 14px;
    padding-top: clamp(176px, 52vw, 260px);
    align-items: end;
    border-radius: 18px;
  }
  .hero-art { background-size: auto 90%; background-position: 95% -60px; }
  .hero-art::after { background: linear-gradient(180deg, transparent 12%, #15244317 32%, #152443 65%); }
  .hero-copy { padding: 0 19px 24px; }
  .hero-date { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
  .hero h1 em { display: inline; }
  .hero-subtitle { margin: 11px 0 17px; }
  .hero-actions { gap: 7px; }
  .hero-actions .gold-button { padding-inline: 13px; }
  .hero-actions .quiet-button { padding-inline: 10px; }
  .calendar-section { padding-top: 27px; }
  .calendar-header { display: grid; gap: 13px; margin-bottom: 16px; }
  .calendar-caption { margin-top: 5px; }
  .progress { padding-bottom: 0; }
  .calendar-board { border-radius: 17px; padding: 14px 8px 20px; }
  .board-legend { gap: 6px 13px; padding-bottom: 13px; }
  .honeycomb-frame { width: min(430px, 100%); }
  .honeycomb {
    --cell-height: calc(100cqw / 4 * 1.08);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(9, var(--row-step));
  }
  .honey-cell { grid-row: var(--mobile-row); grid-column: var(--mobile-column) / span 2; width: calc(100% - 5px); }
  .honey-cell .cell-number { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
