/*
Theme Name: Claude Consultant
Theme URI: https://claudeaiconsultant.com
Author: Claude AI Consultant
Description: A clean white, premium theme for a Claude AI training library: free ebook up top, video lessons below.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: claude-consultant
*/

:root {
  --bg: #FFFFFF;
  --alt: #F6F7F9;
  --ink: #0F2233;
  --muted: #5C6B77;
  --line: #E4E7EB;
  --gold: #C79A3B;
  --btn: #0F2233;
  --btn-hover: #1B3A54;
  --link: #0F5E8C;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus { left: 8px; top: 8px; z-index: 100000; background: #fff; padding: 10px 16px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.nav a.nav-cta { color: var(--ink); border: 1px solid var(--ink); padding: 8px 18px; border-radius: 999px; }
.nav a.nav-cta:hover { background: var(--ink); color: #fff; }

/* buttons */
.btn { display: inline-block; font-family: var(--body); font-weight: 500; font-size: 1rem; padding: 15px 30px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); color: #fff; }
.link-quiet { margin-left: 24px; color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link-quiet:hover { border-color: var(--ink); }

/* hero */
.hero { background: var(--bg); padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 6vw, 4.9rem); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 26px; }
.hero p { color: var(--muted); font-size: 1.2rem; line-height: 1.6; max-width: 31em; margin: 0 0 38px; }
.hero-note { margin-top: 20px; font-size: 0.9rem; color: var(--muted); }
.book-stage { background: var(--alt); border-radius: 24px; padding: 64px 24px; display: flex; justify-content: center; }
.book { width: min(280px, 78%); aspect-ratio: 3 / 4.1; background: #0F2233; color: #F6F7F9; border-radius: 3px 10px 10px 3px; position: relative; padding: 32px 26px 26px 38px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 40px 60px -20px rgba(15,34,51,0.45), 0 12px 20px -8px rgba(15,34,51,0.3); }
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--gold); border-radius: 3px 0 0 3px; }
.book-title { font-family: var(--display); font-size: 2.15rem; line-height: 1.02; letter-spacing: -0.01em; }
.book-sub { font-size: 0.82rem; line-height: 1.5; color: #AFC0CC; margin-top: 14px; }
.book-foot { font-size: 0.78rem; color: #AFC0CC; border-top: 1px solid #3B5266; padding-top: 12px; }

/* sections */
.section { padding: 96px 0; }
.videos { background: var(--alt); }
.section h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 14px; }
.section .lede { color: var(--muted); max-width: 38em; margin: 0 0 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { font-family: var(--body); font-size: 0.92rem; font-weight: 500; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card.feature { grid-column: span 2; flex-direction: row; }
.thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1B4A6B, #0F2233); overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card.feature .thumb { aspect-ratio: auto; flex: 1.1; min-height: 260px; }
.play { position: relative; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,0.96); display: grid; place-items: center; }
.play svg { margin-left: 4px; }
.dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,0.7); color: #fff; font-size: 0.78rem; padding: 2px 8px; border-radius: 6px; }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card.feature .card-body { justify-content: center; }
.tag { font-size: 0.85rem; font-weight: 500; color: var(--link); text-decoration: none; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.card.feature h3 { font-size: 2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.by { font-size: 0.9rem; color: var(--muted); margin: 0; }
.notes { font-size: 0.95rem; margin: 8px 0 0; padding-left: 14px; border-left: 2px solid var(--gold); }
.watch { margin-top: auto; padding-top: 12px; font-weight: 500; font-size: 0.95rem; }
.empty { display: none; color: var(--muted); padding: 24px 0; }
.more { margin-top: 44px; }

/* about */
.about .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
.about p { margin: 0 0 18px; max-width: 34em; color: var(--muted); }
.about .btn { margin-top: 10px; }

/* inner pages and posts */
.page-head { padding: 72px 0 8px; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; }
.page-head .lede { color: var(--muted); max-width: 38em; margin: 0; }
.inner { padding: 40px 0 96px; }
.entry { max-width: 720px; margin: 0 auto; }
.entry h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 12px; }
.entry h2, .entry h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; margin: 1.8em 0 0.5em; }
.entry h2 { font-size: 2rem; }
.entry h3 { font-size: 1.5rem; }
.entry-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.video-embed { margin: 0 0 32px; border-radius: 12px; overflow: hidden; background: #000; }
.video-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-embed { margin: 0 0 32px; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 2px solid var(--gold); color: var(--muted); }
.cta-box { margin-top: 56px; padding: 36px; background: var(--alt); border-radius: 16px; }
.cta-box h2 { margin: 0 0 8px; font-size: 1.9rem; }
.cta-box p { color: var(--muted); margin: 0 0 20px; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.92rem; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* footer */
.site-footer { padding: 36px 0 56px; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--line); }
.site-footer p { margin: 0 0 8px; max-width: 52em; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap, .about .wrap { grid-template-columns: 1fr; gap: 48px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card.feature { grid-column: span 2; flex-direction: column; }
  .card.feature .thumb { aspect-ratio: 16 / 9; min-height: 0; }
  .nav ul { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .grid { grid-template-columns: 1fr; }
  .card.feature { grid-column: auto; }
  .section { padding: 64px 0; }
  .book-stage { padding: 44px 16px; }
  .link-quiet { display: inline-block; margin: 20px 0 0; }
  .cta-box { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
