/* Window Film Facts — windowfilmfacts.com
 * Brand: the SINGLE Window Film Facts identity from info-graphic-builder
 * (07-projects/window-film-facts). DARK GRADIENT + LIGHT GREEN:
 *   --emphasis  light green  #86efac  → prominent data / highlights / numbers
 *   --accent    cyan/teal    #2dd4bf  → action: links, CTA, the site URL
 * Deep cool near-black canvas carrying a teal-derived gradient that glows in one
 * corner and fades to black. Looks NOTHING like the light Tint Fam brand.
 * Type: Space Grotesk (display) + Inter (body), self-hosted. */

/* ---- Self-hosted fonts ---- */
@font-face { font-family:"Space Grotesk"; font-weight:500; font-display:swap;
  src:url("fonts/SpaceGrotesk-Medium.woff2") format("woff2"); }
@font-face { font-family:"Space Grotesk"; font-weight:700; font-display:swap;
  src:url("fonts/SpaceGrotesk-Bold.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-weight:400; font-display:swap;
  src:url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-weight:500; font-display:swap;
  src:url("fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-weight:600; font-display:swap;
  src:url("fonts/Inter-SemiBold.woff2") format("woff2"); }

/* ---- Brand tokens ---- */
:root {
  --accent:      #2dd4bf;   /* action — links, CTA, site URL */
  --accent-ink:  #04221d;
  --emphasis:    #86efac;   /* data / highlight — light green */

  --bg-base:     #0a0f0d;   /* page */
  --bg-elev:     #121a16;   /* raised surface / cards */

  --ink:         #edf5f0;
  --ink-soft:    #a6b4ac;
  --ink-faint:   #6b766f;

  --card-bg:     #121a16;
  --card-border: rgba(255,255,255,0.10);
  --card-border-accent: var(--accent);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --maxw: 1080px;
  --maxw-read: 720px;       /* comfortable reading measure */
  --radius: 16px;
  --ls-eyebrow: 0.14em;
}

/* ---- Reset / base ---- */
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
/* nothing may drag the page sideways — any accidental overflow gets clipped */
html,body { overflow-x:hidden; overflow-x:clip; }
body {
  margin:0;
  font-family:var(--font-body);
  font-size:18px;
  line-height:1.7;
  color:var(--ink);
  background-color:var(--bg-base);
  /* Teal-derived gradient: glows teal top-left, fades to black (the brand canvas). */
  background-image:
    radial-gradient(120% 90% at 12% 0%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 55%),
    radial-gradient(90% 80% at 95% 8%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 50%),
    linear-gradient(170deg, color-mix(in srgb, var(--accent) 8%, var(--bg-base)) 0%, var(--bg-base) 60%);
  background-attachment:fixed;
  background-repeat:no-repeat;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
/* height:auto keeps the intrinsic aspect ratio when max-width shrinks an image —
 * without it, the height="…" attribute wins and images stretch vertically */
img { max-width:100%; height:auto; display:block; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }

.wrap { max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.eyebrow {
  font-family:var(--font-display); font-weight:500;
  text-transform:uppercase; letter-spacing:var(--ls-eyebrow);
  font-size:13px; color:var(--emphasis); margin:0 0 12px;
}

/* ---- Site header ---- */
.site-header {
  position:sticky; top:0; z-index:20;
  backdrop-filter:blur(10px);
  background:color-mix(in srgb, var(--bg-base) 80%, transparent);
  border-bottom:1px solid var(--card-border);
}
.site-header .wrap { display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand img { height:34px; width:auto; }
.brand .brand-name { font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--ink); letter-spacing:-0.01em; }
/* The nav is one swipeable line on narrow screens (scrollbar hidden) rather than
 * overflowing the viewport and causing page-level horizontal scroll. */
.nav { display:flex; gap:24px; font-size:15px; min-width:0; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.nav::-webkit-scrollbar { display:none; }
.nav a { color:var(--ink-soft); white-space:nowrap; }
.nav a:hover { color:var(--ink); text-decoration:none; }

/* ---- Hero ---- */
.hero { padding:84px 0 56px; text-align:center; }
.hero h1 {
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(40px, 6vw, 68px); line-height:1.04; letter-spacing:-0.02em;
  margin:0 auto 20px; max-width:16ch;
}
.hero h1 .hl { color:var(--emphasis); }
.hero p.lede { font-size:clamp(18px,2.4vw,22px); color:var(--ink-soft); max-width:46ch; margin:0 auto 32px; }
.btn {
  display:inline-block; font-family:var(--font-display); font-weight:500;
  background:var(--accent); color:var(--accent-ink);
  padding:13px 26px; border-radius:999px; font-size:16px;
}
.btn:hover { text-decoration:none; filter:brightness(1.08); }
.btn.ghost { background:transparent; color:var(--accent); border:1px solid var(--accent); }

/* ---- Section ---- */
.section { padding:48px 0; }
.section-head { margin:0 0 28px; }
.section-head h2 { font-family:var(--font-display); font-weight:700; font-size:clamp(28px,4vw,38px); letter-spacing:-0.015em; margin:0 0 8px; }
.section-head p { color:var(--ink-soft); margin:0; max-width:60ch; }

/* ---- Series grid (home) ---- */
.series-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; }
.series-card {
  display:flex; flex-direction:column;
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:var(--radius); padding:28px; transition:border-color .15s, transform .15s;
}
.series-card:hover { border-color:var(--card-border-accent); transform:translateY(-2px); text-decoration:none; }
.series-card .snum { font-family:var(--font-display); font-weight:700; color:var(--emphasis); font-size:14px; letter-spacing:.06em; text-transform:uppercase; }
.series-card h3 { font-family:var(--font-display); font-weight:700; font-size:23px; line-height:1.15; margin:8px 0 12px; color:var(--ink); letter-spacing:-0.01em; }
.series-card p { color:var(--ink-soft); font-size:15.5px; line-height:1.55; margin:0 0 18px; flex:1; }
.series-card .meta { color:var(--ink-faint); font-size:13px; font-family:var(--font-display); letter-spacing:.04em; text-transform:uppercase; }

/* ---- Chapter list (series page) ---- */
.chapter-list { display:flex; flex-direction:column; gap:2px; }
.chapter-row {
  display:flex; align-items:baseline; gap:18px;
  padding:18px 20px; border:1px solid transparent; border-radius:12px;
  transition:background .15s, border-color .15s;
}
.chapter-row:hover { background:var(--card-bg); border-color:var(--card-border); text-decoration:none; }
.chapter-row .cnum { font-family:var(--font-display); font-weight:700; color:var(--emphasis); font-size:15px; min-width:46px; }
.chapter-row .ctitle { font-family:var(--font-display); font-weight:500; color:var(--ink); font-size:19px; line-height:1.3; }
.chapter-row .cdesc { color:var(--ink-soft); font-size:15px; margin-top:3px; }
.chapter-row .arrow { margin-left:auto; color:var(--ink-faint); align-self:center; }
.chapter-row:hover .arrow { color:var(--accent); }

/* ---- Article (chapter post) ---- */
.post { padding:56px 0 32px; }
.post-head { max-width:var(--maxw-read); margin:0 auto 36px; }
.post-head .series-tag { color:var(--accent); font-family:var(--font-display); font-weight:500; font-size:14px; text-transform:uppercase; letter-spacing:.08em; }
.post-head h1 { font-family:var(--font-display); font-weight:700; font-size:clamp(32px,5vw,48px); line-height:1.08; letter-spacing:-0.02em; margin:14px 0 0; }
.post-body { max-width:var(--maxw-read); margin:0 auto; }
.post-body p { margin:0 0 22px; color:var(--ink); }
.post-body p strong { color:var(--ink); font-weight:600; }
.post-body em { color:var(--ink-soft); }
.post-body h2,.post-body h3 { font-family:var(--font-display); font-weight:700; color:var(--ink); letter-spacing:-0.01em; margin:40px 0 14px; }
.post-body h2 { font-size:28px; } .post-body h3 { font-size:22px; }
.post-body ul,.post-body ol { padding-left:1.3em; margin:0 0 22px; color:var(--ink); }
.post-body li { margin:0 0 8px; }
.post-body blockquote { border-left:3px solid var(--accent); margin:24px 0; padding:6px 0 6px 22px; color:var(--ink-soft); font-style:italic; }
.post-body hr { border:0; border-top:1px solid var(--card-border); margin:36px 0; }

/* Figures — illustrations sit on the gradient as a rounded card (brand spec).
 * They are interleaved into the article body next to the prose they illustrate;
 * height:auto keeps the image's intrinsic (square) aspect ratio — the width/height
 * attributes are only there to reserve layout space. */
.figures { max-width:var(--maxw-read); margin:40px auto 0; display:flex; flex-direction:column; gap:28px; }
.figure { background:var(--bg-elev); border:1px solid var(--card-border); border-radius:var(--radius); overflow:hidden; }
.figure img { display:block; width:100%; height:auto; border-radius:var(--radius) var(--radius) 0 0; }
.figure figcaption { padding:14px 20px; font-size:14px; color:var(--ink-soft); }
.figure figcaption strong { color:var(--emphasis); font-weight:600; }
.post-body .figure { margin:34px 0; }
.post .post-hero { max-width:var(--maxw-read); margin:0 auto 36px; }
.post .post-hero img { border-radius:var(--radius); }

/* ---- Web-specific closing CTA (replaces the social sign-off) ---- */
.post-outro {
  max-width:var(--maxw-read); margin:40px auto 0; padding:22px 24px;
  background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius);
  color:var(--ink-soft); font-size:16px; line-height:1.6;
}
.post-outro strong { color:var(--emphasis); font-weight:600; }

/* ---- Prev/next ---- */
.post-nav { max-width:var(--maxw-read); margin:48px auto 0; display:flex; justify-content:space-between; gap:16px; border-top:1px solid var(--card-border); padding-top:28px; }
.post-nav a { display:flex; flex-direction:column; max-width:46%; }
.post-nav a.next { text-align:right; margin-left:auto; }
.post-nav .dir { font-size:13px; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.06em; font-family:var(--font-display); }
.post-nav .ttl { color:var(--ink); font-family:var(--font-display); font-weight:500; font-size:16px; margin-top:4px; }
.post-nav a:hover .ttl { color:var(--accent); }

/* ---- Breadcrumb ---- */
.crumb { max-width:var(--maxw-read); margin:0 auto; padding:28px 24px 0; font-size:14px; color:var(--ink-faint); }
.crumb a { color:var(--ink-soft); }

/* ---- Footer ---- */
.site-footer { border-top:1px solid var(--card-border); margin-top:64px; padding:40px 0; text-align:center; }
.site-footer .url { font-family:var(--font-display); font-weight:500; color:var(--accent); font-size:17px; }
.site-footer .fine { color:var(--ink-faint); font-size:13px; margin-top:10px; }

/* ---- Accessibility helpers ---- */
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip-link { position:absolute; left:-9999px; top:0; z-index:50; background:var(--accent); color:var(--accent-ink); padding:10px 16px; border-radius:0 0 8px 0; font-family:var(--font-display); }
.skip-link:focus { left:0; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* ---- Hero CTA row ---- */
.hero-cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ---- Subscribe section ---- */
.subscribe { padding:56px 0; }
.subscribe.compact { padding:40px 0; }
.subscribe-card {
  display:grid; grid-template-columns:1.1fr 1fr; gap:36px; align-items:center;
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:var(--radius); padding:36px;
  background-image:radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 60%);
}
.subscribe.compact .subscribe-card { padding:28px; gap:24px; }
.subscribe-copy h2 { font-family:var(--font-display); font-weight:700; font-size:clamp(24px,3.4vw,32px); letter-spacing:-0.015em; margin:0 0 10px; }
.subscribe-copy p { color:var(--ink-soft); margin:0; font-size:16px; }
.subscribe-copy p strong { color:var(--ink); }
.subscribe-form { display:flex; flex-direction:column; gap:14px; }
.subscribe-form .field input {
  width:100%; padding:13px 16px; font-size:16px; font-family:var(--font-body);
  color:var(--ink); background:var(--bg-base); border:1px solid var(--card-border); border-radius:10px;
}
.subscribe-form .field input:focus { outline:none; border-color:var(--accent); }
.subscribe-form .lists { border:0; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.subscribe-form .check { display:flex; align-items:baseline; gap:9px; font-size:15px; color:var(--ink); cursor:pointer; }
.subscribe-form .check span { color:var(--ink-faint); }
.subscribe-form .check input { accent-color:var(--accent); width:16px; height:16px; }
.subscribe-form .btn { border:0; cursor:pointer; width:fit-content; }
.subscribe-form .form-note { font-size:13px; color:var(--ink-faint); margin:0; }
.subscribe-form .form-note.ok { color:var(--emphasis); }
.subscribe-form .form-note.err { color:#f0a58c; }
.subscribe-form.is-done .field, .subscribe-form.is-done .lists, .subscribe-form.is-done .btn { display:none; }

/* ---- Home "straight answers" teaser ---- */
.q-teaser { display:flex; flex-direction:column; gap:2px; }
.q-row { display:flex; align-items:center; gap:14px; padding:16px 18px; border:1px solid transparent; border-radius:12px; transition:background .15s, border-color .15s; }
.q-row:hover { background:var(--card-bg); border-color:var(--card-border); text-decoration:none; }
.q-row span:nth-child(2) { font-family:var(--font-display); font-weight:500; font-size:17px; color:var(--ink); line-height:1.3; }
.q-row .q-mark { flex:0 0 auto; width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:color-mix(in srgb, var(--accent) 18%, transparent); color:var(--accent); font-family:var(--font-display); font-weight:700; font-size:14px; }
.q-row .arrow { margin-left:auto; color:var(--ink-faint); }
.q-row:hover .arrow { color:var(--accent); }

/* ---- FAQ / Myths ---- */
.faq { display:flex; flex-direction:column; gap:10px; }
.faq-item { background:var(--card-bg); border:1px solid var(--card-border); border-radius:12px; overflow:hidden; }
.faq-item summary { list-style:none; cursor:pointer; padding:18px 22px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary h2 { font-family:var(--font-display); font-weight:500; font-size:18px; line-height:1.35; color:var(--ink); margin:0; letter-spacing:-0.005em; }
.faq-item summary::after { content:"+"; color:var(--accent); font-size:24px; line-height:1; font-family:var(--font-display); flex:0 0 auto; }
.faq-item[open] summary::after { content:"–"; }
.faq-item[open] summary { border-bottom:1px solid var(--card-border); }
.faq-a { padding:16px 22px 20px; }
.faq-a p { margin:0 0 14px; color:var(--ink-soft); }
.faq-more { font-family:var(--font-display); font-weight:500; font-size:15px; color:var(--accent); }

/* ---- Glossary ---- */
.glossary { margin:0; }
.gterm { padding:18px 0; border-bottom:1px solid var(--card-border); }
.gterm:first-child { padding-top:0; }
.gterm dt { font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--emphasis); letter-spacing:-0.005em; }
.gterm dt .gterm-full { color:var(--ink-soft); font-weight:500; font-size:16px; }
.gterm dd { margin:6px 0 0; color:var(--ink-soft); }
.gterm-more { color:var(--accent); font-family:var(--font-display); font-weight:500; font-size:14px; white-space:nowrap; }

/* ---- Footer nav ---- */
.site-footer .url a { color:var(--accent); }
.foot-nav { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin:14px 0 4px; font-size:14px; }
.foot-nav a { color:var(--ink-soft); }
.foot-nav a:hover { color:var(--ink); }

/* ---- Posts grid (posts index + home teaser) ---- */
.post-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:22px; }
.post-card {
  display:flex; flex-direction:column; overflow:hidden;
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:var(--radius); transition:border-color .15s, transform .15s;
}
.post-card:hover { border-color:var(--card-border-accent); transform:translateY(-2px); text-decoration:none; }
.post-card .pc-thumb { display:block; height:200px; overflow:hidden; background:var(--bg-elev); }
.post-card .pc-thumb img { width:100%; height:100%; object-fit:cover; object-position:center; }
.post-card .pc-body { display:flex; flex-direction:column; padding:20px 22px 24px; }
.pc-meta {
  font-family:var(--font-display); font-weight:500; font-size:12px;
  text-transform:uppercase; letter-spacing:.06em; color:var(--emphasis);
  display:flex; align-items:center; flex-wrap:wrap;
}
.pc-meta time { color:var(--ink-faint); }
.pc-dot { color:var(--ink-faint); margin:0 8px; }
.pc-title { font-family:var(--font-display); font-weight:700; font-size:20px; line-height:1.2; letter-spacing:-0.01em; color:var(--ink); margin:11px 0 9px; }
.pc-desc { color:var(--ink-soft); font-size:15px; line-height:1.55; }

/* ---- Sources / further reading (post pages) ---- */
.sources { margin-top:44px; border-top:1px solid var(--card-border); padding:40px 0 0; }
.sources .wrap { max-width:var(--maxw-read); }
.sources h2 { font-family:var(--font-display); font-weight:700; font-size:26px; letter-spacing:-0.01em; margin:0 0 10px; }
.sources-note { color:var(--ink-soft); font-size:15px; margin:0 0 22px; }
.sources-body { font-size:14.5px; color:var(--ink-soft); }
.sources-body h3 { font-family:var(--font-display); font-weight:600; font-size:15px; color:var(--ink); text-transform:uppercase; letter-spacing:.04em; margin:26px 0 10px; }
.sources-body ul { padding-left:1.2em; margin:0 0 16px; }
.sources-body li { margin:0 0 10px; line-height:1.55; }
.sources-body p { margin:0 0 12px; }
.sources-body strong { color:var(--ink); font-weight:600; }
.sources-body a { word-break:break-word; }

/* ---- Ask-a-question form (reuses the .subscribe-card shell) ---- */
.ask-form { display:flex; flex-direction:column; gap:14px; }
.ask-form .field { display:block; }
.ask-form textarea, .ask-form input[type="email"] {
  width:100%; padding:13px 16px; font-size:16px; font-family:var(--font-body);
  color:var(--ink); background:var(--bg-base);
  border:1px solid var(--card-border); border-radius:10px;
}
.ask-form textarea { resize:vertical; min-height:96px; line-height:1.5; }
.ask-form textarea:focus, .ask-form input:focus { outline:none; border-color:var(--accent); }
.ask-form .btn { border:0; cursor:pointer; width:fit-content; }
.ask-form .form-note { font-size:13px; color:var(--ink-faint); margin:0; }
.ask-form .form-note.ok { color:var(--emphasis); }
.ask-form .form-note.err { color:#f0a58c; }
.ask-form.is-done .field, .ask-form.is-done .btn, .ask-form.is-done .hp-field { display:none; }
/* honeypot — off-screen, never shown to humans */
.hp-field { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; pointer-events:none; }
.alt-cta { margin:12px 0 0; font-size:14px; color:var(--ink-faint); }
.alt-cta a { font-family:var(--font-display); font-weight:500; }

/* ---- Mobile ---- most readers arrive on a phone; this is the primary layout */
@media (max-width:640px){
  body { background-attachment:scroll; } /* fixed backgrounds repaint badly on mobile */
  .wrap { padding:0 18px; }
  .site-header .wrap { gap:14px; }
  .nav { gap:16px; font-size:14px; }
  .brand .brand-name { display:none; }

  .hero { padding:52px 0 40px; }
  .hero-cta { flex-direction:column; align-items:stretch; max-width:340px; margin:0 auto; }
  .hero-cta .btn { text-align:center; }
  .section { padding:36px 0; }
  .subscribe { padding:40px 0; }
  .subscribe-card { grid-template-columns:1fr; padding:24px; }

  .crumb { padding:22px 18px 0; }
  .chapter-row { padding:16px 12px; }
  .q-row { padding:14px 12px; }
  .q-row span:nth-child(2) { font-size:16px; }
  .faq-item summary { padding:16px 16px; }
  .faq-a { padding:14px 16px 18px; }

  .post-body .figure { margin:26px 0; }
  .post .post-hero { margin-bottom:26px; }
  .figures { gap:20px; margin-top:30px; }
  .figure figcaption { padding:12px 16px; }
  .post-nav { flex-direction:column; gap:14px; }
  .post-nav a { max-width:100%; }
  .foot-nav { gap:12px 18px; }
}
