
:root {
  --ink: #183135;
  --muted: #63777a;
  --paper: #f7f5ef;
  --white: #fffefa;
  --aqua: #9edfe4;
  --teal: #1d6f78;
  --sage: #8dad8f;
  --coral: #d98970;
  --line: rgba(24,49,53,.14);
  --shadow: 0 26px 80px rgba(31,77,82,.14);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Arial, sans-serif; line-height: 1.72; }
a { color: var(--teal); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 18px clamp(18px, 5vw, 70px); background: rgba(255,254,250,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { color: var(--ink); font-family: Georgia, serif; font-size: 27px; font-weight: 700; line-height: .9; text-decoration: none; }
.brand span { display: block; color: var(--coral); font-size: 13px; font-family: Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.site-header nav a { padding: 8px 12px; color: var(--ink); border: 1px solid transparent; border-radius: 999px; font-size: 14px; text-decoration: none; }
.site-header nav a:hover { border-color: var(--line); background: #fff; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: clamp(26px, 5vw, 76px); align-items: center; min-height: calc(100vh - 78px); overflow: hidden; padding: clamp(34px, 6vw, 84px) clamp(18px, 6vw, 86px) 42px; }
.hero > * { min-width: 0; }
.hero-copy { max-width: 760px; min-width: 0; }
.eyebrow { margin: 0 0 14px; color: var(--coral); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.06; letter-spacing: 0; }
.hero h1 { max-width: 100%; margin: 0; font-size: clamp(44px, 5.2vw, 78px); overflow-wrap: anywhere; }
.hero p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 20px; }
.hero figure { margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions a, .reference-band a { display: inline-flex; align-items: center; min-height: 44px; padding: 11px 18px; color: #fff; background: var(--teal); border-radius: 999px; font-weight: 800; text-decoration: none; }
.hero-actions a + a { color: var(--teal); background: transparent; border: 1px solid var(--teal); }
.intro-shell, .page-shell, .magazine-grid { padding: clamp(38px, 6vw, 82px) clamp(18px, 6vw, 86px); }
.intro-article { max-width: 900px; margin: auto; padding: clamp(28px, 5vw, 62px); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.intro-article h1 { font-size: clamp(36px, 5vw, 66px); }
.section-head { max-width: 820px; margin-bottom: 30px; }
.section-head h1, .section-head h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); }
.section-head p:not(.eyebrow), .lead { color: var(--muted); font-size: 20px; }
.magazine-grid, .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.magazine-grid .section-head { grid-column: 1 / -1; }
.post-card { display: grid; min-height: 100%; color: var(--ink); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.post-card span { padding: 18px 20px 0; color: var(--coral); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { margin: 8px 20px 0; font-size: 26px; }
.post-card p { margin: 12px 20px 22px; color: var(--muted); }
.post-card.featured { grid-column: span 2; grid-template-columns: 1fr 1fr; align-items: center; }
.post-card.featured img { height: 100%; min-height: 360px; border-right: 1px solid var(--line); border-bottom: 0; }
.reference-band { margin: clamp(28px, 5vw, 70px) clamp(18px, 6vw, 86px); padding: clamp(28px, 5vw, 56px); color: #fff; background: #183135; }
.reference-band h2 { max-width: 780px; margin: 0 0 10px; font-size: clamp(32px, 5vw, 58px); }
.reference-band p { max-width: 760px; color: rgba(255,255,255,.78); font-size: 19px; }
.reference-band a { background: var(--coral); }
.article-layout { display: grid; grid-template-columns: minmax(0, 980px); justify-content: center; }
.article { padding: clamp(24px, 5vw, 64px); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.article h1 { margin: 0 0 18px; font-size: clamp(38px, 6vw, 76px); }
.article h2 { margin-top: 42px; color: var(--teal); font-size: clamp(28px, 4vw, 42px); }
.article p, .article li { font-size: 18px; }
.article-hero { width: 100%; margin: 28px 0; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.soft-rule { margin: 34px 0; border: 0; border-top: 1px solid var(--line); }
.resource-box { margin-top: 42px; padding: 24px; background: #eef8f6; border-left: 5px solid var(--teal); }
.resource-box h2 { margin-top: 0; font-size: 28px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 12px; }
.topic-pill { display: inline-flex; padding: 10px 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.split-page { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr); gap: 34px; align-items: start; }
.split-page > img { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.site-footer { padding: 34px clamp(18px, 6vw, 86px); color: rgba(255,255,255,.74); background: #183135; }
.site-footer a { color: #fff; }
#xq-floating-contact { position: fixed; right: 20px; bottom: 20px; z-index: 99999; width: 320px; overflow: hidden; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.22); font-family: Arial, sans-serif; }
#xq-floating-contact .header { display: flex; align-items: center; justify-content: space-between; padding: 14px; color: #fff; background: linear-gradient(90deg,#0078d4,#00b0f0); }
#xq-floating-contact h3 { margin: 0; font-size: 16px; }
#xq-floating-contact .close { color: #fff; background: transparent; border: 0; cursor: pointer; font-size: 25px; }
#xq-floating-contact .body { padding: 17px; color: #333; line-height: 1.55; }
#xq-floating-contact .body a { display: block; padding: 9px 0; color: #0078d4; border-bottom: 1px solid #eee; text-decoration: none; }
#xq-floating-contact .main-site { margin-top: 13px; padding: 11px !important; color: #fff !important; background: #0078d4; border-radius: 6px; text-align: center; font-weight: 700; }
#xq-floating-contact .close-btn { display: block; width: 100%; margin-top: 13px; padding: 10px; color: #333; background: #f1f1f1; border: 0; border-radius: 6px; text-align: center; cursor: pointer; }
@media (max-width: 980px) {
  .hero, .split-page { grid-template-columns: 1fr; min-height: 0; }
  .magazine-grid, .article-grid { grid-template-columns: 1fr 1fr; }
  .post-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .post-card.featured img { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  .site-header nav { justify-content: flex-start; }
  .magazine-grid, .article-grid { grid-template-columns: 1fr; }
  .hero { padding-right: 16px; padding-left: 16px; }
  .hero h1 { font-size: clamp(40px, 14vw, 58px); }
  #xq-floating-contact { right: 12px; bottom: 12px; width: min(320px, calc(100% - 24px)); }
}
