/* fcsac.lt — warm black ground, one red signal, Archivo in two widths. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Arial nudged to Archivo's metrics so the swap doesn't shove the layout. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 103%;
  ascent-override: 88%;
  descent-override: 21%;
}

:root {
  --ground: #0c0a0a;
  --raise: #151111;
  --raise-2: #1c1717;
  --line: #2b2323;
  --line-strong: #433636;
  --ink: #f3eeec;
  --ink-2: #bcb0ad;
  --ink-3: #948784;
  --signal: #ff4f55;
  --signal-hi: #ff7378;
  --signal-ink: #1a0405;
  --ok: #8fdcaa;
  --bad: #ff9a8a;

  --sans: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--ground);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: 0.004em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--signal); color: var(--signal-ink); }
input, textarea { caret-color: var(--signal); }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover { color: var(--signal-hi); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--raise-2);
  border-radius: 3px;
  padding: 0.08em 0.32em;
}

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--signal);
  color: var(--signal-ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- masthead ---------- */

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(12 10 10 / 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .mast { background: rgb(12 10 10 / 0.8); backdrop-filter: blur(12px) saturate(1.2); }
}
.mast-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.mast nav { display: flex; align-items: center; gap: 4px; }
.mast nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
}
.mast nav a:hover { color: var(--ink); background: var(--raise); }
.mast nav a.nav-brief {
  color: var(--signal-ink);
  background: var(--signal);
  font-weight: 600;
  margin-left: 8px;
}
.mast nav a.nav-brief:hover { background: var(--signal-hi); }
@media (max-width: 640px) {
  .mast nav a:not(.nav-brief) { display: none; }
}

/* ---------- page grid: content left, the brief beside it the whole way down ---------- */

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  column-gap: clamp(40px, 6vw, 96px);
}
.page > section { grid-column: 1; min-width: 0; }
.brief-col { grid-column: 2; grid-row: 1 / span 5; }

@media (max-width: 1000px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .brief-col { grid-column: 1; grid-row: auto; }
}

section { padding: clamp(56px, 8vw, 104px) 0 0; }
section h2 {
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-lede { color: var(--ink-2); max-width: 64ch; margin-bottom: 32px; }
.fine { color: var(--ink-3); font-size: 0.875rem; margin-top: 14px; max-width: 70ch; }
.muted { color: var(--ink-3); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(56px, 10vw, 128px); }
.hero h1 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.5rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 13ch;
}
.lede {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}
.proof {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.98rem;
  max-width: 62ch;
}
.proof strong {
  color: var(--signal);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- work list ---------- */

.group + .group { margin-top: 48px; }
.group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 32px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.svc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  margin-bottom: 6px;
}
.svc h4 {
  font-stretch: 108%;
  font-weight: 650;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.svc-main > p { color: var(--ink-2); max-width: 66ch; }
.svc-main > .svc-get { color: var(--ink); margin-top: 6px; font-size: 0.97rem; }
.svc-stack { color: var(--ink-3); font-size: 0.86rem; line-height: 1.4; }
.ask {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 7px 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.ask:hover { border-color: var(--signal); color: var(--signal-hi); }
.ask[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }

@media (max-width: 720px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .ask { justify-self: start; margin-top: 4px; }
}
.aside-note { margin-top: 28px; color: var(--ink-2); }

/* ---------- the brief ---------- */

.brief-col { padding-top: clamp(56px, 10vw, 128px); }
.brief {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.55);
  transition: box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.brief:focus { outline: none; }
/* Picking a service lights the brief up for a moment, so you see what changed. */
.brief.picked {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgb(255 79 85 / 0.25), 0 24px 48px -24px rgb(0 0 0 / 0.55);
  transition-duration: 0.12s;
}
/* The brief stays beside you while you read, on screens tall enough to show all of it. */
@media (min-width: 1001px) and (min-height: 960px) {
  .brief { position: sticky; top: 84px; }
}
@media (max-width: 1000px) {
  .brief-col { padding-top: clamp(56px, 8vw, 104px); }
}
@media (max-width: 480px) {
  .brief { padding: 22px 18px; }
}

.brief h2 {
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.brief-intro { color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; margin-bottom: 18px; }

.field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 6px;
  padding: 0;
}
input[type="text"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a9bdb4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
::placeholder { color: var(--ink-3); opacity: 1; }
input[type="text"]:hover, select:hover, textarea:hover { border-color: #5e4b4b; }
input[type="text"]:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgb(255 79 85 / 0.22);
}
[aria-invalid="true"] { border-color: var(--bad) !important; }
[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgb(255 154 138 / 0.22) !important; }

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 3px;
  gap: 3px;
}
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: block;
  text-align: center;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 4px;
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
}
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--raise-2); color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--signal); }
.seg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 1px; }

.hint { color: var(--ink-3); font-size: 0.84rem; line-height: 1.4; margin-top: 5px; font-variant-numeric: tabular-nums; }
.err { color: var(--bad); font-size: 0.87rem; margin-top: 6px; }
.err:empty { display: none; }
.form-error { color: var(--bad); font-size: 0.93rem; margin-bottom: 12px; }
.form-error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.send {
  width: 100%;
  font: inherit;
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--signal-ink);
  background: var(--signal);
  border: 0;
  border-radius: var(--radius);
  padding: 13px 18px;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
}
.send:hover { background: var(--signal-hi); }
.send:active { transform: translateY(1px); }
.send:disabled { opacity: 0.6; cursor: progress; }
.send.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.send.ghost:hover { border-color: var(--signal); color: var(--signal-hi); }
.brief .fine { text-align: center; margin-top: 12px; }

.sent h2:focus { outline: none; }
.sent p { color: var(--ink-2); margin-bottom: 22px; }
.sent p strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.sent h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230c0a0a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}

/* ---------- audits ---------- */

.audit-cols {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 1180px) { .audit-cols { grid-template-columns: minmax(0, 1fr); } }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.98rem;
}
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--signal);
  border-radius: 2px;
  transform: rotate(45deg);
}

.finding {
  margin: 0;
  background: #080707;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.finding figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.sev {
  font-weight: 700;
  color: var(--signal-ink);
  background: var(--bad);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 0.82rem;
}
.finding-title { font-weight: 600; }
.finding-title code { background: none; padding: 0; }
.where { color: var(--ink-3); font-family: var(--mono); font-size: 0.82rem; margin-left: auto; }
.finding pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.65;
  color: #e2dad8;
  tab-size: 4;
  scrollbar-color: var(--line-strong) transparent;
}
.finding pre code { background: none; padding: 0; font-size: inherit; }
.finding .k { color: #a8c8ff; }
.finding .c { color: #85797a; }
.finding .bad { color: var(--bad); }
.fix { padding: 14px 18px 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.95rem; }
.fix strong { color: var(--ok); }

/* ---------- this server ---------- */

#server-sentence strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
#server-sentence strong.hot { color: var(--signal); }

.probe-table {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.probe-table caption { text-align: left; font-weight: 600; padding-bottom: 10px; }
.probe-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-3);
  padding: 8px 0;
  border-bottom: 1px solid var(--line-strong);
}
.probe-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.probe-table td.path { font-family: var(--mono); font-size: 0.88rem; color: var(--ink-2); overflow-wrap: anywhere; padding-right: 16px; }
.probe-table .num { text-align: right; font-variant-numeric: tabular-nums; width: 5rem; }

/* ---------- process ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
@media (max-width: 640px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li {
  counter-increment: step;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}
.steps h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 6px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.steps h3::before {
  content: counter(step);
  font-stretch: 125%;
  font-weight: 800;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.steps p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- footer ---------- */

.foot { margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.foot-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.foot nav { display: flex; gap: 20px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* ---------- privacy page ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) 0;
}
.doc h1 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.doc .updated { color: var(--ink-3); font-size: 0.92rem; margin-top: 14px; }
.doc .intro { font-size: 1.15rem; color: var(--ink-2); margin-top: 24px; max-width: 62ch; }
.doc h2 {
  font-stretch: 108%;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}
.doc p, .doc li { color: var(--ink-2); max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 1.2em; margin: 0; }
.doc li + li { margin-top: 10px; }
.doc li::marker { color: var(--signal); }
