/* EverythingThreads: the look of the whole site, in one place (14 Nov 2026).
   Paper #F3EFE9 for the ground, navy #111520 for the writing, the buttons and the bars, Figtree for the words.
   One orange only: "Threads" in the name. No dark pages.
   Loaded after parts.css, lively.css and showpieces.css; each page has its own stylesheet after this one.
   Two layers. The parts (bar, buttons, fields, cards, foot, phone button, sheet) work on any page that loads this file.
   The page defaults (ground, type, section rhythm) apply only where <html> carries class="sys", so an older page can
   take the parts first without its own layout moving. */

@font-face { font-family: "Figtree"; src: url("../fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
/* The EverythingThreads name is always in its own face (DM Sans 900), on every page. */
@font-face { font-family: "ET Wordmark"; src: url("/fonts/et-wordmark.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --paper: #F3EFE9; --navy: #111520; --slate: #454B5C; --mist: #5F677A; --card: #FBF9F6; --line: #DDD6CB; --band: #EAE4DA;
  --orange: #FF8C38;
  --amber: #FCD34D; --green: #86EFAC; --red: #F87171;
  --p-font: "Figtree", system-ui, sans-serif; --p-text: var(--navy); --p-muted: var(--slate);
  --p-ground: var(--paper); --p-raised: var(--card); --p-line: var(--line);
  --p-accent: var(--navy); --p-on-accent: var(--paper); --p-radius: 14px;
  --lv-line: var(--navy);
  --sp-top: 64px; --pt-header-h: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 1100px) { :root { --sp-top: 76px; } }

:where(html.sys) { overflow-x: clip; scroll-behavior: smooth; }
:where(.sys) body { margin: 0; background: var(--paper); color: var(--navy); font-family: var(--p-font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
@media (min-width: 900px) { :where(.sys) body { font-size: 19px; } }
:where(.sys) img { max-width: 100%; display: block; }
:where(.sys) :is(h1, h2, h3) { font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; margin: 0; text-wrap: balance; }
:where(.sys) p { margin: 0; }
:where(.sys) a { color: inherit; }
:where(.sys) :focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--navy); color: var(--paper); padding: 10px 16px; border-radius: 10px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 50; box-sizing: border-box; font-family: var(--p-font); line-height: 1.55; height: var(--sp-top); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 48px); background: rgba(243, 239, 233, .9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(17, 21, 32, .07); }
.logo { font-family: "ET Wordmark", "DM Sans", var(--p-font); font-weight: 900; font-size: 21px; letter-spacing: -0.035em; text-decoration: none; color: var(--navy); margin: 0; }
.logo span { color: var(--orange); }
.pt-nav ul { list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) {
  .pt-nav ul { display: flex; gap: 30px; align-items: center; }
  .pt-nav a { text-decoration: none; font-size: 16px; font-weight: 600; color: var(--slate); transition: color .2s; }
  .pt-nav a:hover, .pt-nav a[aria-current="page"] { color: var(--navy); }
  .nav-cta a { background: var(--navy); color: var(--paper) !important; padding: 10px 18px; border-radius: 999px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--navy); color: var(--paper); font-family: inherit; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 10px 30px -12px rgba(17, 21, 32, .6); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-s { min-height: 48px; padding: 0 20px; font-size: 16px; box-shadow: none; }
.quiet { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; color: var(--slate); padding: 14px 4px; }
.quiet:hover { color: var(--navy); }

/* A field for an email address */
.field-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field { flex: 1 1 180px; min-width: 0; box-sizing: border-box; min-height: 48px; padding: 0 14px; border: 1.5px solid #C9C1B4; border-radius: 12px; background: #fff; color: var(--navy); font-family: inherit; font-size: 17px; }
.field:focus { border-color: var(--navy); outline: none; }
.field-note { width: 100%; margin: 0; font-size: 15px; color: var(--slate); }
.field-note:empty { display: none; }
.field-note.ok { color: #166534; font-weight: 600; }
.field-note.err { color: #B42318; font-weight: 600; }

/* Sections */
:where(.sys) section:not(.hero) { padding: 76px clamp(20px, 5vw, 72px); }
@media (min-width: 900px) { :where(.sys) section:not(.hero) { padding-top: 116px; padding-bottom: 116px; } }
:where(.sys) h2 { font-size: clamp(36px, 5vw, 68px); }

/* Cards */
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; background: var(--card); text-decoration: none; box-shadow: 0 0 0 1px rgba(17, 21, 32, .06); transition: transform .3s var(--ease), box-shadow .3s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(17, 21, 32, .1), 0 24px 40px -24px rgba(17, 21, 32, .35); }
.card b { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.card > span { color: var(--slate); }
.card em { font-style: normal; font-weight: 700; margin-top: auto; padding-top: 8px; }
.card em::after { content: " \2192"; }

/* Footer */
.foot { padding: 64px clamp(20px, 5vw, 72px) 48px; border-top: 1px solid var(--line); background: var(--paper); color: var(--navy); font-family: var(--p-font); font-size: 18px; line-height: 1.55; }
.foot-in { max-width: 1240px; margin: 0 auto; display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 2fr 1fr 1fr; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.foot ul a { display: inline-block; padding: 8px 0; text-decoration: none; color: var(--slate); font-size: 17px; }
.foot ul a:hover { color: var(--navy); }
.foot-line { margin: 10px 0 0; color: var(--slate); font-size: 17px; max-width: 34ch; }
.foot-legal { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--slate); font-size: 15px; }
@media (min-width: 800px) { .foot-legal { grid-column: 1 / -1; } }

/* Phone: the main button stays in thumb reach; it steps aside when one of the page's own buttons, or the foot,
   is on screen (site.js). */
.dock { display: none; }
@media (max-width: 899px) {
  .dock { display: block; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(243, 239, 233, .95); border-top: 1px solid rgba(17, 21, 32, .09); transform: translateY(110%); transition: transform .35s var(--ease); }
  .dock.is-up { transform: none; }
  .dock .btn { display: flex; justify-content: center; min-height: 50px; font-size: 17px; box-shadow: none; }
}

/* The sheet that sends the LiveScope link to a visitor's computer (a phone cannot install it). */
.ilm-backdrop { position: fixed; inset: 0; background: rgba(17, 21, 32, .5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.ilm-backdrop.shown { opacity: 1; pointer-events: auto; }
.ilm-modal { font-family: var(--p-font); line-height: 1.5; position: fixed; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 12px)); z-index: 201; box-sizing: border-box; width: min(480px, 92vw); max-height: 92vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px 24px; color: var(--navy); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .25s var(--ease), visibility 0s linear .25s; box-shadow: 0 40px 80px -30px rgba(17, 21, 32, .5); }
.ilm-modal.shown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%); transition-delay: 0s; }
.ilm-eyebrow { font-size: 15px; font-weight: 800; color: var(--mist); margin-bottom: 8px; }
.ilm-title { font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 10px; padding-right: 34px; }
.ilm-body { font-size: 16px; color: var(--slate); line-height: 1.5; margin-bottom: 18px; }
.ilm-body strong { color: var(--navy); }
.ilm-form { display: flex; flex-wrap: wrap; gap: 8px; }
.ilm-input { flex: 1 1 200px; min-width: 0; box-sizing: border-box; background: #fff; border: 2px solid #C9C1B4; color: var(--navy); padding: 14px; border-radius: 12px; font-family: inherit; font-size: 17px; }
.ilm-input:focus { border-color: var(--navy); outline: none; }
.ilm-submit { background: var(--navy); color: #fff; border: 0; padding: 14px 20px; border-radius: 12px; font-family: inherit; font-weight: 800; font-size: 17px; cursor: pointer; white-space: nowrap; }
.ilm-submit:disabled { opacity: .6; cursor: wait; }
.ilm-close { position: absolute; top: 10px; right: 10px; background: transparent; border: 0; color: var(--slate); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; font-size: 28px; line-height: 1; padding: 0; }
.ilm-foot { font-size: 15px; color: var(--mist); margin-top: 12px; line-height: 1.5; }
.ilm-err { font-size: 16px; font-weight: 700; color: #B42318; margin-top: 10px; }
.ilm-success-icon { display: inline-block; width: 40px; height: 40px; border-radius: 50%; background: rgba(21, 128, 61, .1); border: 2px solid #15803D; color: #15803D; font-size: 20px; line-height: 36px; text-align: center; font-weight: 900; margin-bottom: 12px; }
.ilm-now { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.ilm-now p { font-size: 15px; font-weight: 700; color: var(--mist); margin-bottom: 4px; }
.ilm-now a { display: block; padding: 10px 0; font-size: 18px; font-weight: 800; color: var(--navy); text-decoration: underline; text-decoration-color: #C9C1B4; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ilm-now a span { display: inline-block; width: 100%; font-size: 15px; font-weight: 500; color: var(--slate); margin-top: 2px; }
@media (max-width: 599px) {
  .ilm-modal { left: 0; right: 0; top: auto; bottom: 0; width: 100%; transform: translateY(28px); border-radius: 24px 24px 0 0; border-width: 1px 0 0; padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  .ilm-modal.shown { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .dock, .ilm-backdrop, .ilm-modal { transition: none; } :where(html.sys) { scroll-behavior: auto; } }
