:root {
  --bg:       #ffffff;
  --ink:      #14201d;
  --muted:    #586965;
  --line:     #e4e8e6;
  --accent:   #0e6e5c;
  --max:      1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* --- Header --------------------------------------------------- */

header { border-bottom: 1px solid var(--line); }

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--accent); }

.nav-mail {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-mail:hover { color: var(--accent); }

/* --- Main ----------------------------------------------------- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(2.25rem, 5vh, 3.75rem) 0;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 20ch;
}

.sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  color: var(--muted);
  max-width: 56ch;
}

/* --- What Sviml does ----------------------------------------- */

.does {
  margin-top: clamp(3rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
}

.does-item {
  padding-top: 1.1rem;
  border-top: 3px solid var(--accent);
}
.does-item h2 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.does-item p {
  margin-top: 0.45rem;
  font-size: 0.97rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .does { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* --- Footer --------------------------------------------------- */

footer { border-top: 1px solid var(--line); }

.footer-in {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-in a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.footer-in a:hover { color: var(--accent); border-color: var(--accent); }
