/* Members home. Same type and header/footer as the work wall and belovedecosystem.com:
   parchment, ink, ox-blood; IBM Plex Sans + Instrument Serif (self-hosted, SIL OFL). */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic-latin.woff2) format("woff2"); }
:root {
  --burgundy: #6B0F1A; --burgundy-dark: #4A0000; --white: #ffffff;
  --parchment: #f3efe6; --parchment-deep: #e8e2d4; --paper: #faf8f3;
  --ink: #1c1914; --ink-soft: #3d3830; --muted: #6f675b; --hairline: rgba(28, 25, 20, 0.12);
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(92vw, 1600px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
/* Design review S1: anything scrolled into view (the form, an error) lands below the sticky header. */
html { scroll-padding-top: 6rem; }
body { margin: 0; font-family: var(--font-sans); background: var(--parchment); color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Design review M6 (WCAG 1.4.1): links inside text are underlined, not told apart by colour alone. */
main a:not(.btn), .fallback a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
code { font: 0.82em/1.3 var(--font-mono); background: var(--parchment-deep); padding: 1px 5px; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--parchment); padding: 0.5rem 1rem; z-index: 100; border-radius: 4px; }
.skip-link:focus { top: 0.5rem; }
.page { width: var(--wrap); margin: 0 auto; min-height: 70vh; }
.site-header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0; background: var(--parchment); }
.site-header::before { content: ""; position: absolute; top: -100vh; bottom: 0; left: -100vmax; right: -100vmax; z-index: -1; background: var(--parchment); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { padding: 0.6rem 0; }
.site-header.is-scrolled::before { border-bottom-color: var(--hairline); }
.wordmark a { font-weight: 600; font-size: 1.75rem; line-height: 1.05; letter-spacing: 0.04em; color: var(--burgundy); display: grid; align-items: center; min-width: 5.35em; position: relative; }
.wordmark a:hover { text-decoration: none; }
.wm-full, .wm-mark { grid-area: 1 / 1; transition: opacity 0.3s var(--ease), transform 0.35s var(--ease); }
.wm-mark { width: 3.1rem; height: auto; opacity: 0; transform: scale(0.85); transform-origin: left center; pointer-events: none; }
.site-header.is-scrolled .wm-full { opacity: 0; pointer-events: none; position: absolute; }
.site-header.is-scrolled .wm-mark { opacity: 1; transform: none; }
.primary-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: clamp(2rem, 8vw, 6rem); margin-right: auto; min-height: 2.4rem; }
.nav-link { font-size: 0.95rem; color: var(--ink); padding: 0.65rem 0; border-bottom: 1px solid transparent; }
.nav-link:hover, .nav-link.is-current { color: var(--burgundy); border-bottom-color: var(--burgundy); text-decoration: none; }
.account-nav { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.net { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.3rem 0.7rem; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 0.95rem; line-height: 1; padding: 0.7rem 1.15rem; border-radius: 3px; border: 1px solid var(--burgundy); background: var(--burgundy); color: var(--white); cursor: pointer; }
.btn:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--burgundy); }
.btn[hidden] { display: none; }
/* Wes #14: every tap target at least 44 px. */
.btn, .btn.small { min-height: 44px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline:hover { background: rgba(107, 15, 26, 0.07); }
.btn.small { padding: 0.45rem 0.75rem; font-size: 0.82rem; }
main { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.hero { max-width: 46rem; }
.eyebrow { margin: 0 0 0.9rem; font-size: 0.95rem; color: var(--burgundy); }
.hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.6rem, 6.5vw, 5.5rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 1.1rem; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); margin: 0; }
.steps-section { margin-top: clamp(2rem, 5vw, 3.5rem); max-width: 44rem; }
.steps-section h2, .yours h2, .yours h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.steps-section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 0.6rem; }
.steps { margin: 0 0 1.2rem; padding-left: 1.2rem; color: var(--ink-soft); }
.steps li { margin: 0.7rem 0; }
.steps b { color: var(--ink); font-weight: 500; }
.hint { color: var(--muted); font-size: 0.9rem; }
.panel { background: var(--paper); border: 1px solid var(--hairline); border-radius: 6px; padding: 1.25rem 1.4rem; margin: 2rem 0; max-width: 44rem; }
.yours h2 { margin: 0 0 0.6rem; font-size: 1.8rem; }
.yours h3 { margin: 1rem 0 0.3rem; font-size: 1.35rem; }
.who-line { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.9rem; word-break: break-all; }
.balance { margin: 0.2rem 0 0.6rem; }
.balance b { font-family: var(--font-serif); font-weight: 400; font-size: 2rem; color: var(--burgundy); }
.balance small { display: block; color: var(--muted); font-size: 0.8rem; word-break: break-all; }
.task-links { list-style: none; margin: 0; padding: 0; }
.task-links li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; padding: 0.55rem 0; border-top: 1px solid var(--hairline); }
.task-links span { color: var(--muted); font-size: 0.85rem; }
.art { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 16px; margin-top: 2.5rem; }
.art figure { margin: 0; }
.art img { width: 100%; height: auto; border-radius: 6px; background: var(--parchment-deep); }
.art figcaption { margin-top: 0.4rem; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--burgundy); }
.art-note { margin-top: 0.6rem; }
.fallback { margin-top: 2rem; color: var(--ink-soft); max-width: 44rem; }
.site-footer { background: var(--burgundy); color: var(--parchment); padding: clamp(3rem, 6vw, 5rem) 1rem 2rem; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(12rem, 1fr) 3fr; gap: 3rem 2rem; }
.footer-wordmark { font-weight: 600; font-size: 1.75rem; line-height: 1.05; color: var(--parchment); }
.footer-wordmark:hover { text-decoration: none; }
.footer-social { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; gap: 1rem; }
.footer-social a { display: inline-flex; color: var(--parchment); opacity: 0.85; padding: 10px; margin: -10px; }
.footer-social a:hover { opacity: 1; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.footer-heading { margin: 0 0 1rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(243, 239, 230, 0.6); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a, .footer-col span { font-size: 0.95rem; color: var(--parchment); }
.footer-col a { display: inline-block; padding: 0.6rem 0; margin: -0.6rem 0; } /* S14: 44 px tap targets, same spacing */
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(243, 239, 230, 0.2); font-size: 0.85rem; color: rgba(243, 239, 230, 0.75); }
.footer-copy { display: block; margin-top: 0.4rem; }
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; row-gap: 0; padding: 0.6rem 0 0.2rem; }
  .wordmark a { font-size: 1.45rem; }
  /* S1: a shorter sticky header on phones: the nav stays on one line (scrolls sideways if it must) and the
     external link, which the footer also has, is left out. */
  .primary-nav { order: 3; width: 100%; margin-left: 0; gap: 1.25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-height: 0; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; }
  .nav-ext { display: none; }
  .account-nav { margin-left: auto; }
  .net { display: none; }
  .art { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner, .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* P1/P2: the form has the panels' look and width. */
.signup { display: grid; gap: 0.75rem; max-width: 44rem; margin: 1rem 0; padding: 1.25rem 1.4rem; border: 1px solid var(--hairline); border-radius: 6px; background: var(--paper); }
.signup h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 1.8rem; letter-spacing: -0.01em; }
.signup input[type="file"] { padding: 0.35rem 0.4rem; }
.signup input[type="file"]::file-selector-button { font: inherit; font-size: 0.88rem; font-weight: 500; color: var(--burgundy); background: transparent; border: 1px solid var(--burgundy); border-radius: 3px; padding: 0.45rem 0.8rem; margin-right: 0.75rem; cursor: pointer; }
/* S6: the field an error is about is marked. */
.signup input[aria-invalid="true"] { border-color: #8a1020; box-shadow: 0 0 0 1px #8a1020; }
/* S8: sign-ups paused (maintenance freeze), said before any passkey prompt. */
.is-paused { color: #8a1020; font-weight: 500; }
/* M4: a member with an application (pending or approved) sees "Your BE" under the hero, without the sign-up pitch. */
.is-member #start-h, .is-member .steps { display: none; }
.signup[hidden] { display: none; }
.signup label { display: grid; gap: 0.25rem; font-size: 0.9rem; }
.signup input { font: inherit; padding: 0.45rem 0.6rem; border: 1px solid #c9c2b2; background: #fff; }

/* Buzz profile: the sign-up step's preview and the "Publish my name" panel */
.profile-step { border: 1px dashed #c9c2b2; padding: 0.6rem 0.8rem 0.4rem; margin: 0; }
.profile-step legend { font-size: 0.9rem; padding: 0 0.3rem; }
.profile-step .hint { margin: 0.4rem 0 0; font-size: 0.82rem; }
.profile-card { display: flex; align-items: center; gap: 0.6rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar[hidden] { display: none; }
.avatar-empty { display: inline-block; background: #e6e0d2; }
.avatar-empty[hidden] { display: none; }
.profile h2 { margin: 0 0 0.6rem; font-size: 1.8rem; font-family: var(--font-serif); font-weight: 400; }
.profile-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; }
.profile-row label { display: grid; gap: 0.25rem; font-size: 0.9rem; flex: 1 1 14rem; }
.profile-row input { font: inherit; padding: 0.45rem 0.6rem; border: 1px solid #c9c2b2; background: #fff; }
.profile.is-ready { border-color: #6d8f5e; box-shadow: 0 0 0 2px rgba(109, 143, 94, 0.18); }
.profile-msg-ok { color: #3f6b2f; }

/* Wes #14: errors in the sign-up form are larger and marked, not grey fine print. */
#signup-msg.is-error { color: #8a1020; font-size: 1rem; font-weight: 500; border-left: 3px solid #8a1020; padding-left: 0.6rem; }
.signup input { min-height: 44px; box-sizing: border-box; }
/* Sign-up: "Create a passkey" is the main button; the existing-passkey one is a smaller secondary action. */
.signup-secondary { justify-self: start; font-size: 0.88rem; }
.signup-confirm { border: 1px solid var(--burgundy); background: rgba(107, 15, 26, 0.04); padding: 0.75rem; display: grid; gap: 0.6rem; }
.signup-confirm[hidden] { display: none; }
.signup-confirm p { margin: 0; font-weight: 500; }
.phone-handoff { border: 1px solid var(--burgundy); background: rgba(107, 15, 26, 0.04); padding: 0.75rem; display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center; }
.phone-handoff[hidden] { display: none; }
.phone-handoff p { margin: 0 0 0.4rem; }
.phone-qr svg { width: 150px; height: 150px; display: block; }
@media (max-width: 520px) { .phone-handoff { grid-template-columns: 1fr; } }
.signup-confirm-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* The approved panel on the home page. */
.approved-line { margin: 0.2rem 0 0.4rem; font-family: var(--font-serif); font-size: 1.6rem; color: var(--burgundy); }
.tx-link { font-size: 0.9rem; word-break: break-all; }
.relay-recheck { margin-left: 0.4rem; }
/* P10: reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
