/* FlagFirst website. Tokens from the app (design/BRIEF.md, Sharecut kit).
   No web fonts are loaded: Inter is used when it is installed, otherwise the
   system font. Red is only a small accent, as in the app. */
:root {
  --ink: #04342C;
  --stage-deep: #032C25;
  --accent: #0F6E56;
  --mint: #9FE1CB;
  --mint-soft: #CFEFE2;
  --page: #F2F5F3;
  --card: #FFFFFF;
  --sunken: #E9EEEB;
  --text: #12201B;
  --muted: #59655F;
  --flag: #D23A30;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--card);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--card); color: var(--ink); padding: 8px 14px;
  border-radius: 0 0 10px 0; font-weight: 600;
}
.skip:focus { left: 0; z-index: 10; }

/* Green header band */
.band { background: var(--ink); color: #FFFFFF; padding: 18px 0 34px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #FFFFFF; text-decoration: none; font-weight: 700;
  font-size: 19px; letter-spacing: -0.01em;
}
.brand img {
  width: 36px; height: 36px; display: block;
  border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.lang {
  color: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.lang:hover { background: rgba(255, 255, 255, 0.08); }
.band h1 {
  margin: 34px 0 6px;
  font-size: clamp(28px, 6vw, 36px); line-height: 1.15;
  letter-spacing: -0.025em; font-weight: 700;
}
.updated { margin: 0; color: var(--mint); font-size: 15px; }

/* Content */
main.wrap { padding-top: 32px; padding-bottom: 24px; }
main > p:first-child { margin-top: 0; }
h2 {
  font-size: 21px; line-height: 1.3; letter-spacing: -0.01em;
  margin: 44px 0 10px; padding-top: 22px; border-top: 1px solid var(--sunken);
  color: var(--ink); scroll-margin-top: 16px;
}
h3 { font-size: 18px; margin: 28px 0 6px; color: var(--ink); scroll-margin-top: 16px; }
p, li { color: var(--text); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, .lang:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px;
}
ul, ol { padding-left: 24px; }
li { margin: 6px 0; }
strong { font-weight: 650; color: var(--ink); }

/* "In short" box: the one place the flag red appears in the content */
.note {
  margin: 0 0 28px; padding: 16px 20px;
  background: var(--page); border-left: 3px solid var(--flag);
  border-radius: 0 14px 14px 0;
}
.note p { margin: 0 0 8px; }
.note ul { margin: 0; }
.note li { margin: 4px 0; }

/* Table of contents */
.toc {
  margin: 0 0 8px; padding: 14px 20px;
  border: 1px solid var(--sunken); border-radius: 14px; font-size: 15px;
}
.toc-title {
  margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 3px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Footer */
.foot {
  margin-top: 40px; padding-top: 22px; padding-bottom: 40px;
  border-top: 1px solid var(--sunken); color: var(--muted); font-size: 14px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.foot a { color: var(--muted); }
.foot a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot p { margin: 4px 0; color: var(--muted); }

/* Landing page */
.hero { padding: 18px 0 44px; }
.hero-mark {
  width: 84px; height: 84px; display: block; margin: 40px 0 22px;
  border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.hero h1 { margin: 0 0 12px; font-size: clamp(32px, 8vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
.lead { font-size: 19px; margin: 0 0 6px; color: #FFFFFF; max-width: 34em; }
.lead-de { font-size: 16px; margin: 0 0 26px; color: var(--mint-soft); max-width: 36em; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.store {
  display: inline-flex; flex-direction: column; line-height: 1.25;
  background: #FFFFFF; color: var(--ink); border-radius: 999px; padding: 9px 22px;
  font-weight: 700; font-size: 15px; margin: 0;
}
.store small { font-weight: 500; font-size: 12px; color: var(--muted); }
.hint { margin: 18px 0 0; font-size: 14px; color: var(--mint); }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.columns h2 { border-top: 0; padding-top: 0; margin-top: 8px; font-size: 18px; }
.columns ul { list-style: none; padding: 0; margin: 0; }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .columns { grid-template-columns: 1fr; }
  .band { padding-bottom: 28px; }
  .band h1 { margin-top: 26px; }
}

@media print {
  .band { background: none; color: #000; padding-bottom: 0; }
  .brand, .updated, .lead, .lead-de, .hint { color: #000; }
  .lang, .skip, .toc { display: none; }
  .note { border-left-color: #000; }
}
