/* Rest Smarter — calm editorial theme */
:root {
  --night: #101a3a;
  --night-2: #1a2650;
  --cream: #faf8f2;
  --ink: #232838;
  --muted: #5d6577;
  --amber: #e8a33d;
  --amber-soft: #fdf3e3;
  --line: #e7e2d6;
  --card: #ffffff;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; margin: 0 auto; }

/* Header */
.site-header {
  background: var(--night);
  color: #fff;
  padding: 14px 0;
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #ffe9b8 0 28%, var(--amber) 30% 58%, #b97a1e 60% 100%);
  box-shadow: 0 0 18px rgba(232,163,61,.55);
  flex: none;
}
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; letter-spacing: .5px; }
.brand-name em { color: var(--amber); font-style: normal; }
.site-nav a { color: #cfd6ea; text-decoration: none; margin-left: 22px; font-size: .95rem; }
.site-nav a:hover { color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 70%, #2a2a5e 100%);
  color: #fff; padding: 70px 0 60px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 12% 30%, #ffffff88, transparent),
    radial-gradient(1px 1px at 28% 62%, #ffffff66, transparent),
    radial-gradient(1.5px 1.5px at 45% 22%, #ffffff77, transparent),
    radial-gradient(1px 1px at 62% 48%, #ffffff55, transparent),
    radial-gradient(2px 2px at 78% 28%, #ffffff88, transparent),
    radial-gradient(1px 1px at 88% 66%, #ffffff66, transparent);
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.2; margin-bottom: 14px; position: relative; z-index: 1;
}
.hero p { color: #c6cde6; font-size: 1.1rem; max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.hero .kicker {
  display: inline-block; font-size: .8rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px; position: relative; z-index: 1;
}

/* Sections */
.section { padding: 54px 0; }
.section-title {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; margin-bottom: 8px; color: var(--night);
}
.section-sub { color: var(--muted); margin-bottom: 28px; max-width: 640px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: inherit; display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,26,58,.10); }
.card .tag {
  display: inline-block; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: #9a6b1a; background: var(--amber-soft); border-radius: 20px; padding: 4px 12px; margin-bottom: 12px;
}
.card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; margin-bottom: 8px; color: var(--night); line-height: 1.4; }
.card p { color: var(--muted); font-size: .95rem; }
.card.soon { opacity: .75; border-style: dashed; }
.card.soon:hover { transform: none; box-shadow: none; }

/* Article */
.article-hero { background: var(--night); color: #fff; padding: 54px 0 44px; }
.article-hero .kicker { color: var(--amber); font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase; }
.article-hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.25; margin: 12px 0; }
.article-hero .deck { color: #c6cde6; font-size: 1.08rem; max-width: 640px; }
.article-meta { color: #8f97b5; font-size: .88rem; margin-top: 16px; }
.article-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 48px; margin: 34px auto; }
.article-body h2 { font-family: Georgia, "Times New Roman", serif; color: var(--night); font-size: 1.45rem; margin: 34px 0 12px; line-height: 1.35; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { color: var(--night); font-size: 1.12rem; margin: 24px 0 8px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0 26px; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.article-body th { background: var(--night); color: #fff; font-weight: 600; }
.article-body tr:nth-child(even) td { background: #f7f4ec; }
.disclaimer {
  background: var(--amber-soft); border-left: 4px solid var(--amber);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem; color: #6b5320; margin: 26px 0;
}
.faq { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 10px; }
.faq h3 { font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--night); color: #aab2d0; padding: 44px 0 30px; font-size: .9rem; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; font-weight: 600; }
.site-footer a { color: #aab2d0; text-decoration: none; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .fine { border-top: 1px solid #2a3560; padding-top: 20px; font-size: .82rem; color: #7d86a8; }
.site-footer .fine p { margin-bottom: 10px; }

@media (max-width: 700px) {
  .article-body { padding: 28px 22px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .site-nav a { margin-left: 14px; }
}
