:root {
  --bg: #f6f3ea;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #24303a;
  --muted: #5a6873;
  --line: rgba(36, 48, 58, 0.12);
  --accent: #f4b942;
  --accent-2: #5aa9e6;
  --danger: #ba4a4a;
  --success: #2f8f68;
  --shadow: 0 18px 40px rgba(36, 48, 58, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 185, 66, 0.22), transparent 24%),
    radial-gradient(circle at top right, rgba(90, 169, 230, 0.20), transparent 22%),
    linear-gradient(180deg, #f8f4ec 0%, #f3f0e8 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246, 243, 234, 0.80);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.page-main {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #ffd97d);
  box-shadow: 0 10px 20px rgba(244, 185, 66, 0.30);
  font-size: 1.2rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand__title {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand__subtitle {
  font-size: 0.88rem;
  color: var(--muted);
}

.nav-toggle {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font: inherit;
  cursor: pointer;
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.site-nav a,
.site-nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav button:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface);
  border-color: var(--line);
}

.site-nav__status {
  color: var(--success);
  font-weight: 700;
}

.site-main {
  flex: 1;
}

.page-main {
  padding: 2rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero__copy,
.hero__side,
.section-card {
  padding: 1.4rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(244, 185, 66, 0.17);
  color: #8b6200;
  font-size: 0.88rem;
  font-weight: 700;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
}

.hero h1 {
  margin-top: 0.95rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.lead {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  background: var(--text);
  color: white;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.button:hover,
button.button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.button--secondary {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--line);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.countdown {
  display: grid;
  gap: 1rem;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.countdown__item {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.66);
  border: 1px solid var(--line);
  text-align: center;
}

.countdown__value {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
}

.countdown__label {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-grid {
  align-items: stretch;
}

.landing-grid > .section-card {
  height: 100%;
}

.section-header {
  margin-bottom: 1rem;
}

.section-header p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.event-briefing {
  display: grid;
  gap: 1rem;
}

.event-briefing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 0;
}

.event-briefing__grid div {
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.55);
}

.event-briefing dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.event-briefing dd {
  margin: 0.3rem 0 0;
  font-weight: 800;
}

.page-intro {
  margin-bottom: 1rem;
}

.page-card {
  width: 100%;
}

[data-protected-content] > .card + .card {
  margin-top: 1rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.faq-question-form {
  margin-top: 1.2rem;
}

.entry,
.info-block,
.form-shell,
.notice,
.chronicle-item {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.entry__meta,
.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.blog-toggle__icon {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.38rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 160ms ease, border-color 160ms ease;
}

.blog-toggle__body {
  display: grid;
  gap: 0.45rem;
}

.blog-toggle__teaser {
  display: block;
}

.blog-toggle:hover .blog-toggle__icon,
.blog-toggle[aria-expanded="true"] .blog-toggle__icon {
  border-color: var(--text);
}

.blog-toggle[aria-expanded="true"] .blog-toggle__icon {
  transform: rotate(45deg);
}

.blog-content[hidden] {
  display: none;
}

.blog-content {
  margin-left: 1.9rem;
}

.chronicle-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.2fr;
  gap: 1rem;
  align-items: start;
}

.sq-memory {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.sq-memory__toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  list-style: none;
}

.sq-memory__toggle::-webkit-details-marker {
  display: none;
}

.sq-memory__title {
  display: block;
  margin-top: 0.8rem;
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 800;
}

.sq-memory__arrow {
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease, border-color 160ms ease;
  flex: 0 0 auto;
}

.sq-memory__toggle:hover .sq-memory__arrow,
.sq-memory[open] .sq-memory__arrow {
  border-color: var(--text);
}

.sq-memory[open] .sq-memory__arrow {
  transform: rotate(-135deg);
}

.sq-memory__content {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.sq-memory__figure {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.sq-memory__image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: initial;
  border-radius: var(--radius-lg);
  background: rgba(36, 48, 58, 0.08);
  border: 1px solid var(--line);
}

.sq-memory__caption {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 700;
  text-align: center;
  max-width: 72ch;
  margin: 0 auto;
}

.media-placeholder {
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(244,185,66,0.12), rgba(90,169,230,0.12));
  text-align: center;
  padding: 1rem;
}

.chronicle-meta {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(90,169,230,0.14);
  color: #24689a;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--single {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field--full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
}

.choice-list {
  display: grid;
  gap: 0.75rem;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.35;
}

.choice-option input {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

.rating-stack {
  display: grid;
  gap: 1.35rem;
  margin-top: 1rem;
}

.rating-field {
  border: 1px solid rgba(244, 185, 66, 0.42);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.6);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem;
}

.rating-field legend {
  padding: 0 0.35rem;
  font-weight: 800;
}

.rating-field__description,
.rating-field__question,
.rating-field__prompt {
  margin: 0.55rem 0 0;
  max-width: 70ch;
}

.rating-field__description {
  color: var(--muted);
  font-size: 0.95rem;
}

.rating-field__question {
  font-weight: 700;
}

.rating-field__prompt {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.45;
}

.rating-field__question,
.rating-field__prompt {
  max-width: none;
}

.rating-substack {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.rating-question {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.64);
  padding: 0.85rem;
}

.rating-question .rating-field__question {
  margin-top: 0;
  font-size: 0.98rem;
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.rating-options--compact {
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.rating-options label {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-height: 7.2rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.rating-options--compact label {
  min-height: 5.65rem;
  padding: 0.58rem;
}

.rating-options label:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 185, 66, 0.55);
}

.rating-options input {
  width: auto;
  margin: 0;
}

.rating-options span {
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 800;
}

.rating-options--compact span {
  font-size: 1.08rem;
}

.rating-options small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.rating-options--compact small {
  font-size: 0.76rem;
}

.rating-options label:has(input:checked) {
  border-color: rgba(244, 185, 66, 0.85);
  background: rgba(244, 185, 66, 0.16);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--text);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.status-message {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: var(--muted);
}

.status-message[data-tone="success"] {
  color: var(--success);
  border-color: rgba(47, 143, 104, 0.25);
}

.status-message[data-tone="error"] {
  color: var(--danger);
  border-color: rgba(186, 74, 74, 0.25);
}

.access-panel {
  display: grid;
  gap: 1rem;
}

.access-riddle-callout {
  margin-bottom: 1rem;
}

.access-riddle-callout .inline-note {
  margin-bottom: 0;
}

.access-form {
  display: grid;
  gap: 0.85rem;
}

.inline-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-removal-note {
  margin: 1rem 0 0;
}

.live-inline-slot {
  min-height: 2rem;
}

.countdown .live-inline-slot .inline-note {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}

.countdown .live-inline-slot strong {
  font-size: 1.2em;
  font-weight: 800;
}

.notice strong {
  display: block;
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

.only-protected {
  display: none;
}

body.has-access .only-protected {
  display: initial;
}

.access-required[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .hero,
  .chronicle-item,
  .grid--two,
  .event-briefing,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .event-briefing__grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0.9rem 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand__text {
    min-width: 0;
  }

  .brand__title,
  .brand__subtitle {
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    flex: 1 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.85rem;
    justify-content: flex-start;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    background: rgba(255,255,255,0.58);
    border-color: var(--line);
    white-space: normal;
    line-height: 1.25;
  }

  .site-nav__status {
    padding: 0.65rem 1rem;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .page-main,
  .site-header__inner,
  .site-footer__inner {
    width: min(var(--max-width), calc(100% - 1rem));
  }

  .hero__copy,
  .hero__side,
  .section-card {
    padding: 1rem;
  }

  .countdown__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand {
    gap: 0.65rem;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .brand__subtitle {
    font-size: 0.8rem;
  }
}


.metric-card {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.metric-card__value {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1;
  font-weight: 800;
}

.metric-card__label {
  font-weight: 700;
}

.list-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  color: var(--muted);
  background: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.entry__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.entry__title {
  font-weight: 700;
}

.entry__quantity {
  color: var(--muted);
  font-size: 0.95rem;
}


@media (max-width: 760px) {
  .rating-options {
    grid-template-columns: 1fr;
  }

  .rating-options label {
    grid-template-columns: auto auto 1fr;
    align-items: center;
    min-height: 0;
  }

  .rating-options small {
    font-size: 0.88rem;
  }
}
