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

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

body, .wp-site-blocks {
  margin: 0;
  background-color: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-black);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--atlas-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--compass-red); }

/* ── Headings — dual-target native elements AND block classes ── */

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.hl-heading {
  font-family: var(--font-display);
  color: var(--ink-black);
  margin-top: 0;
  margin-bottom: 0.5em;
}

h1, .wp-block-heading[class*="is-style"] { font-size: clamp(40px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 4vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.15; }
h3 { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.3; }
h5 { font-size: 16px; line-height: 1.4; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.05em; }
h6 { font-size: 14px; line-height: 1.4; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.05em; color: var(--stone-gray); }

/* ── Body copy ── */

p, .wp-block-paragraph, li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-black);
  margin-top: 0;
}

ul, ol { padding-left: 1.5em; }

/* ── Images ── */

.wp-block-image img,
.hl-img {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(184, 150, 104, 0.7);
}

/* Polaroid block style — is-style-polaroid */
.wp-block-image.is-style-polaroid {
  background: var(--cloud-white);
  border-radius: 4px;
  padding: 0.6rem 0.6rem 1.2rem;
  box-shadow: var(--shadow-lg);
  display: inline-block;
  position: relative;
  max-width: 320px;
  transform: rotate(-2deg);
}
.wp-block-image.is-style-polaroid img {
  border: none;
  border-radius: 2px;
  display: block;
}
.wp-block-image.is-style-polaroid::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 18px;
  background: var(--compass-red);
  border-radius: 7px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.25);
}

/* Standard block style — is-style-standard */
.wp-block-image.is-style-standard img {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(184, 150, 104, 0.7);
}

/* ── Quote ── */

.wp-block-quote,
.hl-pullquote {
  border-left: 3px solid var(--compass-red);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-black);
}

.wp-block-quote.is-style-pullquote,
.hl-pullquote {
  font-family: var(--font-accent);
  font-size: 22px;
  line-height: 1.4;
}

.wp-block-quote cite,
.wp-block-quote footer {
  font-size: 14px;
  color: var(--stone-gray);
  font-style: normal;
  display: block;
  margin-top: 0.5rem;
}

/* ── Separator ── */

.wp-block-separator,
.hl-divider {
  border: none;
  border-top: 1px dashed rgba(184, 150, 104, 0.6);
  margin: 2rem 0;
}

/* ── Group block styles ── */

.wp-block-group.is-style-card,
.hl-card {
  background: var(--cloud-white);
  border-radius: var(--card-radius);
  border: 1px solid rgba(184, 150, 104, 0.9);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.wp-block-group.is-style-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.wp-block-group.is-style-section-parchment {
  background: var(--parchment);
  padding: var(--section-padding-mobile) 1.5rem;
}

@media (min-width: 900px) {
  .wp-block-group.is-style-section-parchment {
    padding: var(--section-padding-desktop) 1.5rem;
  }
}

/* ── Tables ── */

table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.5rem 0.75rem; border: 1px solid rgba(184, 150, 104, 0.5); text-align: left; }
th { font-weight: 600; background: rgba(241, 232, 208, 0.6); }

/* ── Code ── */

code, pre {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  background: rgba(250, 250, 247, 0.8);
  border: 1px solid rgba(184, 150, 104, 0.5);
  border-radius: 3px;
}
code { padding: 2px 4px; }
pre { padding: 1rem; overflow-x: auto; }

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
