/* start.natekramer.dev: natekramer.dev look. Tokens, fonts and logo copied from other/natekramer/site (assets/css/site.css).
   Theme follows the OS setting (the site's default when nothing is stored); no inline script, so the CSP stays as is. */

@font-face { font-family: "Rubik"; src: url("/fonts/Rubik-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/Rubik-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/Rubik-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/fonts/Rubik-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik FB A"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); font-weight: 400; size-adjust: 104.74%; ascent-override: 89.27%; descent-override: 23.87%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB A"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); font-weight: 500; size-adjust: 108.22%; ascent-override: 86.40%; descent-override: 23.10%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB A"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-weight: 600; size-adjust: 102.2%; ascent-override: 91.49%; descent-override: 24.46%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB A"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-weight: 700; size-adjust: 103.89%; ascent-override: 90.00%; descent-override: 24.06%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB D"; src: local("DejaVu Sans"), local("DejaVuSans"); font-weight: 400; size-adjust: 91.85%; ascent-override: 101.80%; descent-override: 27.22%; line-gap-override: 0%; }
@font-face { font-family: "Rubik FB D"; src: local("DejaVu Sans Bold"), local("DejaVuSans-Bold"); font-weight: 700; size-adjust: 86.68%; ascent-override: 107.87%; descent-override: 28.84%; line-gap-override: 0%; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #141418; --surface: #1E1E24; --line: #2A2A32; --fg: #EAEAE8; --muted: #C4CBCD;
  --brand: #15A3A8; --hl: #9CEFF2; --cta: #E8913A; --cta-hover: #F09C47; --cta-ink: #141418;
  --tint: rgba(21, 163, 168, 0.12); --shadow: none; --dot: rgba(234, 234, 232, 0.07);
  --field: #141418; --field-line: #34343D; --outline: #3A3A44;
  --err: #F2B477; --err-bg: rgba(242, 180, 119, 0.10);
  --accent: var(--brand); --card: var(--surface); --focus: var(--brand);
  --font: "Rubik", "Rubik FB A", "Rubik FB D", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: 20px;
  --ease: cubic-bezier(.22,.61,.36,1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F8F7F4; --surface: #FFFFFF; --line: #EAEAE8; --fg: #141418; --muted: #5A6166;
    --brand: #0D7377; --hl: #0D7377; --tint: rgba(13, 115, 119, 0.10); --dot: rgba(20, 20, 24, 0.07);
    --shadow: 0 1px 2px rgba(20, 20, 24, 0.05), 0 8px 24px rgba(20, 20, 24, 0.06);
    --field: #FFFFFF; --field-line: #DCDCD8; --outline: #DCDCD8;
    --err: #9A4A10; --err-bg: #FBF0E6;
    color-scheme: light;
  }
}
@media (min-width: 600px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
@media (min-width: 900px) { body { font-size: 17px; } }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--hl); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Header: the >nk_ lockup, linking to natekramer.dev */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  max-width: none; height: 64px; margin: 0; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; min-height: 44px; flex: none; color: var(--fg); text-decoration: none; }
.brand img { display: block; height: 28px; width: auto; }
@media (min-width: 900px) { .brand img { height: 32px; } }
.logo-light { display: none !important; }
@media (prefers-color-scheme: light) {
  .logo-dark { display: none !important; }
  .logo-light { display: block !important; }
}

/* Page body: dot grid behind a centred column, as on the site's contact block */
main.wrap { flex: 1 0 auto; width: 100%; }
.wrap { max-width: 680px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
body { background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 16px 16px; }

h1, h2, h3 { font-weight: 700; color: var(--fg); }
h1 { font-size: clamp(32px, 2.2vw + 22px, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; }
.wrap > h1::after {
  content: ""; display: inline-block; width: .46em; height: .12em; margin-left: .08em;
  background: var(--brand); border-radius: 1px; vertical-align: baseline;
}
h2 { font-size: clamp(19px, 0.4vw + 17px, 21px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 4px; }
.lede { color: var(--muted); font-size: clamp(17px, 0.4vw + 15px, 19px); line-height: 1.5; margin: 0 0 28px; }

/* Form */
form[data-intake-form] {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 24px 20px;
}
@media (min-width: 600px) { form[data-intake-form] { padding: 32px 28px; } }
.field { margin: 0 0 20px; }
label { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; margin: 0 0 8px; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea {
  display: block; width: 100%; max-width: 100%; min-height: 48px; margin: 0; padding: 10px 12px;
  font: 400 16px/1.4 var(--font); color: var(--fg); background: var(--field);
  border: 1px solid var(--field-line); border-radius: 8px;
  transition: border-color .2s var(--ease);
}
input:hover, textarea:hover { border-color: var(--brand); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); border-radius: 8px; }
textarea { resize: vertical; min-height: 160px; max-height: 60vh; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.err { color: var(--err); margin: 6px 0 0; font-size: 14px; line-height: 1.4; }
.alert {
  background: var(--err-bg); color: var(--err); border: 1px solid var(--err); border-radius: 12px;
  padding: 12px 16px; margin: 0 0 20px;
}
.alert p { margin: 0; }

/* Buttons: the site's orange call to action and outline button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px;
  font: 500 16px/1 var(--font); cursor: pointer; text-decoration: none;
  background: var(--cta); color: var(--cta-ink);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn:hover { background: var(--cta-hover); color: var(--cta-ink); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--outline); }
.btn-ghost:hover { background: transparent; color: var(--fg); border-color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transition: none; transform: none; } }

.fine { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 16px; }

/* Footer */
.foot {
  max-width: none; margin: 0; padding: 24px var(--gutter) 32px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; text-align: center;
}
.foot > a, .foot > span:not([aria-hidden]) { font: 400 13px var(--mono); }
.foot a { color: var(--muted); display: inline-block; min-height: 44px; line-height: 44px; }
.foot a:hover { color: var(--brand); }
.foot > span:not([aria-hidden]) { color: var(--brand); }

/* Admin, proposal, receipt and client pages */
.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bar h1 { margin: 0; }
.client-h1 { text-wrap: balance; }
.inq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 20px; margin: 0 0 12px; }
.muted { color: var(--muted); font-weight: 400; }
.meta { color: var(--muted); font: 400 13px/1.5 var(--mono); margin: 0 0 8px; }
.msg { white-space: pre-wrap; margin: 0; }
.alert:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.inq h2 { min-width: 0; }
.acts { margin: 8px 0 0; }
.acts a, .back a { display: inline-block; min-height: 44px; line-height: 44px; }
.back { margin: 0; }
.section { margin-top: 32px; }
.section h2 { margin: 0; }
.section + h2 { margin-top: 28px; }
.pair { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .pair { grid-template-columns: 1fr 1fr; } }
.ok { background: var(--tint); border: 1px solid var(--brand); border-radius: 12px; padding: 12px 16px; margin: 24px 0 20px; }
.padbtns { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; }
.ok p { margin: 0; }
.ok p + p { margin-top: 12px; }
.ok a.receipt-link { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 16px; border: 1px solid var(--outline); border-radius: 12px; box-sizing: border-box; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 24px; }
.facts dt { color: var(--brand); font: 500 13px/1.4 var(--mono); }
.facts dd { margin: 0; font-size: 24px; font-weight: 700; }
.agreement { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 20px; }
.agreement h3 { font-size: 17px; margin: 20px 0 4px; }
.pad { display: block; width: 100%; max-width: 100%; height: 180px; background: #fff; border: 1px solid var(--field-line); border-radius: 8px; touch-action: none; cursor: crosshair; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { width: 44px; height: 44px; min-height: 44px; flex: none; margin: 0; accent-color: var(--brand); }
.sigblock { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .sigblock { grid-template-columns: 1fr 1fr; } }
.sigrole, .sigdate { color: var(--muted); font-size: 14px; margin: 0; }
.signame { margin: 4px 0 0; font-weight: 600; }
.sigtyped { font: italic 28px/1.2 Georgia, serif; margin: 20px 0 0; color: var(--fg); }
.sigimg { display: block; max-width: 100%; height: auto; background: #fff; border-radius: 4px; }
.rec { margin: 0 0 24px; }
.rec dt { color: var(--brand); font: 500 13px/1.4 var(--mono); }
.rec dd { margin: 0 0 8px; overflow-wrap: anywhere; }

/* 44px tap targets: inline links keep their text layout (padding cancelled by negative margin); standalone links are inline-block */
a.tap { display: inline-block; padding: 13px 8px; margin: -13px -8px; }
a.tap-block { display: inline-block; min-height: 44px; min-width: 44px; line-height: 44px; }

/* Client overview page (00006) */
.quote { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid var(--brand); background: var(--card); border-radius: 0 12px 12px 0; }
.prop h3 { font-size: 19px; margin: 0 0 8px; }
.status { margin: 0 0 12px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--outline); border-radius: 12px; font-weight: 500; text-decoration: none; }
.linkbtn:hover { border-color: var(--brand); }
.foot-q { margin: 0 0 8px; }
.copy { font-family: var(--mono); font-size: 14px; }
.link-full { overflow-wrap: anywhere; word-break: break-all; resize: none; min-height: 0; }
[data-copy] { min-height: 44px; }
