/* Gabarito, SIL Open Font License 1.1 (github.com/naipefoundry/gabarito). */
@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/gabarito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/gabarito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #ffe8d4;
  --ink: #3a1f3d;
  --muted: #6f4f64;
  --sun: #ffc93c;
  --accent: #e4472f;
  --line: rgba(58, 31, 61, 0.2);
  --font-sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-display: "Gabarito", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --page-padding: clamp(1.25rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #241526;
  --ink: #f7e9dc;
  --muted: #cdb3c4;
  --accent: #ff8367;
  --line: rgba(247, 233, 220, 0.22);
}

/* Without JavaScript there is no data-theme, so follow the system setting. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #241526;
    --ink: #f7e9dc;
    --muted: #cdb3c4;
    --accent: #ff8367;
    --line: rgba(247, 233, 220, 0.22);
  }
}

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

body {
  display: grid;
  min-height: 100svh;
  margin: 0;
  grid-template-rows: auto 1fr auto;
  padding: var(--page-padding);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.6;
}

[hidden] {
  display: none;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  flex: none;
}

.brand-tld {
  color: var(--accent);
}

.mark-paper {
  fill: var(--ink);
}

.mark-line {
  fill: var(--paper);
}

.mark-sun {
  fill: var(--sun);
}

.controls,
.language-switch {
  display: flex;
  align-items: center;
}

.controls {
  gap: 0.5rem;
}

.theme-toggle,
.language-switch a,
.social a {
  display: grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  border-radius: 0.5rem;
}

.theme-toggle {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  cursor: pointer;
}

.theme-toggle .icon-night,
:root[data-theme="dark"] .theme-toggle .icon-day {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-night {
  display: block;
}

.language-switch img {
  display: block;
  border-radius: 0.2rem;
  box-shadow: 0 0 0 1px var(--line);
}

.language-switch a[aria-current="page"] img {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink);
}

main {
  display: grid;
  align-content: center;
  width: min(100%, 70rem);
  margin: 0 auto;
}

.notice {
  padding: clamp(2rem, 8vh, 6rem) 0;
  animation: reveal 1s var(--ease-out) both;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.1em;
}

.lead {
  max-width: 32rem;
  margin: 2.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.policy {
  max-width: 42rem;
  padding: 1rem 0 clamp(2rem, 6vh, 4rem);
}

.policy:not(:target) {
  display: none;
}

.policy h2,
.policy h3 {
  font-family: var(--font-display);
  line-height: 1.2;
}

.policy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.policy h3 {
  margin: 2rem 0 0.25rem;
  font-size: 1.15rem;
}

.policy p,
.policy address {
  margin: 0.5rem 0 0;
}

.policy address {
  font-style: normal;
}

.policy-summary {
  font-weight: 600;
}

.policy-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  max-width: 46rem;
  margin: 0;
}

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  color: var(--ink);
}

.social-label {
  font-weight: 600;
}

.social ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice {
    animation: none;
  }
}
