:root {
  --field: #100818;
  --plate: #241333;
  --mist: #6e5a8a;
  --teal: #3ecfc2;
  --amber: #e3a23a;
  --silver: #e7eef6;
}

html {
  height: 100%;
  background: var(--field);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 18%, rgba(110, 90, 138, 0.45), rgba(110, 90, 138, 0) 28rem),
    var(--field);
  color: var(--silver);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

.mast,
main {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
}

.mast {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.dial {
  width: min(220px, 46vw);
  height: auto;
}

.ring,
.hand {
  transform-box: fill-box;
  transform-origin: center;
}

.ring {
  animation: spin-ring 180s linear infinite;
}

.hand-minute {
  transform: rotate(300deg);
  animation: spin-minute 360s linear infinite;
}

.hand-hour {
  transform: rotate(140deg);
  animation: spin-hour 90s linear infinite;
}

h1,
h2,
p {
  margin: 0;
  color: var(--silver);
}

h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
}

.guides {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.guide {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 44px;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(62, 207, 194, 0.45);
  border-radius: 1rem;
  background: var(--plate);
  color: var(--silver);
  text-decoration: none;
}

.guide h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.price {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.amount {
  color: var(--amber);
  font-size: 1.25rem;
}

.guide p:last-child {
  font-size: 1rem;
  line-height: 1.45;
}

.guide:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.flips {
  margin: 1.5rem 0 2.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(231, 238, 246, 0.25);
}

.flips h2 {
  font-size: 1.35rem;
  font-weight: 600;
}

.flips p {
  margin-top: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

@media (min-width: 720px) {
  .guides {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ring,
  .hand-hour,
  .hand-minute {
    animation: none;
  }
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-minute {
  from { transform: rotate(300deg); }
  to { transform: rotate(660deg); }
}

@keyframes spin-hour {
  from { transform: rotate(140deg); }
  to { transform: rotate(500deg); }
}
