@font-face {
  font-family: Nunito;
  src: url('assets/Nunito-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url('assets/Nunito-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url('assets/Nunito-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Chewy;
  src: url('assets/Chewy-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #43250f;
  --muted: #624322;
  --lavender: #e7e1f1;
  --gold: #ffe6a0;
  --cream: #fff9ef;
  --orange: #a94a13;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--lavender) 0, #f1eaf0 190px, var(--cream) 430px);
  color: var(--ink);
  font-family: Nunito, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: #74320f; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 5; padding: 8px 14px; background: #fff; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid rgb(67 37 15 / 11%); }
.header-inner, .footer-inner {
  width: min(100% - 48px, 1040px);
  margin-inline: auto;
  display: flex;
  align-items: center;
}
.header-inner { min-height: 82px; gap: 28px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: Chewy, Nunito, sans-serif;
  font-size: 29px;
  line-height: 1;
}
.brand img { display: block; width: 42px; height: 42px; object-fit: contain; }
nav { display: flex; gap: 8px; margin-left: auto; }
nav a, .language {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
}
nav a[aria-current] { background: rgb(255 255 255 / 65%); }
nav a:hover, .language:hover { background: rgb(255 255 255 / 80%); color: var(--ink); }
.language { border: 1px solid rgb(67 37 15 / 26%); }

.document { width: min(100% - 40px, 860px); margin: 0 auto; padding: 68px 0 88px; }
.document-heading { padding: 0 20px 38px; }
.eyebrow { color: #7b3208; font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { color: var(--ink); }
h1 { margin: 12px 0 18px; font: 400 clamp(44px, 8vw, 68px)/1.12 Chewy, Nunito, sans-serif; text-wrap: balance; }
.lead { max-width: 56ch; margin: 0; font-size: clamp(18px, 2.6vw, 21px); line-height: 1.5; text-wrap: pretty; }
.updated { margin: 23px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.paper {
  padding: clamp(28px, 6vw, 64px);
  background: #fffefa;
  border: 1px solid rgb(67 37 15 / 12%);
  border-radius: 30px;
  box-shadow: 0 12px 38px rgb(67 37 15 / 5%);
}
.paper section { max-width: 68ch; }
.paper section + section { margin-top: 38px; padding-top: 36px; border-top: 1px solid rgb(67 37 15 / 12%); }
.paper h2 { margin: 0 0 11px; font: 400 clamp(27px, 4vw, 33px)/1.2 Chewy, Nunito, sans-serif; text-wrap: balance; }
.paper p { margin: 0; text-wrap: pretty; }
.paper p + p { margin-top: 15px; }
.next-link { margin: 28px 20px 0; font-weight: 700; }

.landing { width: min(100% - 40px, 760px); margin: auto; padding: 52px 0 86px; text-align: center; }
.landing-mascot { display: block; width: 132px; height: 132px; object-fit: contain; margin: 0 auto 14px; }
.landing h1 { margin-bottom: 8px; }
.landing .lead { margin-inline: auto; }
.language-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 46px; text-align: left; }
.language-card { padding: 28px; background: #fffefa; border: 1px solid rgb(67 37 15 / 12%); border-radius: 24px; box-shadow: 0 12px 38px rgb(67 37 15 / 5%); }
.language-card h2 { margin: 0 0 14px; font: 400 31px/1.2 Chewy, Nunito, sans-serif; }
.language-card a { display: block; min-height: 44px; padding: 8px 0; font-weight: 700; }

footer { margin-top: auto; border-top: 1px solid rgb(67 37 15 / 12%); background: rgb(255 230 160 / 30%); }
.footer-inner { min-height: 84px; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }

@media (max-width: 600px) {
  .header-inner, .footer-inner { width: min(100% - 32px, 1040px); }
  .header-inner { flex-wrap: wrap; min-height: 0; padding: 13px 0; column-gap: 10px; row-gap: 5px; }
  .brand { font-size: 25px; }
  .brand img { width: 36px; height: 36px; }
  nav { order: 3; width: 100%; margin-left: 0; }
  nav a { padding-inline: 10px; }
  .language { margin-left: auto; }
  .document { padding-top: 48px; padding-bottom: 56px; }
  .document-heading { padding-inline: 8px; }
  .paper { border-radius: 23px; }
  .language-cards { grid-template-columns: 1fr; margin-top: 32px; }
  .landing { padding-top: 40px; }
  .landing-mascot { width: 108px; height: 108px; }
  .footer-inner { flex-wrap: wrap; align-content: center; padding-block: 15px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
