/* Change the look here: colours, font and roundness for the whole site */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --surface: #f5f5f4;
  --accent: #111111;
  --accent-text: #ffffff;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 7vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; margin-bottom: 6px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 52ch; }
.small { font-size: 14px; color: var(--muted); }

html { scroll-padding-top: 90px; }
.header { position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px max(var(--gutter), calc((100% - 1100px) / 2 + var(--gutter))); background: var(--bg); border-bottom: 1px solid #e6e6e3; }
.brand { font-weight: 700; text-decoration: none; font-size: 20px; }
.header nav { display: flex; align-items: center; gap: 22px; }
.header nav a { text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.hero { padding: 64px 0 40px; }
.section { padding: 56px 0; }
.text { max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-small { height: 40px; padding: 0 18px; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form em { font-weight: 400; color: var(--muted); font-style: normal; }
.form input, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid #d6d6d3; border-radius: calc(var(--radius) * 0.75); background: #fff; color: var(--text); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .wide { grid-column: 1 / -1; }
.form .hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; color: var(--muted); }
.form-status[data-kind="error"] { color: #c62828; }
.form-done { grid-column: 1 / -1; background: var(--surface); border-radius: var(--radius); padding: 28px; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1100px; margin: 40px auto 0; padding: 28px var(--gutter) 40px; border-top: 1px solid #e6e6e3; color: var(--muted); font-size: 14px; }
.center { min-height: 80vh; display: grid; place-content: center; justify-items: start; gap: 8px; }
.code { font-size: 64px; font-weight: 700; color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .header nav a:not(.btn) { display: none; }
  .form { grid-template-columns: 1fr; }
}
