:root {
  --purple-deep: #3e1b4f;
  --purple-mid: #6b2e6d;
  --green: #0f6b4a;
  --gold: #d6a12b;
  --cream: #f7f1e6;
  --ink: #1f1a23;
  --muted: #61566a;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(30, 20, 40, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Trebuchet MS", sans-serif;
  background: radial-gradient(circle at top left, #fbe7d3 0%, #f7f1e6 45%, #f0efe9 100%);
  color: var(--ink);
  min-height: 100vh;
}

.glow {
  position: fixed;
  inset: -20% auto auto -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(214, 161, 43, 0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.hero {
  padding: 2.6rem 6vw 0.8rem;
  max-width: 1100px;
  margin: 0 auto;
  animation: floatIn 0.8s ease-out both;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--green);
  font-weight: 600;
  margin: 0 0 1rem;
}

h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1rem;
  max-width: 720px;
  color: var(--muted);
  margin: 0 0 1.4rem;
}


.year-panel {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  background: var(--card);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: center;
}

.label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple-mid);
  font-weight: 600;
}

.year-controls {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  justify-self: start;
}

input[type="number"] {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  text-align: center;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--purple-deep);
  font-weight: 700;
  appearance: textfield;
  line-height: 1;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.step {
  border: none;
  background: var(--purple-deep);
  color: #fff;
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  background: var(--green);
}

.date-display {
  text-align: right;
  justify-self: end;
}

.date-hero {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-top: 0.2rem;
  color: var(--purple-deep);
}

.date-sub {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6vw 3rem;
}

.section {
  margin-top: 1.6rem;
  animation: fadeUp 0.8s ease-out both;
}

.section:nth-of-type(2) {
  animation-delay: 0.1s;
}

.section:nth-of-type(3) {
  animation-delay: 0.2s;
}

.section:nth-of-type(4) {
  animation-delay: 0.3s;
}

.section h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.section-note {
  color: var(--muted);
  margin-top: 0;
}

.verdict {
  display: grid;
  gap: 0.5rem;
}

.timeline {
  margin: 0.2rem 0 0.85rem;
}

.timeline-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.timeline-stack {
  position: relative;
  display: grid;
  gap: 0.7rem;
  padding-top: 0.8rem;
}

.timeline-row {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.segment {
  flex: var(--days) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.segment-early {
  background: rgba(214, 161, 43, 0.35);
  color: #5c3b00;
}

.segment-early-soft {
  background: rgba(214, 161, 43, 0.22);
  color: #5c3b00;
}

.segment-mid {
  background: rgba(15, 107, 74, 0.2);
  color: #0c4b35;
}

.segment-late-soft {
  background: rgba(107, 46, 109, 0.18);
  color: #3e1b4f;
}

.segment-late {
  background: rgba(107, 46, 109, 0.35);
  color: #3e1b4f;
}

.short-label {
  display: none;
}

.timeline-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  transform: translateX(-50%);
  transition: left 0.6s ease;
  pointer-events: none;
}

.marker-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--purple-deep);
  border-radius: 999px;
}

.marker-label {
  position: absolute;
  top: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--purple-deep);
  border: 1px solid rgba(62, 27, 79, 0.2);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(30, 20, 40, 0.12);
  white-space: nowrap;
}


.verdict-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.verdict-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(62, 27, 79, 0.08);
}

.verdict-card .result {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.4rem 0 0;
  color: var(--purple-deep);
  line-height: 1.2;
}



.table-wrap {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.card-list {
  display: none;
  gap: 0.8rem;
  margin-top: 1rem;
}

.card-item {
  background: var(--card);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(62, 27, 79, 0.08);
}

.card-item.highlight {
  border-color: rgba(107, 46, 109, 0.8);
  box-shadow: 0 0 0 2px rgba(107, 46, 109, 0.25);
}

.card-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.card-meta {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}


.expander {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.6rem 1rem;
}

.expander summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
}

.expander summary::-webkit-details-marker {
  display: none;
}

.expander[open] summary {
  margin-bottom: 0.6rem;
}

.expander-body {
  padding-bottom: 0.6rem;
}

.faq details {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.8rem 1rem;
  margin-top: 0.8rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th,
td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  font-size: 0.9rem;
}

th {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(62, 27, 79, 0.04);
}

tr:nth-child(even) td {
  background: rgba(247, 241, 230, 0.6);
}

tr.highlight td {
  background: rgba(107, 46, 109, 0.2);
  border-top: 2px solid var(--purple-mid);
  border-bottom: 2px solid var(--purple-mid);
}






footer {
  padding: 2.2rem 6vw 3rem;
  text-align: center;
  color: var(--muted);
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--purple-deep);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--green);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 2.1rem 5vw 0.9rem;
  }

  .lead {
    margin-bottom: 1.1rem;
  }

  .year-panel {
    text-align: left;
    padding: 0.9rem;
    position: sticky;
    top: 0.75rem;
    z-index: 3;
    background: var(--card);
  }

  .year-panel.compact {
    padding: 0.6rem 0.75rem;
    gap: 0.6rem;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 16px;
  }

  .year-panel.compact .label {
    display: none;
  }

  .year-panel.compact .year-controls {
    margin-top: 0;
  }

  .year-panel.compact .date-hero {
    font-size: 1.2rem;
    margin-top: 0;
  }

  .year-panel.compact .date-sub {
    display: none;
  }

  .year-controls {
    grid-template-columns: auto minmax(120px, 1fr) auto;
    gap: 0.35rem;
  }

  .date-display {
    text-align: left;
    justify-self: start;
  }

  .date-hero {
    font-size: 2rem;
  }

  .section {
    margin-top: 1.6rem;
  }

  .segment {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .full-label {
    display: none;
  }

  .short-label {
    display: inline;
  }

  th,
  td {
    padding: 0.6rem;
  }

  .table-wrap {
    display: none;
  }

  .card-list {
    display: grid;
  }
}

@media (max-width: 560px) {
  .year-panel {
    gap: 1rem;
  }

  .verdict-grid {
    grid-template-columns: 1fr;
  }

  .verdict-card .result {
    font-size: 1.25rem;
  }

  .verdict-card.mood .result {
    font-size: 1.5rem;
  }

  .verdict-card.mood {
    margin-top: 0.6rem;
  }

  .table-wrap table {
    min-width: 520px;
  }
}
