/* ============================================================
   MAIN STYLESHEET — yolkcreativestudio.com
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ── Navigation — Vertical Sidebar ───────────────────────── */

body {
  padding-left: var(--nav-width);
}

.nav {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--nav-width);
  height: 100vh;
  padding-top: 160px;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  z-index: 100;
}

.nav-wordmark {
  position: absolute;
  top: 40px;
  left: 40px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  transition: color 0.15s ease;
}

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

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sec);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ── Page Content Wrapper ─────────────────────────────────── */

.content {
  max-width: var(--content-width);
  padding: 0;
}

/* ── Section Dividers ─────────────────────────────────────── */

.rule {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-ter);
  margin: 0;
}

.rule-light {
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(168, 164, 159, 0.4);
  margin: 0;
}

/* ── Section Label ────────────────────────────────────────── */

.section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-sec);
  display: block;
}

/* ── Body Text ────────────────────────────────────────────── */

.body-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  color: var(--text);
}

.body-text p + p { margin-top: var(--para-gap); }

/* ── Metadata / Mono ──────────────────────────────────────── */

.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 18px;
  color: var(--text-ter);
}

/* ── Artifact Placeholder ─────────────────────────────────── */

.artifact {
  width: 100%;
  background-color: rgba(168, 164, 159, 0.25);
  border: 1px solid rgba(168, 164, 159, 0.4);
  padding: 16px;
  margin: 40px 0;
}

.artifact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sec);
}

/* ── Case Study Image ─────────────────────────────────────── */

.cs-img {
  width: 100%;
  display: block;
  margin: 40px 0;
  border-radius: 4px;
}

.cs-img-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--text-sec);
  margin-top: 8px;
  margin-bottom: 40px;
  display: block;
}

.cs-img-group {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-img-group .cs-img {
  margin: 0;
}

/* ── Pull Quote ───────────────────────────────────────────── */

.pull-quote-wrap {
  display: flex;
  gap: 20px;
  margin: 0;
}

.pull-quote-bar {
  flex-shrink: 0;
  width: 2px;
  background-color: var(--accent);
  align-self: stretch;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 34px;
  color: var(--text);
}

/* ── AI Callout ───────────────────────────────────────────── */

.ai-callout-wrap {
  display: flex;
  gap: 20px;
  margin: 40px 0;
}

.ai-callout-bar {
  flex-shrink: 0;
  width: 3px;
  background-color: var(--accent);
  align-self: stretch;
}

.ai-callout {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 26px;
  color: var(--accent);
}

/* ── Part Label (BNY-style two-part solution) ─────────────── */

.part-label-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.part-label-bar {
  flex-shrink: 0;
  width: 2px;
  height: 20px;
  background-color: var(--accent);
}

.part-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Footer ───────────────────────────────────────────────── */

.footer {
  padding: 48px 0 64px;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--content-width);
}

.footer-rule {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-ter);
  margin-bottom: 48px;
}

.footer-back {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-sec);
  display: block;
  margin-bottom: 80px;
}

.footer-back:hover { color: var(--accent); }

.footer-wordmark {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ter);
}

/* ── HOME PAGE ────────────────────────────────────────────── */

.home-hero {
  padding: 80px 0 80px;
}

.home-name {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 60px;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-left: -19px;
  margin-bottom: 10px;
}

.home-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 0;
  padding-left: 0;
}

.home-pos {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sec);
  margin-top: 32px;
  margin-bottom: 0;
}

.home-defs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.home-def {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--text-ter);
}

.home-def:last-child { border-bottom: 1px solid var(--text-ter); }

.home-def-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-ter);
  padding-top: 5px;
}

.home-def-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  color: var(--text);
}

.home-seealso {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 48px;
}

.home-seealso-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sec);
  letter-spacing: 0.04em;
}

.home-seealso-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sec);
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
}

.home-seealso-link:hover { color: var(--accent); }

.home-seealso-dot {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-ter);
}

.home-copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ter);
  letter-spacing: 0.04em;
}

/* ── WORK PAGE ────────────────────────────────────────────── */

.work-header {
  padding: 80px 0 64px;
}

.work-header h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: normal;
  color: var(--text);
}

.work-list {
  list-style: none;
  padding-bottom: 80px;
}

.work-item {
  display: block;
  padding: 36px 0;
  border-top: 1px solid var(--text-ter);
  transition: opacity 0.15s ease;
}

.work-item:last-child { border-bottom: 1px solid var(--text-ter); }
.work-item:hover { opacity: 0.7; }

.work-item-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 38px;
  color: var(--text);
  margin-bottom: 10px;
}

.work-item-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ter);
}

/* ── WRITING PAGE ─────────────────────────────────────────── */

.writing-header {
  padding: 80px 0 64px;
}

.writing-header h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: normal;
  color: var(--text);
}

.writing-list {
  list-style: none;
  padding-bottom: 80px;
}

.writing-item {
  display: block;
  padding: 36px 0;
  border-top: 1px solid var(--text-ter);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.writing-item:last-child { border-bottom: 1px solid var(--text-ter); }
.writing-item:hover { opacity: 0.7; }

.writing-item-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 38px;
  color: var(--text);
  margin-bottom: 10px;
}

.writing-item-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ter);
}

/* ── ESSAY PAGE ───────────────────────────────────────────── */

.essay-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-sec);
  text-decoration: none;
  margin-bottom: 48px;
  margin-top: 48px;
}

.essay-back:hover { color: var(--accent); }

.essay-header {
  padding-bottom: 48px;
}

.essay-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-ter);
  text-transform: uppercase;
  display: block;
  margin-bottom: 24px;
}

.essay-title {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 52px;
  color: var(--text);
  margin-bottom: 20px;
}

.essay-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 32px;
  color: var(--text-sec);
  margin-bottom: 0;
}

.essay-header-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-ter);
  margin: 48px 0;
  opacity: 0.5;
}

.essay-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 30px;
  color: var(--text);
  padding-bottom: 80px;
}

.essay-body p {
  margin-bottom: var(--para-gap);
}

.essay-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 36px;
  color: var(--text);
  margin-top: 56px;
  margin-bottom: 20px;
}

.essay-section-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--text-ter);
  margin: 48px 0;
}

/* ── ABOUT PAGE ───────────────────────────────────────────── */

.about-header {
  padding: 80px 0 64px;
}

.about-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 40px;
}

.about-header h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: normal;
  color: var(--text);
  margin-bottom: 36px;
}

.about-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 34px;
  color: var(--accent);
  margin-bottom: 48px;
}

.about-body {
  padding-bottom: 80px;
}

.about-body p {
  font-size: 16px;
  line-height: 28px;
  color: var(--text);
  margin-bottom: var(--para-gap);
}

.about-body p:last-child { margin-bottom: 0; }

/* ── CASE STUDY PAGES ─────────────────────────────────────── */

.cs-back {
  display: block;
  padding: 40px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-sec);
}

.cs-back:hover { color: var(--accent); }

.cs-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ter);
  display: block;
  padding: 24px 0 0;
  line-height: 18px;
}

.cs-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 52px;
  color: var(--text);
  padding: 24px 0 0;
}

.cs-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 34px;
  color: var(--accent);
  padding: 36px 0 0;
}

.cs-header-rule {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-ter);
  margin-top: 48px;
}

/* Case study section block */
.cs-section {
  padding-top: var(--section-gap);
}

.cs-section-rule {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--text-ter);
  margin-bottom: 48px;
}

.cs-section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-sec);
  display: block;
  margin-bottom: 24px;
}

.cs-body p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  color: var(--text);
  margin-bottom: var(--para-gap);
}

.cs-body p:last-child { margin-bottom: 0; }

/* Stat block — for 129% etc. */
.cs-stat-block {
  text-align: center;
  padding: 48px 0;
}

.cs-stat-number {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  color: var(--text);
  display: block;
}

.cs-stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sec);
  display: block;
  margin-top: 16px;
}

.cs-stat-rule {
  width: 120px;
  height: 1px;
  background-color: var(--text-ter);
  margin: 40px auto 48px;
}

.cs-stat-block--three {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cs-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-align: center;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Collapse sidebar to a top bar on mobile */
  body { padding-left: 0; padding-top: 60px; }

  .nav {
    width: 100%; height: 60px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    padding-top: 0;
    border-bottom: 1px solid rgba(168, 164, 159, 0.4);
  }

  .nav-wordmark { display: block; font-family: var(--font-display); font-size: 16px; color: var(--text); }
  .nav-links { flex-direction: row; gap: 20px; }

  .home-name { font-size: 40px; line-height: 50px; }
  .cs-title { font-size: 32px; line-height: 42px; }
  .cs-lead { font-size: 19px; line-height: 30px; }
  .cs-stat-number { font-size: 72px; }
  .pull-quote { font-size: 19px; line-height: 30px; }
  .work-item-title { font-size: 22px; line-height: 32px; }
}

@media (max-width: 480px) {
  .nav-links { gap: 16px; }
  .home-name { font-size: 32px; line-height: 42px; margin-left: -19px; }
  .cs-title { font-size: 26px; line-height: 36px; }
}
