:root {
  color-scheme: dark;
  --background-start: #1c2028;
  --background-end: #16181c;
  --surface: #101114;
  --surface-pressed: #08090b;
  --border: rgba(107, 113, 133, 0.28);
  --text: #cfd3e0;
  --heading: #fcfbf9;
  --muted: rgba(190, 199, 219, 0.78);
  --coral: #e8655a;
  --nav-coral: #f0786e;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at top right, rgba(232, 101, 90, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--background-start), var(--background-end));
  color: var(--text);
}

main {
  width: min(100% - 2rem, 44rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.topbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 3rem;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  margin-left: auto;
  gap: 1.25rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

nav a {
  padding: 0.25rem 0.4rem;
  border-radius: 0.4rem;
  color: var(--heading);
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(232, 101, 90, 0.12);
  color: var(--nav-coral);
}

nav a[aria-current="page"] {
  color: var(--nav-coral);
}

a {
  color: var(--coral);
  text-underline-offset: 0.22rem;
}

.brand-link {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 5rem;
  height: auto;
  margin: 0;
}

h1 {
  max-width: 12ch;
  margin: 0 0 1rem;
  color: var(--heading);
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1.legal-title {
  max-width: none;
  font-size: clamp(1.65rem, 5.6vw, 2.66rem);
}

.support-title {
  max-width: none;
  margin-bottom: 0.5rem;
  font-size: clamp(1.68rem, 6.3vw, 3.15rem);
}

h2 {
  margin: 0 0 0.5rem;
  color: var(--heading);
  font-size: 1.25rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
}

.intro,
.meta,
.tip {
  color: var(--muted);
}

.intro {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: 1.08rem;
}

.support-card .intro {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.meta {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.legal-card section + section,
.legal-card h2:not(:first-child) {
  margin-top: 1.75rem;
}

.legal-card p {
  white-space: pre-wrap;
}

.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  margin: 0 0 2rem;
  padding: 0.2rem 0.9rem;
  border-radius: 0.3rem;
  background: var(--coral);
  color: var(--surface-pressed);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.email-button:hover {
  opacity: 0.9;
}

.email-button:active {
  transform: scale(0.98);
}

.email-button:focus-visible {
  outline: 3px solid rgba(232, 101, 90, 0.35);
  outline-offset: 3px;
}

.details {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.details div {
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.details dt {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.details dd {
  margin: 0;
}

.tip {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
}

@media (min-width: 30.01rem) {
  main {
    padding-top: calc(2rem + 20px);
  }

  .topbar {
    position: relative;
    isolation: isolate;
  }

  .topbar::before {
    position: absolute;
    z-index: -1;
    top: calc(-2rem - 20px);
    right: calc(50% - 50vw);
    bottom: -1.5rem;
    left: calc(50% - 50vw);
    background: rgba(8, 9, 11, 0.55);
    content: "";
  }
}

@media (max-width: 30rem) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin: -2rem -1rem 2.5rem;
    padding: 1.5rem 1rem 1rem;
    background: rgba(8, 9, 11, 0.55);
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    gap: 0.5rem;
    font-size: 1rem;
  }

  nav a {
    padding-inline: 0.25rem;
  }
}
