/* SkillAI Club: editorial look on warm paper. Oxblood for links and the mark, ochre only as a highlight (never for text). */
:root {
  --paper: #f8f5ef; --card: #fff; --ink: #1f1d1a; --text: #34302b; --muted: #5f584e; --line: #e2dbcf; --line-strong: #c9c0b1;
  --accent: #7a1f2b; --highlight: #f5e7c4; --ochre: #c08a1e; --note: #efe9df;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; color: #fff; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.18; letter-spacing: -.01em; margin: 1.6em 0 .5em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-top: .3em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.4rem var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; flex: none; color: var(--accent); }
.bottom .logo svg { color: #e2b552; }
nav { display: flex; gap: 4px; }
nav a { padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
nav a:hover { color: var(--accent); text-decoration: underline; }

/* ad slots: only rendered once AdSense is on; unfilled ones collapse */
.ad { margin: 32px auto; max-width: 100%; overflow: hidden; text-align: center; }
.ad-wide { max-width: 970px; }
.ad:empty { margin: 0; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; align-items: start; }
.layout > div > .section:first-child, .layout > .sidebar { margin-top: 40px; }
.sidebar .box { border-top: 1px solid var(--ink); padding: 14px 0 22px; margin-bottom: 8px; }
.sidebar h4 { margin: 0 0 10px; font-family: var(--sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sidebar p { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.sidebar a { font-size: 15px; }
.popular { list-style: none; counter-reset: n; padding: 0; margin: 0; font-size: 15px; }
.popular li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; padding: 9px 0; border-top: 1px solid var(--line); line-height: 1.45; }
.popular li:first-child { border-top: 0; padding-top: 0; }
.popular li::before { content: counter(n); font: 600 1rem var(--serif); color: var(--muted); }
.popular a, .plain a { color: var(--ink); text-decoration: none; }
.popular a:hover, .plain a:hover { color: var(--accent); text-decoration: underline; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 6px 0; border-top: 1px solid var(--line); }
.plain li:first-child { border-top: 0; }
.sticky { position: sticky; top: 88px; }

/* hero: plain type on paper */
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 18ch; }
.hero p { font-size: 1.2rem; max-width: 640px; color: var(--muted); }
.kicker { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; background: var(--ink); color: #fff; padding: 0 22px; border: 1px solid var(--ink); border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 15px; margin: 14px 10px 0 0; transition: background .15s, color .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; }
.filters a:hover { border-color: var(--ink); }

/* cards: subgrid keeps tag, title, excerpt and date on the same lines across a row */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px 22px 20px; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; transition: border-color .15s; }
.card:hover { border-color: var(--line-strong); }
.card-cat { justify-self: start; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; color: var(--accent); }
.card h3 { margin: .45em 0 .35em; font-size: 1.22rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card p { color: var(--muted); font-size: 15px; margin: 0 0 1em; }
.card .meta { align-self: end; }
.meta { font-size: 13px; color: var(--muted); }

/* featured block */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.feature h2 { margin-top: .2em; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature h2 a { color: var(--ink); text-decoration: none; }
.feature h2 a:hover { color: var(--accent); }
.feature > div:last-child { background: var(--highlight); border-radius: 8px; padding: 6px 26px; }

/* home and hub sections */
.section { margin: 64px 0; }
.section > h2:first-child, .section > .kicker + h2 { margin-top: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; counter-reset: p; }
.pillar { counter-increment: p; border-top: 1px solid var(--line); padding: 18px 0 8px; }
.pillar h3 { margin-top: 0; font-size: 1.15rem; }
.pillar h3::before { content: counter(p, decimal-leading-zero) "  "; color: var(--muted); font-weight: 500; white-space: pre; }
.pillar p { color: var(--muted); font-size: 15px; }
.pillar a { font-size: 15px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 1.4rem; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 4px; }
.quote { font: italic 500 1.4rem/1.45 var(--serif); color: var(--ink); padding: 22px 0; margin: 32px 0; border-block: 1px solid var(--line); max-width: 680px; }
.quote::first-line { background: linear-gradient(transparent 62%, var(--highlight) 62%); }
.terms { margin: 0; }
.terms div { border-top: 1px solid var(--line); padding: 12px 0; }
.terms dt { font-weight: 600; color: var(--ink); }
.terms dd { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }
.myths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.myth { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; }
.myth p { margin: 0; font-size: 15.5px; }
.myth .claim { font: 600 1.1rem/1.4 var(--serif); color: var(--ink); margin-bottom: 8px; }
.myth .claim span, .myth .answer span { display: block; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.myth .answer span { color: var(--accent); }
.topic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.topic { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; }
.topic h3 { margin: 0 0 6px; }
.topic h3 a { color: var(--ink); text-decoration: none; }
.topic h3 a:hover { color: var(--accent); text-decoration: underline; }
.topic p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.topic .meta { margin-top: auto; }

/* article and long-form prose */
.article { max-width: 720px; }
.article > h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
.article p, .article li, .prose p, .prose li { font: 400 1.16rem/1.7 var(--serif); color: var(--text); }
.article li, .prose li { margin-bottom: 6px; }
.article .card p { font: 400 15px/1.6 var(--sans); color: var(--muted); }
.article blockquote { background: var(--note); border: 1px solid var(--line); border-radius: 8px; margin: 24px 0; padding: 14px 20px; font: 400 15.5px/1.65 var(--sans); color: var(--text); }
.article .tip { background: var(--highlight); border-radius: 8px; padding: 16px 20px; margin: 24px 0; font: 400 16px/1.65 var(--sans); }
.article .tip strong { color: var(--accent); }
.crumbs { font-size: 13px; color: var(--muted); margin-top: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.related { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 8px; }

/* footer */
.bottom { background: var(--ink); color: #c9c2b6; margin-top: 80px; padding: 56px 0 24px; }
.bottom .logo { color: #fff; display: inline-flex; font-size: 1.3rem; margin-bottom: 6px; }
.bottom .logo:hover { text-decoration: none; }
.bottom a { color: #ddd6ca; display: block; text-decoration: none; margin-bottom: 8px; font-size: 15px; }
.bottom a:hover { color: #fff; text-decoration: underline; }
.bottom h4 { color: #e2b552; margin: 0 0 14px; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.bottom p { font-size: 15px; max-width: 34ch; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.copy { border-top: 1px solid #3a3833; margin-top: 36px; padding-top: 18px; font-size: 13px; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 36px; }
}
@media (max-width: 900px) {
  .layout, .feature, .pillars, .myths { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .sidebar .sticky { position: static; }
  .feature { gap: 24px; }
  .section { margin: 48px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { position: static; }
  .nav { flex-wrap: wrap; padding-top: 10px; gap: 0; }
  nav { width: 100%; justify-content: space-between; gap: 0; }
  nav a { padding: 0 6px; font-size: 14.5px; }
  nav a:first-child { padding-left: 0; }
  nav a:last-child { padding-right: 0; }
  .hero { padding: 36px 0 32px; }
  .hero p { font-size: 1.08rem; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .article p, .article li, .prose p, .prose li { font-size: 1.08rem; }
  .feature > div:last-child { padding: 2px 18px; }
  .quote { font-size: 1.2rem; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
