/* ============================================================
   8x8verse — Premium Chess Tutorial Platform
   Design: Minimal & Refined — Ivory · Ink · Gold
   by ch4.dev
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --ivory:       #f6f1e8;
  --ivory-2:     #ede6d6;
  --ivory-3:     #e0d7c5;
  --ink:         #0f0e0d;
  --ink-2:       #2a2825;
  --ink-3:       #524f4a;
  --ink-4:       #8a8680;
  --gold:        #c9a84c;
  --gold-lt:     #e2c47a;
  --gold-dim:    rgba(201,168,76,.15);
  --gold-glow:   rgba(201,168,76,.08);
  --white:       #ffffff;
  --border:      rgba(15,14,13,.08);
  --border-md:   rgba(15,14,13,.14);
  --serif:       'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:        'DM Sans', system-ui, -apple-system, sans-serif;
  --radius:      3px;
  --radius-md:   6px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.06);
  --shadow:      0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.14);
  --max-w:       1200px;
  --max-w-text:  740px;
  --nav-h:       64px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
.ev-page *, .ev-page *::before, .ev-page *::after { box-sizing: border-box; }
.ev-page { margin: 0; padding: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory); line-height: 1; -webkit-font-smoothing: antialiased; }
.ev-page img { display: block; max-width: 100%; }
.ev-page a { color: inherit; }
.ev-page p { margin: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.ev-container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.ev-container--text { max-width: var(--max-w-text); }
.ev-section { padding: 80px 0; }
.ev-section--sm { padding: 48px 0; }
.ev-section--dark { background: var(--ink); color: var(--ivory); }

/* ── Navigation ─────────────────────────────────────────────── */
.ev-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(246,241,232,.92);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.ev-nav__inner {
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.ev-nav__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.ev-nav__piece { font-size: 22px; line-height: 1; }
.ev-nav__name {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  letter-spacing: .01em; line-height: 1;
}
.ev-nav__name em { font-style: normal; color: var(--gold); }
.ev-nav__links { display: flex; align-items: center; gap: 2px; }
.ev-nav__link {
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 400; letter-spacing: .02em;
  color: var(--ink-3); text-decoration: none;
  transition: color .18s, background .18s;
}
.ev-nav__link:hover { color: var(--ink); background: var(--gold-dim); }
.ev-nav__link--cta {
  background: var(--ink); color: var(--ivory) !important;
  padding: 8px 18px; margin-left: 6px;
  transition: background .18s, color .18s;
}
.ev-nav__link--cta:hover { background: var(--ink-2); }
.ev-nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.ev-nav__hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .22s ease, opacity .22s ease; }

/* ── Page Wrapper ───────────────────────────────────────────── */
.ev-page-body { padding-top: var(--nav-h); min-height: 100vh; }

/* ── Hero ───────────────────────────────────────────────────── */
.ev-hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--ivory);
  padding: 120px 0 100px;
}
.ev-hero__board-bg {
  position: absolute; inset: 0; opacity: .04;
  background-image:
    repeating-conic-gradient(var(--ivory) 0% 25%, transparent 0% 50%);
  background-size: 60px 60px;
  background-position: 0 0;
}
.ev-hero__glow {
  position: absolute; top: -120px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
  pointer-events: none;
}
.ev-hero__inner {
  position: relative; max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center;
}
.ev-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.ev-hero__eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }
.ev-hero__h1 {
  font-family: var(--serif); font-size: clamp(48px,6vw,80px);
  font-weight: 600; line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 24px;
}
.ev-hero__h1 em { font-style: italic; color: var(--gold); }
.ev-hero__sub {
  font-size: 16px; font-weight: 300; line-height: 1.7;
  color: rgba(246,241,232,.65); max-width: 480px; margin-bottom: 36px;
}
.ev-hero__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ev-hero__cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--ink); text-decoration: none;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.ev-hero__cta-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
.ev-hero__cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(246,241,232,.2); color: var(--ivory); text-decoration: none;
  padding: 14px 24px; border-radius: var(--radius);
  font-size: 13px; font-weight: 400; letter-spacing: .04em;
  transition: border-color .2s, background .2s;
}
.ev-hero__cta-secondary:hover { border-color: rgba(246,241,232,.4); background: rgba(246,241,232,.06); }
.ev-hero__board {
  display: grid; grid-template-columns: repeat(8,1fr);
  aspect-ratio: 1; border: 2px solid rgba(201,168,76,.3);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg);
}
.ev-hero__sq { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.ev-hero__sq--light { background: rgba(246,241,232,.06); }
.ev-hero__sq--dark  { background: rgba(15,14,13,.3); }
.ev-hero__sq span { font-size: clamp(10px,1.4vw,20px); opacity: .7; line-height: 1; }
.ev-hero__watch {
  margin-top: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ev-hero__watch-label {
  font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(246,241,232,.4);
}
.ev-hero__watch-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid rgba(246,241,232,.12);
  border-radius: var(--radius); color: rgba(246,241,232,.5); text-decoration: none;
  transition: border-color .2s, color .2s;
}
.ev-hero__watch-link svg { width: 15px; height: 15px; }
.ev-hero__watch-link:hover { border-color: var(--platform-color, var(--gold)); color: var(--platform-color, var(--gold)); }

/* ── Section Title ──────────────────────────────────────────── */
.ev-section-title {
  font-family: var(--serif); font-size: clamp(28px,4vw,42px);
  font-weight: 600; letter-spacing: -.01em; line-height: 1.1;
  margin-bottom: 8px;
}
.ev-section-sub {
  font-size: 15px; font-weight: 300; color: var(--ink-3);
  line-height: 1.6; margin-bottom: 40px;
}
.ev-section-header { margin-bottom: 40px; }
.ev-section-header--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.ev-divider {
  width: 40px; height: 2px; background: var(--gold); margin-bottom: 16px;
}
.ev-view-all {
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.ev-view-all:hover { gap: 10px; }

/* ── Card Grid ──────────────────────────────────────────────── */
.ev-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.ev-grid.ev-cols-1 { grid-template-columns: 1fr; }
.ev-grid.ev-cols-2 { grid-template-columns: repeat(2,1fr); }
.ev-grid.ev-cols-3 { grid-template-columns: repeat(3,1fr); }

/* ── Card ───────────────────────────────────────────────────── */
.ev-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .22s;
}
.ev-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ev-card__img-wrap {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16/9; background: var(--ink); text-decoration: none;
}
.ev-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; display: block;
}
.ev-card:hover .ev-card__img { transform: scale(1.04); }
.ev-card__img--empty {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; font-size: 40px; opacity: .15; background: #181716;
}
.ev-card__play {
  position: absolute; bottom: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--white);
  border: 1px solid rgba(255,255,255,.15);
  transition: background .2s;
}
.ev-card:hover .ev-card__play { background: var(--gold); color: var(--ink); }
.ev-card__diff-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--dc); color: #fff;
  font-family: var(--sans); font-size: 9px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
}
.ev-card__body {
  padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1;
}
.ev-card__meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ev-card__dur {
  font-size: 11px; color: var(--ink-4); display: inline-flex; align-items: center; gap: 3px;
}
.ev-card__tag {
  font-size: 10.5px; color: var(--ink-4); text-decoration: none;
  border: 1px solid var(--border-md); border-radius: 2px;
  padding: 2px 7px;
  transition: border-color .2s, color .2s;
}
.ev-card__tag:hover { border-color: var(--gold); color: var(--gold); }
.ev-card__title {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  line-height: 1.25; margin: 0;
}
.ev-card__title a { text-decoration: none; color: var(--ink); transition: color .2s; }
.ev-card__title a:hover { color: var(--gold); }
.ev-card__excerpt {
  font-size: 13.5px; font-weight: 300; line-height: 1.65;
  color: var(--ink-3); flex: 1;
}
.ev-card__cta {
  font-size: 11.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; margin-top: 2px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: gap .2s;
}
.ev-card__cta:hover { gap: 9px; }

/* ── Topic Filter Nav ───────────────────────────────────────── */
.ev-topic-nav {
  display: flex; gap: 0; flex-wrap: wrap;
  border: 1px solid var(--border-md); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 32px;
}
.ev-topic-nav__item {
  padding: 10px 18px; font-size: 12.5px; font-weight: 400;
  color: var(--ink-3); text-decoration: none;
  border-right: 1px solid var(--border);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.ev-topic-nav__item:last-child { border-right: none; }
.ev-topic-nav__item:hover { background: var(--ivory-2); color: var(--ink); }
.ev-topic-nav__item--active { background: #0f0e0d; color: #c9a84c; font-weight: 500; }

/* ── Stats Bar ──────────────────────────────────────────────── */
.ev-stats {
  background: var(--ink-2); color: var(--ivory);
  padding: 40px 0; border-top: 1px solid rgba(255,255,255,.05);
}
.ev-stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.ev-stats__num {
  font-family: var(--serif); font-size: 48px; font-weight: 600;
  color: var(--gold); line-height: 1; margin-bottom: 8px;
}
.ev-stats__label { font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: rgba(246,241,232,.45); }

/* ── Watch On Bar (single post) ─────────────────────────────── */
.ev-watch-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; background: var(--ink);
  border-radius: var(--radius); margin-bottom: 24px; flex-wrap: wrap;
}
.ev-wb__head {
  font-family: var(--sans); font-size: 9.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold); flex-shrink: 0;
}
.ev-wb__links { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-wb__link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); color: rgba(246,241,232,.8); text-decoration: none;
  font-size: 12.5px; font-weight: 400;
  transition: border-color .2s, color .2s, background .2s;
}
.ev-wb__link:hover { border-color: var(--pc); color: #fff; background: rgba(255,255,255,.04); }
.ev-wb__icon { color: var(--pc); display: flex; align-items: center; }
.ev-wb__icon svg { width: 15px; height: 15px; }
.ev-wb__lbl { font-family: var(--sans); }

/* ── Video Embed ─────────────────────────────────────────────── */
.ev-video {
  border-radius: var(--radius-md); overflow: hidden;
  margin-bottom: 28px; box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.ev-video__inner { position: relative; padding-bottom: 56.25%; }
.ev-video__inner iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ── Tutorial Meta ──────────────────────────────────────────── */
.ev-tmeta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.ev-tmeta__diff {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--dc);
}
.ev-tmeta__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dc); flex-shrink: 0; }
.ev-tmeta__item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--ink-4);
}
.ev-tmeta__tag {
  font-size: 11px; color: var(--ink-4); text-decoration: none;
  padding: 3px 9px; border: 1px solid var(--border-md); border-radius: 2px;
  transition: border-color .2s, color .2s;
}
.ev-tmeta__tag:hover { border-color: var(--gold); color: var(--gold); }

/* ── Author Credit ──────────────────────────────────────────── */
.ev-author-credit {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; margin-top: 40px;
  background: var(--ivory-2); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
  flex-wrap: wrap;
}
.ev-credit__piece { font-size: 28px; opacity: .5; flex-shrink: 0; }
.ev-credit__info { flex: 1; min-width: 160px; }
.ev-credit__by { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.ev-credit__name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); text-decoration: none; transition: color .2s; display: block; }
.ev-credit__name:hover { color: var(--gold); }
.ev-credit__bio { font-size: 13px; color: var(--ink-3); font-weight: 300; line-height: 1.5; margin-top: 4px; }
.ev-credit__socials { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.ev-credit__social {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--border-md);
  border-radius: var(--radius); color: var(--ink-3); text-decoration: none;
  transition: border-color .2s, color .2s;
}
.ev-credit__social svg { width: 15px; height: 15px; }
.ev-credit__social:hover { border-color: var(--pc); color: var(--pc); }

/* ── Home: Feature Strip ─────────────────────────────────────── */
.ev-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); }
.ev-feature { background: var(--ivory); padding: 36px 32px; }
.ev-feature__icon { font-size: 28px; margin-bottom: 16px; }
.ev-feature__title { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.ev-feature__text { font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--ink-3); }

/* ── About Page ─────────────────────────────────────────────── */
.ev-about-hero {
  padding: 100px 0 72px; background: var(--ink); color: var(--ivory); text-align: center;
  position: relative; overflow: hidden;
}
.ev-about-hero::before {
  content: '♟'; position: absolute; font-size: 300px; opacity: .03;
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; line-height: 1;
}
.ev-about-hero__piece { font-size: 48px; margin-bottom: 16px; opacity: .8; }
.ev-about-hero__name { font-family: var(--serif); font-size: clamp(36px,6vw,64px); font-weight: 600; margin-bottom: 10px; }
.ev-about-hero__name em { font-style: normal; color: var(--gold); }
.ev-about-hero__role { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(246,241,232,.45); }
.ev-about-bio { max-width: 640px; margin: 0 auto; font-size: 17px; font-weight: 300; line-height: 1.85; color: var(--ink-2); text-align: center; }
.ev-about-socials { display: flex; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.ev-about-social {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 1px solid var(--border-md);
  border-radius: var(--radius); font-size: 13px; font-weight: 400;
  color: var(--ink-2); text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.ev-about-social svg { width: 16px; height: 16px; }
.ev-about-social:hover { border-color: var(--pc); color: var(--pc); background: rgba(0,0,0,.02); }

/* ── Contact Page ───────────────────────────────────────────── */
.ev-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.ev-contact-form { display: flex; flex-direction: column; gap: 16px; }
.ev-field { display: flex; flex-direction: column; gap: 6px; }
.ev-field label { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ev-field input, .ev-field textarea, .ev-field select {
  padding: 12px 14px; border: 1px solid var(--border-md);
  border-radius: var(--radius); font-family: var(--sans); font-size: 14px; font-weight: 300;
  background: var(--white); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ev-field input:focus, .ev-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.ev-field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.ev-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border: none; border-radius: var(--radius);
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, transform .18s;
}
.ev-btn--primary { background: var(--ink); color: var(--ivory); }
.ev-btn--primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.ev-btn--gold { background: var(--gold); color: var(--ink); }
.ev-btn--gold:hover { background: var(--gold-lt); transform: translateY(-1px); }
.ev-contact-info { padding-top: 8px; }
.ev-contact-info__title { font-family: var(--serif); font-size: 32px; font-weight: 600; margin-bottom: 16px; }
.ev-contact-info__text { font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--ink-3); margin-bottom: 28px; }
.ev-contact-channels { display: flex; flex-direction: column; gap: 10px; }
.ev-contact-channel {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.ev-contact-channel svg { width: 16px; height: 16px; flex-shrink: 0; }
.ev-contact-channel:hover { border-color: var(--gold); background: var(--gold-glow); }
.ev-contact-channel__label { font-size: 13px; font-weight: 400; }
.ev-contact-channel__url { font-size: 11.5px; color: var(--ink-4); margin-left: auto; }

/* ── Footer ─────────────────────────────────────────────────── */
.ev-footer {
  background: var(--ink); color: var(--ivory);
  padding: 48px 0 28px; border-top: 1px solid rgba(255,255,255,.06);
}
.ev-footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-bottom: 32px; }
.ev-footer__brand { display: flex; align-items: center; gap: 10px; }
.ev-footer__brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.ev-footer__brand-name em { font-style: normal; color: var(--gold); }
.ev-footer__tagline { font-size: 12px; color: rgba(246,241,232,.3); margin-top: 6px; letter-spacing: .05em; }
.ev-footer__socials { display: flex; gap: 10px; }
.ev-footer__social {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); color: rgba(246,241,232,.5); text-decoration: none;
  transition: border-color .2s, color .2s;
}
.ev-footer__social svg { width: 15px; height: 15px; }
.ev-footer__social:hover { border-color: var(--pc, var(--gold)); color: var(--pc, var(--gold)); }
.ev-footer__bottom {
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.ev-footer__copy { font-size: 12px; color: rgba(246,241,232,.3); }
.ev-footer__links { display: flex; gap: 18px; }
.ev-footer__link { font-size: 12px; color: rgba(246,241,232,.3); text-decoration: none; transition: color .18s; }
.ev-footer__link:hover { color: var(--gold); }
.ev-footer__credit { font-size: 12px; color: rgba(246,241,232,.3); }
.ev-footer__credit a { color: var(--gold); text-decoration: none; }

/* ── Tutorials Page Hero ─────────────────────────────────────── */
.ev-page-hero {
  background: var(--ink); color: var(--ivory);
  padding: 72px 0 52px; position: relative; overflow: hidden;
}
.ev-page-hero__bg {
  position: absolute; inset: 0; opacity: .03;
  background-image: repeating-conic-gradient(var(--ivory) 0% 25%, transparent 0% 50%);
  background-size: 40px 40px;
}
.ev-page-hero__inner { position: relative; }
.ev-page-hero__eyebrow {
  font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.ev-page-hero__eyebrow::before { content:''; display:block; width:20px; height:1px; background:var(--gold); }
.ev-page-hero__title { font-family: var(--serif); font-size: clamp(36px,5vw,56px); font-weight: 600; line-height: 1.1; }

/* ── Pagination ─────────────────────────────────────────────── */
.ev-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 48px; }
.ev-pagination a, .ev-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border-md); border-radius: var(--radius);
  font-size: 13px; color: var(--ink-3); text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.ev-pagination a:hover { border-color: var(--gold); color: var(--gold); }
.ev-pagination .current { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* ── Single Post ────────────────────────────────────────────── */
.ev-single-hero {
  background: var(--ink); color: var(--ivory); padding: 64px 0 48px;
  position: relative; overflow: hidden;
}
.ev-single-hero__bg { position: absolute; inset: 0; opacity: .03; background-image: repeating-conic-gradient(var(--ivory) 0% 25%,transparent 0% 50%); background-size: 40px 40px; }
.ev-single-hero__inner { position: relative; max-width: 820px; }
.ev-single-hero__back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(246,241,232,.4); text-decoration: none; margin-bottom: 20px; transition: color .18s; }
.ev-single-hero__back:hover { color: var(--gold); }
.ev-single-hero__title { font-family: var(--serif); font-size: clamp(32px,5vw,56px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 16px; }
.ev-single-body { max-width: 820px; margin: 0 auto; padding: 40px 32px 80px; }
.ev-single-body .ev-single-content { font-family: var(--sans); font-size: 16px; font-weight: 300; line-height: 1.8; color: var(--ink-2); }
.ev-single-body .ev-single-content p { margin-bottom: 1.5em; }
.ev-single-body .ev-single-content h2,
.ev-single-body .ev-single-content h3 { font-family: var(--serif); font-weight: 600; margin: 2em 0 .75em; color: var(--ink); }
.ev-single-body .ev-single-content h2 { font-size: 28px; }
.ev-single-body .ev-single-content h3 { font-size: 22px; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes ev-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ev-page-body > * { animation: ev-fade-up .5s ease both; }
.ev-hero__eyebrow { animation: ev-fade-up .5s .1s ease both; }
.ev-hero__h1      { animation: ev-fade-up .5s .2s ease both; }
.ev-hero__sub     { animation: ev-fade-up .5s .3s ease both; }
.ev-hero__actions { animation: ev-fade-up .5s .4s ease both; }
.ev-hero__board   { animation: ev-fade-up .5s .3s ease both; }
.ev-card          { animation: ev-fade-up .4s ease both; }
.ev-card:nth-child(2) { animation-delay: .07s; }
.ev-card:nth-child(3) { animation-delay: .14s; }
.ev-card:nth-child(4) { animation-delay: .07s; }
.ev-card:nth-child(5) { animation-delay: .14s; }
.ev-card:nth-child(6) { animation-delay: .21s; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .ev-grid.ev-cols-3 { grid-template-columns: repeat(2,1fr); }
  .ev-hero__inner { grid-template-columns: 1fr; }
  .ev-hero__board { display: none; }
  .ev-stats__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .ev-container { padding: 0 20px; }
  .ev-section { padding: 56px 0; }
  .ev-grid.ev-cols-2, .ev-grid.ev-cols-3 { grid-template-columns: 1fr; }
  .ev-contact-grid { grid-template-columns: 1fr; }
  .ev-features { grid-template-columns: 1fr; }
  .ev-footer__grid { grid-template-columns: 1fr; }
  .ev-nav__links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px; }
  .ev-nav__links.is-open { display: flex; }
  .ev-nav__hamburger { display: flex; }
}
@media (max-width: 500px) {
  .ev-stats__grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .ev-about-socials { flex-direction: column; align-items: center; }
}
