/* Brand layer: warm paper, deep navy and brick. Literata for headings, Public Sans for text (both SIL OFL, served from /fonts). */
@font-face { font-family: "Literata"; src: url("/fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/fonts/literata-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #f7f3ec; --surface: #ffffff; --surface-2: #efe8dc; --ink: #1f2a44; --muted: #5d6478; --line: #e0d7c8;
  --accent: #b8472a; --accent-ink: #ffffff; --accent-soft: #f6e1d8; --deep: #2b3a67; --deep-ink: #ffffff; --gold: #c58f2c;
  --good: #2f5f9e; --good-soft: #e3ebf7; --warn: #8a5a00; --warn-soft: #fbefd6; --bad: #a3271b; --bad-soft: #fbe4e1;
  --radius: 12px; --shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 4px 16px rgba(31, 42, 68, .06);
  --display: "Literata", Georgia, "Times New Roman", serif; --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141a2b; --surface: #1c2438; --surface-2: #242e47; --ink: #ece6da; --muted: #a7adbf; --line: #313b57;
    --accent: #ec8a64; --accent-ink: #1a1208; --accent-soft: #3a2620; --deep: #8fa3dc; --deep-ink: #10162a; --gold: #e2b25a;
    --good: #9dbcf0; --good-soft: #1f2c47; --warn: #f0c060; --warn-soft: #36290f; --bad: #ff9f94; --bad-soft: #3a1b18; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141a2b; --surface: #1c2438; --surface-2: #242e47; --ink: #ece6da; --muted: #a7adbf; --line: #313b57;
  --accent: #ec8a64; --accent-ink: #1a1208; --accent-soft: #3a2620; --deep: #8fa3dc; --deep-ink: #10162a; --gold: #e2b25a;
  --good: #9dbcf0; --good-soft: #1f2c47; --warn: #f0c060; --warn-soft: #36290f; --bad: #ff9f94; --bad-soft: #3a1b18; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 1.4em 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: .6em; }
h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1rem; margin: .2em 0 .5em; }
h2.first { margin-top: 0; }
p, li { max-width: 75ch; }
code, pre { font-family: ui-monospace, Consolas, monospace; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.wrap { overflow-wrap: anywhere; }

.mode-bar { background: var(--warn-soft); color: var(--warn); text-align: center; padding: 6px 16px; font-size: .9rem; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.3rem var(--display); }
.logo { width: 34px; height: 34px; flex: none; } .logo.small { width: 20px; height: 20px; vertical-align: -4px; } .logo.ghost { width: 56px; height: 56px; opacity: .5; }
.lg-bg { fill: var(--deep); } .lg-sheet { fill: var(--bg); } .lg-fold { fill: none; stroke: var(--deep); stroke-width: 1.4; stroke-linejoin: round; }
.lg-line { stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; } .lg-check { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 4px 2px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--accent); }
.site-nav .signin { background: var(--accent); color: var(--accent-ink); padding: 4px 14px; border-radius: 99px; }
main { min-width: 0; max-width: 860px; margin: 0 auto; padding: 8px 16px 64px; }
main.wide { max-width: 1120px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.site-footer a { color: var(--muted); } .foot-brand { font-weight: 700; } .spacer { flex: 1; }

button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 18px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; }
button:hover, .button:hover { filter: brightness(1.06); }
button.plain, .button.plain { background: transparent; color: var(--accent); }
button.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
button.small { min-height: 30px; padding: 2px 10px; font-size: .85rem; }
.button.big { min-height: 50px; padding: 10px 24px; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
form.inline { display: inline; }
label { display: block; margin: 0 0 14px; } label > span { display: block; font-weight: 600; margin-bottom: 4px; } label small { display: block; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: flex-start; } label.check span { font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=password], input[type=date], select, textarea {
  width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; min-width: 0; } legend { font-weight: 600; padding: 0 6px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; box-shadow: var(--shadow); }
.box.narrow { max-width: 460px; }
.notice { border-radius: 10px; padding: 10px 14px; background: var(--good-soft); color: var(--ink); border-left: 4px solid var(--good); }
.notice.warn { background: var(--warn-soft); border-color: var(--warn); } .notice.bad { background: var(--bad-soft); border-color: var(--bad); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 1px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.scroll { overflow-x: auto; } table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--surface); border-radius: var(--radius); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } th { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
tr.late td { background: var(--warn-soft); }
dl.split { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; max-width: 420px; margin: 10px 0; }
dl.split dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; } dl.split .total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 4px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; } dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 0; }
.lead { font-size: 1.12rem; color: var(--muted); }
.hero-search label { font-weight: 600; } .hs-row { display: flex; gap: 8px; } .hs-row input { flex: 1; min-width: 0; }
.promise { background: var(--deep); color: var(--deep-ink); border-radius: 18px; padding: 22px 24px; }
.promise h2 { margin-top: 0; } .ticks { list-style: none; padding: 0; margin: 0; } .ticks li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid color-mix(in srgb, var(--deep-ink) 18%, transparent); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .92rem; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; } .grid.jobs { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--accent); } .tile h3 { margin: 4px 0; font-size: 1.05rem; }
.tile.worker { flex-direction: row; align-items: center; gap: 12px; padding: 14px; } .tile.worker .tile-body { padding: 0; }
.thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface-2); }
.thumb.none { display: flex; align-items: center; justify-content: center; }
.tile-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile-cat { font-size: .78rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tile-meta, .excerpt { color: var(--muted); font-size: .9rem; } .price { font-weight: 700; font-size: 1.1rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--deep); color: var(--deep-ink); display: inline-flex; align-items: center; justify-content: center; font: 700 1.2rem var(--display); flex: none; }
.avatar.big { width: 84px; height: 84px; font-size: 2rem; }
.profile-head { display: flex; gap: 20px; align-items: flex-start; padding-top: 20px; } .profile-head h1 { margin: 0; }
.portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; } .portfolio img { width: 100%; border-radius: 10px; display: block; } .portfolio figure { margin: 0; } figcaption { font-size: .88rem; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; vertical-align: -2px; } .stars span { width: 13px; height: 13px; background: var(--line); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); } .stars span.on { background: var(--gold); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; } .tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; } .tier h2 { margin-top: 0; }
.milestone { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.milestone header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; } .milestone h3 { margin: 0; }
.status { font-size: .82rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--surface-2); }
.s-funded, .s-delivered, .s-approved { background: var(--good-soft); color: var(--good); } .s-released { background: var(--accent-soft); color: var(--accent); }
.s-disputed, .s-chargeback, .s-revision { background: var(--warn-soft); color: var(--warn); } .s-refunded, .s-charged_back { background: var(--bad-soft); color: var(--bad); }
.paybox { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }
.delivery { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin: 8px 0; }
.scope { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; } summary { cursor: pointer; font-weight: 600; }
details.report { margin: 18px 0; color: var(--muted); }
.thread { display: flex; flex-direction: column; gap: 10px; } .msg { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; max-width: 85%; } .msg.me { align-self: flex-end; background: var(--accent-soft); } .msg p { margin: 4px 0 0; }
.threads { list-style: none; padding: 0; } .threads li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.steps { padding-left: 1.2em; } .steps li { margin-bottom: 14px; } .steps h2 { margin: 0; font-size: 1.15rem; }
ol.info li { margin: 6px 0; } .agree { margin: 10px 0 14px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; } .filters label { flex: 1 1 180px; margin: 0; }
.statement { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ad-wrap { margin: 28px 0; display: flex; justify-content: center; } [data-ad-slot] { max-width: 100%; }
.review { border-bottom: 1px solid var(--line); padding: 8px 0; } .review p { margin: 4px 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .site-nav { margin-left: 0; width: 100%; }
  .profile-head { flex-direction: column; }
  .msg { max-width: 100%; }
  dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 6px; }
}
.hero > *, .grid > *, .row > * { min-width: 0; }
