/* cristoferslotoroff.com
   Dark, natural, unfussy. Deep green-charcoal ground, warm off-white text,
   fern green and ochre as the working colors. Serious enough to be a resume,
   relaxed enough to sound like Cris. No grey-on-dark, no dark-on-dark, ever. */

:root {
  --ground: #161f1a;      /* green-tinted charcoal, not black */
  --surface: #1e2a23;     /* cards */
  --surface-edge: #2e3d33;
  --text: #f1eee3;        /* warm near-white */
  --text-soft: #cfc9b4;   /* warm sand, still bright on the ground */
  --fern: #8fbe7f;        /* primary green */
  --fern-deep: #5f8f52;
  --ochre: #d9a662;       /* warm natural pop */
  --link: #dfaf6b;
  --link-bright: #ecc584;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.sheet {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.4rem 4rem;
}
/* project grids get to breathe wider than prose */
.wide { max-width: 62rem; margin: 0 auto; }

/* ---- type ---- */

h1, h2, h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 0.9rem;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }

p { margin: 0 0 1.4rem; text-wrap: pretty; }
li { text-wrap: pretty; }
.lede { font-size: 1.22rem; line-height: 1.65; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-bright); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
  border-radius: 3px;
}

.small { font-size: 0.9rem; color: var(--text-soft); }

/* emphasis: warm green ink instead of a highlighter */
mark {
  background: none;
  color: var(--ochre);
  font-weight: 600;
}

/* the essential-question device: the question speaks for itself */
.eq {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  text-wrap: balance;
  color: var(--ochre);
  margin: 0 0 0.6rem;
}

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

header.site {
  padding: 1.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}
.wordmark {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { color: var(--ochre); }
nav.site a {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  margin-left: 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
}
nav.site a:first-child { margin-left: 0; }
nav.site a:hover { color: var(--ochre); }

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

.hero { padding: 5.5rem 0 1.5rem; }
.kicker {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92rem;
  color: var(--ochre);
  display: block;
  margin-bottom: 1.2rem;
}

/* ---- sections ---- */

section { padding-top: 3.5rem; }
.section-title { margin-bottom: 0.5rem; }
.section-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.55rem;
  background: var(--ochre);
  border-radius: 2px;
}
section > p { color: var(--text); }

/* ---- cards ---- */

/* flex-wrap + grow so a last-row card stretches, never orphans */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.6rem 0 0.5rem;
}
.card {
  flex: 1 1 19rem;
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  border-radius: 10px;
  padding: 1.4rem 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
}
.card .eq { font-size: 1rem; margin-bottom: 0.7rem; }
.card h3 { color: var(--text); }
.card p { margin-bottom: 0.9rem; line-height: 1.6; font-size: 0.98rem; }
.card .links { margin-top: auto; font-size: 0.95rem; }
.card .links a { margin-right: 1rem; font-weight: 600; }

/* ---- blog list ---- */

.post-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.post-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--surface-edge);
}
.post-list .date {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.83rem;
  color: var(--ochre);
  margin-right: 0.8rem;
}
.post-list a { font-weight: 600; text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list .small { display: block; margin-top: 0.15rem; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ochre);
  border: 1px solid var(--ochre);
  border-radius: 999px;
  padding: 0.02rem 0.55rem;
  margin-left: 0.45rem;
  vertical-align: 1px;
}

/* ---- article (case studies + posts) ---- */

article.page { padding-top: 3.5rem; }
article.page ul, article.page ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
article.page li { margin-bottom: 0.55rem; }
article.page li::marker { color: var(--ochre); }
article.page blockquote {
  margin: 0 0 1.4rem;
  padding: 0.2rem 1.2rem;
  border-left: 3px solid var(--ochre);
  color: var(--text);
}
article.page code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  padding: 0.08em 0.35em;
  border-radius: 4px;
}
.fake-data {
  background: var(--surface);
  border: 1px solid var(--surface-edge);
  border-left: 3px solid var(--ochre);
  border-radius: 8px;
  padding: 0.95rem 1.15rem;
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

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

.facts { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.facts li {
  padding: 0.5rem 0 0.5rem 1.1rem;
  border-left: 2px solid var(--ochre);
  margin-bottom: 0.55rem;
}

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

footer.site {
  margin-top: 4.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--surface-edge);
  font-size: 0.92rem;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
footer.site a { color: var(--text-soft); }

/* buttons (always reset background per house rule) */
button, .btn {
  background: var(--fern);
  color: #12190f;
  border: none;
  border-radius: 7px;
  font: 600 1rem "Public Sans", sans-serif;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
button:hover, .btn:hover { background: var(--ochre); color: #201607; }

/* ---- coming-soon curtain (delete this block + the .curtain divs to launch) ---- */

body.curtained { overflow: hidden; }
.curtain {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(22, 31, 26, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.curtain-card { text-align: center; max-width: 24rem; }
.curtain-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 3rem);
  color: var(--text);
  margin: 0 0 0.6rem;
}
.curtain-card p:last-child { color: var(--text); margin: 0; text-wrap: balance; }
