:root {
  color-scheme: light dark;

  /* Brand colors */
  --brand: #28717a;
  --accent: #1e636b;
  --focus: #64a9a7;

  /* Light appearance */
  --background: #ffffff;
  --surface: #f5faf9;
  --surface-subtle: #fbfdfd;
  --surface-code: #f1f5f5;
  --ink: #20282d;
  --ink-secondary: #334148;
  --muted: #5e6b70;
  --line: #cedcda;

  /* Callouts */
  --alert: #fff7df;
  --alert-line: #d79a22;
  --danger: #fff1f0;
  --danger-line: #b83a34;

  /* Layout */
  --header-width: 960px;
  --content-width: 880px;
  --reading-width: 760px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;

  background: var(--background);
  color: var(--ink);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.62;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Accessibility */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--background);
  color: var(--ink);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;

  border-bottom: 1px solid var(--line);

  background: color-mix(in srgb,
      var(--background) 94%,
      transparent);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--header-width);
  min-height: 68px;
  margin: 0 auto;
  padding: 12px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;

  color: var(--brand);
  font-family: "Nunito", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.logo {
  flex-shrink: 0;
  transform: translate(-0.1em, 0.1em);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

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

/* Main content */

main {
  width: 100%;
  flex: 1 0 auto;

  max-width: var(--content-width);
  margin: 0 auto;
  padding: 54px 24px 78px;
}

main.reading-width {
  max-width: var(--reading-width);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: clamp(2.35rem, 7vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  padding-top: 0.15rem;
  color: var(--accent);
  font-size: 1.47rem;
  line-height: 1.24;
  letter-spacing: -0.018em;
}

h3 {
  margin: 1.7rem 0 0.55rem;
  font-size: 1.12rem;
  line-height: 1.3;
}

p {
  margin: 0.72rem 0;
}

.lede {
  max-width: var(--reading-width);
  margin: 0 0 12px;
  color: var(--ink-secondary);
  font-size: 1.08rem;
}

.meta,
.updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.93rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin: 0.42rem 0;
}

address {
  font-style: normal;
}

/* Notices and callouts */

.notice,
.callout {
  margin: 22px 0;
  padding: 16px 18px;

  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 10px;

  background: var(--surface);
}

.callout.alert {
  border-left-color: var(--alert-line);
  background: var(--alert);
}

.callout.danger {
  border-left-color: var(--danger-line);
  background: var(--danger);
}

.callout h2,
.callout h3,
.notice h2,
.notice h3 {
  margin-top: 0;
  padding-top: 0;
}

/* Optional card style */

.card {
  margin: 28px 0 0;
  padding: 24px;

  border: 1px solid var(--line);
  border-radius: 18px;

  background: var(--surface);
}

/* Table of contents */

.toc {
  margin: 25px 0 34px;
  padding: 16px 18px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--surface-subtle);
}

.toc h2 {
  margin: 0 0 8px;
  padding: 0;
  color: var(--ink);
  font-size: 1rem;
}

.toc ol {
  columns: 2;
  column-gap: 34px;
  margin: 0;
  padding-left: 1.4rem;
}

.toc li {
  break-inside: avoid;
  margin: 0.28rem 0;
  font-size: 0.92rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* Contact cards */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}

.contact-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--background);
}

.contact-card h2,
.contact-card h3 {
  margin: 0 0 6px;
  padding: 0;
  font-size: 1.05rem;
}

.contact-card p {
  margin: 0.25rem 0;
}

/* Numbered steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps>li {
  position: relative;
  margin: 14px 0;
  padding-left: 42px;
}

.steps>li::before {
  counter-increment: step;
  content: counter(step);

  position: absolute;
  left: 0;
  top: 0;

  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: var(--accent);
  color: #fff;

  font-size: 0.88rem;
  font-weight: 800;
}

/* Inline code and separators */

code {
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
  background: var(--surface-code);
  font-size: 0.9em;
}

hr {
  margin: 2.4rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Footer */

.site-footer {
  width: 100%;
  flex-shrink: 0;

  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
}

.footer-inner {
  width: 100%;
  max-width: var(--header-width);
  margin: 0 auto;
  padding: 24px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;

  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

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

.footer-links a:hover {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Social links */

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--surface);
}

.social-links picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon {
  display: block;
  width: auto;
  height: auto;
}

.instagram-icon {
  width: 22px;
  height: 22px;
}

.snapchat-icon {
  width: 34px;
  height: 34px;
}

/* Dark mode */

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #49a2ad;
    --accent: #49a2ad;
    --focus: #71bcc4;

    --background: #0e0f10;
    --surface: #171819;
    --surface-subtle: #141617;
    --surface-code: #202324;

    --ink: #f5f5f7;
    --ink-secondary: #d7d9dd;
    --muted: #a9abb2;
    --line: rgba(255, 255, 255, 0.14);

    --alert: #2c2617;
    --alert-line: #dda945;
    --danger: #2e1b1a;
    --danger-line: #dc706b;
  }

  .contact-card {
    background: var(--surface);
  }
}

/* Responsive layout */

@media (max-width: 700px) {
  .site-header {
    position: static;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  main {
    padding-top: 38px;
  }

  .toc ol {
    columns: 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-nav {
    align-items: flex-start;
  }
}

/* Print */

@media print {
  :root {
    --background: #fff;
    --ink: #000;
    --ink-secondary: #222;
    --muted: #444;
    --line: #bbb;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .toc {
    display: none !important;
  }

  body {
    min-height: 0;
    display: block;

    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  main,
  main.reading-width {
    max-width: none;
    padding: 0;
  }

  h1 {
    font-size: 25pt;
  }

  h2 {
    break-after: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .notice,
  .callout,
  .card,
  .contact-card {
    break-inside: avoid;
    background: transparent;
  }
}