/* ============================================================
   ONE PERCENT PROTOCOL — Shared Stylesheet
   onepercentprotocol.com | Darren Watkins
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:          #09090f;
  --surface:     #111119;
  --surface-2:   #18181f;
  --border:      #22222e;
  --gold:        #c9a227;
  --gold-light:  #e8c040;
  --gold-dim:    #8a6e1a;
  --text:        #e6e6f0;
  --text-dim:    #a0a0b8;
  --text-muted:  #606078;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --transition:  0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p { color: var(--text-dim); }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
}

section { padding: 80px 0; }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.nav__logo-byline {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.nav__links a:hover,
.nav__links a.active { color: var(--gold-light); }

.nav__cta {
  background: var(--gold);
  color: #0a0a0f !important;
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  transition: background var(--transition) !important;
}

.nav__cta:hover { background: var(--gold-light) !important; color: #0a0a0f !important; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center 30%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9,9,15,0.72) 0%,
    rgba(9,9,15,0.55) 50%,
    rgba(9,9,15,0.82) 100%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero__title { margin-bottom: 20px; }

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__stat strong {
  color: var(--text);
  font-weight: 600;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--gold);
  color: #09090f;
}
.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--gold-dim); color: var(--text); }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-header__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.section-header a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.section-header a:hover { color: var(--gold-light); }

/* ── POST CARDS ──────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.card:hover .card__title { color: var(--gold-light); }

.card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card__date { }
.card__read-time { }

/* Featured card (first, larger) */
.card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 40px;
  padding: 40px;
  align-items: center;
}

.card--featured .card__content { flex: 1; }

.card--featured .card__title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.card--featured .card__tag {
  font-size: 0.75rem;
}

.card--featured .card__excerpt { font-size: 0.95rem; }

.card--featured .card__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
  align-self: flex-end;
}

.card--featured:hover .card__arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: #09090f;
}

/* ── NEWSLETTER ──────────────────────────────────────────── */
.newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(201,162,39,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.newsletter__title {
  margin-bottom: 12px;
}

.newsletter__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter__input::placeholder { color: var(--text-muted); }
.newsletter__input:focus { border-color: var(--gold-dim); }

.newsletter__small {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── SEARCH BAR ──────────────────────────────────────────── */
.search-bar {
  position: relative;
  margin-bottom: 40px;
}

.search-bar__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.search-bar__input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px 16px 48px;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}

.search-bar__input::placeholder { color: var(--text-muted); }
.search-bar__input:focus { border-color: var(--gold-dim); }

.search-bar__clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: none;
}

/* ── TAGS FILTER ─────────────────────────────────────────── */
.tags-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tag-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.tag-btn:hover,
.tag-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #09090f;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  display: none;
}

.empty-state h3 { color: var(--text-dim); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; }

/* ── ARTICLE ─────────────────────────────────────────────── */
.article__header {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
}

.article__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.article__title { margin-bottom: 20px; }

.article__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article__author {
  font-weight: 500;
  color: var(--text-dim);
}

.article__body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dim);
}

.article__body h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
  color: var(--text);
}

.article__body h3 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
  color: var(--text);
}

.article__body p { margin-bottom: 24px; }

.article__body strong { color: var(--text); font-weight: 600; }

.article__body blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-dim);
}

.article__body ul, .article__body ol {
  padding-left: 24px;
  margin-bottom: 24px;
  color: var(--text-dim);
}

.article__body li { margin-bottom: 8px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 80px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--gold-light); }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ── HERO PILLARS ────────────────────────────────────────── */
.hero__pillars {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  row-gap: 24px;
}

.hero__pillar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 40px 0 0;
}

.hero__pillar:first-child { padding-left: 0; }

.hero__pillar-word {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.hero__pillar-line {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__pillar-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-right: 40px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .hero__pillar-sep { display: none; }
  .hero__pillar { padding: 0; }
  .hero__pillars { gap: 24px; }
}

/* ── START HERE ──────────────────────────────────────────── */
.start-here {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--border);
}

.start-here__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.start-here__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.start-here__card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.start-here__card:hover .start-here__title { color: var(--gold-light); }

.start-here__icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 4px;
}

.start-here__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  transition: color var(--transition);
}

.start-here__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.about-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

.about-hero__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.about-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

.about-hero__name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 12px;
}

.about-hero__tagline {
  font-size: 1.15rem;
  color: var(--gold-light);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  margin-bottom: 24px;
}

.about-hero__intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.about-hero__credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.credential__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.about-hero__image-well {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 24px;
}

.about-hero__image-well svg {
  opacity: 0.3;
}

/* Timeline */
.timeline {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.timeline__list {
  list-style: none;
  position: relative;
  padding-left: 32px;
}

.timeline__list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
}

.timeline__item--highlight::before {
  background: var(--gold);
  border-color: var(--gold);
}

.timeline__date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.timeline__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline__body {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* Protocol grid on about page */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.protocol-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.protocol-item__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.protocol-item__text {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Media / speaking section */
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-panel__text { flex: 1; min-width: 240px; }
.contact-panel__text h3 { margin-bottom: 12px; }
.contact-panel__text p { font-size: 0.925rem; color: var(--text-muted); }

.contact-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav__links { display: none; }

  .card--featured {
    flex-direction: column;
    gap: 24px;
  }

  .newsletter { padding: 40px 24px; }

  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__input { border-radius: var(--radius); }
  .newsletter__form .btn { border-radius: var(--radius); }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

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

@media (max-width: 900px) {
  .start-here__grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero__layout { grid-template-columns: 1fr; }
  .about-hero__image-well { display: none; }
}

@media (max-width: 600px) {
  .start-here__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .contact-panel { flex-direction: column; align-items: flex-start; }
}
