:root {
  --night: #1b2a41;
  --paper: #f4f2ec;
  --lamp: #e3a33a;
  --slate: #5f6b7a;
  --line: rgba(95, 107, 122, 0.12);
  --radius: 8px;
  --max: 820px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--night);
  font: 400 1.0625rem/1.6 var(--font);
}

img, svg { display: block; }

a { color: var(--night); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--night);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--night);
  color: var(--paper);
  padding: .5rem .75rem;
  z-index: 10;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header { padding: 1.5rem 0 1rem; }
.site-header .wrap {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--night);
  letter-spacing: -.01em;
}
.brand svg { width: 32px; height: 32px; flex: none; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav a {
  display: inline-block;
  padding: .25rem 0;
  font-weight: 500;
  text-decoration: none;
  color: var(--slate);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--night); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--lamp); }

@media (min-width: 640px) {
  .site-header .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .nav ul { flex-direction: row; gap: 1.5rem; }
}

/* Type */
main { padding: 2rem 0 4rem; }

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 6vw, 2.875rem); font-weight: 700; max-width: 18ch; }
h2 {
  font-size: 1.375rem;
  font-weight: 700;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--lamp);
  display: inline-block;
  margin-top: 0;
}
h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: .25rem; }

p { margin: 0 0 1rem; }
.lede { font-size: 1.1875rem; color: var(--slate); max-width: 52ch; }
.muted { color: var(--slate); }

section { margin-top: 3.5rem; }
section:first-child { margin-top: 0; }

ul.plain { padding-left: 1.1rem; margin: 0 0 1rem; }
ul.plain li { margin-bottom: .35rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block;
  font: 500 1rem/1 var(--font);
  padding: .875rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--night);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--night);
}
.btn-primary { background: var(--lamp); border-color: var(--lamp); color: var(--night); }
.btn-primary:hover { background: #d6952b; border-color: #d6952b; }
.btn:not(.btn-primary):hover { background: var(--night); color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Cards */
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* Forms */
form { margin-top: 1.5rem; }
.field { margin-bottom: 1.125rem; }
.row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }

label { display: block; font-weight: 500; margin-bottom: .375rem; }
.opt { font-weight: 400; color: var(--slate); }

input, select, textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font);
  color: var(--night);
  background: #fff;
  border: 1px solid #b9bfc7;
  border-radius: var(--radius);
  padding: .7rem .8rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--night);
  outline-offset: 1px;
  border-color: var(--night);
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  margin-top: 1rem;
  padding: 0;
  border-radius: var(--radius);
}
.status:empty { display: none; }
.status.ok, .status.err { padding: .875rem 1rem; }
.status.ok { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--lamp); }
.status.err { background: #fff; border: 1px solid #a33; border-left: 4px solid #a33; color: #7a1f1f; }

/* Legal and supplied pages */
.meta { color: var(--slate); margin: -.5rem 0 1.5rem; }
.legal h2 { font-size: 1.125rem; margin-top: 2rem; }
.legal ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .35rem; }
.box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.box p { margin: 0 0 .375rem; }
.box p:last-child { margin: 0; }
.notice {
  background: #fff;
  border: 1px dashed var(--slate);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

/* Footer */
.site-footer {
  background: var(--night);
  color: var(--paper);
  padding: 2.5rem 0 3rem;
  font-size: .9375rem;
}
.site-footer a { color: var(--lamp); }
.site-footer :focus-visible { outline-color: var(--lamp); }
.site-footer .brand { color: var(--paper); margin-bottom: 1.25rem; }
.footer-cols { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: 1fr 1.5fr .8fr; } }
.footer-cols h2 {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 0;
  padding: 0;
  margin-bottom: .5rem;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: .25rem; }
address { font-style: normal; }
.copy { margin-top: 2rem; opacity: .85; }
