/* =========================================================================
   Steven Wilke — author site
   Editorial single-page design. Warm paper background, canyon-clay accent,
   variable serif (Fraunces) throughout.
   ========================================================================= */

:root {
  --bg: #f7f2e9;
  --bg-elev: #fbf7ef;
  --ink: #1a1612;
  --ink-soft: #5c544a;
  --ink-muted: #8a8175;
  --rule: #e5dbc9;
  --rule-soft: #ece4d4;
  --accent: #b8472a;
  --accent-deep: #8c331c;

  --font-serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;

  --max: 1240px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);

  --shadow-soft: 0 1px 2px rgba(26, 22, 18, 0.04), 0 8px 24px rgba(26, 22, 18, 0.06);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 50, 'opsz' 14;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms ease;
}
a:hover { color: var(--accent); }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  background: rgba(247, 242, 233, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav:hover { border-color: var(--rule-soft); }

.nav__brand {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  font-variation-settings: 'SOFT' 100, 'opsz' 14;
}

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.nav__links a {
  color: var(--ink-soft);
  position: relative;
}
.nav__links a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ---------- shared ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 10rem) var(--pad-x);
  border-top: 1px solid var(--rule);
}

.section__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin: 0 0 2.5rem;
  font-variation-settings: 'SOFT' 0, 'opsz' 9;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 2rem;
}

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}

.display--small {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

.display__sub {
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink-soft);
  margin: 0 0 3rem;
  font-variation-settings: 'SOFT' 100, 'opsz' 24;
}

.prose {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  line-height: 1.7;
  color: var(--ink);
}
.prose--wide { max-width: 42rem; }
.prose p { margin: 0 0 1.4em; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; }

.lead {
  font-size: clamp(1.18rem, 1.5vw, 1.32rem) !important;
  line-height: 1.55 !important;
  font-variation-settings: 'SOFT' 80, 'opsz' 24;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 200ms ease, transform 200ms ease, color 200ms ease;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad-x) clamp(4rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 2rem;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
}

.hero__lede {
  font-size: clamp(1.1rem, 1.4vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 32rem;
  margin: 0 0 2.5rem;
  font-variation-settings: 'SOFT' 80, 'opsz' 24;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__portrait {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__portrait {
    max-width: 26rem;
    margin: 0 auto;
  }
}

/* ---------- book ---------- */

.section--book .display {
  margin-top: -0.1em;
}

.book__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.book__image {
  margin: 0;
  position: sticky;
  top: 6rem;
}
.book__image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-elev);
}
.book__image figcaption,
.about__feature figcaption {
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin: 0.9rem 0 0;
  font-style: italic;
}
@media (max-width: 860px) {
  .book__grid { grid-template-columns: 1fr; }
  .book__image { position: static; max-width: 28rem; }
}

/* ---------- about ---------- */

.about__feature {
  margin: 3rem 0 3.5rem;
}
.about__feature img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-elev);
}

.about__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__columns .prose {
  max-width: none;
}
.about__side {
  margin: 0;
  position: sticky;
  top: 6rem;
}
.about__side img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  background: var(--bg-elev);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about__side figcaption {
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin: 0.9rem 0 0;
  font-style: italic;
}
@media (max-width: 860px) {
  .about__columns { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__side { position: static; max-width: 28rem; }
}

/* ---------- gallery strip ---------- */

.section--gallery {
  border-top: 1px solid var(--rule);
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.gallery {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.gallery li { margin: 0; }
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  background: var(--bg-elev);
  filter: saturate(0.95);
  transition: filter 400ms ease, transform 400ms ease;
}
.gallery li:hover img {
  filter: saturate(1.1);
  transform: translateY(-3px);
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; gap: 1rem; }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 2.5rem !important;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 0.55em 1em 0.55em 0.9em;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 71, 42, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(184, 71, 42, 0.15); }
  50%      { box-shadow: 0 0 0 7px rgba(184, 71, 42, 0.0); }
}

/* ---------- achievements ---------- */

.achievements {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule-soft);
}
.achievements li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.achievements__title {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  font-variation-settings: 'SOFT' 100, 'opsz' 36;
}
.achievements__detail {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .achievements li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

.achievements__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: 56rem;
  align-items: start;
}
.achievements__feature {
  margin: 0;
  text-align: center;
}
.achievements__feature img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  background: var(--bg-elev);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.achievements__feature figcaption {
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin: 0.9rem 0 0;
  font-style: italic;
}
@media (max-width: 640px) {
  .achievements__features { grid-template-columns: 1fr; max-width: 28rem; }
}

/* ---------- press ---------- */

.press {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule-soft);
}
.press li {
  border-bottom: 1px solid var(--rule-soft);
}
.press a {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 2rem;
  padding: 1.5rem 0;
  align-items: baseline;
  transition: padding 200ms ease, color 200ms ease;
}
.press a:hover {
  padding-left: 0.6rem;
}
.press__pub {
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.press__title {
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-variation-settings: 'SOFT' 100, 'opsz' 36;
}
.press a:hover .press__title { color: var(--accent); }

@media (max-width: 640px) {
  .press a {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.4rem 0;
  }
}

/* ---------- connect ---------- */

.connect__lede {
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 0 3rem;
}

.connect__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 44rem;
}
.connect__link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.6rem 1.8rem;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}
.connect__link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.connect__label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.connect__value {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--ink);
  word-break: break-word;
}
.connect__link:hover .connect__value { color: var(--accent); }

@media (max-width: 640px) {
  .connect__links { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem var(--pad-x) 3.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.footer p { margin: 0; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
