@import url("fonts.css");

:root {
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --ink: #1b1d20;
  --ink-2: #4a4e55;
  --line: #d3cfc6;
  --accent: #0f5f57;
  --accent-ink: #f3f1ec;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --text-hero: clamp(2.375rem, 1.4rem + 4.2vw, 4.5rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }

/* ---------- header ---------- */
.top { border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.mark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.top nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.top nav a {
  font-size: var(--text-sm);
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s ease;
}
.top nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(3.5rem, 10vw, 8rem) 0 var(--section); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 { font-size: var(--text-hero); font-weight: 700; max-width: 14ch; }
.lead { margin-top: 1.5rem; font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; }
.btn {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.875rem 1.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: background .15s ease;
}
.btn:hover { background: #0b4a44; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hero__art { width: 100%; max-width: 26rem; justify-self: end; }
.art-lines path { fill: none; stroke: var(--ink); stroke-width: 1.25; opacity: .35; }
.art-nodes circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.art-core circle { fill: var(--accent); }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--paper-2); }
.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section h2 { font-size: var(--text-xl); font-weight: 700; }
.section h3 { font-size: var(--text-lg); font-weight: 500; letter-spacing: -0.01em; }

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.services li { padding: 1.5rem 1.5rem 0 0; }
.services li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.services p { margin-top: 0.75rem; color: var(--ink-2); font-size: var(--text-sm); }

.approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 6vw, 5rem); }
.approach .section__head { margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; }
.steps__n {
  font-family: var(--mono);
  font-size: var(--text-sm);
  color: var(--accent);
  border: 1px solid var(--accent);
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border-radius: 50%;
}
.steps p { margin-top: 0.5rem; color: var(--ink-2); }

.contact__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.contact h2 { margin-bottom: 0.75rem; }
.contact__mail {
  font-size: clamp(1.375rem, 1rem + 1.8vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--accent); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 1.75rem 0; font-size: var(--text-xs); color: var(--ink-2); }
.foot__row { display: flex; justify-content: space-between; gap: 1rem; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - 4rem - 5rem); display: grid; align-content: center; padding: var(--section) 0; }
.nf h1 { font-size: var(--text-xl); margin-bottom: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services li:nth-child(3) { padding-left: 0; border-left: 0; }
  .services li:nth-child(n+3) { margin-top: 1.5rem; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { justify-self: start; max-width: 16rem; order: -1; }
  .approach { grid-template-columns: 1fr; }
  .top nav a:not(:last-child) { display: none; }
}
@media (max-width: 520px) {
  .services { grid-template-columns: 1fr; }
  .services li, .services li + li { padding: 1.25rem 0 0; border-left: 0; }
  .services li + li { margin-top: 1.25rem; border-top: 1px solid var(--line); }
  .foot__row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
