/* Prophettic — site styles
   Warm ivory paper, near-black ink, one terracotta accent, serif display type. */

:root {
  --paper: #faf9f5;
  --paper-2: #f0eee6;
  --ink: #191917;
  --ink-2: #3d3d3a;
  --muted: #6b6a64;
  --rule: #dedcd1;
  --accent: #c15f3c;
  --accent-ink: #9a4527;
  --dark: #1f1e1b;
  --dark-2: #2b2a26;

  --serif: "Iowan Old Style", "Charter", "Source Serif Pro", "Georgia", serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--rule); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 22px; height: 22px; flex: none; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 15px; text-decoration: none; color: var(--ink-2);
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-cta { margin-left: 8px; }
.nav-links a.btn { color: var(--paper); padding: 9px 18px; border-radius: 999px; }
.nav-links a.btn:hover { background: var(--accent-ink); color: #fff; }

.menu-btn {
  display: none; background: none; border: 1px solid var(--rule); border-radius: 10px;
  width: 44px; height: 40px; cursor: pointer; color: var(--ink);
}
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--rule); }
  .nav-links a:hover { background: none; }
  .nav-cta { margin: 16px 0 0; }
  .nav-links .nav-cta a.btn { display: flex; width: 100%; justify-content: center; padding: 14px 18px; border-radius: 999px; border-bottom: 1px solid var(--ink); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0;
  text-wrap: balance;
}
h1, .display { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.eyebrow {
  font: 500 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 20px;
}
.muted { color: var(--muted); }

/* ---------- Sections ---------- */

.hero { padding: clamp(72px, 11vw, 150px) 0 clamp(56px, 8vw, 110px); }
.hero h1 { max-width: 14em; }
.hero .lede { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 76px); max-width: 15em; }
.page-hero .lede { margin-top: 24px; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head .lede { margin: 0; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.split > :first-child h2 { position: sticky; top: 112px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split > :first-child h2 { position: static; } }

.prose { max-width: 40em; font-size: 18px; color: var(--ink-2); }
.prose p { margin-bottom: 1.2em; }
.prose h3 { color: var(--ink); margin: 1.6em 0 .5em; }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards, .cards.two { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-2); border-radius: var(--radius);
  padding: 32px; min-height: 260px; text-decoration: none; color: var(--ink);
  transition: background .15s;
}
a.card:hover { background: #e8e5da; color: var(--ink); }
.card .eyebrow { margin-bottom: 16px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-2); margin: 0; }
.card .card-foot { margin-top: auto; padding-top: 28px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
a.card:hover .arrow { transform: translateX(3px); }
.card .arrow { transition: transform .15s; }

.card-art { width: 56px; height: 56px; margin-bottom: 28px; color: var(--accent); }

/* ---------- Statement band ---------- */

.statement { background: var(--dark); color: #f3f1ea; }
.statement .eyebrow { color: #a7a59c; }
.statement h2 { max-width: 18em; }
.statement p { color: #cfccc2; }
.statement a:not(.btn) { color: #f3f1ea; }

/* ---------- Lists (news / research) ---------- */

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list a {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; align-items: baseline;
  padding: 28px 0; text-decoration: none;
}
.post-list a:hover h3 { color: var(--accent-ink); }
.post-list time, .post-list .tag { font-size: 14px; color: var(--muted); }
.post-list h3 { font-size: clamp(20px, 2vw, 26px); transition: color .15s; }
@media (max-width: 700px) { .post-list a { grid-template-columns: 1fr; gap: 6px; } }

.empty {
  border: 1px dashed var(--rule); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px); text-align: left;
}
.empty h3 { margin-bottom: 10px; }
.empty p { color: var(--ink-2); margin: 0; max-width: 36em; }

.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.topics li { border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink-2); }

/* ---------- Team ---------- */

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.person .portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--paper-2);
  display: grid; place-items: center; margin-bottom: 18px; overflow: hidden;
  font-family: var(--serif); font-size: 64px; color: var(--muted);
}
.person h3 { font-size: 22px; }
.person .role { color: var(--muted); font-size: 15px; margin: 4px 0 10px; }
.person p { color: var(--ink-2); font-size: 16px; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { background: var(--paper-2); border-radius: var(--radius); padding: 32px; }
.contact-item .eyebrow { margin-bottom: 14px; }
.contact-item .big { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -0.01em; }
.contact-item .big a { text-decoration: none; }
.contact-item .big a:hover { text-decoration: underline; }
.contact-item p.note { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
address { font-style: normal; }

/* ---------- Embedded form ---------- */

.form-embed { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px; overflow: hidden; }
/* The embedded form is cross-origin and can't report its height, so the frame is sized to fit it
   (content measures ~850px wide, ~880px narrow) plus room for validation messages. */
.form-embed iframe { display: block; width: 100%; height: 940px; border-radius: calc(var(--radius) - 6px); }
@media (max-width: 560px) { .form-embed iframe { height: 980px; } }
#offer { scroll-margin-top: 72px; }
.form-fallback { margin: 14px 0 0; font-size: 15px; }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 16px;
  padding: 28px 0; border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 22px; color: var(--accent);
}
.steps h3 { font-size: 22px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: #cfccc2; padding: 72px 0 40px; font-size: 15px; }
.site-footer a { color: #cfccc2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand { color: #f3f1ea; }
.footer-brand p { margin-top: 16px; max-width: 22em; }
.footer-col h4 { font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8d8b83; margin: 6px 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--dark-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #8d8b83; font-size: 14px;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
