/* RESET */

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

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-tight);
}

h1 {
  font-size: var(--t-h1);
}

h2 {
  font-size: var(--t-h2);
}

h3 {
  font-size: var(--t-h3);
  letter-spacing: normal;
  line-height: 1.3;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

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

a[href^="http"]:not(.pill) {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

a[href^="http"]:not(.pill):hover {
  color: var(--accent);
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

template {
  display: none;
}

/* FOCUS */

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  padding: var(--s3) var(--s4);
  background: var(--ground);
  color: var(--fg);
  border-radius: 0 0 var(--r-card) 0;
}

.skip:focus {
  left: 0;
}

/* SHELL */

.wrap {
  width: 100%;
  max-width: var(--w-grid);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap.text {
  max-width: var(--w-text);
}

.wrap.narrow {
  max-width: var(--w-prose);
}

main {
  flex: 1 0 auto;
  padding-bottom: var(--s9);
}

/* TYPE */

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: normal;
}

.fine {
  font-size: var(--t-fine);
  color: var(--dim);
  line-height: 1.5;
}

.lead {
  font-size: var(--t-lead);
  color: var(--dim);
  line-height: 1.38;
  letter-spacing: var(--track-tight);
}

.dim {
  color: var(--dim);
}

/* ICON */

.icon {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  letter-spacing: normal;
  text-transform: none;
  font-variant-ligatures: normal;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.icon.big {
  font-size: 48px;
}

.icon.small {
  font-size: 18px;
}

/* PILL */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  padding: 0 var(--s5);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--fg);
  font-size: var(--t-body);
  text-align: center;
  transition: background var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.pill.go {
  background: var(--accent);
  color: var(--on-accent);
}

.pill.wide {
  width: 100%;
}

.pill:hover {
  background: color-mix(in oklab, var(--panel) 70%, var(--fg));
}

.pill.go:hover {
  background: color-mix(in oklab, var(--accent) 85%, var(--fg));
}

.pill[disabled],
.pill[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  color: var(--accent);
  font-size: var(--t-body);
}

.more:hover {
  text-decoration: underline;
}

/* DROP */

.drop {
  border-top: var(--hair) solid var(--line);
}

.drop > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) 0;
  font-size: var(--t-small);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.drop > summary::-webkit-details-marker {
  display: none;
}

.drop > summary .icon {
  transition: transform var(--fast) var(--ease);
}

.drop[open] > summary .icon {
  transform: rotate(180deg);
}

/* MOTION */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
