:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #202127;
  background: #fafafb;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  padding: 2.5rem 1.5rem;
}

main {
  width: 100%;
  max-width: 64rem;
  margin: auto;
  text-align: center;
}

.logo {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 2rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.875rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 span { display: block; }

h1 span + span { color: #555761; }

nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
  width: max-content;
  max-width: 100%;
  margin: 2.5rem auto 0;
}

nav a {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: 0.5rem;
  min-height: 4rem;
  min-width: 0;
  padding: 1rem 0.75rem;
  border: 1px solid #e1e2e7;
  border-radius: 1rem;
  color: #30323a;
  background: #fff;
  box-shadow: 0 2px 3px rgb(25 25 35 / 2%), 0 5px 16px rgb(25 25 35 / 3%);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

nav a span {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
}

nav a svg {
  grid-column: 3;
  width: 1.25rem;
  height: 1.25rem;
  color: #c91855;
}

@media (hover: hover) {
  nav a:hover {
    border-color: #e91e63;
    box-shadow: 0 4px 18px rgb(233 30 99 / 9%);
    transform: translateY(-2px);
  }
}

a:focus-visible {
  outline: 3px solid #b71950;
  outline-offset: 4px;
}

nav a:active { transform: translateY(0); }

.site-footer {
  margin-top: 2rem;
  color: #6b6d76;
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-footer p { margin: 0; }

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer a:hover { color: #b71950; }

@media (max-width: 38rem) {
  .logo {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.75rem;
  }

  nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
  }
}

@media (max-height: 30rem) and (min-width: 32rem) {
  body { padding: 1.5rem 1rem; }
  .logo {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
  }
  h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
  nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.5rem;
  }
  nav a {
    min-height: 3.25rem;
    padding: 0.625rem;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  nav a { transition: none; }
  nav a:hover { transform: none; }
}
