/* HumanFace — editorial landing page
   Minimal, warm, serif-led. Sells through prose + photography, one CTA. */

:root {
  --sand:   #f3efe7;   /* page */
  --paper:  #fffdf8;   /* raised surfaces */
  --ink:    #201c18;   /* text */
  --muted:  #746c63;   /* secondary text */
  --line:   rgba(32, 28, 24, 0.12);
  --line-soft: rgba(32, 28, 24, 0.07);
  --terracotta: #d96a3b;
  --rust:   #9d452d;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  --wrap:    920px;   /* hero image + section width */
  --measure: 640px;   /* reading column */
  --pad:     24px;
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;   /* guard against any single wide line widening the page */
}

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

figure { margin: 0; }

a { color: inherit; }

::selection { background: var(--terracotta); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(var(--pad), calc((100vw - 1240px) / 2));
  background: color-mix(in srgb, var(--sand) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em; text-decoration: none; color: var(--ink);
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }

.nav-links {
  display: flex; gap: 26px; margin-left: auto;
  font-size: 15px; color: var(--muted);
}
.nav-links a { text-decoration: none; transition: color .18s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; text-decoration: none;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .18s, opacity .18s;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.nav-links + .btn { margin-left: 20px; }

.text-link {
  font-size: 16px; color: var(--rust); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--rust) 35%, transparent);
  padding-bottom: 1px; transition: border-color .18s;
}
.text-link:hover { border-color: var(--rust); }

/* ---------- Post shell ---------- */

.post {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--pad) 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px;
}

/* ---------- Hero head ---------- */

.post-head {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.post-head h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 6.2vw, 64px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 22px;
}
.dek {
  max-width: 560px; margin: 0 auto; color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55;
}
.post-cta {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 14px 26px; margin-top: 30px;
}

/* ---------- Hero image ---------- */

.hero-figure {
  margin: clamp(40px, 6vw, 64px) 0 0;
}
.hero-figure img {
  width: 100%; height: auto; border-radius: 20px;
  aspect-ratio: 16 / 9; object-fit: cover;
  box-shadow: 0 30px 70px -40px rgba(32, 28, 24, 0.5);
}

/* ---------- Prose column ---------- */

.prose {
  max-width: var(--measure); margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 0 0;
}
.prose p { margin: 0 0 22px; }
.prose strong { font-weight: 650; }
.prose .lead {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(23px, 3vw, 28px); line-height: 1.3;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 20px;
}
.prose h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.12;
  letter-spacing: -0.015em; margin: 52px 0 22px;
}

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 4px 0 0; padding: 0; }
.steps li {
  display: flex; gap: 20px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  font-family: var(--serif); font-size: 20px; color: var(--terracotta);
  font-weight: 500; min-width: 30px; flex: none;
}
.steps strong {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: 21px; letter-spacing: -0.01em; margin-bottom: 4px;
}
.steps p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.5; }

/* ---------- Feature (photo + copy) ---------- */

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin: clamp(64px, 9vw, 108px) 0;
}
.feature-photo {
  aspect-ratio: 4 / 5;          /* a gentle portrait — the aspect lives on the
                                   figure, not the img, so it always holds */
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 30px 70px -44px rgba(32, 28, 24, 0.55);
}
.feature-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.feature-copy h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(27px, 3.6vw, 38px); line-height: 1.1;
  letter-spacing: -0.02em; margin: 0 0 18px;
}
.feature-copy p { margin: 0; color: var(--muted); font-size: 17.5px; }

/* ---------- Quiet list ---------- */

.quiet-list { list-style: none; margin: 26px 0 0; padding: 0; }
.quiet-list li {
  position: relative; padding: 13px 0 13px 26px;
  border-top: 1px solid var(--line-soft); color: var(--ink);
  font-size: 16.5px;
}
.quiet-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.quiet-list li::before {
  content: ""; position: absolute; left: 2px; top: 21px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta);
}

/* ---------- Closing ---------- */

.closing {
  max-width: var(--measure); margin: clamp(72px, 10vw, 120px) auto 0;
  text-align: center;
}
.closing h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 14px;
}
.closing p { color: var(--muted); margin: 0 0 28px; font-size: 19px; }

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

.footer {
  margin-top: clamp(72px, 10vw, 120px);
  background: var(--ink); color: #d9d2c8;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  padding: clamp(48px, 7vw, 80px) var(--pad) 40px;
}
.brand-light { color: #f6f1e8; }
.brand-light img { filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { margin: 16px 0 0; color: #9c9388; font-size: 15.5px; max-width: 30ch; }
.footer-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  justify-self: end; align-self: start;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 {
  margin: 0 0 4px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #8a8177;
}
.footer-col a {
  color: #d9d2c8; text-decoration: none; font-size: 15px;
  transition: color .18s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px var(--pad);
}
.footer-bottom p {
  max-width: 1240px; margin: 0 auto; font-size: 13.5px; color: #8a8177;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  body { font-size: 17px; }
  .brk { display: none; }   /* headline wraps naturally on small screens */
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .feature { grid-template-columns: 1fr; }
  .feature-photo { order: -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
