/* ============================================================
   HostMyBlog — chassis (v3 · editorial-bright + electric signature)
   Direction informed by taste-skill: bold type, whitespace,
   one signature gradient executed consistently, no slop.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* surfaces */
  --bg:    #F4F1EC;   /* warm bright paper */
  --paper: #FBF9F5;   /* slightly lighter band */
  --card:  #FFFFFF;   /* crisp card */
  --night: #221C14;   /* deep indigo-ink — dark sections */
  --night-2: #2E2618;

  /* text */
  --ink:      #1B1710;
  --ink-soft: #57514A;
  --muted:    #6E665B;
  --line:     rgba(23,19,31,0.16);
  --line-2:   rgba(23,19,31,0.06);

  /* signature electric trio */
  --blue:   #F07A2A;
  --violet: #FB6A24;
  --coral:  #FD5A1E;   /* action / key CTA */
  --coral-deep: #E24A12;
  --grad: linear-gradient(110deg, #F07A2A 0%, #FB6A24 52%, #FD5A1E 100%);
  --grad-soft: linear-gradient(110deg, rgba(201,130,26,0.16), rgba(227,154,43,0.14) 52%, rgba(255,153,51,0.16));

  /* supporting accents (feature tiles only) */
  --teal: #10B981;
  --gold: #E8A317;
  --pink: #E85A1E;

  /* tints */
  --blue-12:   rgba(201,130,26,0.12);
  --violet-12: rgba(227,154,43,0.12);
  --coral-12:  rgba(255,153,51,0.13);
  --teal-12:   rgba(16,185,129,0.13);
  --gold-12:   rgba(232,163,23,0.15);
  --pink-12:   rgba(236,77,139,0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 13px;
  --radius-sm: 9px;

  /* SPACING SCALE — HARD RULE: every component/section/page spacing uses a token below, never an ad-hoc px value.
     section vertical rhythm = --space-section (via .section) · container inset = --gutter (via .wrap) · intra-component = --space-2xs..--space-2xl */
  --space-2xs: 8px;
  --space-xs:  12px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  32px;
  --space-xl:  48px;
  --space-2xl: clamp(28px, 3.4vw, 48px);
  --space-section: clamp(64px, 9vw, 132px);
  --shadow-card: 0 1px 1px rgba(23,19,31,0.03), 0 14px 26px -22px rgba(23,19,31,0.22);
  --shadow-pop: 0 30px 70px -28px rgba(23,19,31,0.5);
  --ease: cubic-bezier(0.4, 0, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--coral); color: #fff; }
code { font-family: var(--font-mono); font-size: 0.88em; background: rgba(227,154,43,0.10); color: #A83112; padding: 0.12em 0.4em; border-radius: 6px; }

/* ---- SVG icon system ---- */
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }
.ic--fill { fill: currentColor; stroke: none; }

/* ---- Type ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.06; letter-spacing: -0.022em; text-wrap: balance; }
.h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); line-height: 1.02; }
.h2 { font-size: clamp(2rem, 4.3vw, 3.15rem); line-height: 1.1; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
p { text-wrap: pretty; }

.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 0.6em; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); display: inline-block; border-radius: 2px; }
.eyebrow .ic { font-size: 1.1em; color: var(--violet); }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.58; }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); position: relative; }
.section--paper { background: var(--paper); }
.section--night { background: var(--night); color: #F3ECDF; }
.section--night h1, .section--night h2, .section--night h3 { color: #fff; }
.section-head { max-width: 680px; }
.section-head .h2 { margin-top: 18px; }
.section-head .lead { margin-top: 26px; }
.center { text-align: center; margin-inline: auto; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; font-weight: 500; font-size: 1rem; padding: 0.85em 1.5em; border-radius: 999px; transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease); white-space: nowrap; line-height: 1; }
.btn .ic { font-size: 1.15em; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 8px 22px -10px rgba(255,153,51,0.7); }
.btn--primary:hover { background: var(--coral-deep); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #000; transform: translateY(-1px); }
.btn--outline { border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.btn--outline:hover { border-color: var(--ink); }
.btn--cream { background: #fff; color: var(--ink); }
.btn--cream:hover { transform: translateY(-1px); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,0.32); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); }
.btn--lg { font-size: 1.05rem; padding: 1.02em 1.8em; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.45em; color: var(--ink); font-weight: 500; transition: gap 0.2s var(--ease), color 0.2s var(--ease); }
.link-arrow .ic { color: var(--coral); }
.link-arrow:hover { gap: 0.75em; color: var(--coral); }

/* ============================================================
   GLASS HEADER (consistent, full-width)
   ============================================================ */
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 200; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 16px; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(244,241,236,0.82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line-2); transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(244,241,236,0.92); box-shadow: 0 8px 30px -24px rgba(23,19,31,0.5); }
.nav-inner { max-width: var(--maxw); margin-inline: auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--ink); letter-spacing: -0.03em; display: inline-flex; align-items: center; }
.wordmark .dot { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; font-size: 0.94rem; font-weight: 500; color: var(--ink-soft); padding: 9px 13px; border-radius: 10px; transition: color 0.18s var(--ease), background 0.18s var(--ease); }
.nav-link .ic { font-size: 1.02rem; color: var(--muted); transition: color 0.18s var(--ease); }
.nav-link:hover { color: var(--ink); background: rgba(23,19,31,0.05); }
.nav-link:hover .ic { color: var(--violet); }
.nav-link.is-active { color: var(--coral); }
.nav-link.is-active .ic { color: var(--coral); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 0.85em 1.5em; font-size: 1rem; }
.nav-burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); align-items: center; justify-content: center; color: var(--ink); font-size: 1.4rem; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(23,19,31,0.5); backdrop-filter: blur(4px); z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease); }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--bg); z-index: 160; transform: translateX(100%); transition: transform 0.3s var(--ease); padding: 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: -20px 0 60px -30px rgba(23,19,31,0.6); }
.drawer.is-open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer-close { width: 44px; height: 44px; color: var(--ink); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
.drawer a.nav-link { font-size: 1.08rem; padding: 14px 12px; color: var(--ink); border-bottom: 1px solid var(--line-2); border-radius: 0; }
.drawer .btn { margin-top: 16px; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-right .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--night); color: rgba(234,230,245,0.75); padding-block: 76px 34px; }
.footer a { color: rgba(234,230,245,0.7); transition: color 0.18s var(--ease); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; }
.footer .wordmark { color: #fff; }
.footer-blurb { color: rgba(234,230,245,0.6); margin-top: 16px; max-width: 32ch; font-size: 0.96rem; }
.footer-contact { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-col h4 { color: rgba(234,230,245,0.5); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; font-size: 0.96rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(234,230,245,0.14); font-size: 0.85rem; color: rgba(234,230,245,0.5); }
.footer-social { display: inline-flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(234,230,245,0.16); display: grid; place-items: center; font-size: 1.15rem; }
.footer-social a:hover { background: rgba(234,230,245,0.1); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
