:root {
  --blue: #2f5bff;
  --ink: #14141c;
  --paper: #f6efe2;
  --pink: #ff4d9a;
  --yellow: #ffd23f;
  --orange: #ff7a1a;
  --red: #ff3b30;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", sans-serif;
  background: var(--blue);
  color: var(--paper);
}
a { color: var(--yellow); }
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 20px 2.5% 0;
}
/* ─── Ariadne's Thread [AT-0236] ─────────────────────
   What: Stack brand-name and Fast, Free, Secure lede under the topnav name
   Why:  Header brand is two lines; .lede in .brand must not use the hero 18px rule
   Date: 2026-08-27
   Related: [AT-0235] public/index.html, [AT-0060] src/html.ts:shareBarCss
─────────────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--paper);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #111;
  box-shadow: 3px 3px 0 #111;
  background: var(--blue);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.brand-name {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}
.brand .lede {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.92;
}
.topnav nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
.topnav nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 800;
}
.topnav nav a:hover { color: var(--yellow); }
.topnav nav .sign-out {
  background: none;
  border: 0;
  padding: 0;
  color: var(--paper);
  font-weight: 800;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}
.topnav nav .sign-out:hover { color: var(--yellow); }
main.landing {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
/* ─── Ariadne's Thread [AT-0268] ─────────────────────
   What: Match homepage .topnav width to main.landing
   Why:  Header row must share the 720px landing column, not full viewport
   Date: 2026-08-27
   Related: [AT-0014] public/css/site.css:.topnav, [AT-0014] public/css/site.css:main.landing
─────────────────────────────────────────────────────── */
body:has(main.landing) .topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 0;
}
main.page {
  width: 100%;
  margin: 0;
  padding: 32px 2.5% 80px;
}
/* ─── Ariadne's Thread [AT-0027] ─────────────────────
   What: Tighten sign-in page top gap and auth h2 margin
   Why:  Global h2 margin 56px left a large empty band above the form
   Date: 2026-08-27
   Related: [AT-0016] public/signin.html, [AT-0026] public/css/site.css:.auth-form
─────────────────────────────────────────────────────── */
main.page-auth {
  padding-top: 12px;
}
.auth-form h2 {
  margin: 0 0 4px;
}
.hero { text-align: center; }
/* ─── Ariadne's Thread [AT-0238] ─────────────────────
   What: Size .hero > img to 126px (30% smaller than 180px)
   Why:  Landing hero logo must be 30% smaller
   Date: 2026-08-27
   Related: [AT-0014] public/index.html, [AT-0229] public/index.html
─────────────────────────────────────────────────────── */
.hero > img {
  width: 126px;
  height: 126px;
  object-fit: cover;
  border-radius: 25px;
  border: 4px solid #111;
  box-shadow: 6px 6px 0 #111;
  background: var(--blue);
}
h1 {
  margin: 28px 0 8px;
  font-size: clamp(22px, 7.2vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}
/* ─── Ariadne's Thread [AT-0226] ─────────────────────
   What: 4px #111 letter stroke and 5px 5px 0 #111 text-shadow on hero h1
   Why:  Same outline as .download but on glyphs, not pill boxes around words
   Date: 2026-08-27
   Related: [AT-0225] public/index.html, https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-stroke
─────────────────────────────────────────────────────── */
.hero h1 {
  white-space: nowrap;
  color: var(--paper);
  -webkit-text-stroke: 4px #111;
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 #111;
}
.hero h1 .shot {
  color: var(--yellow);
}
/* ─── Ariadne's Thread [AT-0085] ─────────────────────
   What: Paint h1 .send Send It ↗ as #f96d00
   Why:  It used --red #ff3b30; the landing hero needs this orange
   Date: 2026-08-27
   Related: [AT-0014] public/index.html, [AT-0082] public/index.html
─────────────────────────────────────────────────────── */
.hero h1 .send {
  white-space: nowrap;
  color: #f96d00;
}
.hero h1 .send .send-arrow {
  font-size: 0.62em;
  color: inherit;
  vertical-align: middle;
}
.lede {
  margin: 0 0 28px;
  font-size: 18px;
  opacity: 0.92;
}
.download,
button.download,
.key {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  border: 4px solid #111;
  color: #111;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 5px 5px 0 #111;
  font-family: inherit;
}
.download,
button.download {
  background: var(--yellow);
  cursor: pointer;
}
.download:hover,
button.download:hover { transform: translate(-1px, -1px); }
button.download:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
/* ─── Ariadne's Thread [AT-0234] ─────────────────────
   What: Hero row is Download plus one key pill with cmd + Shift + 2
   Why:  Shortcut is one button; plus signs sit between the words
   Date: 2026-08-27
   Related: [AT-0233] public/index.html, [AT-0228] public/css/site.css:.hero-cta
─────────────────────────────────────────────────────── */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
/* ─── Ariadne's Thread [AT-0241] ─────────────────────
   What: .hero-keys is a pink download <a>; hover matches .download
   Why:  cmd + Shift + 2 must look clickable and start the DMG
   Date: 2026-08-27
   Related: [AT-0240] public/index.html, [AT-0242] public/js/releases.js:setLatestDownloadHref
─────────────────────────────────────────────────────── */
.hero-keys {
  background: var(--pink);
  cursor: pointer;
}
.hero-keys:hover {
  transform: translate(-1px, -1px);
}
button.hero-keys {
  appearance: none;
  -webkit-appearance: none;
}
/* ─── Ariadne's Thread [AT-0298] ─────────────────────
   What: Style native #keys-dialog like landing cards; dim ::backdrop
   Why:  Shortcut click opens HTMLDialogElement.showModal, not a custom overlay
   Date: 2026-08-27
   Related: [AT-0297] public/index.html, [AT-0299] public/js/releases.js:bindKeysModal
─────────────────────────────────────────────────────── */
.keys-dialog {
  margin: auto;
  padding: 28px 32px;
  border: 4px solid #111;
  border-radius: 18px;
  background: #2448d6;
  color: var(--paper);
  box-shadow: 5px 5px 0 #111;
  text-align: center;
}
.keys-dialog::backdrop {
  background: rgba(20, 20, 28, 0.55);
}
.keys-dialog-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  color: var(--paper);
}
.meta {
  margin: 14px 0 0;
  font-size: 13px;
  opacity: 0.85;
}
.hero-shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 36px 0 0;
  border: 4px solid #111;
  border-radius: 18px;
  box-shadow: 5px 5px 0 #111;
  background: #2448d6;
}
/* ─── Ariadne's Thread [AT-0264] ─────────────────────
   What: Founder row under .hero-shot uses card chrome, circular avatar, yellow handle
   Why:  Intro block must match SeenShot borders/shadow, not the light digest card
   Date: 2026-08-27
   Related: [AT-0263] public/index.html, [AT-0014] public/css/site.css:.hero-shot
─────────────────────────────────────────────────────── */
.founder {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin: 16px 0 0;
  padding: 16px 18px;
  border: 4px solid #111;
  border-radius: 18px;
  box-shadow: 5px 5px 0 #111;
  background: #2448d6;
  text-align: left;
}
.founder img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #111;
  background: var(--paper);
}
.founder-copy {
  min-width: 0;
  flex: 1;
}
.founder-head {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}
.founder-name {
  font-weight: 800;
}
.founder-handle {
  color: var(--yellow);
  font-weight: 700;
  margin-left: 8px;
}
.founder p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.95;
}
.founder a {
  color: var(--yellow);
  font-weight: 700;
}
h2 {
  margin: 56px 0 16px;
  font-size: 22px;
}
.release,
.card {
  margin: 0 0 12px;
  padding: 16px 18px;
  border: 4px solid #111;
  border-radius: 18px;
  background: #2448d6;
  box-shadow: 5px 5px 0 #111;
}
.release-top {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}
.release a { color: var(--yellow); font-weight: 700; }
.notes {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.9;
}
.previous-releases { margin: 20px 0 0; }
.previous-releases summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 12px;
}
.error, .empty {
  padding: 16px 18px;
  border: 4px solid #111;
  border-radius: 18px;
  background: #1d3bb8;
}
.error a, .empty a { color: var(--yellow); }
.empty-wrap:not([hidden]) {
  margin: 0 0 24px;
}
.empty-wrap .empty {
  width: 100%;
  margin: 0;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento-card {
  min-width: 0;
  padding: 18px;
  border: 4px solid #111;
  border-radius: 18px;
  background: #2448d6;
  box-shadow: 5px 5px 0 #111;
}
.bento-card.wide { grid-column: span 2; }
.bento-card.narrow { grid-column: span 1; }
.bento-card.full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 18px;
  align-items: center;
}
.bento-shot-wrap {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  margin: 0 0 14px;
  overflow: hidden;
  border: 3px solid #111;
  border-radius: 12px;
  background: #1d3bb8;
}
.bento-card.full .bento-shot-wrap {
  margin: 0;
  min-height: 280px;
  height: 100%;
  aspect-ratio: auto;
}
.bento-card.full .bento-copy { min-width: 0; }
.bento-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.bento-card h3 { margin: 0 0 6px; font-size: 22px; }
.bento-card p { margin: 0; font-size: 14px; opacity: 0.9; }
/* ─── Ariadne's Thread [AT-0244] ─────────────────────
   What: Two pricing cards: Free forever and Member $29/year
   Why:  Landing Pricing must sit in the same card chrome as Features
   Date: 2026-08-27
   Related: [AT-0243] public/index.html, [AT-0014] public/css/site.css:.bento-card
─────────────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pricing-card {
  min-width: 0;
  padding: 18px;
  border: 4px solid #111;
  border-radius: 18px;
  background: #2448d6;
  box-shadow: 5px 5px 0 #111;
}
.pricing-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}
.pricing-price {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
}
.pricing-note {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.9;
}
.pricing-card ul {
  margin: 0 0 18px;
  padding: 0 0 0 1.2em;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.9;
}
.pricing-card li {
  margin: 0 0 6px;
}
.pricing-card .download {
  margin: 0;
}
.cabinet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.cabinet-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}
.cabinet-head h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  white-space: normal;
}
/* ─── Ariadne's Thread [AT-0073] ─────────────────────
   What: Style #nav-quota to the right of My Screenshots
   Why:  Remaining storage left the top nav; it sits on the cabinet title row
   Date: 2026-08-27
   Related: [AT-0079] public/js/nav.js:paint, [AT-0078] public/space/index.html
─────────────────────────────────────────────────────── */
.cabinet-head .nav-quota {
  color: var(--paper);
  font-weight: 800;
  font-size: clamp(14px, 2.2vw, 18px);
  opacity: 0.92;
  white-space: nowrap;
}
/* ─── Ariadne's Thread [AT-0286] ─────────────────────
   What: Group cabinet Upgrade to Pro and Download in one flex row
   Why:  The two pills must stay together; cabinet-head space-between was spreading them
   Date: 2026-08-27
   Related: [AT-0285] public/space/index.html, [AT-0234] public/css/site.css:.hero-cta
─────────────────────────────────────────────────────── */
.cabinet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.feed {
  column-count: 4;
  column-gap: 16px;
}
.pin {
  break-inside: avoid;
  margin: 0 0 16px;
  display: block;
}
.pin a { display: block; color: inherit; text-decoration: none; position: relative; }
.pin img {
  width: 100%;
  height: auto;
  display: block;
  border: 4px solid #111;
  border-radius: 18px;
  box-shadow: 5px 5px 0 #111;
  background: #2448d6;
}
/* ─── Ariadne's Thread [AT-0068] ─────────────────────
   What: CSS skeleton on .pin until the img load event
   Why:  Native <progress> was a bar; in-viewport pins sat empty at 180px
   Date: 2026-08-27
   Related: [AT-0069] public/js/cabinet.js:render, [AT-0062] public/css/site.css:.pin
─────────────────────────────────────────────────────── */
@keyframes pin-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.pin:not(.is-loaded) a {
  min-height: 180px;
  border: 4px solid #111;
  border-radius: 18px;
  box-shadow: 5px 5px 0 #111;
  background-color: #2448d6;
  background-image: linear-gradient(90deg, #2448d6 0%, #4d6aff 50%, #2448d6 100%);
  background-size: 200% 100%;
  animation: pin-skeleton 1.2s linear infinite;
}
.pin:not(.is-loaded) img {
  min-height: 180px;
  opacity: 0;
  border: 0;
  box-shadow: none;
}
.pin.is-loaded a {
  min-height: 0;
  border: 0;
  box-shadow: none;
  background: none;
  animation: none;
}
/* ─── Ariadne's Thread [AT-0084] ─────────────────────
   What: Caption under each .pin with the PNG byte size
   Why:  Cabinet feed showed images only; size comes from shot.bytes
   Date: 2026-08-27
   Related: [AT-0083] public/js/cabinet.js:formatShotBytes, [AT-0069] public/js/cabinet.js:render
─────────────────────────────────────────────────────── */
.pin-bytes {
  margin: 8px 4px 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--paper);
  opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
  .pin:not(.is-loaded) a {
    animation: none;
  }
}
.auth-form {
  width: min(420px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-form label { font-weight: 800; font-size: 14px; }
.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 4px solid #111;
  border-radius: 14px;
  background: #2448d6;
  color: var(--paper);
  font-size: 16px;
  font-family: inherit;
}
/* ─── Ariadne's Thread [AT-0031] ─────────────────────
   What: Pin Generate password inside the password input
   Why:  The control must sit in the field, not under Forgot password
   Date: 2026-08-27
   Related: [AT-0031] public/signin.html, [AT-0031] public/js/signin.js:generatePassword
─────────────────────────────────────────────────────── */
.password-field {
  position: relative;
  width: 100%;
}
.auth-form .password-field input {
  padding-right: 44px;
}
.auth-form .password-field.has-generate input {
  padding-right: 178px;
}
.generate-password {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 0;
  color: var(--yellow);
  font-weight: 800;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.generate-password:disabled {
  opacity: 0.6;
  cursor: wait;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-password:disabled {
  opacity: 0.6;
  cursor: wait;
}
.toggle-password .eye-closed {
  display: none;
}
.toggle-password[aria-pressed="true"] .eye-open {
  display: none;
}
.toggle-password[aria-pressed="true"] .eye-closed {
  display: block;
}
.auth-form .download {
  align-self: center;
}
.auth-form .create-account {
  align-self: center;
  text-align: center;
  margin-top: 18px;
}
.auth-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
/* ─── Ariadne's Thread [AT-0020] ─────────────────────
   What: Sign-in flat links are white
   Why:  Create account, Forgot password, Email me a sign-in link must not be yellow
   Date: 2026-08-27
   Related: [AT-0016] public/signin.html, [AT-0010] public/js/signin.js
─────────────────────────────────────────────────────── */
.flat {
  background: none;
  border: 0;
  color: #fff;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}
.share-page { text-align: center; width: min(960px, calc(100% - 32px)); }
.share-shot {
  width: 100%;
  height: auto;
  border: 4px solid #111;
  border-radius: 18px;
  box-shadow: 5px 5px 0 #111;
  background: #2448d6;
}
.share-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 22px 0 0;
}
.text-link {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
}
/* ─── Ariadne's Thread [AT-0251] ─────────────────────
   What: Footer legal links and .legal article type for policy pages
   Why:  GDPR/US pages need readable copy in the same card chrome
   Date: 2026-08-27
   Related: [AT-0250] public/privacy/index.html, [AT-0252] public/index.html
─────────────────────────────────────────────────────── */
.site-foot {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 48px;
}
/* ─── Ariadne's Thread [AT-0290] ─────────────────────
   What: Stretch .site-foot to full width on pages with main.page
   Why:  Cabinet/sign-in header is full width; the 720px footer must match that row
   Date: 2026-08-27
   Related: [AT-0251] public/css/site.css:.site-foot, [AT-0014] public/css/site.css:.topnav
─────────────────────────────────────────────────────── */
body:has(main.page) .site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0 2.5% 48px;
}
body:has(main.page) .site-foot p {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}
.site-foot p {
  margin: 0 0 12px;
  font-size: 13px;
  opacity: 0.85;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.site-foot a {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
}
.site-foot a:hover { text-decoration: underline; }
.legal-page {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 24px;
}
.legal h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: normal;
}
.legal h2 {
  margin: 28px 0 10px;
  font-size: 18px;
}
.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.95;
}
.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding: 0 0 0 1.2em;
}
.legal a { color: var(--yellow); font-weight: 700; }
.legal code {
  font-size: 0.92em;
  word-break: break-all;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0 0 16px;
}
.legal th,
.legal td {
  border: 2px solid #111;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}
@media (max-width: 1000px) { .feed { column-count: 3; } }
@media (max-width: 700px) { .feed { column-count: 2; } }
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide,
  .bento-card.narrow,
  .bento-card.full { grid-column: 1; }
  .bento-card.full { grid-template-columns: 1fr; }
  .bento-card.full .bento-shot-wrap {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }
  .pricing { grid-template-columns: 1fr; }
  h1 { white-space: normal; }
  .founder {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) { .feed { column-count: 1; } }
