/* ==========================================================
   Pillar Technology: site styles
   Easy edits: change colors in the :root block below.
   ========================================================== */

:root {
  --purple-950: #1D0E3A;   /* footer */
  --purple-900: #2A1450;   /* header, hero, dark bands */
  --purple-700: #4B2A85;   /* brand purple: links, buttons on light */
  --purple-100: #E9E2F6;
  --paper:      #F7F5FB;   /* page background */
  --rule:       #DAD3E8;   /* thin dividing lines */
  --ink:        #1D1530;   /* body text */
  --muted:      #5A5170;   /* secondary text */
  --brass:      #D2A94B;   /* accent on dark backgrounds */
  --brass-deep: #7A5A12;   /* accent text on light backgrounds */

  --serif: "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::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: 1.0625rem;
  line-height: 1.65;
}
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
a { color: var(--purple-700); text-underline-offset: 3px; }
a:hover { color: var(--purple-900); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--brass); color: var(--purple-900); padding: .6rem 1rem;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--purple-900); color: #fff; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  color: #fff; text-decoration: none;
  font-family: var(--serif); font-size: 1.3rem; letter-spacing: .01em;
}
.brand img { height: 2.4rem; width: auto; }
.brand:hover { color: var(--brass); }
.nav { display: flex; gap: 1.75rem; }
.nav a {
  color: #E3DBF3; text-decoration: none; padding-block: .35rem;
  border-bottom: 2px solid transparent; font-weight: 500;
}
.nav a:hover { color: #fff; border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brass); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: .85rem 1.6rem; border-radius: 2px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600;
  background: var(--brass); color: var(--purple-950);
}
.button:hover { background: #E2BC63; color: var(--purple-950); }
.button.on-light { background: var(--purple-700); color: #fff; }
.button.on-light:hover { background: var(--purple-900); color: #fff; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--purple-900); color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 3rem; align-items: center; min-height: 34rem;
  padding-block: 4.5rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.1;
  letter-spacing: -.012em; margin: 0 0 1.5rem; max-width: 15em;
}
.hero .lede { font-size: 1.2rem; color: #D9CFEE; max-width: 34em; margin: 0 0 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }
.hero-actions .text-link { color: #fff; }
.hero-column {
  position: absolute; right: max(1.25rem, calc((100% - 70rem) / 2 + 3rem));
  top: 0; bottom: 0; width: min(24rem, 30vw);
}
.hero-column img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.hero .hero-copy { position: relative; z-index: 1; }

/* ---------- Sections ---------- */
.section { padding-block: 5rem; }
.section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2;
  letter-spacing: -.01em; margin: 0 0 1rem; max-width: 20em;
}
.section .intro { color: var(--muted); max-width: 40em; margin: 0 0 3rem; }

/* Services: set between vertical rules, like a colonnade */
.colonnade { display: grid; grid-template-columns: repeat(3, 1fr); }
.colonnade > div { padding: .25rem 2rem 1rem; border-left: 1px solid var(--rule); }
.colonnade > div:first-child { padding-left: 0; border-left: 0; }
.colonnade h3 {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  line-height: 1.25; margin: 0 0 .75rem;
}
.colonnade p { margin: 0; color: #3A3150; }

/* Bio teaser */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; }
.split h2 { margin-bottom: 0; }
.split p { margin: 0 0 1.25rem; max-width: 38em; }

.divider { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Dark call-to-action band */
.band { background: var(--purple-900); color: #fff; padding-block: 4rem; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.band h2 {
  font-family: var(--serif); font-weight: 400; margin: 0; max-width: 22em;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.2;
}

/* ---------- Inner pages ---------- */
.page-head { padding-block: 4.5rem 2.5rem; }
.page-head h1 {
  font-family: var(--serif); font-weight: 400; margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.12; letter-spacing: -.012em; max-width: 16em;
}
.page-head p { font-size: 1.2rem; color: var(--muted); max-width: 36em; margin: 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4.5rem; padding-bottom: 5.5rem; align-items: start; }
.prose p { margin: 0 0 1.4rem; max-width: 38em; }
.prose p:first-child { font-size: 1.2rem; }

.aside { border-left: 1px solid var(--rule); padding-left: 2rem; }
.aside h2 { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin: 0 0 1.25rem; }
.aside dl { margin: 0; }
.aside dt { font-weight: 600; margin-top: 1.25rem; }
.aside dt:first-child { margin-top: 0; }
.aside dd { margin: .15rem 0 0; color: var(--muted); }

/* ---------- Contact form ---------- */
.hp { position: absolute; left: -9999px; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #B9AED0; border-radius: 2px; padding: .75rem .9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--purple-700); outline: 3px solid rgba(210, 169, 75, .55); outline-offset: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-950); color: #BDB2D6; padding-block: 3rem; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.site-footer .brand { font-size: 1.15rem; }
.site-footer .brand img { height: 2rem; }
.site-footer a { color: #E3DBF3; }
.site-footer a:hover { color: var(--brass); }
.site-footer p { margin: 0; }

/* ---------- Process page ---------- */
.more { margin: 2.5rem 0 0; }
.colonnade.two { grid-template-columns: repeat(2, 1fr); }
.colonnade.two > div:first-child { padding-right: 2rem; }

.steps { margin: 0 0 1rem; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.step {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 15rem;
  gap: 0 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--rule);
}
.step-num {
  font-family: var(--serif); font-size: 3.25rem; line-height: 1;
  color: var(--purple-700);
}
.step h2 {
  font-family: var(--serif); font-weight: 400; font-size: 1.75rem;
  line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .9rem;
}
.step-body p { margin: 0 0 .9rem; max-width: 38em; }
.step-body p:last-child { margin-bottom: 0; }
.step-time { border-left: 1px solid var(--rule); padding-left: 1.5rem; color: var(--muted); }
.step-time strong { display: block; color: var(--ink); margin-bottom: .25rem; }

.terms { margin: 2rem 0 0; border-bottom: 1px solid var(--rule); }
.terms > div {
  display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 0 2rem;
  padding: 1.15rem 0; border-top: 1px solid var(--rule);
}
.terms dt { font-weight: 600; }
.terms dd { margin: 0; color: #3A3150; max-width: 40em; }

/* ---------- Smaller screens ---------- */
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-block: 3.5rem; }
  .hero-column { display: none; }
  .colonnade { grid-template-columns: 1fr; gap: 2rem; }
  .colonnade > div, .colonnade > div:first-child {
    padding: 0 0 0 1.25rem; border-left: 1px solid var(--rule);
  }
  .split, .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .aside { padding-left: 1.25rem; }
  .section { padding-block: 3.5rem; }
  .site-header .wrap { flex-wrap: wrap; }
  .colonnade.two { grid-template-columns: 1fr; }
  .colonnade.two > div:first-child { padding-right: 0; }
  .step { grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem 1rem; padding: 2rem 0; }
  .step-num { font-size: 2.5rem; }
  .step-time { grid-column: 2; border-left: 0; border-top: 1px solid var(--rule); padding: .9rem 0 0; }
  .terms > div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 30rem) {
  .nav { gap: 1.1rem; }
  .brand { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-column img { animation: none; }
}
