/* ==========================================================================
   Happy Guest design tokens
   Captured from https://www.happyguest.com on 2026-11-13 (live, read-only).
   Sources: site.css (Squarespace site styles), custom.css (Custom CSS panel),
   inline <style> blocks in the page HTML, storage.googleapis.com/intention-to-empire/*.
   See DESIGN.md for where each value came from.
   ========================================================================== */

/* Fonts: all three are SIL Open Font License families on Google Fonts.
   The live site serves them from Squarespace's font CDN; do NOT hotlink that.
   Either keep this import or self-host the same files. */
@import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,500;0,600;0,700;0,800;1,500&family=Instrument+Serif&family=Bagel+Fat+One&display=swap");

:root {
  /* ---------- Brand palette (custom.css :root) ---------- */
  --hg-black:   #000000;   /* text, borders, header outline (--black-hsl 60,100%,0%) */
  --hg-white:   #ffffff;
  --hg-cream:   #fffceb;   /* --cream / --lightAccent hsl(50,100%,96%): text on photos, mobile menu bg */
  --hg-neon:    #d7ff6f;   /* --neon: nav pills, mega menu, category tags, primary buttons, footer headings */
  --hg-lime:    #aeff77;   /* --lime */
  --hg-seafoam: #80ffaa;   /* --seafoam / site --accent hsl(140,100%,75%): footer links, secondary buttons, gradient top */
  --hg-sky:     #6be3ff;   /* --sky */
  --hg-lilac:   #9abcff;   /* --lilac: gradient bottom */
  --hg-rose:    #ff8efe;   /* --rose: link hover in footer + mega menu, scroll tint */
  --hg-lemon:   #ffff66;   /* --lemon */
  --hg-sun:     #ffbf5c;   /* --sun */
  --hg-gold:    #ffdf61;   /* --gold: header awning stripe */
  --hg-salmon:  #ffa088;   /* --salmon: header awning stripe */

  /* ---------- Semantic colors ---------- */
  --color-text:            var(--hg-black);
  --color-heading:         var(--hg-black);
  --color-link:            var(--hg-black);          /* links are black, weight 600, no underline */
  --color-link-hover-opacity: .5;                    /* body links fade to 50% on hover */
  --color-text-on-image:   var(--hg-cream);
  --color-border:          var(--hg-black);
  --color-footer-bg:       rgba(0, 0, 0, .92);       /* live: rgba(0,0,0,.7) over a black background image = near-black card */
  --color-footer-heading:  var(--hg-neon);
  --color-footer-link:     var(--hg-seafoam);
  --color-footer-link-hover: var(--hg-rose);
  --color-footer-text:     var(--hg-white);
  --color-image-overlay:   rgba(0, 0, 0, .4);        /* photo cards + article hero */
  --color-divider-on-neon: rgba(0, 0, 0, .18);       /* mobile menu section rules */
  --color-eyebrow-on-neon: rgba(0, 0, 0, .4);

  /* Page background: fixed vertical gradient (bg-gradient.js, data-g1/g2/g3).
     Home, /resources and articles use seafoam > sky > lilac; /pricing uses lime > seafoam > sky.
     A fixed overlay fades to --hg-rose (0 to 100%) as you scroll to the bottom (bg-colorshift.js). */
  --page-gradient:         linear-gradient(to bottom, var(--hg-seafoam), var(--hg-sky), var(--hg-lilac));
  --page-gradient-pricing: linear-gradient(to bottom, var(--hg-lime), var(--hg-seafoam), var(--hg-sky));
  --page-scroll-tint:      var(--hg-rose);

  /* ---------- Typography ---------- */
  --font-sans:    "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif:   "Instrument Serif", Georgia, "Times New Roman", serif;   /* article/card titles, mega menu */
  --font-display: "Bagel Fat One", "Work Sans", cursive;                    /* <b>/<strong> inside h1/h2 only */

  --root-size: 15px;          /* --base-font-size */
  --fw-body: 500;             /* --body-font-font-weight */
  --fw-link: 600;             /* custom.css a:not(...) */
  --fw-nav: 700;              /* custom.css header pills */
  --fw-button: 700;
  --fw-heading: 800;          /* --heading-font-font-weight */
  --lh-body: 1.2;             /* --body-font-line-height 1.2em */
  --meta-tracking: .04em;     /* --meta-font-letter-spacing, uppercase */

  /* Squarespace fluid type: size = (value - 1) * 1.2vw + 1rem, capped at a 1720px page.
     At 1440px wide: h1 84.1, h2 66.8, h3 51.3, h4 34.0, large 25.4, body 16.7, meta 12.4 (px). */
  --fs-h1:    min(calc(4.0 * 1.2vw + 1rem), calc(4.0 * .012 * 1720px + 1rem));
  --fs-h2:    min(calc(3.0 * 1.2vw + 1rem), calc(3.0 * .012 * 1720px + 1rem));
  --fs-h3:    min(calc(2.1 * 1.2vw + 1rem), calc(2.1 * .012 * 1720px + 1rem));
  --fs-h4:    min(calc(1.1 * 1.2vw + 1rem), calc(1.1 * .012 * 1720px + 1rem));
  --fs-large: min(calc(0.6 * 1.2vw + 1rem), calc(0.6 * .012 * 1720px + 1rem));
  --fs-body:  min(calc(0.1 * 1.2vw + 1rem), calc(0.1 * .012 * 1720px + 1rem));
  --fs-small: 1rem;
  --fs-meta:  max(calc(-0.15 * 1.2vw + 1rem), .75rem);
  --fs-button: min(calc(1.0 * 1.2vw + 1rem), calc(1.0 * .012 * 1720px + 1rem));   /* block buttons, 2rem setting */
  --fs-nav:   clamp(12px, 1.35vw, 18px);                                          /* header pills */

  /* line-height = 1.2 * (1 + (1 - size)/25) */
  --lh-h1: 1.008;
  --lh-h2: 1.056;
  --lh-h3: 1.099;
  --lh-h4: 1.147;
  --lh-serif-title: 1.1;

  /* ---------- Layout ---------- */
  --page-max: 1720px;          /* --maxPageWidth */
  --gutter: 4vw;               /* --pagePadding (57.6px at 1440) */
  --gutter-mobile: 6vw;        /* --sqs-mobile-site-gutter */
  --article-width: 795px;      /* measured .blog-item-content at 1440, left-aligned */
  --section-pad-y: 3.3vw;      /* 47.52px at 1440 (content-wrapper padding) */
  --header-h: 72px;            /* row height; awning + scallop reaches ~102px */
  --bp-mobile-header: 749px;   /* custom header swaps at <=749 / >=750 */
  --bp-squarespace: 767px;     /* Squarespace type + layout swap at <=767 / >=768 */

  /* ---------- Shape ---------- */
  --radius-pill: 100px;        /* nav pills, CTA, tags */
  --radius-button: 300px;      /* block buttons (measured) */
  --radius-card: 25px;         /* image cards, article hero */
  --radius-footer: 30px;       /* inset footer card */
  --radius-menu: 24px;         /* mega menu panel */
  --radius-dropdown: 20px;
  --radius-stat: 14px;         /* --pc-r dark stat cards */
  --border: 1px solid var(--hg-black);
  --border-hover: 1.5px solid var(--hg-black);

  /* ---------- Shadows / motion ---------- */
  --shadow-menu: 0 0 0 1px rgba(0,0,0,.15), 0 8px 40px rgba(0,0,0,.5);
  --shadow-header: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 14px 0 #000);
  --shadow-logo: drop-shadow(1.5px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 1.5px 0 #000) drop-shadow(0 -1px 0 #000) drop-shadow(2px 6px 0 #000);
  --shadow-logo-mobile: drop-shadow(.5px 0 0 #000) drop-shadow(-.5px 0 0 #000) drop-shadow(0 .5px 0 #000) drop-shadow(0 -.5px 0 #000) drop-shadow(2px 3px 0 #000);
  --ease-bounce: cubic-bezier(.34, 1.4, .64, 1);
  --ease-arrow: cubic-bezier(.34, 1.56, .64, 1);

  /* Header awning (custom.css .header-display-desktop::before) */
  --awning-stripes:
    repeating-linear-gradient(90deg, transparent 0 47px, #000 47px 48px, transparent 48px 95px, #000 95px 96px),
    repeating-linear-gradient(90deg, var(--hg-salmon) 0 48px, var(--hg-gold) 48px 96px);
  --awning-mask:
    radial-gradient(circle 48px at 50% 0%, #000 49px, transparent 50px) 0 100% / 48px 60px repeat-x,
    linear-gradient(#000, #000) top / 100% calc(100% - 59px) no-repeat;
}

/* Squarespace uses viewport HEIGHT for type on portrait phones. */
@media screen and (max-width: 767px) and (orientation: portrait) {
  :root {
    --fs-h1:    calc(4.0 * .012 * min(100vh, 900px) + 1rem);
    --fs-h2:    calc(3.0 * .012 * min(100vh, 900px) + 1rem);
    --fs-h3:    calc(2.1 * .012 * min(100vh, 900px) + 1rem);
    --fs-h4:    calc(1.1 * .012 * min(100vh, 900px) + 1rem);
    --fs-large: calc(0.6 * .012 * min(100vh, 900px) + 1rem);
    --fs-body:  calc(0.1 * .012 * min(100vh, 900px) + 1rem);
    --fs-button: calc(1.0 * .012 * min(100vh, 900px) + 1rem);
  }
}

@keyframes hg-demo-color-cycle {     /* custom.css @keyframes demo-color-cycle */
  0%   { background: #aeff77; }
  25%  { background: #6be3ff; }
  50%  { background: #80ffaa; }
  75%  { background: #d7ff6f; }
  100% { background: #aeff77; }
}

/* ---------- Minimal base that matches the live site ---------- */
html { font-size: var(--root-size); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--page-gradient) fixed;
}
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: var(--fw-heading); color: var(--color-heading); letter-spacing: 0; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
h1 b, h1 strong, h2 b, h2 strong { font-family: var(--font-display); font-weight: 400; }
a { color: var(--color-link); font-weight: var(--fw-link); text-decoration: none; transition: opacity .3s ease; }
a:hover { opacity: var(--color-link-hover-opacity); }

.hg-btn {
  display: inline-block;
  font: var(--fw-button) var(--fs-button)/1.2 var(--font-sans);
  color: var(--hg-black);
  background: var(--hg-neon);
  border: var(--border);
  border-radius: var(--radius-button);
  padding: .3rem 1.1rem;
  transition: transform .4s var(--ease-bounce);
}
.hg-btn::after { content: " \2197\FE0E"; display: inline-block; margin-left: 3px; transition: transform .4s var(--ease-arrow); }
.hg-btn:hover { opacity: 1; transform: scale(1.1); border: var(--border-hover); }
.hg-btn:hover::after { transform: translate(3px, -3px); }
.hg-btn--seafoam { background: var(--hg-seafoam); }
.hg-btn--cycle { animation: hg-demo-color-cycle 3s ease-in-out infinite; }

.hg-tag {
  display: inline-block;
  background: var(--hg-neon);
  color: var(--hg-black);
  border: var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hg-btn--cycle { animation: none; background: var(--hg-neon); }
}
