/* Colors and sizes copied from the website's Tailwind theme and components. */
:root {
  --aur-blue-50: oklch(96.48% 0.018 229);
  --aur-blue-500: oklch(70.51% 0.142 233.78);
  --gray-200: oklch(92.8% 0.006 264.531);
  --gray-300: oklch(87.2% 0.01 258.338);
  --gray-700: oklch(37.3% 0.034 259.733);
  --gray-800: oklch(27.8% 0.033 256.848);
  --font-sans: 'Lexend', ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  margin: 0;
  padding: 2rem 1rem;
  background: var(--aur-blue-50);
  color: var(--gray-800);
  font-family: var(--font-sans);
  line-height: 1.5;
}

.page {
  width: 100%;
  max-width: 60rem;
}

/* The website's header above its hero: white, logo on the left. */
.page > header {
  padding: 1.25rem 1.5rem;
  border-radius: 0.375rem 0.375rem 0 0;
  background: #fff;
}

.logo {
  display: block;
  width: 9rem;
  height: auto;
}

/* The website's app hero: text and buttons, then a white-framed panel. */
main {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  border-radius: 0 0 0.375rem 0.375rem;
  background: var(--aur-blue-500);
  color: #fff;
}

h1 {
  margin: 0;
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  line-height: 1.35;
  opacity: 0.9;
  text-wrap: pretty;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* The website's hero buttons. */
.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 2px solid #fff;
  border-radius: 0.125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 500ms ease-in-out;
}

.button:focus-visible {
  outline: 3px solid var(--gray-800);
  outline-offset: 2px;
}

.button-primary {
  background: var(--gray-800);
  color: #fff;
}

.button-primary:hover {
  background: var(--gray-700);
}

.button-secondary {
  background: var(--gray-300);
  color: #000;
}

.button-secondary:hover {
  background: var(--gray-200);
}

.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border: 2px solid #fff;
  border-radius: 0.125rem;
  background: var(--gray-800);
  text-align: center;
}

.panel p {
  margin: 0;
  color: var(--gray-300);
  font-size: 0.9375rem;
}

.panel .address {
  display: -webkit-box;
  margin-top: 0.5rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  color: #fff;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Filled in by the page script; without it the panel stays hidden. */
.panel[hidden] {
  display: none;
}

@media (min-width: 48rem) {
  .page > header {
    padding: 1.5rem 2.5rem;
  }

  /* The panel spans the full height of the text, like the website's hero screenshot. */
  main {
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: 3rem;
    padding: 4rem 2.5rem;
  }

  main:has(.panel[hidden]) {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
