/*
Theme Name: SF Agent Powered Solopreneur
Theme URI: https://agentpoweredsolopreneur.com/
Author: Agent Powered Solopreneur
Description: SiteForge block theme for agentpoweredsolopreneur.com (engine scaffold + overlay). Direction B "Gallery": light ground, rounded tiles, one blue accent.
Version: 3.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: sf-aps
*/

@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url(fonts/sora-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/dm-mono-400-latin.woff2) format("woff2");
}
@font-face {
  font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/dm-mono-500-latin.woff2) format("woff2");
}

:root {
  --ground: #F1F2F4;
  --tile: #FFFFFF;
  --grey: #E3E6EB;
  --ink: #0B0D12;
  --text: #1A1D24;
  --muted: #5B6270;
  --muted-2: #4A505C;
  --line: #C9CDD6;
  --line-2: #9AA0AD;
  --on-dark: #B4B9C4;
  --accent: #3B4BFF;
  --accent-dark: #2A38D6;
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --r: 28px;
  --gap: 16px;
  --measure: 44rem;
  --wide: 68rem;
  /* names the Kit sheets were written against */
  --paper: var(--ground);
  --rule: var(--line);
  --seal: var(--accent);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
img, video { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 16px; }

h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.15; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 600; letter-spacing: -0.03em; margin-top: 2.2em; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 1.8em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
hr, .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ---------- page frame ---------- */
.wp-site-blocks {
  max-width: 1440px; margin: 0 auto;
  padding: 20px clamp(12px, 2.4vw, 32px) 24px;
  display: flex; flex-direction: column; gap: var(--gap);
}
.wp-site-blocks > * { margin: 0; min-width: 0; }

/* header */
.aps-header {
  display: flex; align-items: center; justify-content: space-between; gap: 4px 24px; flex-wrap: wrap;
  min-height: 60px; padding: 8px 8px 8px 24px; background: var(--tile); border-radius: 32px;
}
.aps-brand {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
}
.aps-brand::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.aps-nav { display: flex; gap: 4px 28px; flex-wrap: wrap; font-size: 14px; }
.aps-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.aps-nav a:hover, .aps-brand:hover { color: var(--accent); }
.aps-pill {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 22px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
}
.aps-pill:hover { background: var(--accent); color: #fff; }

/* inner pages: one white sheet */
.aps-main { background: var(--tile); border-radius: var(--r); padding: clamp(28px, 6vw, 80px) clamp(20px, 5vw, 72px); color: var(--text); }
.aps-wrap { max-width: var(--wide); margin: 0 auto; }
.aps-measure { max-width: var(--measure); }
.aps-main > .aps-wrap > * { max-width: var(--measure); }
.aps-main > .aps-wrap > .entry-content { max-width: none; }
.aps-main > .aps-wrap > .entry-content > * { max-width: var(--measure); }
.aps-main .alignwide, .aps-main .aps-full { max-width: none !important; }
.aps-main h1, .aps-main h2, .aps-main h3 { color: var(--ink); }
.wp-block-post-title { margin-bottom: 0.5em; }

.aps-eyebrow, .g-eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 0.9rem;
}
.aps-eyebrow a { color: inherit; text-decoration: none; }
.aps-lede { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 300; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); }
.aps-muted { color: var(--muted); }
.aps-byline { font-size: 0.95rem; color: var(--muted); margin: 0.4rem 0 0; }
.aps-small { font-size: 0.9rem; }

/* buttons */
.aps-btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 24px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.2;
  background: var(--accent); color: #fff; text-decoration: none; border: 1px solid var(--accent); cursor: pointer;
}
.aps-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.aps-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); font-weight: 400; }
.aps-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.aps-btn[disabled] { opacity: 0.6; cursor: default; }
.aps-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }

/* cards, tables, notes on inner pages */
.aps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--gap); max-width: none !important; margin: 1.5rem 0 2rem; }
.aps-card { background: var(--ground); border-radius: 20px; padding: 1.4rem 1.4rem 1.2rem; }
.aps-card h3 { margin-top: 0; font-size: 1.15rem; }
.aps-card p:last-child, .aps-card ul:last-child { margin-bottom: 0; }
.aps-card__tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.6rem; }
.aps-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; margin: 1.2rem 0 1.8rem; }
.aps-table th, .aps-table td { text-align: left; vertical-align: top; padding: 0.8rem 0.9rem 0.8rem 0; border-bottom: 1px solid var(--line); }
.aps-table th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.aps-table-scroll { overflow-x: auto; max-width: none !important; }
.aps-empty { border: 1px dashed var(--line-2); border-radius: 20px; padding: 1.2rem 1.4rem; color: var(--muted); }
.aps-quote { border-left: 2px solid var(--accent); padding: 0.2rem 0 0.2rem 1.1rem; margin: 1.6rem 0; }
.aps-quote .en { display: block; font-size: 1.15rem; font-weight: 300; }
.aps-quote .src { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin-top: 0.4rem; }

/* posts list */
.wp-block-post-date, .aps-issues time { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wp-block-post-template { list-style: none; padding: 0; margin: 1rem 0 0; }
.wp-block-post-template > li { border-bottom: 1px solid var(--line); padding: 1.1rem 0; margin: 0; }
.wp-block-post-template h3 { margin: 0.2em 0; }
.wp-block-post-template h3 a { color: var(--ink); text-decoration: none; }
.wp-block-post-template h3 a:hover { color: var(--accent); }

/* ---------- home: gallery tiles ---------- */
.aps-home, .aps-home > .entry-content { display: flex; flex-direction: column; gap: var(--gap); }
.aps-home section { margin: 0; }
.g-row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.g-stack { display: flex; flex-direction: column; gap: var(--gap); }
.g-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-width: 0;
  min-height: 400px; padding: 28px; background: var(--tile); border-radius: var(--r);
}
.g-5 { flex: 5 1 400px; }
.g-7 { flex: 7 1 520px; }
.g-tile--dark { background: var(--ink); color: #fff; }
.g-tile--accent { background: var(--accent); color: #fff; }
.g-tile--grey { background: var(--grey); }
.g-tile p, .g-tile h1, .g-tile h2, .g-tile h3 { margin: 0; }
.g-tile--dark .g-eyebrow, .g-tile--dark .g-sub { color: var(--on-dark); }
.g-tile--accent .g-eyebrow, .g-tile--accent .g-sub { color: #fff; }
.g-tile--grey .g-eyebrow, .g-tile--grey .g-sub, .g-tile--grey .g-note { color: var(--muted-2); }
.g-hl { font-weight: 600; color: var(--accent); }
.g-tile--dark .g-hl { color: #fff; }

.g-hero { min-height: 600px; gap: 48px; padding: clamp(24px, 3vw, 44px); }
.g-hero__main { display: flex; flex-direction: column; gap: 36px; }
.g-h1 { font-size: clamp(36px, 4.5vw, 66px); line-height: 1.04; font-weight: 300; letter-spacing: -0.04em; }
.g-nb { white-space: nowrap; }
.g-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.g-btn {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border-radius: 28px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none;
}
.g-btn:hover { background: var(--accent-dark); color: #fff; }
.g-btn--line { background: transparent; color: var(--ink); border: 1px solid var(--line-2); font-weight: 400; padding: 0 24px; }
.g-btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.g-film {
  position: relative; overflow: hidden; min-height: 600px; gap: 32px; padding: clamp(20px, 2.4vw, 32px);
  color: #fff; background-color: var(--ink);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1.2px, transparent 1.8px); background-size: 28px 28px;
}
.g-orbit { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); }
.g-orbit__turn { transform-origin: 300px 300px; animation: g-turn 60s linear infinite; }
@keyframes g-turn { to { transform: rotate(360deg); } }
.g-chip {
  position: relative; align-self: flex-start; padding: 8px 14px; border-radius: 18px;
  background: rgba(11, 13, 18, 0.75); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.g-chip--name { padding: 10px 16px; border-radius: 22px; font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; }
a.g-chip:hover { color: #fff; border-color: #fff; }
.g-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%;
  background: #fff; color: var(--ink);
}
.g-play--sm { position: static; transform: none; flex: none; width: 48px; height: 48px; background: var(--ink); color: #fff; }

.g-label { margin: 0; padding: 20px 12px 4px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.g-art { width: 100%; max-height: 200px; color: var(--accent); }
.g-tile--accent .g-art { color: #fff; }
.g-bubbles { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; }
.g-bubbles span { display: block; height: 44px; background: #fff; border-radius: 22px 22px 22px 6px; align-self: flex-start; }
.g-bubbles span:nth-child(1) { width: 62%; }
.g-bubbles span:nth-child(2) { width: 44%; align-self: flex-end; background: transparent; border: 1.5px solid #fff; border-radius: 22px 22px 6px 22px; }
.g-bubbles span:nth-child(3) { width: 74%; }
.g-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.g-foot__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.g-foot h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.g-foot h3.g-big { font-size: clamp(28px, 3vw, 40px); }
.g-sub { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.g-note { font-size: 15px; line-height: 1.4; color: var(--muted-2); }
.g-arrow { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; }
.g-arrow:hover { background: var(--accent); color: #fff; }
.g-tile--dark .g-arrow, .g-tile--accent .g-arrow { background: #fff; color: var(--ink); }
.g-tile--dark .g-arrow:hover { background: var(--accent); color: #fff; }
.g-tile--accent .g-arrow:hover { background: var(--ink); color: #fff; }

.g-lessons-row { margin-top: var(--gap); }
.g-idea { min-height: 480px; gap: 40px; padding: clamp(24px, 3vw, 40px); }
.g-idea h2 { font-size: clamp(34px, 4vw, 58px); font-weight: 300; line-height: 1.08; letter-spacing: -0.04em; }
.g-idea__quote { max-width: 34ch; font-size: clamp(18px, 1.6vw, 22px); font-weight: 300; line-height: 1.4; letter-spacing: -0.01em; color: #D5D9E2; text-wrap: balance; }
.g-idea__src { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12px; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); }
.g-lessons { flex: 7 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--gap); }
.g-lesson { min-height: 232px; gap: 16px; padding: 22px 22px 24px 26px; }
.g-lesson__top { display: flex; justify-content: space-between; align-items: flex-start; }
.g-num { font-size: 104px; font-weight: 300; line-height: 0.8; letter-spacing: -0.06em; color: var(--line); }
.g-lesson__text { display: flex; flex-direction: column; gap: 4px; }
.g-lesson h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- join (subscribe box) ---------- */
.aps-join {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px;
  min-height: 280px; padding: clamp(24px, 3vw, 44px); background: var(--tile); border-radius: var(--r);
}
.aps-join__copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.aps-join__copy h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.02; }
.aps-join__copy p { margin: 0; font-size: 17px; font-weight: 300; color: var(--muted-2); }
.aps-join__form { flex: 1 1 400px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.aps-join__form .aps-actions { margin-top: 0; }
.aps-subscribe__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.aps-subscribe__form {
  display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 8px 0 24px; max-width: 40rem;
  border-radius: 32px; background: var(--ground);
}
.aps-subscribe__form:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.aps-subscribe__form input[type="email"] {
  flex: 1 1 auto; min-width: 0; height: 48px; background: transparent; border: 0; outline: 0;
  color: var(--ink); font-family: var(--sans); font-size: 17px;
}
.aps-subscribe__form input[type="email"]::placeholder { color: var(--muted); }
.aps-subscribe__form .aps-btn { flex: none; }
.aps-subscribe__form[hidden] { display: none; }
.aps-subscribe__note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 40rem; }
.aps-subscribe__note a { color: inherit; }
.aps-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* footer */
.aps-footer {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 48px; flex-wrap: wrap;
  padding: 20px 12px 8px; font-size: 14px; line-height: 1.5; color: var(--muted-2);
}
.aps-footer p { margin: 0 0 0.3em; max-width: 36em; }
.aps-footer nav { display: flex; gap: 4px 24px; flex-wrap: wrap; }
.aps-footer a { color: var(--muted-2); text-decoration: none; }
.aps-footer nav a { padding: 12px 0; }
.aps-footer a:hover { color: var(--accent); }

/* ---------- Kit sheets ---------- */
.kit-sheet { max-width: 50rem !important; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2rem 2.1rem; margin: 2rem 0; font-size: 1rem; line-height: 1.45; }
.kit-sheet h2 { font-size: 1.45rem; margin: 0 0 0.2rem; }
.kit-sheet h3 { font-size: 0.8rem; font-weight: 500; margin: 1.5rem 0 0.5rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; }
.kit-sheet h3 small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-left: 0.4rem; font-family: var(--sans); }
.kit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; }
.kit-head .kit-date { font-size: 0.92rem; }
.kit-line { display: block; border-bottom: 1px solid var(--line-2); height: 1.9rem; }
.kit-q { margin: 0.7rem 0 0.1rem; }
.kit-hint { color: var(--muted); font-size: 0.88rem; margin: 0.15rem 0 0; }
.kit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.kit-cols h4 { font-size: 0.95rem; margin: 0.3rem 0 0.2rem; }
.kit-depth { font-size: 0.8rem; color: var(--muted); display: block; text-align: right; margin-top: 0.1rem; }
.kit-box { display: inline-block; width: 0.85rem; height: 0.85rem; border: 1px solid var(--ink); vertical-align: -0.1rem; margin: 0 0.3rem 0 0.7rem; background: #fff; }
.kit-box:first-child { margin-left: 0; }
.kit-blank { display: inline-block; min-width: 3.2rem; border-bottom: 1px solid var(--line-2); }
.kit-pause { background: var(--ground); border-radius: 12px; padding: 0.7rem 1rem 0.7rem 2.1rem; margin: 0.6rem 0 0; font-size: 0.93rem; }
.kit-pause li { margin-bottom: 0.2rem; }
.kit-foot { margin-top: 1.4rem; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.kit-grid { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin-top: 0.4rem; }
.kit-grid th, .kit-grid td { border: 1px solid var(--line-2); padding: 0.35rem 0.5rem; text-align: left; vertical-align: top; }
.kit-grid th { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--ground); }
.kit-grid td.n { width: 2.6rem; }
.kit-tools { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.4rem 0 0; }

@media (max-width: 760px) {
  .aps-header { padding: 6px 8px 6px 20px; border-radius: 28px; }
  .aps-nav { order: 3; flex-basis: 100%; gap: 0 20px; padding-bottom: 4px; }
  .g-hero { min-height: 440px; }
  .g-film { min-height: 420px; }
  .g-tile { min-height: 340px; }
  .g-idea { min-height: 400px; }
  .g-lesson { min-height: 200px; }
  .kit-cols { grid-template-columns: 1fr; }
  .kit-sheet { padding: 1.3rem 1.1rem; }
  .aps-subscribe__form { padding-left: 18px; }
  .aps-subscribe__form .aps-btn { padding: 0 18px; }
}

@media (max-width: 480px) {
  .aps-header { gap: 0 10px; padding-left: 16px; }
  .aps-brand { font-size: 13.5px; gap: 8px; }
  .aps-pill { height: 38px; padding: 0 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-orbit__turn { animation: none; }
}

@media print {
  @page { size: A4; margin: 13mm 14mm; }
  body { background: #fff; font-family: var(--serif); font-size: 10pt; }
  .wp-site-blocks { display: block; max-width: none; padding: 0; }
  .aps-header, .aps-footer, .aps-join, .no-print, .wp-block-post-title, .kit-tools { display: none !important; }
  .aps-main { padding: 0; border-radius: 0; background: #fff; }
  .aps-wrap { padding: 0; max-width: none; }
  .aps-main > .aps-wrap > .entry-content > *:not(.kit-sheet) { display: none !important; }
  .kit-sheet { border: 0; border-radius: 0; padding: 0; margin: 0; max-width: none !important; background: #fff; break-after: page; }
  .kit-sheet h2, .kit-sheet h3, .kit-sheet h3 small, .kit-sheet h4, .kit-grid th { font-family: var(--serif); }
  .kit-sheet h2 { font-weight: 700; letter-spacing: 0; }
  .kit-sheet h3 { margin: 0.95rem 0 0.35rem; font-size: 1rem; font-weight: 700; color: #000; }
  .kit-line { height: 1.55rem; }
  .kit-q { margin: 0.45rem 0 0; }
  .kit-hint { font-size: 8.5pt; }
  .kit-pause { padding-top: 0.4rem; padding-bottom: 0.4rem; font-size: 9.5pt; background: #fff; border: 1px solid var(--line); }
  .kit-foot { margin-top: 0.8rem; padding-top: 0.4rem; font-size: 8pt; }
  .kit-sheet:last-of-type { break-after: auto; }
  a { color: inherit; text-decoration: none; }
}

/* ===== SiteForge build layer (design/theme_overlay.py) ===== */
.aps-nav a[aria-current="page"] { color: var(--accent); }
.g-note--dark { color: var(--on-dark); }
.g-eyebrow a { color: inherit; }
.g-tile--dark .g-eyebrow a:hover, .g-eyebrow a:hover { color: var(--accent); }
.g-tile--dark .g-eyebrow a:hover { color: #fff; }

/* guides strip on the home page */
.g-guides { min-height: 320px; }
.g-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.g-links li { margin: 0; }
.g-links a { display: inline-block; padding: 6px 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 300; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.g-links a:hover { color: var(--accent); }

/* showcase pages: hero tiles + one white sheet of text */
.aps-show { display: flex; flex-direction: column; gap: var(--gap); }
.aps-show .g-hero { min-height: 460px; }
.aps-show .g-film { min-height: 460px; }
.aps-show .g-h1 { font-size: clamp(34px, 4.2vw, 60px); }
.g-status { align-self: flex-start; padding: 8px 14px; border-radius: 18px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.g-tile--dark .g-status, .g-tile--accent .g-status { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.g-lede { max-width: 30ch; font-size: clamp(18px, 1.6vw, 22px); font-weight: 300; line-height: 1.4; letter-spacing: -0.01em; color: var(--muted-2); }
.g-tile--dark .g-lede { color: #D5D9E2; }
.g-tile--accent .g-lede { color: #fff; }
.g-art--fill { max-height: none; height: 100%; min-height: 220px; }
.g-tile--art { justify-content: center; align-items: center; }
.g-steps { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.g-steps li { margin: 0; padding: 16px 16px 18px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.25); font-size: 15px; line-height: 1.3; }
.g-steps b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; color: var(--on-dark); margin-bottom: 18px; }
.g-tile:not(.g-tile--dark):not(.g-tile--accent) .g-steps li { border-color: var(--line); }
.g-tile:not(.g-tile--dark):not(.g-tile--accent) .g-steps b { color: var(--muted); }

/* text sheets: pages, hubs, guides */
.site-main { color: var(--text); }
.aps-main > .aps-wrap > .wp-block-post-content { max-width: none; }
.aps-main > .aps-wrap > .wp-block-post-content > * { max-width: var(--measure); }
.aps-main > .aps-wrap > .wp-block-post-content > table,
.aps-main > .aps-wrap > .wp-block-post-content > figure { max-width: var(--wide); }
.aps-main > .aps-wrap > .wp-block-post-content > :first-child { margin-top: 0; }
.aps-main > .aps-wrap > .wp-block-post-content > p:first-child { font-size: clamp(1.15rem, 1.8vw, 1.3rem); font-weight: 300; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); }
.single .aps-main > .aps-wrap > .wp-block-post-content > p:first-child { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.single .aps-main > .aps-wrap > .wp-block-post-content > p:first-child em { font-style: normal; }
.single .aps-main > .aps-wrap > .wp-block-post-content > p:nth-child(2) { font-size: clamp(1.15rem, 1.8vw, 1.3rem); font-weight: 300; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); }
.bc { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.6rem; }
.bc a { color: var(--muted); text-decoration: none; }
.bc a:hover { color: var(--accent); }
.bc .sep { color: var(--line-2); margin: 0 0.35em; }
.sf-post-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; margin: 0 0 2.2rem; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sf-post-meta a { color: var(--ink); text-decoration: none; }
.sf-post-meta a:hover { color: var(--accent); }
.sf-post-meta .sep { color: var(--line-2); }
.sf-featured { margin: 0 0 2rem; max-width: var(--wide) !important; }
.sf-featured img, .site-main figure img { display: block; width: 100%; height: auto; border-radius: 20px; }
.site-main table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; margin: 1.4rem 0 2rem; }
.site-main table th, .site-main table td { text-align: left; vertical-align: top; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--line); }
.site-main table thead th { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.site-main table tbody td:first-child { font-weight: 600; color: var(--ink); }
.site-main blockquote { border-left: 2px solid var(--accent); margin: 1.6rem 0; padding: 0.2rem 0 0.2rem 1.1rem; font-size: 1.15rem; font-weight: 300; color: var(--ink); }
.site-main blockquote p:last-child { margin-bottom: 0; }
.site-main code { font-family: var(--mono); font-size: 0.9em; background: var(--ground); border-radius: 6px; padding: 0.1em 0.35em; }
.site-main pre { background: var(--ink); color: #E9ECF2; border-radius: 16px; padding: 1.1rem 1.3rem; overflow-x: auto; font-size: 0.9rem; line-height: 1.5; }
.site-main pre code { background: none; padding: 0; color: inherit; }
@media (max-width: 760px) { .site-main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .site-main table th, .site-main table td { min-width: 9rem; } }

/* hub listing + related guides (theme chrome blocks) */
.sf-members, .sf-related-list { max-width: none !important; margin: 3rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.sf-members h2, .sf-related-list h2 { margin: 0 0 1rem; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.sf-members ul, .sf-related-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--gap); }
.sf-members li, .sf-related-list li { margin: 0; }
.sf-members a, .sf-related-list a { display: flex; align-items: flex-end; height: 100%; min-height: 128px; padding: 20px 22px; border-radius: 20px; background: var(--ground); color: var(--ink); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-decoration: none; }
.sf-related-list a { min-height: 96px; font-size: 1rem; }
.sf-members a:hover, .sf-related-list a:hover { background: var(--ink); color: #fff; }
.sf-cta { margin: 2.2rem 0 0; }
.sf-cta .btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 24px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.aps-kit-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.6rem 0 0; }

/* footer with columns */
.aps-footer nav.aps-footer__cols { gap: 16px 48px; align-items: flex-start; }
.aps-footer__cols div { display: flex; flex-direction: column; gap: 2px; }
.aps-footer__cols b { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.aps-footer__cols a { padding: 5px 0 !important; }

/* 404 + search */
.aps-404 { text-align: left; }
.aps-404 .g-num { color: var(--line); }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; max-width: 32rem; }
.wp-block-search__input { flex: 1; height: 48px; padding: 0 16px; border-radius: 24px; border: 1px solid var(--line-2); font: inherit; }
.wp-block-search__button { height: 48px; padding: 0 22px; border-radius: 24px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.wp-block-post-excerpt__more-link { display: none; }

@media print {
  .aps-kit-tools, .bc, .sf-members, .sf-related-list { display: none !important; }
  .aps-main > .aps-wrap > .wp-block-post-content { display: none !important; }
}

.g-idea h1 { font-size: clamp(34px, 4vw, 58px); font-weight: 300; line-height: 1.08; letter-spacing: -0.04em; color: #fff; }
