html { background: #fff; color: #000; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.5;
  text-align: center;
}

main {
  width: min(100% - 2rem, 70ch);
  margin: 2rem auto;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: normal; }
h2 { font-size: 1.5rem; font-weight: normal; }

#answer { font-size: clamp(3rem, 20vw, 10rem); line-height: 1; }
#answer-detail { margin: 1rem 0; }
#price-history { margin: .5rem auto 3rem; }
#sparkline { display: inline-block; width: min(6em, 100%); height: auto; vertical-align: middle; }
#nearby-message { margin-bottom: 1.5em; }

#station-price { font-size: 2rem; }
#station-name { font-weight: bold; }

#other-stations { margin-top: 1.5rem; font-size: 1rem; }
#other-stations h3 { font-size: 1rem; font-weight: normal; }
#other-station-list { list-style: decimal inside; padding: 0; }
#other-station-list li { margin: 1rem 0; }

button, .directions-link {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: .5rem .75rem;
  font: inherit;
}

button { cursor: pointer; }
button[aria-disabled="true"] { cursor: wait; }
.directions-link { display: inline-flex; align-items: center; justify-content: center; }

a { color: #0645ad; }
a:visited { color: #551a8b; }
a:focus-visible, button:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

footer { margin-top: 3rem; font-size: 1rem; }
footer p { margin: .25rem 0; }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
