/* unrigid.ai: tokens, type, header, footer, buttons, forms, prose.
   Paper and ink like the unrigid app, one teal accent with one job (links, focus, the "live" dot),
   a visible hairline grid. Geist for everything, Geist Mono for labels and code, Instrument Serif
   for a few accent words. Fonts are self-hosted: no request leaves for a font service. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0020-007E;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-extra.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+00A0-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026, U+2032-2033, U+20AC, U+20B9, U+2122, U+2190-2193, U+2197, U+2212;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #faf7f1;
  --paper-2: #f3eee4;
  --white: #ffffff;
  --ink: #1d1a16;
  --ink-2: #2e2a24;
  --muted: #5f5850;
  --faint: #6c645a;
  --rule: #e7e0d4;
  --rule-strong: #d6cdbd;
  --accent: #1f5a45;
  --accent-ink: #164433;
  --accent-soft: #e4efe8;
  --green: #2d7a52;
  --amber: #a26a00;
  --marigold: #e2a336;
  --night: #16130f;
  --night-2: #201c17;
  --night-3: #2b261f;
  --night-rule: #3a342b;
  --night-ink: #f1ece2;
  --night-muted: #bdb4a6;
  --night-accent: #8fd1b4;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* Fluid scale: 360px → 1920px wide. */
  --gutter: clamp(16px, 3.2vw, 48px);
  --max: clamp(320px, 92vw, 1600px);
  --band: clamp(64px, 4rem + 4vw, 160px);
  --h1: clamp(3rem, 1.6rem + 5.2vw, 7.75rem);
  --h2: clamp(2.25rem, 1.4rem + 3vw, 4.5rem);
  --h3: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --lede: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  --header: 64px;
  --radius: 10px;
  --tap: 44px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

/* Big screens read from further away: everything sized in rem grows with the root. */
@media (min-width: 1800px) {
  html {
    font-size: 106.25%;
  }
}
@media (min-width: 2300px) {
  html {
    font-size: 118.75%;
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 480;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
h1 {
  font-size: var(--h1);
}
h2 {
  font-size: var(--h2);
}
h1 em,
h2 em {
  font-style: italic;
}
h3 {
  font-size: var(--h3);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-ink);
}

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

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.mono,
code,
pre {
  font-family: var(--mono);
  font-feature-settings: normal;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 6px;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.lede {
  font-size: var(--lede);
  line-height: 1.5;
  color: var(--muted);
  max-width: 40em;
  text-wrap: pretty;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.dot-green {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 138, 78, 0.16);
}
.dot-amber {
  background: var(--amber);
}
.dot-hollow {
  border: 1.5px solid currentColor;
}

/* ---- Buttons ------------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 520;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-big {
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--ink-2);
  color: var(--paper);
}
.btn-ghost {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-paper {
  background: var(--paper);
  color: var(--ink);
}
.btn-paper:hover {
  background: var(--white);
  color: var(--ink);
}
.btn-ghost-night {
  border-color: var(--night-rule);
  color: var(--night-ink);
}
.btn-ghost-night:hover {
  border-color: var(--night-ink);
  color: var(--night-ink);
}

.arrow,
.arrow-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  font-weight: 500;
  text-decoration: none;
}
.arrow::after {
  content: "→";
  font-family: var(--mono);
  transition: transform 0.15s;
}
.arrow:hover::after {
  transform: translateX(3px);
}
.arrow-back::before {
  content: "←";
  font-family: var(--mono);
}

/* ---- Header (sticky at every width) -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: var(--tap);
  color: var(--ink);
  text-decoration: none;
}
.logo:hover {
  color: var(--ink);
}
.wordmark {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.nav-wide {
  display: none;
  margin-left: 12px;
}
.nav-wide ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-wide a,
.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav-wide a:hover,
.link-quiet:hover,
.nav-wide a[aria-current="page"] {
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-small {
  position: relative;
}
.nav-small summary {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  list-style: none;
  cursor: pointer;
  border-radius: 8px;
}
.nav-small summary::-webkit-details-marker {
  display: none;
}
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  content: "";
  position: relative;
}
.burger::before {
  position: absolute;
  top: -6px;
}
.burger::after {
  position: absolute;
  top: 6px;
}
.nav-small[open] .burger {
  background: transparent;
}
.nav-small[open] .burger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-small[open] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}
.nav-small nav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 8px var(--gutter) 20px;
  box-shadow: 0 24px 40px -24px rgba(20, 20, 18, 0.25);
}
.nav-small ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-small li a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 1.0625rem;
  text-decoration: none;
}
.hide-small {
  display: none;
}

@media (min-width: 600px) {
  .hide-small {
    display: inline-flex;
  }
}
@media (min-width: 1024px) {
  .nav-wide {
    display: block;
  }
  .nav-small {
    display: none;
  }
}

/* ---- Page head (inner pages) --------------------------------------------------------------- */

.page-head {
  padding-block: clamp(48px, 3rem + 4vw, 128px) clamp(32px, 2rem + 2vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.page-head h1 {
  margin-top: 18px;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 5rem);
  max-width: 16ch;
}
.page-head .lede {
  margin-top: 20px;
}
.page-head .hero-actions {
  margin-top: 28px;
}

/* ---- Footer ------------------------------------------------------------------------------- */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding-block: clamp(48px, 3rem + 2vw, 96px) 32px;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
}
.footer-id {
  grid-column: 1 / -1;
}
.footer-by {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer-by a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink-2);
}
.footer-promise {
  margin-top: 12px;
  max-width: 30em;
  color: var(--muted);
}
.footer-links {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-2);
  text-decoration: none;
  word-break: break-word;
}
.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-links button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.consent-li:has([data-unrigid-consent-settings][hidden]) {
  display: none;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-strong);
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer-base a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
  }
  .footer-id {
    grid-column: auto;
  }
}

/* ---- Forms (the platform's <Form>, styled through its unrigid-* classes) --------------------- */

.unrigid-field {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}
.unrigid-field label {
  font-size: 0.9375rem;
  font-weight: 520;
}
.unrigid-required {
  color: var(--faint);
  font-weight: 400;
  font-size: 0.8125rem;
}
.unrigid-field input:not([type="checkbox"]),
.unrigid-field select,
.unrigid-field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.unrigid-field textarea {
  min-height: 160px;
  resize: vertical;
}
.unrigid-field input:focus,
.unrigid-field select:focus,
.unrigid-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.unrigid-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 10px 0 0;
  accent-color: var(--ink);
  flex: none;
}
.unrigid-field:has(input[type="checkbox"]) label {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
  min-height: var(--tap);
}
.unrigid-help {
  color: var(--faint);
  font-size: 0.8125rem;
}
.unrigid-error {
  color: #a3261b;
  font-size: 0.875rem;
}
.unrigid-form-status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--paper-2);
}
form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 520;
  cursor: pointer;
}
form button[type="submit"]:hover {
  background: var(--ink-2);
}
form button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: progress;
}

/* ---- Prose (about, policies) --------------------------------------------------------------- */

.prose {
  max-width: 44em;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.prose h3 {
  margin: 1.8em 0 0.4em;
  font-size: 1.125rem;
  color: var(--ink);
}
.prose h4 {
  margin: 1.4em 0 0.3em;
  font-size: 1rem;
}
.prose > :first-child,
.prose section:first-child h2 {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol,
.prose table,
.prose blockquote {
  margin: 0 0 1em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose blockquote {
  padding: 12px 18px;
  border-left: 3px solid var(--rule-strong);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.9375rem;
}
.prose blockquote p:last-child {
  margin: 0;
}
.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.prose th,
.prose td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-weight: 560;
  border-bottom-color: var(--rule-strong);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2em 0;
}
.prose code {
  font-size: 0.875em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--paper-2);
  word-break: break-word;
}
.prose a {
  word-break: break-word;
}
