/* ESSolutions — single-page card */

:root {
  --bg: #f6f3ee;
  --surface: #fffdf9;
  --ink: #1b1d1f;
  --ink-soft: #4a4f55;
  --ink-faint: #676c72;
  --line: #e2ddd4;
  --accent: #1f5f5b;
  --accent-soft: #dcebe8;

  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131516;
    --surface: #1b1e20;
    --ink: #ecebe7;
    --ink-soft: #b4b6b8;
    --ink-faint: #9a9fa3;
    --line: #2b2f32;
    --accent: #6cc3b9;
    --accent-soft: #1d3331;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.card {
  width: 100%;
  max-width: 680px;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  gap: 40px;
}

/* Intro */

h1 {
  margin: 0;
  font-weight: 700;
  /* Always one line: shrinks with the viewport on narrow screens. */
  font-size: min(2.25rem, calc((100vw - 80px) / 15));
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.role {
  margin: 8px 0 0;
  font-weight: 600;
  color: var(--accent);
}

.role span {
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Sections */

h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work li {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.work li:last-child { border-bottom: 1px solid var(--line); }
.work strong { font-weight: 600; }
.work span { color: var(--ink-soft); font-size: 0.95rem; }
.work a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.work a:hover { text-decoration-color: var(--accent); }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.links a,
.links button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.links a:hover,
.links button:hover { border-color: var(--accent); background: var(--accent-soft); }
.links a.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.links a.primary:hover { background: var(--accent); border-color: var(--accent); }
.links svg { width: 18px; height: 18px; flex: none; }

.foot {
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: center;
}

@media (max-width: 520px) {
  body { padding: 16px; font-size: 16px; }
  .card { padding: 28px 24px; gap: 32px; }
  .links a,
  .links button { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
