/* ==========================================================================
   gsi, gendersexuality.info
   Single stylesheet. No build step. No framework.
   Palette: "Pastel app". Pastels are backgrounds only, never text.
   Every color pair is checked in .claude/audit.py.
   ========================================================================== */

/* ---------- 1. Font ------------------------------------------------------ */

/* Outfit, self-hosted so no visitor data goes to Google.
   License: assets/fonts/OFL.txt (SIL Open Font License). */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Outfit";
  src: url("../fonts/Outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Tokens ---------------------------------------------------- */

:root {
  --paper:       #FBFAF7;
  --surface:     #FFFFFF;
  --ink:         #1E1B2E;
  --ink-soft:    #4A4560;
  --line:        #E6E2EE;

  --sky:         #CDEBFF;
  --butter:      #FFE9A8;
  --lilac:       #E6E0FF;
  --sky-deep:    #1D5C86;
  --butter-deep: #6A4D00;
  --lilac-deep:  #5240A8;

  --link:        var(--sky-deep);
  /* Logo purple, same as the Featurebase board. Large bold text, so 3:1 on both backgrounds. */
  --logo:        #7462E6;
  --focus:       var(--lilac-deep);
  --btn-bg:      var(--ink);
  --btn-text:    var(--paper);

  --font: "Outfit", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Nothing on the site goes below 1rem (16px). */
  --t-sm:   1rem;
  --t-base: 1.125rem;
  --t-md:   1.25rem;
  --t-lg:   1.5rem;
  --t-xl:   clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  --t-hero: clamp(2.4rem, 1.4rem + 4vw, 4rem);

  --r-card: 20px;
  --r-tile: 16px;
  --r-pill: 999px;

  --wrap: 1120px;
  --wrap-narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:    #16141F;
    --surface:  #211E2C;
    --ink:      #F4F2FA;
    --ink-soft: #C9C4DA;
    --line:     #353146;
    --link:     #A8D8FF;
    --focus:    #B9A8FF;
    --btn-bg:   #F4F2FA;
    --btn-text: #1E1B2E;
  }
}

/* ---------- 3. Base ------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: var(--t-hero); font-weight: 700; }
h2 { font-size: var(--t-xl); font-weight: 700; }
h3 { font-size: var(--t-lg); font-weight: 600; }

p { margin: 0 0 16px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

ul { margin: 0 0 16px; padding-left: 1.2em; }
li { margin-bottom: 8px; }

code {
  font-size: 0.95em;
  background: var(--lilac);
  color: #1E1B2E;
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-word;
}

kbd {
  font-family: var(--font);
  font-size: 0.95em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--butter);
  color: #1E1B2E;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 40px);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.lede {
  font-size: var(--t-md);
  color: var(--ink-soft);
  max-width: 60ch;
}

.eyebrow {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* ---------- 4. Header and footer ----------------------------------------- */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--logo);
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 2px;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin: 0; }

/* ---------- 5. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  border: 2px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-text);
  font: inherit;
  font-weight: 600;
  font-size: var(--t-sm);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: underline; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.status {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--butter);
  color: #1E1B2E;
  font-size: var(--t-sm);
  font-weight: 600;
}
.status--sky { background: var(--sky); }

/* ---------- 6. Home ------------------------------------------------------ */

.hero { padding-block: clamp(48px, 8vw, 112px) clamp(32px, 5vw, 64px); }
/* Centered column, left-aligned text: easier to read than centered lines. */
.hero .wrap { max-width: 760px; }
.hero h1 { max-width: 16ch; }

.section-title { text-align: center; margin-bottom: 32px; }

/* Flex instead of grid so a short last row sits centered, not on the left. */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.grid > .card { flex: 1 1 300px; max-width: 360px; }
.grid > .card[hidden] { display: none; }
.grid > .card--feature { flex-basis: 100%; max-width: none; }
@media (min-width: 1000px) {
  .grid > .card { max-width: calc((100% - 48px) / 3); }
  .grid > .card--feature { max-width: none; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px;
}
.card h3 { margin: 4px 4px 8px; }

.card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--r-tile);
  display: block;
}
.card-kind { margin: 16px 4px 0; }
.card p { margin-inline: 4px; color: var(--ink-soft); }
.card .card-action {
  margin-top: auto;
  padding: 16px 4px 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.card-body { display: flex; flex-direction: column; }

@media (min-width: 760px) {
  .card--feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 32px;
    align-items: center;
    padding: 24px;
  }
  .card--feature h3 { font-size: var(--t-xl); }
  .card--feature .card-kind { margin-top: 0; }
}

.tile {
  display: flex;
  align-items: flex-end;
  min-height: 180px;
  border-radius: var(--r-tile);
  padding: 16px 18px;
  color: #1E1B2E;
}
.tile--sky    { background: var(--sky); }
.tile--butter { background: var(--butter); }
.tile--lilac  { background: var(--lilac); }

.tile-kind {
  font-size: var(--t-sm);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.promise {
  background: var(--lilac);
  color: #1E1B2E;
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 48px);
}
.promise h2 { color: #1E1B2E; }
.promise > * { max-width: 680px; margin-inline: auto; }
.promise a { color: var(--lilac-deep); }

.about {
  display: grid;
  gap: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -8px 0 28px;
}
.filters[hidden] { display: none; }
.filter {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  border: 2px solid var(--btn-bg);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
}
/* Selected: filled and marked with a check, so the state never relies on color alone. */
.filter[aria-pressed="true"] {
  background: var(--btn-bg);
  color: var(--btn-text);
}
.filter[aria-pressed="true"]::before { content: "\2713\00a0"; }

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

/* ---------- 7. Text pages (support, privacy) ----------------------------- */

.page-head { padding-block: clamp(40px, 6vw, 80px) 8px; }

.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; font-size: var(--t-md); }

.qa {
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--surface);
  margin-bottom: 12px;
}
.qa summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
}
.qa > div { padding: 0 20px 18px; }

.contact-box {
  background: var(--sky);
  color: #1E1B2E;
  border-radius: var(--r-card);
  padding: 24px;
  margin-block: 24px;
}
.contact-box a { color: var(--sky-deep); }
.contact-box .btn {
  background: #1E1B2E;
  border-color: #1E1B2E;
  color: #FBFAF7;
}

.email-link { font-size: var(--t-md); font-weight: 600; }

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  margin-bottom: 24px;
}

/* Trailer: a still image with a play button until someone presses play. */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-block: 16px 8px;
}
.video-link,
.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--r-card);
}
.video-link { position: relative; overflow: hidden; }
.video-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: rgba(30, 27, 46, 0.85);
  border: 3px solid #FBFAF7;
}
.video-play::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 21px;
  border-style: solid;
  border-width: 14px 0 14px 23px;
  border-color: transparent transparent transparent #FBFAF7;
}
.video-link:hover .video-play { background: #1E1B2E; }
.video-note {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-top: 8px;
}

.demo-slot {
  border: 2px dashed var(--line);
  border-radius: var(--r-card);
  padding: 32px 24px;
  margin-block: 16px;
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- 8. Motion ---------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .btn, .card { transition: transform 0.15s ease; }
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- 9. Print ----------------------------------------------------- */

@media print {
  .site-header nav, .skip-link, .site-footer .footer-links { display: none; }
  body { background: #fff; color: #000; }
}
