/* Kjeldgaards advertorial — custom CSS
 * Tailwind handles utilities. This file handles editorial typography,
 * drop cap, pull-quotes, accent rules, and brand color tokens.
 */

:root {
  --bg: #FAF8F5;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --accent: #6B4226;
  --rule: #E5DFD6;
  --highlight: #F4EFE6;

  --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --measure: 640px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(17px, calc(1.1vw + 14px), 19px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Editorial container — single column, 640 max */
.article-body {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.article-body > p,
.article-body > ol,
.article-body > ul {
  margin: 0 0 1.4em 0;
}

.article-body p:last-child { margin-bottom: 0; }

.article-body h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, calc(1.6vw + 18px), 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2.4em 0 0.8em 0;
  color: var(--ink);
}

.article-body h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, calc(0.8vw + 16px), 23px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 2em 0 0.5em 0;
  color: var(--ink);
}

.article-body ol,
.article-body ul {
  padding-left: 1.4em;
}

.article-body li { margin-bottom: 0.6em; }

.article-body a {
  color: var(--accent);
  text-underline-offset: 3px;
}

/* Hero */
.editorial-h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(32px, calc(3.5vw + 20px), 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em 0;
  color: var(--ink);
}

.editorial-subheading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(19px, calc(0.6vw + 16px), 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.6em 0;
}

.byline {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin: 0 0 2em 0;
}

.label-row {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.4em 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.label-row .dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-soft);
}

.top-bar {
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.brand-mark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.hero-figure {
  margin: 1.5em auto 0;
  max-width: 900px;
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-figure img { aspect-ratio: 16 / 9; }
}

/* Drop cap */
.dropcap::first-letter {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 4.4em;
  line-height: 0.86;
  float: left;
  margin: 0.08em 0.08em 0 -0.04em;
  color: var(--ink);
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, calc(1.2vw + 17px), 28px);
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 0.2em 0 0.2em 1.2em;
  margin: 2.4em 0;
  background: transparent;
}

/* Inline editorial figure (SVG) */
.inline-figure {
  margin: 2.2em -10px;
  padding: 24px 20px;
  background: transparent;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.inline-figure.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.inline-figure svg {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}

.figure-caption {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
  margin: 16px auto 0;
  max-width: 520px;
}

/* Email-capture card */
.capture-card {
  background: var(--highlight);
  border-radius: 4px;
  padding: 48px 24px;
  margin: 3em 0;
}

@media (min-width: 640px) {
  .capture-card { padding: 48px; }
}

.capture-headline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(24px, calc(1.5vw + 18px), 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em 0;
  color: var(--ink);
}

.capture-body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1.6em 0;
}

.capture-form { display: flex; flex-direction: column; gap: 14px; }

.capture-input {
  font-family: var(--font-sans);
  font-size: 17px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--ink);
  min-height: 56px;
  width: 100%;
}

.capture-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.capture-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}

.capture-checkbox-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.capture-checkbox-row a { color: var(--accent); }

.capture-button {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.005em;
  background: var(--accent);
  color: #FFFFFF;
  border: 0;
  border-radius: 4px;
  min-height: 56px;
  padding: 14px 22px;
  cursor: pointer;
  transition: background 180ms ease;
  width: 100%;
}

.capture-button:hover { background: #582F1A; }

.capture-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.capture-button[disabled] { opacity: 0.7; cursor: progress; }

.capture-disclaimer {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 0 0;
}

/* Honeypot — hide from real users + AT */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.capture-success {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

.capture-error {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #8A2A2A;
  margin: 6px 0 0 0;
}

/* Social proof */
.testimonial {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, calc(0.5vw + 16px), 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 0.4em 0;
}

.testimonial-attrib {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 1.8em 0;
}

.trustpilot-badge {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 1.4em 0 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
}

.trustpilot-badge .star { color: #00B67A; }

/* Secondary CTA */
.secondary-cta {
  margin: 3.5em 0 2em;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.secondary-cta p {
  font-family: var(--font-serif);
  color: var(--ink-soft);
  margin: 0 0 0.4em 0;
}

.secondary-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.secondary-cta small {
  display: block;
  margin-top: 0.6em;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
}

/* Section dividers */
.section-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3em auto;
  max-width: var(--measure);
}

/* Footer */
.site-footer {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 32px 20px 48px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.site-footer p { margin: 0 0 6px 0; }
.site-footer a { color: var(--ink-soft); }

/* Smooth scroll honored unless user prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  .inline-figure {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}
