/* Base, layout primitives, buttons and pieces shared by more than one block.
   Section styles live in blocks/<block>/style.css. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Paper grain overlay. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Type */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.75rem, 6vw, 5.25rem); max-width: 12ch; margin-bottom: 26px; }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); margin-bottom: 20px; }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.eyebrow { margin-bottom: 18px; color: var(--teal); font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.microcopy { margin: 16px 0 0; color: var(--muted); font-size: .86rem; }

/* Layout */
.shell { width: min(calc(100% - var(--gutter)), var(--shell)); margin-inline: auto; }
.section { padding: 112px 0; }
.section.is-attached, .inner-section.is-attached { padding-top: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-200%); background: white; padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

/* Section backgrounds (shared "Background" setting) */
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
.bg-sand { background: var(--sand); }
.bg-tint { background: var(--cyan-soft); }
.bg-dark { background: var(--navy-deep); color: #bfd1de; }
.bg-dark h2, .bg-dark h3, .bg-dark strong { color: var(--white); }
.bg-dark .eyebrow { color: #73cce3; }

/* Buttons. .btn, not .button: wp-admin styles .button inside the editor. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
  font-size: .95rem;
  box-shadow: 0 10px 24px rgba(13, 46, 82, .18);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(13, 46, 82, .22); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: .88rem; }
.btn-light { background: var(--white); color: var(--navy); box-shadow: none; }
.btn-light:hover { color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border: 1px solid #b8c8d0; box-shadow: none; }
.btn-secondary:hover { background: var(--cyan-soft); color: var(--navy); box-shadow: none; }
.actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }

/* Section headings */
.split-heading { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: end; margin-bottom: 50px; }
.split-heading h2 { max-width: 14ch; margin-bottom: 0; }
.split-heading > p { margin-bottom: 5px; }
.section-heading.centered { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-heading.centered p:last-child { margin: 0 auto; }

/* Internal-page layout pieces shared by several blocks */
.inner-section { padding: 100px 0; }
.inner-section.bg-sand { border-block: 1px solid var(--line); }
.inner-intro { max-width: 760px; margin-bottom: 46px; }
.inner-intro.centered { margin-inline: auto; text-align: center; }
.inner-intro h2 { max-width: 17ch; }
.inner-intro.centered h2 { margin-inline: auto; }
.inner-intro p:last-child { margin-bottom: 0; }
.inner-split { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.inner-split > div:first-child h2 { max-width: 13ch; }
.sticky-copy { position: sticky; top: calc(122px + var(--header-offset)); }
.card-kicker { display: block; margin-bottom: 30px; color: var(--teal); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 25px 1fr; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.check-list li::before { content: "✓"; display: grid; place-items: center; width: 21px; height: 21px; margin-top: 2px; color: var(--green); background: #e7f4ee; border-radius: 50%; font-size: .72rem; font-weight: 900; }
.check-list.is-cross li::before { content: "✕"; color: var(--red); background: #fdebe8; }
.bg-dark .check-list li { border-top-color: rgba(255,255,255,.14); }

/* Classic content fallback (index.php, 404, non-block pages) */
.prose { max-width: 760px; }
.prose h1 { max-width: none; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 18px 0; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .inner-split { grid-template-columns: 1fr; gap: 52px; }
  .sticky-copy { position: static; }
  .split-heading { grid-template-columns: 1fr; gap: 22px; }
  .split-heading h2 { max-width: 18ch; }
  h1 { max-width: 14ch; }
}

@media (max-width: 700px) {
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .inner-section { padding: 74px 0; }
  .actions { align-items: flex-start; flex-direction: column; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
