:root {
  --bg: #fffaf8;
  --surface: #ffffff;
  --text: #1f1a1c;
  --muted: #5d5458;
  --line: #eadfe2;
  --cherry: #b3123d;
  --cherry-soft: #fbe7ec;
  --leaf: #2f7a4b;
  --radius: 14px;
  --measure: 42rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151113;
    --surface: #1e191b;
    --text: #f4eef0;
    --muted: #b9adb2;
    --line: #362d31;
    --cherry: #ff5c84;
    --cherry-soft: #3a1621;
    --leaf: #6cc48d;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--cherry);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 10;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}

/* Main */

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2rem);
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.5rem;
}

h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.25rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.updated {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
}

.box {
  background: var(--cherry-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.box h2 {
  margin-top: 0;
}

.box ul {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
}

/* Home */

.hero {
  padding: 3rem 0 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--cherry);
}

.button {
  display: inline-block;
  background: var(--cherry);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  margin-top: 1rem;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #1a0b10;
  }
}

.email {
  font-weight: 600;
  word-break: break-word;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .bar {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-footer a {
  color: var(--muted);
}
