/* ═══════════════════════════════════════════════════════════
   Derman.biz — Warm Editorial Treatment (Treatment A)
   Nautical Authority palette · Source Serif 4 + Plus Jakarta Sans
   Spec: derman-brand-kit_2026_07_01.html §7 · 2026_07_01
   ═══════════════════════════════════════════════════════════ */
:root {
  --mw: #0C1E2B; --ds: #1B3A4B; --ow: #2E6B7B; --br: #C49A3C;
  --co: #E8603A; --sc: #F3F0EB; --sc-w: #FAFAF7; --sc-d: #D4CFC7;
  --hb: #1A1F22; --slate: #8A8D90; --mid: #3A3D40;
  --ds-l: #B8D2DE;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28,26,23,.06), 0 8px 24px rgba(28,26,23,.06);
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--sc);
  color: var(--hb);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ow); }
img { max-width: 100%; }

/* ── Header ── */
header.site {
  background: var(--mw);
  border-bottom: 3px solid var(--br);
}
.head-inner {
  max-width: 1040px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 14px;
}
.logo-ring {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--sc); overflow: hidden; flex: none;
  box-shadow: 0 0 0 2px var(--br);
  display: grid; place-items: center;
}
.logo-ring img { width: 100%; height: 100%; object-fit: cover; }
.site-name {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  color: #fff; letter-spacing: .5px; text-decoration: none;
}
.site-name em { font-style: italic; color: var(--br); }
nav.main { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a {
  color: rgba(243,240,235,.78); text-decoration: none;
  font-size: .84rem; letter-spacing: .03em;
}
nav.main a:hover, nav.main a.active { color: var(--br); }

/* ── Hero ── */
.hero { background: var(--ds); border-bottom: 1px solid rgba(243,240,235,.08); }
.hero-inner { max-width: 1040px; margin: 0 auto; padding: 56px 24px 60px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.18; color: var(--sc); max-width: 640px;
}
.hero h1 .accent { color: var(--br); font-style: italic; }
.hero p.lede { margin-top: 14px; color: var(--ds-l); font-size: 1rem; max-width: 540px; line-height: 1.7; }

/* ── Buttons ── */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: .92rem; padding: 13px 28px; border-radius: var(--radius-sm);
  transition: background .15s, transform .05s;
}
.btn-coral { background: var(--co); color: #fff; box-shadow: 0 4px 14px rgba(232,96,58,.28); }
.btn-coral:hover { background: #d14e2b; }
.btn-coral:active { transform: translateY(1px); }
.btn-outline-light {
  border: 1px solid rgba(243,240,235,.35); color: var(--sc);
}
.btn-outline-light:hover { border-color: var(--br); color: var(--br); }
.btn-outline {
  border: 1px solid var(--sc-d); color: var(--ds); background: var(--sc-w);
}
.btn-outline:hover { border-color: var(--br); color: var(--br); }

/* ── Bands & typography ── */
main { display: block; }
.band { max-width: 1040px; margin: 0 auto; padding: 48px 24px; }
.band + .band { border-top: 1px solid var(--sc-d); }
.kicker {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--br); font-weight: 700; margin-bottom: 10px;
}
h2.section {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600; color: var(--ds); line-height: 1.3;
}
.band p.body { margin-top: 14px; font-size: .97rem; line-height: 1.75; color: var(--mid); max-width: 660px; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.card {
  background: var(--sc-w); border: 1px solid var(--sc-d);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; position: relative;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(28,26,23,.07), 0 14px 32px rgba(28,26,23,.09); }
.card::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 3px; border-radius: 3px; background: var(--ow); opacity: .6;
}
.card.brass::before { background: var(--br); }
.card h3 { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--ds); padding-left: 10px; }
.card h3 a { color: var(--ds); text-decoration: none; }
.card h3 a:hover { color: var(--ow); }
.card .sub {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--br); font-weight: 700; padding-left: 10px; margin-top: 4px;
}
.card p { font-size: .88rem; line-height: 1.65; color: var(--mid); padding-left: 10px; margin-top: 10px; }
.card .more { display: inline-block; margin-top: 12px; margin-left: 10px; font-size: .84rem; font-weight: 600; color: var(--ow); text-decoration: none; }
.card .more:hover { color: var(--br); }

/* ── Quote ── */
.quote {
  background: var(--sc-w); border: 1px solid var(--sc-d);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 30px; position: relative;
}
.quote::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px;
  width: 3px; border-radius: 3px; background: var(--br);
}
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--ds); padding-left: 14px; line-height: 1.55; }
.quote cite { display: block; margin-top: 10px; padding-left: 14px; font-style: normal; font-size: .8rem; color: var(--slate); }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.stat { text-align: center; padding: 18px 10px; }
.stat .n { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: var(--ds); }
.stat .l { font-size: .74rem; color: var(--slate); margin-top: 4px; letter-spacing: .04em; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* ── Numbered service rows ── */
.svc { display: flex; gap: 18px; align-items: baseline; padding: 20px 4px; border-bottom: 1px solid var(--sc-d); }
.svc:last-of-type { border-bottom: none; }
.svc .num { font-family: var(--serif); font-weight: 600; font-size: .9rem; color: var(--br); min-width: 36px; }
.svc h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ds); min-width: 220px; }
.svc p { font-size: .88rem; color: var(--mid); }
@media (max-width: 640px) { .svc { flex-direction: column; gap: 4px; } .svc h3 { min-width: 0; } }

/* ── CTA band ── */
.cta-band { background: var(--mw); }
.cta-inner {
  max-width: 1040px; margin: 0 auto; padding: 48px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-inner h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--sc); }
.cta-inner p { color: var(--ds-l); font-size: .9rem; margin-top: 4px; }
.cta-inner .spacer { flex: 1; }

/* ── Article (blog post) ── */
article.post { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
article.post .meta { font-size: .8rem; color: var(--slate); margin-bottom: 8px; }
article.post h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: var(--ds); line-height: 1.25; }
article.post h2 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--ds); margin: 36px 0 12px; }
article.post h3 { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--ds); margin: 26px 0 10px; }
article.post p { font-size: .96rem; line-height: 1.75; color: var(--mid); margin: 12px 0; }
article.post ul, article.post ol { margin: 12px 0 12px 24px; }
article.post li { font-size: .94rem; line-height: 1.7; color: var(--mid); margin: 5px 0; }
article.post hr { border: none; border-top: 1px solid var(--sc-d); margin: 32px 0; }
article.post .notice {
  background: var(--sc-w); border: 1px solid var(--sc-d); border-left: 3px solid var(--br);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; font-size: .85rem; color: var(--mid); margin: 20px 0;
}

/* ── Footer ── */
footer.site { background: var(--mw); margin-top: 40px; }
.foot-inner {
  max-width: 1040px; margin: 0 auto; padding: 26px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.foot-inner .wordmark {
  font-family: var(--serif); letter-spacing: .28em; color: var(--sc);
  text-transform: uppercase; font-size: .84rem; font-weight: 600;
}
.foot-inner .tagline { font-family: var(--serif); font-style: italic; color: var(--br); font-size: .9rem; }
.foot-inner .spacer { flex: 1; }
.foot-inner .copy { font-size: .76rem; color: rgba(243,240,235,.5); }

@media (max-width: 620px) {
  nav.main { gap: 14px; }
  nav.main a { font-size: .78rem; }
}
