/* ============================================================
   AdamSopko.com — Shared Stylesheet
   Aesthetic: Understated / Classic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f8f6f2;
  --text:       #1a1918;
  --muted:      #7a746e;
  --accent:     #2c5f4a;
  --border:     #dedad4;
  --serif:      'EB Garamond', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
  --max-w:      700px;
  --nav-h:      72px;
}

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
a:hover { text-decoration-color: var(--accent); color: var(--accent); }

em { font-style: italic; }

blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}
.nav-logo:hover { color: var(--accent); text-decoration: none; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ── Page body offset for fixed nav ── */
.page-body { padding-top: var(--nav-h); }

/* ── Section ── */
.section {
  padding: 5rem 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  display: block;
}

/* ── Divider ── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ── Hero ── */
.hero {
  padding: 7rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic svg {
  width: 100%;
  max-width: 440px;
  height: auto;
}

/* ── Portrait placeholder ── */
.portrait-wrap {
  float: right;
  margin: 0 0 2rem 3rem;
  width: 260px;
}

.portrait-wrap img {
  width: 100%;
  display: block;
  filter: grayscale(15%);
}

.portrait-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-placeholder span {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem 0 3rem;
  }
  .hero-graphic { order: -1; }
  .hero-graphic svg { max-width: 300px; }
  .portrait-wrap {
    float: none;
    margin: 0 auto 2rem;
    width: 200px;
  }
}

/* ── Arrow link ── */
.arrow-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.arrow-link:hover { gap: 0.7rem; color: var(--accent); }
.arrow-link::after { content: '→'; }

/* ── Service cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.service-block h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.service-block ul {
  list-style: none;
  padding: 0;
}

.service-block ul li {
  font-size: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.service-block ul li:first-child {
  border-top: 1px solid var(--border);
}

/* ── Work / Proof points ── */
.work-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.work-item:first-of-type {
  border-top: 1px solid var(--border);
}

.work-meta {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.work-item h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* ── Metrics ── */
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}

.metric {
  flex: 1;
  min-width: 140px;
}

.metric-value {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Contact form ── */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

input, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}

input:focus, textarea:focus {
  border-bottom-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

button[type="submit"] {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

button[type="submit"]:hover { background: var(--accent); }

/* ── Footer ── */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links { gap: 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .metrics { gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
