/* Florida Storm & Home Prep (sponsormydegree.com)
   Single stylesheet. Mobile-first. No external fonts, no frameworks. */

:root {
  --c-ink: #1f2a44;          /* deep navy: headings, header text */
  --c-ink-soft: #33405f;     /* body text */
  --c-muted: #5b6478;        /* meta text (5.5:1 on bg) */
  --c-bg: #faf7f2;           /* off-white page */
  --c-surface: #ffffff;
  --c-sand: #f3ebdf;
  --c-line: #e3dccf;
  --c-accent: #e9893a;       /* warm amber, decorative only */
  --c-coral: #e46f55;        /* coral, decorative only */
  --c-link: #a8430a;         /* amber-brown text links (5.6:1 on bg) */
  --c-link-hover: #7f3207;
  --c-slate: #4a5a7a;
  --c-focus: #a8430a;

  --f-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --f-sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --w-content: 45rem;        /* 720px article measure */
  --w-wide: 72rem;
  --gutter: 1.25rem;
  --radius: 10px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink-soft);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  color: var(--c-ink);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, table, blockquote, figure { margin: 0 0 1.25rem; }
a { color: var(--c-link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: .75rem; top: -3rem; z-index: 100;
  background: var(--c-ink); color: #fff; padding: .6rem 1rem; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: .75rem; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(var(--w-content) + 2 * var(--gutter)); }
main { display: block; padding-bottom: 3rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--c-surface);
  border-top: 4px solid var(--c-accent);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  max-width: var(--w-wide); margin: 0 auto; padding: .85rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
}
.site-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--c-ink); }
.site-brand:hover { color: var(--c-ink); }
.site-brand__mark { width: 34px; height: 34px; flex: none; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-brand__name { font-family: var(--f-serif); font-size: 1.25rem; font-weight: 700; }
.site-brand__tagline { font-size: .75rem; color: var(--c-muted); letter-spacing: .06em; text-transform: uppercase; }

/* CSS-only menu toggle (checkbox) */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle__label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9375rem; font-weight: 600; color: var(--c-ink);
  padding: .45rem .75rem; border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-bg);
  user-select: none;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle:focus-visible + .nav-toggle__label { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.nav-toggle:checked + .nav-toggle__label .nav-toggle__icon { background: transparent; }
.nav-toggle:checked + .nav-toggle__label .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-toggle__label .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: none; width: 100%; }
.nav-toggle:checked ~ .site-nav { display: block; }
.site-nav__list { list-style: none; margin: 0; padding: .25rem 0 .5rem; }
.site-nav__list a {
  display: block; padding: .65rem .25rem; color: var(--c-ink); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--c-line);
}
.site-nav__list a:hover { color: var(--c-link); }
.site-nav__list a[aria-current="page"] { color: var(--c-link); }

@media (min-width: 48em) {
  .nav-toggle, .nav-toggle__label { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav__list { display: flex; gap: 1.75rem; padding: 0; }
  .site-nav__list a { border: 0; padding: .35rem 0; border-bottom: 2px solid transparent; }
  .site-nav__list a[aria-current="page"] { border-bottom-color: var(--c-accent); color: var(--c-ink); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--c-ink); color: #e9ecf3;
  padding: 3rem 0 4.5rem;
}
.hero::before { /* decorative storm-band: soft rings + stripes, CSS only */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(233,137,58,.35) 0 6%, transparent 6.5% 11%, rgba(233,137,58,.16) 11.5% 12.5%, transparent 13% 19%, rgba(233,137,58,.10) 19.5% 20.5%, transparent 21%),
    linear-gradient(160deg, transparent 55%, rgba(74,90,122,.55) 55%);
}
.hero::after { /* bottom wave band */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background: repeating-linear-gradient(90deg, var(--c-accent) 0 40px, var(--c-coral) 40px 80px, #f2c38f 80px 120px);
}
.hero__inner { position: relative; max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--gutter); }
.hero__eyebrow { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: #f2c38f; font-weight: 700; margin-bottom: .75rem; }
.hero__title { color: #fff; max-width: 18ch; }
.hero__lede { font-size: 1.125rem; max-width: 40rem; color: #d7dceb; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero :focus-visible { outline-color: #f2c38f; }

.button {
  display: inline-block; padding: .7rem 1.2rem; border-radius: 6px; font-weight: 700; text-decoration: none;
  background: #f2c38f; color: var(--c-ink); border: 2px solid #f2c38f;
}
.button:hover { background: #fff; border-color: #fff; color: var(--c-ink); }
.button--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.button--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ---------- Section headings ---------- */
.section { padding: 3rem 0 0; }
.section__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--c-line); padding-bottom: .75rem; }
.section__title { margin: 0; }
.section__more { font-weight: 600; }

/* ---------- Post cards ---------- */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.post-card {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .15s ease, transform .15s ease;
}
.post-card:hover { box-shadow: 0 8px 24px rgba(31,42,68,.10); transform: translateY(-2px); }
.post-card:focus-within { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.post-card__band { height: 8px; background: var(--c-accent); }
.post-card--shutters .post-card__band { background: var(--c-ink); }
.post-card--insurance .post-card__band { background: var(--c-coral); }
.post-card--generators .post-card__band { background: var(--c-accent); }
.post-card--roofs .post-card__band { background: var(--c-slate); }
.post-card--flooding .post-card__band { background: #3f6fb0; }
.post-card--checklists .post-card__band { background: #c9a227; }
.post-card--recovery .post-card__band { background: var(--c-slate); }
.post-card__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card__category { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 .4rem; }
.post-card__title { font-size: 1.2rem; margin: 0 0 .5rem; }
.post-card__title a { color: var(--c-ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.post-card__title a:focus-visible { outline: none; }
.post-card__excerpt { font-size: .975rem; margin: 0 0 1rem; }
.post-card__meta { margin: auto 0 0; font-size: .8125rem; color: var(--c-muted); }

/* ---------- Guides list ---------- */
.page-header { padding: 2.5rem 0 1.5rem; }
.page-header__lede { font-size: 1.125rem; color: var(--c-muted); max-width: 40rem; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list__item { padding: 1.25rem 0; border-top: 1px solid var(--c-line); }
.post-list__item:last-child { border-bottom: 1px solid var(--c-line); }
.post-list__title { font-size: 1.35rem; margin: .2rem 0 .4rem; }
.post-list__title a { color: var(--c-ink); text-decoration: none; }
.post-list__title a:hover { color: var(--c-link); text-decoration: underline; }
.post-list__excerpt { margin: 0 0 .35rem; }
.post-list__meta { margin: 0; font-size: .8125rem; color: var(--c-muted); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .875rem; color: var(--c-muted); padding-top: 1.5rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .25rem; color: var(--c-line); }
.breadcrumb a { color: var(--c-muted); }

/* ---------- Article ---------- */
.article__header { padding: 1.25rem 0 1.5rem; border-bottom: 1px solid var(--c-line); margin-bottom: 2rem; }
.article__category { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-link); margin-bottom: .75rem; }
.article__dek { font-size: 1.2rem; color: var(--c-muted); font-family: var(--f-serif); margin-bottom: 1rem; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; font-size: .9rem; color: var(--c-muted); margin: 0; }
.byline__author { color: var(--c-ink); font-weight: 600; }
.byline__sep { color: var(--c-line); }

.article__body > * + h2 { margin-top: 2.5rem; }
.article__body > * + h3 { margin-top: 1.75rem; }
.article__body ul, .article__body ol { padding-left: 1.4rem; }
.article__body li { margin-bottom: .4rem; }
.article__body li::marker { color: var(--c-accent); }
.article__body ol li::marker { font-weight: 700; color: var(--c-link); }

.figure { margin: 0 0 2rem; }
.figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-sand); }
.figure figcaption { font-size: .85rem; color: var(--c-muted); margin-top: .5rem; }

.callout { background: var(--c-sand); border-left: 4px solid var(--c-accent); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.5rem; }
.callout__title { font-family: var(--f-serif); font-weight: 700; color: var(--c-ink); margin: 0 0 .35rem; }
.callout ul { margin-bottom: 0; }

blockquote {
  margin-left: 0; margin-right: 0; padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--c-coral);
  font-family: var(--f-serif); font-size: 1.25rem; font-style: italic; color: var(--c-ink);
}
blockquote p { margin-bottom: .5rem; }
blockquote cite { display: block; font-family: var(--f-sans); font-size: .875rem; font-style: normal; color: var(--c-muted); }

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 0; }
caption { text-align: left; font-size: .85rem; color: var(--c-muted); padding: .75rem 1rem 0; }
th, td { text-align: left; padding: .65rem 1rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
thead th { font-family: var(--f-sans); color: var(--c-ink); background: var(--c-sand); font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* Outbound source links: dotted underline + arrow so readers know they leave the site */
.source-link { text-decoration-style: dotted; text-decoration-thickness: 1.5px; }
.source-link::after { content: "\2197"; display: inline-block; margin-left: .15em; font-size: .85em; text-decoration: none; }
.sources { font-size: .9rem; border-top: 1px solid var(--c-line); padding-top: 1rem; margin-top: 2.5rem; }
.sources h2 { font-size: 1.1rem; font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.sources ol { padding-left: 1.25rem; }

.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-top: 2rem; }
.author-box__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--c-ink); color: #f2c38f; display: grid; place-items: center; font-family: var(--f-serif); font-weight: 700; font-size: 1.2rem; }
.author-box__name { font-weight: 700; color: var(--c-ink); margin: 0 0 .2rem; }
.author-box p { margin: 0; font-size: .95rem; }

.disclaimer { font-size: .85rem; color: var(--c-muted); font-style: italic; margin-top: 1.5rem; }

.related { background: var(--c-sand); border-top: 1px solid var(--c-line); margin-top: 3rem; padding: 2.5rem 0 3rem; }
.related .post-card__excerpt { display: none; }

/* ---------- Simple pages ---------- */
.prose > * + h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.4rem; }
.contact-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.5rem 0; }
.contact-card__email { font-size: 1.2rem; font-weight: 700; }

.error-page { text-align: center; padding: 4rem 0 2rem; }
.error-page__code { font-family: var(--f-serif); font-size: 5rem; line-height: 1; color: var(--c-accent); margin-bottom: .5rem; }
.error-page__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: #c9cfdd; font-size: .9375rem; padding: 2.5rem 0 2rem; }
.site-footer__inner { max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 1.25rem; }
@media (min-width: 48em) { .site-footer__inner { grid-template-columns: 2fr 1fr; align-items: start; } }
.site-footer__brand { font-family: var(--f-serif); font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 .35rem; }
.site-footer__about { margin: 0; max-width: 34rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (min-width: 48em) { .site-footer__links { justify-content: flex-end; } }
.site-footer a { color: #f2c38f; }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #f2c38f; }
.site-footer__bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; font-size: .8125rem; color: #aab2c5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.site-footer__bottom p { margin: 0; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .related, .skip-link, .hero::before, .hero::after { display: none !important; }
  body { background: #fff; color: #000; }
  .source-link::after { content: " (" attr(href) ")"; }
}

/* Homepage intro note (between hero and Latest guides) */
.home-intro { padding: 2.5rem 0 0; }
.home-intro__inner { max-width: var(--w-content); }
.home-intro__title { font-family: var(--f-serif); color: var(--c-ink); font-size: 1.5rem; line-height: 1.25; margin: 0 0 .6rem; }
.home-intro p { font-size: 1.0625rem; line-height: 1.7; color: var(--c-ink-soft); margin: 0; }
.home-intro a { color: var(--c-link); text-decoration: underline; }
.home-intro a:hover { color: var(--c-link-hover); }
@media (min-width: 48rem) { .home-intro { padding-top: 3.25rem; } .home-intro__title { font-size: 1.75rem; } }
