/* Work Side by Side. Palette and type from the app (apps/mobile/src/constants/theme.ts): warm paper,
   deep teal, clay. A faint drafting grid behind each hero (plans, sites, offices). Motif kept from the
   sister site: two paths that run side by side and arrive at one point, the meetup.
   No web fonts: the app's own stack (Inter where installed, else the system UI font). */
:root {
  --bg: #F6F1EA; --surface: #FFFFFF; --tint: #EFE7DC; --line: #DDD3C6; --line-strong: #857A6D;
  --ink: #1F1B17; --soft: #5A5249;
  --primary: #1F5D57; --on-primary: #FFFFFF; --primary-soft: #DCEBE8; --on-primary-soft: #123B37;
  --clay: #9C4A22;      /* the warning chip's brown-orange, deepened for text on paper */
  --warn-bg: #FBE7D2; --warn-ink: #6A3210; --ok: #2D6A39; --ok-bg: #DFF0E2; --info-bg: #E4ECF4; --info-ink: #1F3A56;
  --grid: rgb(31 93 87 / 0.07); --frame: #1F1B17;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-0: 1.0625rem; --step-1: 1.22rem; --step-2: 1.55rem; --step-3: clamp(1.75rem, 3.2vw, 2.15rem); --step-4: clamp(2.2rem, 5vw, 3.6rem);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513; --surface: #221F1C; --tint: #2D2925; --line: #3E3934; --line-strong: #8F867B;
    --ink: #F3EEE8; --soft: #C4BBB0;
    --primary: #7CC7BD; --on-primary: #0C2523; --primary-soft: #1E3734; --on-primary-soft: #CFEBE6;
    --clay: #F0A27A; --warn-bg: #3B2A1B; --warn-ink: #F5D4B2; --ok: #93D39F; --ok-bg: #1C3322; --info-bg: #1D2937; --info-ink: #CFE0F2;
    --grid: rgb(124 199 189 / 0.06); --frame: #050403;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 22px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.12rem/1 var(--font); letter-spacing: -0.02em; white-space: nowrap; }
.wordmark { font-weight: 800; letter-spacing: -0.02em; text-transform: lowercase; }
.wordmark-suffix { color: var(--clay); }
.logo-mark { width: 36px; height: 26px; color: var(--primary); flex: none; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a, .menu nav a { color: var(--soft); text-decoration: none; font-size: 0.97rem; font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { cursor: pointer; list-style: none; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.95rem; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); display: grid; gap: 2px; min-width: 220px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 34px rgb(0 0 0 / 0.14); }
.menu nav a { padding: 10px 8px; border-radius: 8px; } .menu nav a:hover { background: var(--tint); }
@media (max-width: 1180px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 440px) { .head-row > .btn-small { display: none; } .head-row { gap: 12px; } }
.menu-cta { font-weight: 700; color: var(--primary) !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid var(--primary); background: var(--primary); color: var(--on-primary); font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.93rem; border-radius: 10px; }
.btn-quiet { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn-disabled { background: var(--tint); color: var(--soft); border-color: var(--line); cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero: a faint drafting grid behind the claim */
.hero { padding-block: clamp(40px, 7vw, 84px) clamp(32px, 5vw, 60px);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; }
.hero-plain { padding-block-end: 28px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.eyebrow { font: 700 0.82rem/1.2 var(--font); letter-spacing: 0.09em; text-transform: uppercase; color: var(--clay); }
.lead { font-size: var(--step-1); color: var(--soft); max-width: 62ch; }
.note { font-size: 0.92rem; color: var(--soft); }
.paths { width: min(420px, 100%); height: 28px; display: block; }
@media (max-width: 860px) { .hero-row { grid-template-columns: 1fr; } }

/* phone mock: the real app screen, simplified */
.hero-mock, .mock-wrap { display: grid; justify-items: center; gap: 10px; min-width: 0; }
.mock-caption { font-size: 0.85rem; color: var(--soft); text-align: center; max-width: 34ch; }
.phone { width: min(330px, 100%); border-radius: 42px; padding: 11px; background: var(--frame); box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.4); }
.screen { border-radius: 32px; background: var(--bg); overflow: hidden; font-size: 0.9rem; line-height: 1.4; }
.m-bar { display: flex; align-items: center; gap: 10px; padding: 18px 16px 10px; border-bottom: 1px solid var(--line); }
.m-back { color: var(--primary); font-weight: 600; } .m-bar b { font-weight: 700; }
.m-help { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 0.75rem; color: var(--soft); }
.m-body { padding: 12px; }
.m-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.m-label { color: var(--soft); display: flex; justify-content: space-between; gap: 8px; }
.m-lock { font-size: 0.85rem; }
.m-clock { justify-self: start; background: var(--warn-bg); color: var(--warn-ink); font-weight: 650; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; }
.m-title { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.15; }
.m-sub { color: var(--soft); }
.m-val { font-weight: 600; }
.m-text { color: var(--ink); }
.m-cap { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--soft); margin-top: 4px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; } .m-chips span { background: var(--tint); padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 0.8rem; }
.fits { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.fits li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.fits li:last-child { border-bottom: 0; padding-bottom: 0; }
.fits b { font-weight: 650; font-size: 0.82rem; text-align: right; }
.fit { padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.fit-perfect, .fit-great { background: var(--ok-bg); color: var(--ok); } .fit-good { background: var(--primary-soft); color: var(--on-primary-soft); }
.fit-some { background: var(--tint); color: var(--ink); } .fit-big { background: var(--warn-bg); color: var(--warn-ink); }
.m-fine { font-size: 0.76rem; color: var(--soft); text-align: center; }
.m-btn { text-align: center; padding: 11px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.m-btn-quiet { background: transparent; color: var(--primary); border: 1.5px solid var(--line-strong); }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.m-opts li { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; display: grid; gap: 1px; }
.m-opts li small { color: var(--soft); font-size: 0.78rem; }
.m-opts li.on { border-color: var(--primary); background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 600; }
.m-opts.tick li { padding-left: 34px; position: relative; }
.m-opts.tick li::before { content: ""; position: absolute; left: 10px; top: 10px; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--line-strong); }
.m-opts.tick li.on::before { background: var(--primary); border-color: var(--primary); }
.m-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.m-checks li { padding-left: 20px; position: relative; } .m-checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.m-who { display: flex; gap: 10px; align-items: center; } .m-who div { display: grid; } .m-who small { color: var(--ok); font-weight: 600; }
.m-avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 38%, var(--primary) 0 26%, transparent 27%), radial-gradient(circle at 50% 100%, var(--primary) 0 44%, transparent 45%), var(--primary-soft); }
.m-dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; } .m-dl dt { color: var(--soft); } .m-dl dd { margin: 0; font-weight: 650; text-align: right; }

/* bands */
.band { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.band.slim { padding-block: 28px; }
.band > .wrap > h2 { margin-bottom: 24px; max-width: 28ch; }
.band .lead { margin-top: -8px; margin-bottom: 28px; }
.tint { background: var(--tint); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.points.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.point { display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 3px solid var(--primary); }
.point:nth-child(3n+2) { border-top-color: var(--clay); }
.point p { color: var(--soft); }
@media (max-width: 980px) { .points.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .points, .points.four { grid-template-columns: 1fr; } }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; max-width: 840px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--primary); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
.steps p { color: var(--soft); }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.related-card { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.related-card span { font-weight: 750; font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; }
.related-card small { color: var(--soft); font-size: 0.95rem; }
.related-card:hover { border-color: var(--primary); }
.related-card.big { padding: 24px; min-height: 150px; align-content: end; border-left: 4px solid var(--primary); }
.related-card.big:nth-child(2n) { border-left-color: var(--clay); }

.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: var(--step-1); line-height: 1.3; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin-top: 10px; color: var(--soft); max-width: 68ch; }

.prose { display: grid; gap: 14px; } .prose h2 { margin-bottom: 4px; } .prose h3 { margin-top: 10px; }
.prose p, .prose li { color: var(--soft); max-width: 68ch; }
.prose b, .prose strong { color: var(--ink); }
.bullets { margin: 0; padding-left: 1.2em; display: grid; gap: 7px; color: var(--soft); }
.bullets li::marker { color: var(--clay); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.col-h { margin-bottom: 12px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-aside { display: grid; justify-items: center; min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.shot { margin: 0; display: grid; gap: 10px; justify-items: center; }
.shot img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.35); background: var(--surface); }
.shot figcaption { font-size: 0.85rem; color: var(--soft); text-align: center; max-width: 36ch; }
.callout { padding: 18px 20px; border-left: 4px solid var(--clay); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--ink); }
.mt { margin-top: 28px; } .mt-s { margin-top: 12px; }

.closing { background: var(--primary); color: var(--on-primary); border-top: 0; }
.closing h2 { margin-bottom: 10px; color: var(--on-primary); max-width: 26ch; }
.closing p { color: var(--on-primary); opacity: 0.92; max-width: 60ch; }
.closing .btn { background: var(--on-primary); color: var(--primary); border-color: var(--on-primary); }
.closing .btn-ghost { background: transparent; color: var(--on-primary); border-color: currentColor; }
.closing-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closing a:focus-visible { outline-color: var(--on-primary); }

/* tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); background: var(--tint); }
.compare tbody th { font-weight: 700; width: 24%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare.hl-last td:last-child { font-weight: 650; background: color-mix(in srgb, var(--primary) 7%, transparent); }
.compare td { color: var(--soft); } .compare.hl-last td:last-child { color: var(--ink); }

/* city and field lists */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.region h3 { margin-bottom: 10px; color: var(--primary); }
.city-list { list-style: none; margin: 0; padding: 0; display: grid; }
.city-list li { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.city-list a { color: var(--ink); text-decoration: none; font-weight: 650; } .city-list a:hover { color: var(--primary); text-decoration: underline; }
.city-list span { color: var(--soft); font-size: 0.88rem; text-align: right; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.95rem; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 650; background: var(--primary-soft); color: var(--on-primary-soft); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.sources { font-size: 0.9rem; color: var(--soft); display: grid; gap: 6px; padding-left: 1.2em; margin: 0; }
.sources a { word-break: break-word; }

/* footer */
.site-foot { padding-block: 52px 36px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px; }
.foot-grid .foot-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; }
.foot-brand p { margin: 0; }
.sister a { font-weight: 650; }
.foot-brand { display: grid; gap: 12px; align-content: start; } .foot-brand p { color: var(--soft); max-width: 32ch; }
.site-foot h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-foot ul a { color: var(--ink); text-decoration: none; font-size: 0.96rem; } .site-foot ul a:hover { color: var(--primary); text-decoration: underline; }
.fine { margin-top: 36px; font-size: 0.84rem; color: var(--soft); }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* breadcrumbs */
.crumbs { padding-block: 14px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: var(--soft); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--soft); }

.copy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-block: 16px 8px; }
.copy-row input { flex: 1 1 260px; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.5s ease both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.04s; } .hero-copy > :nth-child(4) { animation-delay: 0.08s; }
  .paths path { stroke-dasharray: 700; animation: draw 1.3s ease-out both 0.1s; }
  @keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
  @keyframes draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
}
@media print { .site-head, .site-foot, .closing, .hero-mock { display: none; } .hero { background: none; } }
.metro-list { list-style: none; margin: 0; padding: 0; columns: 4 12rem; column-gap: 24px; }
.metro-list li { break-inside: avoid; padding-block: 5px; border-bottom: 1px solid var(--line); }
.metro-list a { color: var(--ink); text-decoration: none; font-weight: 600; } .metro-list a:hover { color: var(--primary); text-decoration: underline; }
.metro-list span { color: var(--muted, #6b6259); font-size: .85em; margin-left: 6px; }

/* photos of work meetups (photos.json): a wide image with rounded corners between two sections */
.band-photo { padding-block: clamp(24px, 4vw, 40px); }
.band-photo img.photo { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); background: var(--tint); }
@media (min-width: 860px) { .band-photo img.photo { aspect-ratio: 12 / 5; } }

/* Zydeby switcher: a slim strip above the header on both sites (zydeby:personal and zydeby:work share this block
   and its markup; the colors come from each site's own tokens). Left: the Zydeby home. Right: personal | work. */
.zswitch { background: var(--tint); border-bottom: 1px solid var(--line); font-size: 0.86rem; line-height: 1; }
.zswitch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; padding-block: 0; }
.zswitch a { text-decoration: none; }
.zswitch-home { color: var(--ink); font-weight: 750; letter-spacing: -0.01em; padding: 6px 4px; border-radius: 6px; }
.zswitch-home:hover { text-decoration: underline; text-underline-offset: 3px; }
.zswitch-sides { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 1px; background: var(--bg); }
.zswitch-sides a { color: var(--soft); font-weight: 650; padding: 4px 12px; border-radius: 999px; min-height: 24px; display: inline-flex; align-items: center; }
.zswitch-sides a:hover { color: var(--ink); }
.zswitch-sides a[aria-current] { background: var(--ink); color: var(--bg); }
.zswitch a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
