:root {
  color-scheme: light;
  --page-background: #f8f5ef;
  --text-primary: #182e47;
  --text-secondary: #596575;
  --accent: #e87b65;
  --focus: #a13f30;
  --separator: rgba(24, 46, 71, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background: var(--page-background);
  color: var(--text-primary);
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

a {
  color: var(--text-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.home-shell {
  display: flex;
  flex-direction: column;
  max-width: 60rem;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.5rem, 6vw, 4rem) 2rem;
}

.homepage {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-block: 2rem clamp(4rem, 10vh, 6rem);
}

.home-brand {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.8rem);
}

.app-icon {
  display: block;
  flex: none;
  width: clamp(4.25rem, 10vw, 6.5rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 24%;
  box-shadow: 0 2px 3px rgba(106, 41, 25, 0.08),
    0 12px 30px -10px rgba(106, 41, 25, 0.22);
}

.homepage h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.intro {
  max-width: 41rem;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  font-size: clamp(1.65rem, 3.6vw, 2.6rem);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-wrap: balance;
}

.home-footer {
  padding-top: 1.6rem;
  border-top: 1px solid var(--separator);
}

.google-sign-in {
  max-width: 41rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.7rem;
  margin-top: 3.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--separator);
  font-size: 0.88rem;
}

.page-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.home-footer .page-links {
  margin-top: 1rem;
  padding-top: 0;
  border-top: 0;
  font-weight: 550;
}

.home-footer .page-links a:last-child {
  margin-inline-start: auto;
}

.site-header,
.legal-content {
  width: 100%;
  max-width: 49rem;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.site-header {
  padding-top: 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand .app-icon {
  width: 2.2rem;
  box-shadow: none;
}

.legal-content {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  font-size: 0.95rem;
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  line-height: 1.3;
  scroll-margin-top: 1.5rem;
}

.legal-content h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  letter-spacing: -0.035em;
}

.legal-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.legal-content h3 {
  margin: 2rem 0 0.8rem;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}

.legal-content p {
  margin: 0 0 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 1rem 0 1.5rem;
  padding-inline-start: 1.5rem;
}

.legal-content li + li {
  margin-top: 0.65rem;
}

.legal-content blockquote,
.legal-callout {
  margin: 1.5rem 0;
  padding-inline-start: 1.2rem;
  border-inline-start: 3px solid var(--accent);
}

.legal-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--separator);
}

.legal-content table {
  display: block;
  max-width: 100%;
  margin-block: 1.5rem;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal-content th,
.legal-content td {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--separator);
  text-align: start;
  vertical-align: top;
}

.legal-content th {
  font-weight: 650;
}

footer.site-header {
  padding-top: 0;
  padding-bottom: 2rem;
}

@media (max-width: 36rem) {
  .home-footer .page-links {
    column-gap: 1.4rem;
  }

  .home-footer .page-links a:last-child {
    margin-inline-start: 0;
  }
}
