/* Sidestreet Secure Share — hello2026 editorial system
   Tokens from SLW › "Sidestreet Design Language 2026" (source: hello2026/docs/DESIGN-HANDOFF.md).
   Fonts are self-hosted so the page loads nothing from third parties. */

@font-face { font-family: "Outfit"; src: url("/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #07131c;
  --blue: #20618a;
  --blue-2: #2d7ca8;
  --paper: #f7f5f0;
  --ice: #eef3f6;
  --navy: #0c2d42;
  --pale: #a9cfe3;
  --pale-2: #9bcde5;
  --muted: #5a6870;
  --rule: rgba(7, 19, 28, .18);
  --rule-dark: rgba(255, 255, 255, .18);
  --alert: #8f2a22;

  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: var(--pale); color: var(--ink); }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Surfaces ---------- */
.surface-ink { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.surface-blue { background: var(--blue); color: #fff; position: relative; overflow: hidden; isolation: isolate; }

/* Sparse geometry — low-opacity circles on dark surfaces only */
.surface-ink::before, .surface-ink::after, .surface-blue::before {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
}
.surface-ink::before { width: 62rem; height: 62rem; right: -24rem; top: -30rem; border: 1px solid rgba(255,255,255,.07); }
.surface-ink::after  { width: 38rem; height: 38rem; right: -8rem; top: -14rem; background: rgba(255,255,255,.025); }
.surface-blue::before { width: 44rem; height: 44rem; left: -18rem; bottom: -30rem; border: 1px solid rgba(255,255,255,.12); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--rule-dark);
}
.wordmark { display: block; width: clamp(150px, 14vw, 210px); line-height: 0; }
.wordmark img { display: block; width: 100%; height: auto; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--body); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.surface-ink .eyebrow, .surface-blue .eyebrow { color: rgba(255,255,255,.6); }

.display {
  font-family: var(--display); font-weight: 760;
  font-size: clamp(3.1rem, 10vw, 7.5rem);
  line-height: .86; letter-spacing: -.062em;
  text-wrap: balance;
}
.display-md {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: .9; letter-spacing: -.055em;
  text-wrap: balance;
}
.display em, .display-md em { font-style: italic; font-weight: 250; letter-spacing: -.045em; color: var(--blue); }
.surface-ink .display em, .surface-ink .display-md em,
.surface-blue .display em, .surface-blue .display-md em { color: var(--pale); }

.lede {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem); line-height: 1.45; max-width: 36ch;
  color: var(--muted); text-wrap: pretty;
}
.surface-ink .lede { color: rgba(255,255,255,.66); }

.body { color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.small { font-size: .85rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3.5rem, 9vw, 6.5rem); }
.hero .eyebrow { margin-bottom: 1.75rem; }
.hero .lede { margin-top: 2.25rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section-head { display: grid; grid-template-columns: 4rem 1fr; gap: 1.5rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); align-items: baseline; }
.section-head .body { margin-top: 1rem; }

/* ---------- Numbered rows (index / title / content) ---------- */
.rows { border-bottom: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 4rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem; padding: 1.85rem 0; border-top: 1px solid var(--rule); align-items: start;
}
.idx { font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--blue); padding-top: .45rem; font-variant-numeric: tabular-nums; }
.row-title { font-family: var(--display); font-weight: 720; font-size: 1.4rem; line-height: 1.1; letter-spacing: -.035em; }
.row-title + .small { margin-top: .45rem; }
.row .body { padding-top: .2rem; }
.row-actions { grid-column: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.row-compact { grid-template-columns: 4rem minmax(0, 1fr) auto; align-items: center; padding: 1.15rem 0; }
.row-compact .idx { padding-top: 0; }

/* ---------- Form controls ---------- */
.input, .select {
  display: block; width: 100%; font: 400 1.15rem/1.4 var(--body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  padding: .55rem 0 .7rem; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: rgba(7,19,28,.38); }
.input:focus, .select:focus { outline: none; border-bottom-color: var(--blue); box-shadow: inset 0 -1px 0 var(--blue); }

.textarea {
  display: block; width: 100%; min-height: 11rem; resize: vertical;
  font: 400 .95rem/1.65 var(--mono); color: var(--ink);
  background: rgba(255,255,255,.6); border: 1px solid var(--rule); border-radius: 0;
  padding: 1rem 1.1rem; transition: border-color .15s, box-shadow .15s;
}
.textarea:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2320618a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .2rem center; background-size: .75rem;
}

.input-mono { font-family: var(--mono); font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .85rem;
  font: 600 .95rem/1 var(--body); letter-spacing: .01em; text-decoration: none;
  background: var(--blue); color: #fff; border: 0; border-radius: 0;
  padding: 1.1rem 1.65rem; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--blue-2); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .arrow { font-family: var(--display); font-weight: 400; font-size: 1.15rem; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule);
}
.btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }

.link-btn {
  font: 500 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  background: none; border: 0; padding: .4rem 0; cursor: pointer; color: var(--blue);
  border-bottom: 1px solid transparent;
}
.link-btn:hover { border-bottom-color: currentColor; }
.link-btn.danger { color: var(--alert); }

/* ---------- Panels & messages ---------- */
.panel-ice { background: var(--ice); padding: clamp(1.5rem, 4vw, 2.75rem); }

.key {
  display: block; font-family: var(--mono); font-weight: 450;
  font-size: clamp(1rem, 2.4vw, 1.4rem); line-height: 1.5; letter-spacing: -.01em;
  word-break: break-all; user-select: all; -webkit-user-select: all; color: var(--ink);
  padding: 1.25rem 0 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.75rem;
}

.alert {
  border-left: 2px solid var(--alert); color: var(--alert);
  padding: .2rem 0 .2rem 1rem; font-size: .95rem; max-width: 52ch;
}

.badge {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); padding-bottom: .3rem; border-bottom: 1px solid currentColor;
}
.badge.warn { color: var(--alert); }

.secret-out {
  font: 400 .95rem/1.7 var(--mono); white-space: pre-wrap; word-break: break-word;
  background: var(--paper); border: 1px solid var(--rule); padding: 1.25rem 1.35rem;
  max-height: 30rem; overflow: auto; margin: 1.75rem 0 1rem;
}

.mono { font-family: var(--mono); }

/* ---------- Statement band ---------- */
.band { padding: clamp(4rem, 10vw, 7.5rem) 0; }
.band .display-md { max-width: 16ch; }

/* ---------- Footer (matches hellosidestreet.com .ss-footer) ---------- */
.ss-footer { background: var(--ink); color: #fff; padding: 110px 5vw 40px; }
.ss-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 4vw; align-items: start; max-width: 100%; }
.footer-brand { display: block; width: min(240px, 90%); padding: 0 !important; }
.footer-brand img { display: block; width: 100%; height: auto; }
.ss-footer .footer-about { font-size: .78rem; line-height: 1.8; color: rgba(255,255,255,.6); margin-top: 26px; }
.footer-address { font-size: .8rem; color: rgba(255,255,255,.6); }
.ss-footer-grid > div > span { display: block; font-size: .58rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #7090a1; margin-bottom: 18px; }
.ss-footer-grid > div > span.footer-head-gap { margin-top: 26px; }
.ss-footer-grid a { display: block; padding: 5px 0; font-size: .8rem; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.ss-footer-grid a.inline { display: inline; padding: 0; }
.ss-footer-grid a:hover { color: #fff; }
.ss-footer-grid .ss-news-blurb { font-size: .78rem; line-height: 1.7; color: rgba(255,255,255,.6); margin: 0 0 14px; }
.ss-footer-grid a.footer-cta { color: #fff; }
.ss-footer-grid a.footer-cta:hover { color: var(--pale); }
.ss-footer-legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 25px; margin-top: 45px; color: rgba(255,255,255,.35); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; line-height: 2; }
.ss-footer-legal a { color: rgba(255,255,255,.35); text-decoration: none; }
.ss-footer-legal a:hover { color: #fff; }
@media (max-width: 900px) {
  .ss-footer-grid { grid-template-columns: 1fr 1fr; }
  .ss-footer-grid > div:first-child { grid-column: 1 / -1; margin-bottom: 30px; }
}
@media (max-width: 560px) {
  .ss-footer { padding-top: 70px; }
  .ss-footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
  .wordmark { width: 148px; }
}

/* ---------- Stack helpers ---------- */
.stack-sm > * + * { margin-top: .75rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .row { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .5rem 1rem; }
  .row > :nth-child(3) { grid-column: 2; margin-top: .6rem; }
  .row-actions { grid-column: 2; }
  .row-compact { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
  .row-compact > :nth-child(3) { grid-column: auto; margin-top: 0; }
  .section-head { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .btn { width: 100%; }
  .row-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Dashboard helpers (no inline styles — CSP) ---------- */
.hero-tight { padding-bottom: clamp(3rem, 7vw, 5rem); }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: start; }
.split-end { align-items: end; }
.from-name { font-size: 2rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.section-flush { padding-top: 0; }
.section-head-end { align-items: end; }
.row-meta { display: block; margin-top: .2rem; }
@media (max-width: 760px) { .actions .btn { width: 100%; } }
