:root {
  color-scheme: light;
  --background: #f5efe6;
  --surface: #fffaf3;
  --ink: #292522;
  --muted: #695f57;
  --line: rgba(64, 54, 48, .15);
  --accent: #8a738d;
  --accent-dark: #6f5a73;
  --gold: #80571f;
  --rose: #84505d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 251, 244, .88), transparent 42%),
    var(--background);
  color: var(--ink);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.suite-topbar {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 246, .82);
  backdrop-filter: blur(16px);
}

.suite-brand-cluster,
.suite-app-brand {
  display: inline-flex;
  align-items: center;
}

.suite-brand-cluster {
  gap: 10px;
  min-width: 0;
}

.suite-ao-home {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
}

.suite-ao-home img {
  display: block;
  width: 44px;
  height: 44px;
}

.suite-app-brand {
  min-width: 0;
  gap: 9px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.18;
  text-decoration: none;
  text-transform: lowercase;
}

.suite-app-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(31, 41, 39, .11));
}

.suite-app-name {
  overflow: hidden;
  padding-bottom: 2px;
  margin-bottom: -2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  width: min(700px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px) 0 56px;
}

.probability-chart {
  padding-bottom: clamp(22px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
}

.chart-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.chart-heading-row h2,
.history h2 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .02em;
  text-transform: lowercase;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legend-line {
  display: inline-block;
  width: 20px;
  border-top: 2px solid var(--accent-dark);
}

.legend-outlook {
  border-top-color: var(--gold);
  border-top-style: dashed;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-svg-mobile {
  display: none;
}

.chart-grid {
  stroke: rgba(64, 54, 48, .11);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-axis-label,
.chart-date,
.chart-value {
  fill: var(--muted);
  font-size: 11px;
}

.chart-value {
  fill: var(--gold);
  font-weight: 720;
}

.chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-line-issued {
  stroke: var(--accent-dark);
}

.chart-line-outlook {
  stroke: var(--gold);
  stroke-dasharray: 7 7;
}

.chart-point {
  vector-effect: non-scaling-stroke;
}

.chart-point-issued {
  fill: var(--surface);
  stroke: var(--accent-dark);
  stroke-width: 2.5;
}

.chart-point-outlook {
  fill: var(--background);
  stroke: var(--gold);
  stroke-width: 2;
}

.prediction {
  padding: clamp(30px, 5vw, 44px) 0 clamp(34px, 5vw, 50px);
  border-bottom: 1px solid var(--line);
}

.prediction-statement {
  max-width: 660px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 5.5vw, 48px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.11;
  text-wrap: balance;
}

.answer-area {
  margin-top: 24px;
}

.question {
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: 690;
  line-height: 1.35;
}

.answer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.answer-button {
  min-width: 92px;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 730;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.answer-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.answer-yes {
  border: 1px solid var(--accent-dark);
  background: var(--accent-dark);
  color: #fffdf8;
}

.answer-no {
  border: 1px solid rgba(64, 54, 48, .32);
  background: transparent;
  color: var(--ink);
}

.answer-button:focus-visible,
.change-answer:focus-visible,
.suite-ao-home:focus-visible,
.suite-app-brand:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

.answer-button:disabled {
  opacity: .56;
  cursor: wait;
}

.change-answer {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.save-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--rose);
  font-size: 13px;
  line-height: 1.4;
}

.history {
  padding-top: clamp(32px, 5vw, 46px);
}

.history ol {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.history li {
  padding: 13px 0;
  border-top: 1px solid rgba(64, 54, 48, .10);
  font-size: 15px;
  line-height: 1.45;
}

.history li:first-child {
  border-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .suite-topbar {
    min-height: 58px;
    padding: 7px 12px;
  }

  .suite-ao-home {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .suite-ao-home img {
    width: 42px;
    height: 42px;
  }

  .suite-app-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .suite-app-brand {
    font-size: 16px;
  }

  .suite-app-name {
    max-width: calc(100vw - 126px);
  }

  main {
    width: min(100% - 24px, 700px);
    padding-top: 22px;
  }

  .chart-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .chart-legend {
    justify-content: flex-start;
  }

  .chart-svg-desktop {
    display: none;
  }

  .chart-svg-mobile {
    display: block;
  }

  .chart-svg-mobile .chart-axis-label,
  .chart-svg-mobile .chart-date,
  .chart-svg-mobile .chart-value {
    font-size: 13px;
  }

  .probability-chart {
    padding-bottom: 20px;
  }

  .prediction {
    padding: 30px 0 36px;
  }

  .prediction-statement {
    font-size: clamp(30px, 8.8vw, 38px);
    line-height: 1.08;
    text-wrap: pretty;
  }

  .answer-area {
    margin-top: 20px;
  }

  .history {
    padding-top: 30px;
  }

  .answer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .answer-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
