/* The app's colours (src/styles.css). System fonts: the headers allow no font files. */
:root {
  color-scheme: light;
  --paper: #fff8ee;
  --ink: #14132b;
  --brand: #2438d6;
  --brand-dark: #16239a;
  --sun: #ffd84d;
  --muted: #55536b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0 0 0.75rem; line-height: 1.15; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band :focus-visible, .closing :focus-visible { outline-color: var(--sun); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 1; padding: 0.5rem 1rem; background: var(--paper); }

.wrap { max-width: 70rem; margin: 0 auto; padding: 3rem 1.5rem; }
.narrow { max-width: 48rem; }

.top, .bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.wordmark { color: var(--ink); font-size: 1.625rem; font-weight: 800; text-decoration: none; }
.wordmark span { color: var(--brand); }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 3.5rem; padding-top: 1.5rem; }
.hero > div { flex: 1 1 24rem; min-width: 0; }
.tagline { color: var(--brand); font-size: 1.375rem; font-weight: 800; line-height: 1.25; }
.mark { background: linear-gradient(transparent 62%, var(--sun) 62%); }
.lead { max-width: 30em; font-size: 1.3rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--brand); }
.button.secondary:hover { color: #fff; background: var(--brand-dark); }
.button.accent { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.button.accent:hover { background: #fff; border-color: #fff; color: var(--ink); }

.example h2 { font-size: 1.5rem; }
.sheet { margin-bottom: 0.9rem; padding: 1.5rem; border: 2px solid var(--ink); border-radius: 16px; background: #fff; font-size: 1.3rem; }
.sheet p { margin: 0; }
.sheet .label { margin-bottom: 0.5rem; color: var(--muted); font-size: 0.95rem; font-weight: 700; }
.translated { background: var(--brand); color: #fff; box-shadow: 8px 8px 0 var(--sun); }
.translated .label { color: #fff; }
.note { color: var(--muted); font-size: 1rem; }
.example .note { margin-top: 1.25rem; }

.grid { display: grid; gap: 1.5rem; margin: 1.5rem 0; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.steps li { border-top: 6px solid var(--brand); padding-top: 1rem; }

.band { background: var(--ink); color: var(--paper); }

.card { display: flex; flex-direction: column; height: 100%; padding: 1.5rem; border: 2px solid var(--ink); border-radius: 16px; background: #fff; }
.card .button { margin-top: auto; }
.price { font-size: 2.25rem; font-weight: 800; }

details { border-top: 2px solid var(--ink); padding: 1rem 0; }
details:last-of-type { border-bottom: 2px solid var(--ink); }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 0.75rem; }

.closing { background: var(--brand); color: #fff; text-align: center; }
