:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #233129;
  background: #f8f7f2;
  --paper: #fffefa;
  --muted: #505e53;
  --border: #d5d9d0;
  --green: #3b5d48;
  --tint: #e9eee6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: #253d30; }
:focus-visible { outline: 3px solid #456c55; outline-offset: 4px; }
section[id] { scroll-margin-top: 5rem; }
p { line-height: 1.65; margin: 0; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1, h2 { letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 4vw, 3.45rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }

.container { width: min(100% - 2rem, 69rem); margin-inline: auto; }
.skip-link { position: absolute; inset: .5rem auto auto 1rem; transform: translateY(-180%); background: var(--paper); z-index: 3; padding: .65rem; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 2; background: #f8f7f2; border-top: 2px solid #879887; border-bottom: 1px solid var(--border); }
.header-inner { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.wordmark { font-weight: 750; color: inherit; text-decoration: none; }
nav { display: flex; gap: .35rem 1.3rem; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); padding-block: .45rem; }
nav a:hover { text-decoration: underline; }

.hero {
  background-color: #eeebe0;
  background-image: linear-gradient(90deg, #eeebe0 8%, #eeebe0 26%, transparent 63%), url("./red-square.webp");
  background-position: center, right 46%;
  background-repeat: no-repeat;
  background-size: 100% 100%, 76% auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.hero-panel, .card, .source-panel { background: var(--paper); border: 1px solid var(--border); }
.hero-panel, .source-panel { border-radius: 1.25rem; padding: clamp(1.25rem, 3.4vw, 2.6rem); box-shadow: 0 12px 32px -24px #3b5d4866; }
.hero-panel { max-width: 36.5rem; }
.hero-panel h1 span { display: block; margin-top: .16em; font-size: .84em; }
.hero-panel p { margin-top: 1.15rem; color: var(--muted); font-size: 1.085rem; max-width: 34rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.8rem; padding: .6rem 1.15rem; border-radius: .6rem; border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 650; text-align: center; text-decoration: none; }
.button:hover { color: #fff; background: #2d4b39; }
.button-secondary { background: var(--paper); color: var(--green); border-color: var(--border); }
.button-secondary:hover { color: #253d30; background: var(--tint); }

.section { padding-block: clamp(2.6rem, 6vw, 5.2rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.card { border-radius: 1rem; padding: clamp(1.15rem, 2vw, 1.6rem); }
.card p { color: var(--muted); margin-top: .8rem; }
.card a { display: inline-block; margin-top: .85rem; font-weight: 600; }
.tinted { background: var(--tint); border-block: 1px solid var(--border); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.5rem 3rem; }
.intro { margin-block: 1rem; color: var(--muted); max-width: 42ch; }
.text-link { font-weight: 600; }
.plain-list { padding-left: 1.2rem; color: var(--muted); margin-bottom: 0; line-height: 1.55; }
.plain-list li + li { margin-top: .55rem; }
.faq { display: grid; gap: .7rem; max-width: 50rem; margin-top: 1.65rem; }
details { padding: 1rem 1.15rem; background: var(--paper); border: 1px solid var(--border); border-radius: .75rem; }
summary { cursor: pointer; font-weight: 650; line-height: 1.4; }
summary::marker { color: var(--green); }
details p { margin-block: .9rem .6rem; color: var(--muted); }
details a { display: inline-block; margin-bottom: .15rem; }

.source-section {
  background-color: var(--tint);
  background-image: linear-gradient(90deg, #e9eee6 14%, #e9eee6 33%, #e9eee648 72%), url("./flag-background.webp");
  background-position: center, right 34%;
  background-repeat: no-repeat;
  background-size: 100% 100%, 72% auto;
}
.source-panel { max-width: 40rem; }
.source-list { display: grid; gap: .65rem; margin: 1.15rem 0; padding-left: 1.2rem; }
.source-note { color: var(--muted); font-size: .925rem; }
.site-footer { padding-block: 1.4rem; color: var(--muted); border-top: 1px solid var(--border); font-size: .875rem; }

@media (max-width: 55rem) {
  .hero {
    position: relative;
    isolation: isolate;
    padding: 2rem 0 clamp(12rem, 37vw, 18rem);
    background-image: none;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: clamp(14.5rem, 51vw, 25rem);
    background: linear-gradient(180deg, #eeebe0, #eeebe000 38%), url("./red-square.webp") center 45% / cover no-repeat;
  }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .source-section {
    padding-top: clamp(7rem, 24vw, 12rem);
    background-image: linear-gradient(0deg, #e9eee6 50%, #e9eee626 100%), url("./flag-background.webp");
    background-position: center, center 15%;
    background-size: 100% 100%, 100% auto;
  }
}

@media (max-width: 35rem) {
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; justify-content: flex-start; gap: .2rem; padding-block: .65rem; }
  nav { gap: .25rem 1rem; }
  main section[id] { scroll-margin-top: 1rem; }
  .hero-links a { flex: 1 1 9.5rem; }
}
