/* ==========================================================================
   Gryffon Advisors — site stylesheet
   Built to the Gryffon Advisors Brand Guidelines v1.0 (July 2026)
   Palette balance: Warm Ivory 70 / Charcoal 20 / Oxblood 8 / Warm Grey 2
   ========================================================================== */

@import url("../fonts/fonts.css");

/* --------------------------------------------------------------- tokens - */
:root {
  --ivory:        #F6EFDE;
  --ivory-deep:   #EFE7D2;
  --paper:        #FDFBF5;
  --white:        #FFFFFF;
  --charcoal:     #262827;
  --charcoal-mid: #4A4C4A;
  --oxblood:      #7A1715;
  --oxblood-dark: #5E1110;
  --grey:         #928B7E;   /* brand Soft Warm Grey — decorative use */
  --grey-text:    #6A6458;   /* darkened for text: WCAG AA on both ivories */
  --rule:         rgba(38, 40, 39, 0.16);
  --rule-soft:    rgba(38, 40, 39, 0.09);

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body:    "Source Serif 4", "DejaVu Serif", Georgia, "Times New Roman", serif;

  --measure: 68ch;
  --gutter: 2rem;
  --wrap: 1140px;
  --wrap-narrow: 780px;

  --step: clamp(3.5rem, 7vw, 6.5rem);   /* vertical section rhythm */
}

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

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--oxblood); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--oxblood-dark); }

:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 3px;
}

/* --------------------------------------------------------- typography --- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.14;
  margin: 0 0 0.6em;
  letter-spacing: 0.002em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--charcoal); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--oxblood); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); color: var(--charcoal); }
h4 {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 1rem;
}

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

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 1.4rem;
}

.lede {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.5;
  color: var(--charcoal-mid);
  max-width: 34em;
}

.muted { color: var(--grey-text); }

.small {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--grey-text);
}

blockquote {
  margin: 2.5rem 0;
  padding: 0 0 0 1.6rem;
  border-left: 2px solid var(--oxblood);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  line-height: 1.45;
  color: var(--charcoal);
}
blockquote p { max-width: 30em; }
blockquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-text);
}

/* ------------------------------------------------------------- layout --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

/* A reading column that keeps the left edge of the page grid rather than
   centring, so running text lines up with headings above it. */
.reading { max-width: var(--wrap-narrow); }
.reading p { max-width: none; }
.reading > p { font-size: 1.09rem; }

/* Deep links (/people#anand-tandon) must clear the sticky masthead. */
[id] { scroll-margin-top: 7.5rem; }

.section { padding-block: var(--step); }
.section--tight { padding-block: calc(var(--step) * 0.62); }
.section--ruled { border-top: 1px solid var(--rule-soft); }
.section--deep { background: var(--ivory-deep); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- header --- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 222, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 92px;
  padding-block: 1rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 186px; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav__list a:hover { color: var(--oxblood); border-bottom-color: var(--oxblood); }
.nav__list a[aria-current="page"] { color: var(--oxblood); border-bottom-color: var(--oxblood); }

@media (max-width: 900px) {
  .brand img { width: 152px; }
  .nav__toggle { display: inline-block; }
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav__list a {
    display: block;
    padding-block: 0.95rem;
    border-bottom: 1px solid var(--rule-soft);
  }
}

/* --------------------------------------------------------------- hero --- */
.hero { padding-block: clamp(4rem, 9vw, 8.5rem) clamp(3rem, 6vw, 5.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.35em; }

.hero__mark {
  justify-self: center;
  width: min(258px, 66%);
  opacity: 0.9;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { display: none; }
}

.page-head { padding-block: clamp(3.25rem, 7vw, 6rem) clamp(2rem, 4vw, 3.25rem); }
.page-head h1 { max-width: 16em; }

/* -------------------------------------------------------------- grids --- */
.grid { display: grid; gap: clamp(1.75rem, 3.2vw, 2.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); }

@media (max-width: 880px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- cards --- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
}
.card h3 { color: var(--oxblood); font-size: 1.35rem; margin-bottom: 0.5em; }
.card p { font-size: 0.98rem; }

.plain { border: 0; background: transparent; padding: 0; }
.plain h3 { color: var(--charcoal); }

.tile {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.tile h3 { font-size: 1.28rem; margin-bottom: 0.45em; }
.tile p { font-size: 0.98rem; }
.tile__index {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--oxblood);
  display: block;
  margin-bottom: 0.9rem;
}

/* ---------------------------------------------------------- timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; }

.timeline > li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3vw, 2.4rem);
  border-top: 1px solid var(--rule-soft);
}
.timeline > li:last-child { border-bottom: 1px solid var(--rule-soft); }

.timeline__year {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  color: var(--oxblood);
  white-space: nowrap;
}
.timeline h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.timeline p { font-size: 0.98rem; }

@media (max-width: 620px) {
  .timeline > li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ------------------------------------------------------------ people ---- */
.person {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--rule);
}

.person__id .name {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.7vw, 2.15rem);
  line-height: 1.12;
  color: var(--charcoal);
  margin: 0 0 0.35rem;
}
.person__id .role {
  font-family: var(--body);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--grey-text);
  margin: 0 0 1.1rem;
}
.person__id .contact-line {
  font-size: 0.8rem;
  line-height: 2;
  color: var(--charcoal-mid);
  margin: 0;
  overflow-wrap: anywhere;
}
.person__id .contact-line a { text-decoration: none; }
.person__id .contact-line a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; }
}

.credentials {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}
.credentials li { padding-left: 1.15rem; position: relative; color: var(--charcoal-mid); }
.credentials li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 5px; height: 5px;
  background: var(--oxblood);
  border-radius: 50%;
}

/* -------------------------------------------------------------- lists --- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { padding-left: 1.5rem; position: relative; }
.ticks li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--oxblood);
}

/* ------------------------------------------------------------- press ---- */
.press { list-style: none; margin: 0; padding: 0; }
.press > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--rule-soft);
}
.press > li:last-child { border-bottom: 1px solid var(--rule-soft); }
.press .outlet {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--charcoal);
}
.press .detail { font-size: 0.92rem; color: var(--charcoal-mid); margin: 0.25rem 0 0; max-width: 46em; }
.press .go {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.press .go:hover { text-decoration: underline; }
@media (max-width: 620px) {
  .press > li { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--oxblood);
  border-radius: 2px;
  color: var(--oxblood);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--oxblood); color: var(--ivory); }

.btn--solid { background: var(--oxblood); color: var(--ivory); }
.btn--solid:hover { background: var(--oxblood-dark); border-color: var(--oxblood-dark); color: var(--ivory); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

.arrow-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------- form --- */
.form { display: grid; gap: 1.5rem; max-width: 34rem; }
.form__row { display: grid; gap: 0.5rem; }
.form label {
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
}
.form input,
.form select,
.form textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  width: 100%;
}
.form textarea { min-height: 9.5rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--oxblood);
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 23, 21, 0.12);
}
.form__note { font-size: 0.82rem; color: var(--grey-text); max-width: 34rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  font-size: 0.92rem;
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.form__status[hidden] { display: none; }
.form__status[data-state="ok"] { border-color: var(--oxblood); color: var(--oxblood); }

/* ---------------------------------------------------------- contact ----- */
.contact-block { font-size: 1rem; line-height: 2; }
.contact-block a { text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }
.contact-block .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}
.contact-block + .contact-block { margin-top: 2rem; }

/* --------------------------------------------------------- callout ------ */
.callout {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-left: 2px solid var(--oxblood);
  border-radius: 3px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.callout p { font-size: 0.96rem; }

/* --------------------------------------------------------------- CTA ---- */
.cta {
  background: var(--charcoal);
  color: var(--ivory);
  text-align: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.cta h2 { color: var(--ivory); }
.cta p { color: rgba(246, 239, 222, 0.72); margin-inline: auto; }
.cta .btn { border-color: rgba(246, 239, 222, 0.55); color: var(--ivory); }
.cta .btn:hover { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.cta .btn-row { justify-content: center; }

/* ------------------------------------------------------------- footer --- */
.footer {
  background: var(--ivory-deep);
  border-top: 1px solid var(--rule-soft);
  padding-block: clamp(3rem, 5vw, 4.25rem) 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

.footer img.footer__logo { width: 168px; margin-bottom: 1.25rem; }
.footer h4 { color: var(--charcoal); }
.footer p, .footer li { font-size: 0.9rem; color: var(--charcoal-mid); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer a { color: var(--charcoal-mid); text-decoration: none; }
.footer a:hover { color: var(--oxblood); text-decoration: underline; }

.footer__base {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__base p { font-size: 0.8rem; color: var(--grey-text); margin: 0; max-width: 62ch; }

.disclaimer {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--grey-text);
  max-width: 78ch;
}

/* -------------------------------------------------------------- print --- */
@media print {
  .masthead, .cta, .nav__toggle { display: none; }
  body { background: #fff; }
  .section { padding-block: 1.5rem; }
}
