/* Consult Code Create - site shell (header, footer, page furniture).
   Page bodies are the original embeds and carry their own namespaced CSS (hp-, ag-, cs-,
   pw-, sb-, td3-). No global margin reset here: those embeds were written against browser
   defaults inside Hostinger's iframes, and a reset would shift them. */

/* Self-hosted (latin subset, variable weight) so no visitor request goes to Google.
   Licences: /assets/fonts/OFL-*.txt */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/assets/fonts/inter.woff2) format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/libre-baskerville.woff2) format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/libre-baskerville-italic.woff2) format('woff2');
}

:root {
  --yellow:   #f5c800;
  --header:   #f9cc28;
  --black:    #0f0f0f;
  --ink:      #06070c;
  --white:    #ffffff;
  --grey:     #666666;
  --rule:     #e5e5e5;
  --bg-light: #f9f9f7;
  --field:    rgba(250, 204, 40, 0.68);
  --content:  1018px;
  --wide:     1224px;
  --gutter:   16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', 'Fira Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--black); color: var(--white); padding: 0.75rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.container { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }

/* ── HEADER ── */
.site-header { background: var(--header); }
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 13px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: block; line-height: 0; }
.logo img { width: 172px; height: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 24px; height: 2px; background: var(--ink); content: '';
}
.bars { position: relative; }
.bars::before, .bars::after { position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after  { top: 7px; }

.site-nav { display: none; flex-basis: 100%; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 0.75rem; text-align: right; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block; padding: 0.6rem 0; text-decoration: none;
  font-size: 16px; font-weight: 400; color: var(--ink);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.header-inner { flex-wrap: wrap; }

@media (min-width: 920px) {
  .header-inner { flex-direction: column; justify-content: center; padding: 46px var(--gutter) 40px; gap: 27px; }
  .logo img { width: 350px; }
  .nav-toggle { display: none; }
  .site-nav { display: block; flex-basis: auto; }
  .site-nav ul { display: flex; gap: 36px; padding: 0; }
  .site-nav a { padding: 0; }
}

/* ── BUILDER TEXT BLOCKS (hero copy, page intros) ── */
.section { padding: 48px 0; }
.section--yellow { background: var(--header); }
.section + .section { padding-top: 16px; }
.section--yellow, .section + .section--yellow, .section--yellow + .section { padding-top: 48px; }

.tb h1, .tb h2, .tb h3, .hero-copy h1 {
  font-weight: 500; line-height: 1.3; letter-spacing: 0; margin: 0 0 24px; color: var(--ink);
}
.tb h1, .hero-copy h1 { font-size: 40px; }
.tb h2 { font-size: 36px; }
.tb h3 { font-size: 32px; }
.tb p, .hero-copy p { margin: 0 0 16px; font-size: 16px; font-weight: 300; line-height: 1.5; }
.tb p.body-large { font-size: 18px; font-weight: 400; }
.section--yellow .tb, .tb--center { text-align: center; }

@media (min-width: 920px) {
  .section { padding: 64px 0; }
  .tb h1, .hero-copy h1 { font-size: var(--fontSizeDesktop, 64px); }
  .tb h2 { font-size: var(--fontSizeDesktop, 56px); }
  .tb h3 { font-size: var(--fontSizeDesktop, 48px); }
  .tb p { font-size: var(--fontSizeDesktop, 16px); }
}

.hero { display: grid; gap: 32px; align-items: center; }
.hero-copy { max-width: 551px; }
.hero-img { width: 100%; max-width: 384px; aspect-ratio: 1; object-fit: cover; border-radius: 30px; justify-self: center; }
@media (min-width: 920px) {
  .hero { grid-template-columns: 1fr 384px; gap: 64px; }
  .hero-img { border-radius: 40px; }
}

.block-img { display: block; margin: 0 auto; }

/* About: portraits now live inside the bio layout instead of floating over it. */
.ag-portrait { display: block; width: 100%; max-width: 260px; aspect-ratio: 1 / 1.5; object-fit: cover; object-position: top; margin-bottom: 1.5rem; }

/* ── BLOG INDEX ── */
.post-grid { display: grid; gap: 48px 32px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .post-grid { grid-template-columns: 1fr 1fr; } }
.post-card a { text-decoration: none; color: inherit; display: block; }
.post-card img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; margin-bottom: 20px; background: var(--bg-light); }
.post-card h2 { font-size: 20px; font-weight: 500; line-height: 1.3; margin: 8px 0 10px; }
.post-card a:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.post-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: #333; }
.post-cats { font-size: 13px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: #333; margin: 0; }
.post-meta { font-size: 14px; color: #555; margin: 0; }

/* ── BLOG POST ── */
.post-head { text-align: center; padding: 48px 0 32px; }
.post-head h1 { font-size: 28px; font-weight: 500; line-height: 1.3; margin: 0 0 12px; }
.post-head .post-desc { margin: 0 auto 12px; max-width: 720px; font-size: 16px; }
.post-head .post-cats { margin-bottom: 20px; }
@media (min-width: 920px) { .post-head h1 { font-size: 32px; } }
.post-cover { display: block; width: 100%; max-width: 810px; aspect-ratio: 21 / 9; object-fit: cover; margin: 0 auto 16px; }

/* ── FAQ (generated from site.json "faq"; mirrors the pw- section header style) ── */
.faq-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.faq-header h2 {
  margin: 0; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--black); white-space: nowrap;
}
.faq-line { flex: 1; height: 2px; background: var(--yellow); }
.faq-item { padding: 1.5rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.faq-header + .faq-item { border-top: 1px solid rgba(0, 0, 0, 0.08); }
.faq-item h3 { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.35; color: var(--black); }
.faq-item p { margin: 0; font-size: 0.95rem; line-height: 1.8; color: #2a2a2a; max-width: 760px; }

/* ── FOOTER / CONTACT ── */
.site-footer { padding: 64px 0 32px; scroll-margin-top: 16px; }
.contact { max-width: 620px; margin: 0 auto; text-align: center; }
.contact h2 { font-size: 32px; font-weight: 500; line-height: 1.3; margin: 0 0 24px; }
.contact > p { margin: 0 0 40px; }
@media (min-width: 920px) { .contact h2 { font-size: 48px; } }

.contact-form { text-align: left; display: grid; gap: 22px; max-width: 404px; margin: 0 auto; }
.contact-form label { display: block; font-size: 14px; font-weight: 400; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--field); border: 1px solid transparent; border-radius: 8px; padding: 10px 16px;
}
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form button {
  justify-self: center; font: inherit; font-size: 14px; font-weight: 400; color: var(--ink);
  background: var(--header); border: 1px solid var(--header); border-radius: 999px;
  padding: 12px 40px; cursor: pointer;
}
.contact-form button:hover { background: var(--yellow); }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; text-align: center; font-size: 14px; font-weight: 400; min-height: 1.5em; }
.form-status a { font-weight: 600; }

.footer-bottom { margin-top: 64px; font-size: 14px; font-weight: 400; text-align: center; }
.footer-bottom p { margin: 0; }

/* Form note, legal footer line, and long-form text pages (privacy). */
.form-note { margin: 0; text-align: center; font-size: 12px; font-weight: 400; color: var(--grey); }
.footer-legal { margin-top: 8px !important; font-size: 12px; color: var(--grey); }
.footer-legal a, .form-note a { color: inherit; }
.prose { max-width: 720px; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 32px 0 8px; }
.prose p { font-size: 16px; line-height: 1.7; color: #2a2a2a; }
.prose-meta { color: var(--grey) !important; font-size: 14px !important; }

/* Post title above the cover (the article's own headline below is the page's single H1),
   author box, related reading, footer nav. */
.post-head .post-title { font-size: 28px; font-weight: 500; line-height: 1.3; margin: 0 0 12px; }
@media (min-width: 920px) { .post-head .post-title { font-size: 32px; } }
.post-meta a { color: inherit; }
.post-author, .post-related { max-width: calc(var(--wide) + 2 * var(--gutter)); }
.post-author p { margin: 32px 0 0; padding: 20px 24px; background: var(--bg-light); border-left: 4px solid var(--yellow); font-size: 15px; line-height: 1.7; }
.post-author a { color: inherit; }
.post-related { margin-top: 32px; }
.post-related h2 { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 12px; }
.post-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.post-related a { font-size: 16px; font-weight: 600; color: var(--black); text-underline-offset: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 16px; }
.footer-nav a { font-size: 14px; font-weight: 400; color: var(--ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── CONSISTENCY LAYER ──
   Page titles: one style on every inner page. The home hero keeps its larger display size. */
main .tb h1, main .cs-index-header h1 {
  font-size: 36px; font-weight: 500; line-height: 1.3; letter-spacing: 0; margin: 0 0 24px; color: var(--ink);
}
@media (min-width: 920px) { main .tb h1, main .cs-index-header h1 { font-size: 48px; } }

/* The legacy embeds padded themselves 2rem inside Hostinger's iframes. Inline, that pushed
   their content in from the page title above; align everything to the container edge. */
main .hp-section, main .ag-wrap, main .pw-wrap, main .td3-wrap, main .sb-wrap, main .cs-stats-bar {
  padding-left: 0 !important; padding-right: 0 !important;
}
/* Embeds that follow the page title: their own top padding stacked on the section padding
   and left a large gap under the title (About, Platforms, Home). */
main .ag-wrap, main .pw-wrap, main .hp-wrap > .hp-section:first-child { padding-top: 1rem !important; }
