/* Elliott Solutions, LLC — styles.css
   Mobile first. One accent, two typefaces, no cards. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f6f5;
  --paper-2: #e4ebe7;       /* trace panel, form fields */
  --ink: #14231f;
  --ink-soft: #435650;      /* secondary text, 7:1 on paper */
  --rule: #b9c6c0;
  --accent: #1d3fd8;        /* the only colour: links, button, status */
  --accent-ink: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 1.25 scale, fluid at the top end */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.6rem + 4vw, 4.4rem);

  --gutter: 1.25rem;
  --measure: 66ch;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; font-size: var(--step--1); }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: 0.5rem; display: inline-block; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
/* phones: keep wordmark + Contact only */
.site-nav li:not(:last-child) { display: none; }

/* ---------- hero ---------- */
.hero { padding-block: 3rem 3.5rem; }
.hero .wrap { display: grid; gap: 2.5rem; }
.hero h1 { font-size: var(--step-4); font-weight: 700; }
.hero .lead { font-size: var(--step-1); line-height: 1.45; margin-top: 1.25rem; max-width: 34ch; }
.hero .plain { margin-top: 1.5rem; color: var(--ink); font-weight: 500; }

.button {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1.0625rem/1 var(--sans);
  padding: 1.05rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.button:hover { background: var(--ink); border-color: var(--ink); }

/* the memorable element: a request and a response */
.trace { margin: 0; }
.trace pre {
  margin: 0;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--paper-2);
  border-left: 4px solid var(--accent);
  font: 500 0.8125rem/1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.trace .dim { color: var(--ink-soft); }
.trace .ok { color: var(--accent); font-weight: 700; }
.trace figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- sections ---------- */
section[id] { padding-block: 3.5rem; border-top: 1px solid var(--rule); }
.section-grid { display: grid; gap: 1.75rem; }
.section-grid > h2 { font-size: var(--step-3); }

/* services */
.services { margin: 0; }
.services dt { font: 600 var(--step-2)/1.2 var(--serif); margin-top: 2rem; }
.services dt:first-child { margin-top: 0; }
.services dd { margin: 0.4rem 0 0; max-width: var(--measure); }
.services .tech { display: block; margin-top: 0.4rem; font: 500 var(--step--1)/1.5 var(--mono); color: var(--ink-soft); }

/* work */
.project + .project { margin-top: 2.75rem; padding-top: 2.75rem; border-top: 1px solid var(--rule); }
.project h3 { font-size: var(--step-2); }
.project dl { margin: 1.1rem 0 0; display: grid; gap: 0.9rem; }
.project dt { font-weight: 700; font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 0.1rem; }
.project dd { margin: 0; max-width: var(--measure); }
.project dd.stack { font: 500 var(--step--1)/1.6 var(--mono); }
.project .links { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-weight: 600; }
.project .links a { padding-block: 0.4rem; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: var(--measure); }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; margin-top: 1.75rem; }
.steps li:first-child { margin-top: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.15rem;
  font: 700 2rem/1 var(--serif); color: var(--accent);
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.2rem; }
.steps p { margin: 0; }

/* contact */
.contact-side p { color: var(--ink-soft); }
.contact-side .reach { margin-top: 1.5rem; color: var(--ink); }
.contact-side .reach strong { display: block; }

form { display: grid; gap: 1.25rem; max-width: 36rem; }
label, legend { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.hint { font-weight: 400; color: var(--ink-soft); }
input, textarea, select {
  width: 100%;
  font: inherit; color: var(--ink);
  background: var(--paper-2);
  border: 1px solid #7f918a;
  border-radius: 3px;
  padding: 0.8rem 0.85rem;
  min-height: 3rem;
}
textarea { min-height: 9rem; resize: vertical; }
select { appearance: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.status { margin: 0; padding: 1rem 1.1rem; border-left: 4px solid var(--accent); background: var(--paper-2); font-weight: 600; }
.status[hidden] { display: none; }
.status.error { border-left-color: #a3261c; }

/* footer */
footer { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; font-size: var(--step--1); color: var(--ink-soft); }
footer p { margin: 0; max-width: none; }

/* ---------- tablet and up ---------- */
@media (min-width: 640px) {
  :root { --gutter: 2rem; --step-0: 1.125rem; }
  .site-nav li:not(:last-child) { display: list-item; }
  .trace pre { font-size: 0.9rem; padding: 1.5rem 1.75rem; }
}

@media (min-width: 900px) {
  .hero { padding-block: 5rem 5.5rem; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
  section[id] { padding-block: 5rem; }
  .section-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; }
  .section-grid > h2 { position: sticky; top: 1.5rem; align-self: start; }
  .project dl { grid-template-columns: 5.5rem 1fr; gap: 0.9rem 1.5rem; }
  .project dt { margin: 0.25rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* thanks page */
.thanks { padding-block: 5rem; }
.thanks h1 { font-size: var(--step-3); margin-bottom: 1rem; }

/* contact spacing */
.contact-side h2 { margin-bottom: 0.9rem; }
.contact-side .reach br { display: none; }
.contact-side .reach a { display: inline-block; padding-block: 0.4rem; margin-bottom: 0.4rem; }

/* one-line extra project */
.also { margin: 2.75rem 0 0; padding-top: 2.75rem; border-top: 1px solid var(--rule); }


.elsewhere { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-weight: 600; }
.elsewhere a { padding-block: 0.4rem; }

/* privacy / legal page */
.legal { padding-block: 4rem; }
.legal h1 { font-size: var(--step-3); margin-bottom: 0.5rem; }
.legal .effective { color: var(--ink-soft); margin-bottom: 2rem; }
.legal h2 { font-size: var(--step-1); margin: 2.25rem 0 0.75rem; }
.legal ul { max-width: var(--measure); padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4rem; }
footer p a { margin-left: 0.75rem; }
