/* Ashurio Admissions Consulting
   Design source of truth for the Squarespace build.
   Palette and type are locked: see Marketing/Brand Assets/README.md */

:root {
  --ink:    #0B1D33;   /* Ink Navy   */
  --azure:  #1F5FA0;   /* Azure      */
  --blue:   #9FB0E3;   /* Ashurio Blue, never body text on light */
  --gold:   #B0863C;   /* Signet Gold, sparingly */
  --paper:  #F1F5FA;   /* Paper      */
  --slate:  #5C7086;   /* Slate      */

  --rule-light: rgba(11, 29, 51, 0.14);
  --rule-hair:  rgba(11, 29, 51, 0.08);
  --rule-dark:  rgba(159, 176, 227, 0.28);
  --tint:       rgba(11, 29, 51, 0.05);

  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body:    "EB Garamond", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 34rem;

  --s1: 0.5rem;  --s2: 0.75rem; --s3: 1rem;   --s4: 1.5rem;
  --s5: 2rem;    --s6: 3rem;    --s7: 4rem;   --s8: 6rem;
  --s9: 8rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;   /* 19px */
  line-height: 1.62;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 48rem) { body { font-size: 1.25rem; line-height: 1.6; } }

img, svg { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.display,
h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7.2vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.95rem, 4.4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

h3 {
  font-family: var(--body);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.002em;
}
@media (min-width: 48rem) { h3 { font-size: 1.375rem; } }

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 33rem;
}
@media (min-width: 48rem) { .lead { font-size: 1.4375rem; line-height: 1.5; } }

/* Italic sentence-case eyebrow. Never tracked-out uppercase. */
.eyebrow {
  font-family: var(--body);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--slate);
  margin: 0 0 var(--s4);
  letter-spacing: 0.006em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--azure);
  vertical-align: 0.34em;
  margin-right: 0.6rem;
}

.fineprint { font-size: 1rem; line-height: 1.5; color: var(--slate); }
.fineprint em, .italic { font-style: italic; }

/* ---------- Links and buttons ---------- */

a { color: var(--azure); text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 1px; }
.on-dark :focus-visible { outline-color: var(--blue); }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.004em;
  padding: 0.95em 1.6em;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear;
}
.btn:hover { background: var(--azure); border-color: var(--azure); color: var(--paper); }
@media (min-width: 48rem) { .btn { font-size: 1.125rem; } }

.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(11,29,51,0.35); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.textlink {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--azure);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 95, 160, 0.4);
  padding-bottom: 2px;
}
.textlink:hover { color: var(--ink); border-bottom-color: var(--ink); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; z-index: 50; text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: var(--s7); }
@media (min-width: 48rem) { .section { padding-block: var(--s8); } }
.section--tight { padding-block: var(--s6); }
.section--rule { border-top: 1px solid var(--rule-light); }

.on-dark { background: var(--ink); color: var(--paper); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--paper); }
.on-dark .eyebrow { color: var(--blue); }
.on-dark .eyebrow::before { background: var(--blue); }
.on-dark p { color: rgba(241, 245, 250, 0.9); }
.on-dark a { color: var(--blue); }
.on-dark a:hover { color: var(--paper); }
.on-dark .fineprint { color: rgba(159, 176, 227, 0.9); }
.on-dark .btn { color: var(--paper); }
.on-dark .btn--light { color: var(--ink); }
.on-dark .btn--light:hover { color: var(--ink); }

.tinted {
  background: var(--tint);
  /* Slate loses a little contrast on the tinted ground, so secondary text
     inside these bands is Ink Navy at 72 percent instead. Same family, AA safe. */
  --slate: rgba(11, 29, 51, 0.72);
}

/* Two-column editorial split: label column, then text column */
.split { display: grid; gap: var(--s4); }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
  .split--wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .split--offset { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s8); }
  .split--intro > :last-child { padding-top: 3.05rem; }
}

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

.masthead { border-bottom: 1px solid var(--rule-light); background: var(--paper); }
.masthead__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; column-gap: var(--s5);
  padding-block: 1.1rem;
}
.masthead__logo { display: block; width: 132px; order: 1; }
.masthead__logo img { width: 100%; }

.masthead__cta {
  order: 2;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  color: var(--azure); text-decoration: none;
  border-bottom: 1px solid rgba(31,95,160,0.45); padding-bottom: 2px; white-space: nowrap;
}
.masthead__cta:hover { color: var(--ink); border-bottom-color: var(--ink); }

.nav {
  order: 3; flex-basis: 100%;
  border-top: 1px solid var(--rule-hair);
  margin-top: 0.9rem;
}
.nav ul {
  list-style: none; margin: 0; padding: 0.6rem 0 0;
  display: flex; gap: var(--s4); flex-wrap: wrap;
}
.nav a {
  font-family: var(--body); font-size: 1rem; font-style: italic;
  color: var(--slate); text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--azure); padding-bottom: 1px; }

@media (min-width: 62rem) {
  .masthead__inner { flex-wrap: nowrap; padding-block: 1.7rem; column-gap: 3.5rem; }
  .masthead__logo { width: 160px; }
  .nav { order: 2; flex-basis: auto; border-top: 0; margin: 0 0 0 auto; }
  .masthead__cta { order: 3; font-size: 1.0625rem; }
  .nav ul { padding: 0; gap: 2.25rem; }
  .nav a { font-size: 1.0625rem; }
}

/* ---------- Hero ---------- */

.hero { padding-block: var(--s6) var(--s5); }
@media (min-width: 48rem) { .hero { padding-block: 4.5rem var(--s7); } }

.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: var(--s4); }
.hero__cta { margin-top: var(--s5); }
.hero__note { margin-top: var(--s3); font-style: italic; }

.specbar {
  margin-top: var(--s6);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  display: grid;
  list-style: none;
  padding: 0;
}
.specbar li {
  padding: 0.85rem 0;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--slate);
  border-bottom: 1px solid var(--rule-hair);
}
.specbar li:last-child { border-bottom: 0; }
@media (min-width: 48rem) {
  /* Columns follow the item count, so the bar stays even whether it
     carries two facts or four links. */
  .specbar { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .specbar li { border-bottom: 0; border-left: 1px solid var(--rule-hair); padding: 1.15rem var(--s4); }
  .specbar li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Numbered process ---------- */

.steps { margin: var(--s6) 0 0; padding: 0; list-style: none; counter-reset: step; }
.step {
  border-top: 1px solid var(--rule-dark);
  padding-block: var(--s4);
  display: grid;
  gap: var(--s2);
}
.step__num {
  font-family: var(--display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.step h3 { color: var(--paper); }
.step p { max-width: 40rem; }
@media (min-width: 60rem) {
  .step {
    grid-template-columns: 5.5rem minmax(0, 15rem) minmax(0, 1fr);
    gap: var(--s5);
    align-items: baseline;
    padding-block: var(--s5);
  }
  .step__num { font-size: 2.75rem; }
}

/* ---------- Rule list (services, will-not-do) ---------- */

.rulelist { margin: var(--s5) 0 0; padding: 0; list-style: none; }
.rulelist > li { border-top: 1px solid var(--rule-light); padding-block: var(--s4); }
.rulelist > li:last-child { border-bottom: 1px solid var(--rule-light); }
.rulelist h3 { margin-bottom: var(--s1); }
.rulelist p { color: var(--slate); }
@media (min-width: 60rem) {
  .rulelist > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); padding-block: var(--s5); }
}

.on-dark .rulelist > li { border-top-color: var(--rule-dark); }
.on-dark .rulelist > li:last-child { border-bottom-color: var(--rule-dark); }
.on-dark .rulelist p { color: rgba(241,245,250,0.86); }

/* ---------- Advisor ---------- */

.advisor { display: grid; gap: var(--s6); }
@media (min-width: 60rem) {
  .advisor { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: start; }
}

.portrait { position: relative; max-width: 20rem; }
@media (min-width: 60rem) { .portrait { max-width: none; } }
.portrait img { width: 100%; border: 1px solid var(--rule-light); position: relative; z-index: 1; }
.portrait__caption { margin-top: var(--s4); font-size: 1rem; font-style: italic; color: var(--slate); }

.role { font-style: italic; color: var(--slate); margin: var(--s2) 0 var(--s4); font-size: 1.125rem; }

.points { margin: var(--s5) 0 0; padding: 0; list-style: none; }
.points li { border-top: 1px solid var(--rule-light); padding-block: var(--s3); max-width: var(--measure); }
.points b { font-style: italic; font-weight: 600; }
.points b::after { content: " "; }

/* ---------- Testimonials ---------- */

.quotes { margin-top: var(--s6); display: grid; gap: var(--s7); }
.quote { max-width: 38rem; }
.quote blockquote {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  font-style: italic;
  text-indent: -0.42em;   /* hangs the opening quotation mark */
}
@media (min-width: 48rem) { .quote blockquote { font-size: 1.3125rem; line-height: 1.62; } }
@media (min-width: 62rem) { .quote--offset { margin-left: 22%; } }
.quote blockquote p { max-width: none; }
.quote blockquote p + p { text-indent: 0; }
.quote figcaption {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule-light);
  font-size: 1.0625rem;
  color: var(--slate);
}
.quote figcaption b { font-weight: 600; font-style: normal; color: var(--ink); }
.on-dark .quote figcaption { border-top-color: var(--rule-dark); color: var(--blue); }
.on-dark .quote figcaption b { color: var(--paper); }

.quotes--roomy { gap: var(--s9); }

/* ---------- FAQ ---------- */

.faq { margin-top: var(--s5); display: grid; gap: 0; }
.faq > div { border-top: 1px solid var(--rule-light); padding-block: var(--s4); }
.faq > div:last-child { border-bottom: 1px solid var(--rule-light); }
.faq h3 { margin-bottom: var(--s2); }
.faq p { color: var(--slate); }
@media (min-width: 60rem) {
  .faq { grid-template-columns: 1fr 1fr; column-gap: var(--s7); }
  .faq > div:nth-child(2) { border-top: 1px solid var(--rule-light); }
}

/* ---------- Service detail blocks ---------- */

.service { border-top: 1px solid var(--rule-light); padding-block: var(--s6); scroll-margin-top: 2rem; }
.service:first-of-type { border-top: 0; }
.service h2 { margin-bottom: var(--s4); }
.service__list { margin: var(--s4) 0 0; padding: 0; list-style: none; max-width: var(--measure); }
.service__list li { border-top: 1px solid var(--rule-hair); padding-block: 0.6rem; font-size: 1.0625rem; color: var(--slate); }
.service__cta { margin-top: var(--s5); }

/* ---------- CTA band ---------- */

.cta h2 { max-width: 18ch; }
.cta p { margin-top: var(--s4); max-width: 36rem; }
.cta__btn { margin-top: var(--s5); }

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

.footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--rule-dark); }
.footer__inner { padding-block: var(--s6); display: grid; gap: var(--s5); }
@media (min-width: 60rem) {
  .footer__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: var(--s7); }
}
.footer__logo { width: 168px; margin-bottom: var(--s3); }
.footer p, .footer li, .footer address {
  font-size: 1.0625rem; font-style: normal; line-height: 1.55; color: rgba(241,245,250,0.86);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding-block: 0.28rem; }
.footer a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(159,176,227,0.35); padding-bottom: 1px; }
.footer a:hover { color: var(--paper); border-bottom-color: var(--paper); }
.footer__legal {
  border-top: 1px solid var(--rule-dark);
  padding-block: var(--s4) var(--s5);
  display: grid; gap: var(--s2);
  font-size: 1rem; color: rgba(159,176,227,0.85);
}
@media (min-width: 60rem) {
  .footer__legal { grid-template-columns: 1fr auto; align-items: baseline; }
}

/* ---------- Utility ---------- */

.stack-sm > * + * { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media print {
  .masthead, .footer, .btn { border-color: #999; }
  .on-dark { background: #fff; color: #000; }
}

/* ---------- Page-specific ---------- */

.specbar--four li a { color: var(--azure); text-decoration: none; border-bottom: 1px solid rgba(31,95,160,0.35); padding-bottom: 1px; }
.specbar--four li a:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (min-width: 48rem) { .specbar--four { grid-template-columns: repeat(4, 1fr); } }

.service--feature { border-top: 0; padding-block: 0; }

@media (min-width: 60rem) {
  .advisor--sticky > div:first-child { position: sticky; top: 2.5rem; align-self: start; }
}
.section > .quotes:first-child { margin-top: 0; }
