/* Archivo is variable on weight and width. Wide heavy cuts carry titles,
   the normal width carries reading text, and narrow caps carry labels. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/static/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/static/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #0a0c10;
  --bg-1: #0f1217;
  --bg-2: #151920;
  --bg-3: #1c212a;
  --bg-4: #252b36;
  --line: rgb(255 255 255 / 0.075);
  --line-2: rgb(255 255 255 / 0.14);
  --ink: #f3f1ec;
  --ink-2: #c9cbd1;
  --muted: #8c92a0;
  --faint: #5d6371;

  --accent: #ff6b3d;
  --accent-hi: #ff8a63;
  --accent-ink: #1c0b04;
  --accent-soft: rgb(255 107 61 / 0.15);
  --ok: #3fd68f;
  --ok-soft: rgb(63 214 143 / 0.13);
  --gold: #ffc53d;
  --gold-soft: rgb(255 197 61 / 0.14);
  --danger: #ff5c6c;
  --danger-soft: rgb(255 92 108 / 0.13);

  --radius-s: 7px;
  --radius: 10px;
  --radius-l: 18px;
  --shadow-art: 0 14px 34px -16px rgb(0 0 0 / 0.85);
  --shadow-lift: 0 26px 50px -18px rgb(0 0 0 / 0.95);
  --shadow-pop: 0 30px 80px -24px rgb(0 0 0 / 0.95);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --page: 1360px;
  --gutter: clamp(16px, 4vw, 44px);
  --topbar: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain keeps large dark areas from looking flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem); font-stretch: 115%; font-weight: 820; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-stretch: 110%; letter-spacing: -0.005em; }
h3 { font-size: 1.05rem; font-stretch: 105%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 0.12em 0.45em;
  border-radius: 6px;
  word-break: break-all;
}

.display {
  font-size: clamp(2.3rem, 1.2rem + 4vw, 4.8rem);
  font-stretch: 118%;
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 64ch; }
.muted { color: var(--muted); }
.error-text { color: var(--danger); }
.small { font-size: 0.88rem; }
.link, .prose a, .lede a, .muted a, .notice a, .card p a { color: var(--accent); font-weight: 600; }
.link:hover, .prose a:hover, .lede a:hover, .muted a:hover, .notice a:hover, .card p a:hover { text-decoration: underline; text-underline-offset: 3px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
main { flex: 1; padding-bottom: 104px; overflow-x: clip; }
.page { padding-top: 48px; }
.section { margin-top: 64px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar);
  background: rgb(10 12 16 / 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.14rem;
  font-weight: 830;
  font-stretch: 118%;
  letter-spacing: -0.015em;
  flex: none;
  white-space: nowrap;
}
.brand .logo { width: 30px; height: 30px; }
.mainnav { display: flex; gap: 2px; }
.mainnav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.15s, background 0.15s;
}
.mainnav a:hover { color: var(--ink); background: rgb(255 255 255 / 0.06); }
.mainnav a[aria-current="page"] { color: var(--ink); background: rgb(255 255 255 / 0.1); }

.topsearch { position: relative; margin-left: auto; width: min(300px, 30vw); }
.topsearch .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.topsearch input[type="search"] {
  height: 40px;
  max-width: none;
  padding-left: 40px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  border-color: transparent;
}
.topsearch input[type="search"]:hover { background: rgb(255 255 255 / 0.09); }
.topsearch input[type="search"]:focus { background: var(--bg-2); }
.topbar-signin { margin-left: auto; }

.account { position: relative; flex: none; }
.account summary { list-style: none; cursor: pointer; border-radius: 50%; }
.account summary::-webkit-details-marker { display: none; }
.account summary .avatar { --size: 36px; transition: box-shadow 0.15s; }
.account summary:hover .avatar, .account[open] summary .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--line-2); }
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 260px;
  padding: 8px;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-pop);
  animation: pop-in 0.16s var(--ease);
}
.menu-who { display: grid; gap: 1px; padding: 10px 12px 12px; margin: 0 0 6px; border-bottom: 1px solid var(--line); }
.menu-who span { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
}
.menu .icon { color: var(--muted); }
.menu a:hover, .menu button:hover, .menu a[aria-current="page"] { background: rgb(255 255 255 / 0.06); color: var(--ink); }
.menu form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  :root { --topbar: 112px; }
  .topbar-inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 62px 50px; column-gap: 14px; }
  .topsearch { width: auto; margin-left: 0; }
  .mainnav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px;
  }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { white-space: nowrap; }
  .topbar-signin { grid-column: 3; justify-self: end; }
}
@media (max-width: 900px) {
  body:not(:has(.mainnav)) { --topbar: 62px; }
  body:not(:has(.mainnav)) .topbar-inner { grid-template-rows: 62px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.94rem;
  font-weight: 720;
  font-stretch: 104%;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--ease), box-shadow 0.2s;
}
.btn:hover { background: var(--accent-hi); box-shadow: 0 8px 24px -10px rgb(255 107 61 / 0.7); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 1rem; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.85rem; }
.btn-ghost {
  background: rgb(255 255 255 / 0.07);
  border-color: var(--line-2);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.13); box-shadow: none; }
.btn-quiet { background: transparent; color: var(--ink-2); padding-inline: 10px; }
.btn-quiet:hover { background: rgb(255 255 255 / 0.06); color: var(--ink); box-shadow: none; }
.btn-danger { background: transparent; border-color: rgb(255 92 108 / 0.5); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.05);
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover { background: rgb(255 255 255 / 0.1); color: var(--ink); }

/* Forms */
label { display: block; margin: 18px 0 7px; font-size: 0.86rem; font-weight: 650; color: var(--ink-2); }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="file"],
select,
textarea {
  width: 100%;
  max-width: 460px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-1);
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input:disabled { opacity: 0.6; }
input[type="search"]::-webkit-search-cancel-button { filter: invert(0.7); cursor: pointer; }
textarea { height: auto; min-height: 96px; padding: 12px 14px; max-width: 640px; }
select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c92a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
input[type="file"] { height: auto; padding: 10px; color: var(--muted); }
input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.field-help { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }

/* Notices */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.notice .icon { margin-top: 2px; color: var(--muted); }
.notice-ok { background: var(--ok-soft); border-color: rgb(63 214 143 / 0.28); color: #d4f7e6; }
.notice-ok .icon { color: var(--ok); }
.notice-error { background: var(--danger-soft); border-color: rgb(255 92 108 / 0.32); color: #ffd9dd; }
.notice-error .icon { color: var(--danger); }
.notice-accent { background: var(--accent-soft); border-color: rgb(255 107 61 / 0.3); color: #ffe2d7; }
.notice-accent .icon { color: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-1); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgb(255 255 255 / 0.025); }
td a { font-weight: 650; }
td a:hover { color: var(--accent); }
td form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
td .muted { font-size: 0.82rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 36px; color: var(--faint); font-size: 0.84rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 750; font-stretch: 112%; }
.footer-brand .logo { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
