@font-face {
  font-family: Jost;
  src: url('/assets/jost-latin-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/cormorant-garamond-latin-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/cormorant-garamond-latin-italic-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1d2e40;
  --cream: #f4eee3;
  --paper: #fbf6ec;
  --copper: #bd9570;
  --accent: #875d38;
  --rule: #d6c3ad;
  --muted: #56606a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

body {
  display: grid;
  grid-template-columns: minmax(245px, 34%) minmax(0, 1fr);
  min-height: 100svh;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.4 Jost, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

p, h1 { margin: 0; }

.brand {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 3vh, 28px);
  height: 100svh;
  padding: clamp(20px, 3vw, 48px);
  background: var(--ink);
  color: var(--paper);
}

.brand__identity {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand__logo {
  width: clamp(46px, 5vw, 74px);
  height: auto;
  border-radius: 50%;
  background: var(--cream);
}

.brand__name {
  font: 600 clamp(2rem, 3.5vw, 3.5rem)/.84 var(--serif);
  letter-spacing: .04em;
}

.brand__subtitle {
  margin-top: .6em;
  color: #e6c5a4;
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.review-summary {
  display: grid;
  align-content: center;
  min-height: 0;
}

.review-summary__title {
  margin: 0 0 14px;
  font: 600 clamp(1.8rem, 3.3vw, 3.25rem)/1 var(--serif);
}

.review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: clamp(5px, 1.4vh, 14px) 10px;
  border-top: 1px solid #ffffff29;
  color: #e5ddd0;
  font-size: clamp(.83rem, 1.4vw, 1.12rem);
  line-height: 1.2;
}

.review-list li:last-child { border-bottom: 1px solid #ffffff29; }

.review-list li[aria-current="step"] {
  background: #30465b;
  box-shadow: inset 2px 0 var(--copper);
  color: var(--paper);
}

.review-list__score {
  color: #d1c8bc;
  font-size: .8em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.review-list__score.is-rated { color: #e6c5a4; font-size: 1em; font-weight: 600; }

.kiosk {
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(100%, 1080px);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(22px, 4.8vh, 56px) clamp(26px, 5vw, 94px);
}

.kiosk__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  align-items: baseline;
  gap: 12px 18px;
}

.kicker, .step-count {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.kicker { color: var(--accent); }
.step-count { color: var(--muted); }

.step-track {
  display: grid;
  grid-column: 1 / -1;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
}

.step-track span { height: 3px; background: var(--rule); }
.step-track .is-past { background: var(--copper); }
.step-track .is-current { background: var(--ink); }

.screen { display: grid; grid-template-rows: 1fr auto; }

.screen__body {
  display: grid;
  align-content: center;
  gap: clamp(22px, 5vh, 50px);
  padding-block: 26px;
}

.question { display: grid; gap: 8px; }

.prompt {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

h1 {
  font: 600 clamp(3rem, 6vw, 7rem)/.94 var(--serif);
  letter-spacing: -.04em;
  text-wrap: balance;
}

h1:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.rating {
  display: grid;
  gap: 10px;
  width: 100%;
}

.stars, .keyboard { display: grid; gap: clamp(8px, 1vw, 14px); }
.stars { grid-template-columns: repeat(5, minmax(0, 1fr)); }

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms, border-color 150ms, color 150ms, transform 120ms var(--ease);
}

button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:enabled:active { transform: translateY(1px) scale(.975); }
button:disabled { cursor: default; }

.star-btn, .keyboard button {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
}

.star-btn {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  min-height: clamp(74px, 13vh, 122px);
  padding: 8px 0;
  font: 600 clamp(1.9rem, 4vw, 3.25rem)/.9 var(--serif);
  font-variant-numeric: lining-nums;
}

.star-btn__mark {
  color: var(--accent);
  font: 400 clamp(.9rem, 1.6vw, 1.25rem)/1 Georgia, serif;
}

.star-btn.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.star-btn.is-selected .star-btn__mark { color: #e6c5a4; }

.rating__scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .95rem;
}

.nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: clamp(10px, 2.3vh, 22px);
  border-top: 1px solid var(--rule);
}

.nav-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px clamp(12px, 2vw, 26px);
  font-size: 1rem;
  font-weight: 550;
}

.nav-btn--quiet { background: transparent; }
.nav-btn--quiet:disabled { opacity: .45; }
.nav-btn--primary { background: var(--ink); color: var(--paper); }
.nav-btn--primary:disabled { background: #e7dac8; color: var(--muted); }

.phone-body {
  gap: clamp(12px, 2.5vh, 24px);
  text-align: center;
}

.phone-body h1 { font-size: clamp(2.8rem, 4.8vw, 5.25rem); }

.phone-pad {
  display: grid;
  gap: clamp(8px, 1.8vh, 16px);
  width: min(100%, 410px);
  margin-inline: auto;
}

.phone-display {
  display: grid;
  place-items: center;
  min-height: clamp(48px, 8vh, 70px);
  border: 1px solid var(--rule);
  border-bottom: 2px solid var(--copper);
  background: var(--paper);
  font-size: clamp(1.3rem, 3.2vh, 1.9rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: .07em;
  white-space: pre;
}

.phone-display.is-placeholder { color: var(--muted); }

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

.keyboard button {
  min-height: clamp(44px, 7.5vh, 70px);
  padding: 4px;
  font-size: clamp(1.3rem, 3.3vh, 1.8rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.keyboard .keyboard__edit {
  background: transparent;
  font-size: .96rem;
}

.keyboard button:active { background: var(--ink); color: var(--paper); }

.thanks {
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.thanks__check {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.6rem;
}

.thanks h1 { font-size: clamp(3.25rem, 6vw, 6.5rem); }
.thanks em { display: block; color: var(--accent); font-weight: 500; }
.thanks__note { color: var(--muted); font-size: .95rem; }

@media (hover: hover) and (pointer: fine) {
  button:enabled:hover { transform: translateY(-1px); }
  button:enabled:active { transform: translateY(1px) scale(.975); }
  .star-btn:hover:not(.is-selected), .keyboard button:hover {
    border-color: var(--accent);
    background: #f0e2d0;
    color: var(--ink);
  }
  .nav-btn--quiet:enabled:hover { background: #eaddcc; }
  .nav-btn--primary:enabled:hover { background: #30465b; }
}

@media (max-width: 760px), (max-width: 900px) and (orientation: portrait) {
  body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }

  .brand {
    grid-template-rows: auto;
    height: auto;
    padding: 12px 20px;
  }

  .review-summary { display: none; }
  .kiosk { min-height: 0; padding: 20px; }
  h1 { font-size: clamp(2.75rem, 9vw, 4.8rem); }
}

@media (max-height: 660px) {
  .screen__body { gap: 14px; padding-block: 16px; }
  .keyboard, .phone-pad { gap: 8px; }
}

@media (max-width: 480px) and (max-height: 650px) {
  .brand { padding-block: 8px; }
  .kiosk { padding-block: 14px; }
  .phone-body h1 { font-size: clamp(2.3rem, 9vw, 2.8rem); }
}

@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
  button:enabled:hover, button:enabled:active { transform: none; }
}
