:root {
  color-scheme: light dark;
  --accent: #b3410e;
  --edge: color-mix(in srgb, currentColor 25%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root { --accent: #f0864a; }
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  position: static;
  display: inline-block;
  padding: 0.25rem 0.5rem;
}

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

/* Skip-link target: receives programmatic focus, shouldn't show a ring. */
main:focus {
  outline: none;
}

h1 {
  margin-bottom: 0;
}
.tagline {
  margin-top: 0.25rem;
}
.pitch {
  margin-top: 0.25rem;
  font-size: 1.0625rem;
  max-width: 38rem;
}

header.site {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--edge);
  padding-bottom: 0.5rem;
}
.brand {
  font-weight: bold;
  margin: 0;
}
.brand a {
  color: inherit;
  text-decoration: none;
}
nav[aria-label="Account"] {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}
input {
  font: inherit;
  display: block;
  width: 100%;
  max-width: 20rem;
  padding: 0.4rem;
  margin: 0.25rem 0 1rem;
}
button {
  font: inherit;
  padding: 0.4rem 1rem;
}
.linklike {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

textarea {
  font: inherit;
  display: block;
  width: 100%;
  max-width: 20rem;
  padding: 0.4rem;
  margin: 0.25rem 0 1rem;
}
fieldset {
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  margin: 1rem 0;
  max-width: 20rem;
}
legend {
  font-weight: bold;
  padding: 0 0.25rem;
}
.check {
  display: block;
  margin: 0.25rem 0;
  font-weight: normal;
}
.hint {
  font-weight: normal;
  font-size: 0.875rem;
  opacity: 0.8;
}

.sessions li,
.activity li {
  margin-bottom: 0.75rem;
}
.notes {
  opacity: 0.85;
  font-style: italic;
}
.when {
  opacity: 0.7;
  font-size: 0.875rem;
}
form.inline {
  display: inline;
  margin-left: 0.5rem;
}
.danger {
  margin-top: 3rem;
  font-size: 0.875rem;
}
.error {
  font-weight: bold;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0;
  margin: 1rem 0;
  list-style: none;
}
nav a {
  color: var(--accent);
}
nav a[aria-current="page"] {
  color: inherit;
  font-weight: bold;
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
caption.visually-hidden,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
th, td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--edge);
}
th[scope="row"] {
  font-weight: normal;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.empty {
  font-style: italic;
  margin: 3rem 0;
}
.queued {
  font-weight: bold;
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  padding: 1rem;
}

.your-circles {
  border: 1px solid var(--edge);
  border-radius: 0.5rem;
  padding: 0.25rem 1rem;
  margin: 1rem 0;
}
.your-circles h2 {
  font-size: 1rem;
  margin: 0.5rem 0 0.25rem;
}
.your-circles ul {
  margin: 0.25rem 0;
}

.members {
  padding-left: 1.25rem;
}
ul.promise li {
  margin-bottom: 1rem;
}
.unclaimed {
  font-style: italic;
  opacity: 0.75;
}

svg.qr {
  display: block;
  width: min(100%, 16rem);
  height: auto;
  margin: 1rem 0;
}
.claim-url {
  word-break: break-all;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
}

@media print {
  header.site, footer, .no-print {
    display: none;
  }
  svg.qr {
    width: 60mm;
  }
}

footer {
  margin-top: 3rem;
  border-top: 1px solid var(--edge);
  font-size: 0.875rem;
}
