:root {
  --ink: #14181d;
  --ink-soft: #454e56;
  --paper: #eef1ef;
  --paper-alt: #e2e7e4;
  --white: #ffffff;
  --accent: #2f6f5e;
  --accent-dim: #cfe0d9;
  --line: rgba(20, 24, 29, 0.12);
  --line-strong: rgba(20, 24, 29, 0.22);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--accent); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

.label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 0.9em;
  letter-spacing: 0.02em;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 241, 239, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

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

.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* Hero */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 84px;
  position: relative;
}

.hero-inner { max-width: 760px; }

.hero .label { color: var(--accent-dim); }

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1.15;
}

.hero-sub {
  color: rgba(238, 241, 239, 0.72);
  font-size: 1.05rem;
  max-width: 56ch;
}

.hero-rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 26px;
  background: var(--accent);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn:hover { background: #275c4e; }

/* Sections */

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--paper-alt);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 0.7em;
}

/* Services */

.service-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.service-row {
  display: flex;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.service-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  padding-top: 0.2em;
  flex: none;
  width: 2.4em;
}

.service-row h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}

.service-row p { margin: 0; max-width: 62ch; }

/* About */

.about-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text p { max-width: 58ch; }

.about-photo { display: flex; justify-content: center; }

.avatar-placeholder,
.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

.avatar-placeholder {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.avatar { object-fit: cover; }

/* Contact */

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-links li { margin-bottom: 0.6em; }
.contact-links a { font-size: 1.02rem; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 18px;
}

.hp-field { display: none; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding: 26px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

/* Responsive */

@media (max-width: 760px) {
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .about-photo { order: -1; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .site-nav.open { max-height: 240px; }

  .site-nav a {
    padding: 16px 28px;
    border-top: 1px solid var(--line);
  }

  .hero { padding: 72px 0 64px; }
  .section { padding: 60px 0; }
}
