/* ==========================================================================
   Ardmore Investment Research
   --------------------------------------------------------------------------
   Palette and type are derived from the Ardmore mark. Forest (#123B2E) is
   taken directly from the logo; brass is the single accent and is used only
   for eyebrows, rules, active states and links.
   ========================================================================== */

:root {
  /* Colour */
  --paper:        #FCFCFC;
  --paper-tint:   #F1F3F2;
  --ink:          #14171A;
  --forest:       #123B2E;
  --forest-deep:  #0B241B;
  --forest-mid:   #2C5A48;
  --sage:         #9ABAAA;
  --brass:        #A8863F;
  --brass-lt:     #C7A968;
  --rule:         #D9DDDB;
  --rule-dark:    #274C3D;
  --muted:        #646B67;
  --muted-dark:   #A9BCB2;
  --grid:         #E7EAE8;

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Rhythm - tighter than editorial, closer to a data document */
  --shell:    1180px;
  --gutter:   2rem;
  --section-y: 4.75rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

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

/* Visible to screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section.is-tight  { padding-block: 4rem; }
.section.is-dark   { background: var(--forest-deep); color: #fff; }
.section.is-tinted { background: var(--paper-tint); }
.section.is-ruled  { border-top: 1px solid var(--rule); }

/* ---------- Eyebrow: small-caps label over a brass hairline ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin: 0;
}
.eyebrow.on-dark { color: var(--brass-lt); }

.rule-label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}
.rule-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.rule-label.on-dark::after { background: var(--rule-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn.is-solid {
  background: var(--brass);
  color: #17201A;
  border-color: var(--brass);
}
.btn.is-solid:hover { background: var(--brass-lt); border-color: var(--brass-lt); }

.btn.is-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.32);
}
.btn.is-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.btn.is-ghost-dark {
  background: transparent;
  color: var(--forest);
  border-color: var(--rule);
}
.btn.is-ghost-dark:hover { border-color: var(--forest); background: rgba(18,59,46,0.04); }

.btn .arw { transition: transform 160ms ease; }
.btn:hover .arw { transform: translateX(3px); }

/* ==========================================================================
   Header
   ========================================================================== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,251,249,0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

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

.nav { display: flex; align-items: center; gap: 2.25rem; }

.nav a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.nav a:hover { color: var(--forest); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--brass); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 3.5px 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--forest-deep);
  color: #fff;
  padding-block: 7.5rem 0;
  border-bottom: 1px solid var(--rule-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  color: #fff;
  margin-top: 1.75rem;
  letter-spacing: -0.022em;
}

.hero-lede {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #D6E2DB;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

/* Register of firm facts - reads like a report colophon, not stat cards */
.colophon { border-top: 1px solid var(--rule-dark); }
.colophon div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.5rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule-dark);
  align-items: baseline;
}
.colophon dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
}
.colophon dd {
  margin: 0;
  font-size: 0.9375rem;
  color: #EAF1EC;
}

.hero-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--rule-dark);
  padding-block: 1.4rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-head {
  padding-block: 5rem 3.25rem;
  border-bottom: 1px solid var(--rule);
}
.page-head h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--forest);
  margin-top: 1.5rem;
}
.page-head .lede {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ==========================================================================
   Principles
   ========================================================================== */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.principles > li {
  padding: 2.5rem 2.25rem 0.5rem 0;
  border-right: 1px solid var(--rule);
}
.principles > li:last-child { border-right: 0; padding-right: 0; }
.principles > li:not(:first-child) { padding-left: 2.25rem; }

.principles h3 {
  font-size: 1.1875rem;
  margin-top: 1.1rem;
  color: var(--forest);
}
.principles p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ==========================================================================
   Register - the research index, set as a data table (signature component)
   ========================================================================== */
.register { border-top: 2px solid var(--ink); }

/* Column header strip - mono, tiny, the tell that this is tabular data */
.register-head {
  display: grid;
  grid-template-columns: 3.25rem 7.5rem minmax(0, 1fr) 9rem;
  gap: 1.75rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.register-head span:last-child { text-align: right; }

.register-year {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule);
  background: var(--grid);
  padding-inline: 0.75rem;
  margin: 0;
}

.entry {
  display: grid;
  grid-template-columns: 3.25rem 7.5rem minmax(0, 1fr) 9rem;
  gap: 1.75rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background-color 120ms ease;
}
.entry:hover { background: var(--grid); }

/* Sequential report ID - research registers really are numbered */
.entry-index {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  padding-top: 0.28rem;
  font-variant-numeric: tabular-nums;
}

.entry-date {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 0.28rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.entry-title {
  font-family: var(--display);
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--forest);
  margin: 0;
  letter-spacing: -0.008em;
}
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 4px; }

.entry-summary {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 44rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
  align-items: center;
}

.tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--rule);
  color: var(--muted);
  white-space: nowrap;
}
.tag.is-ticker { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.tag.is-long  { color: #1F5C43; border-color: #B7D2C5; background: #EEF5F1; }
.tag.is-short { color: #8A3524; border-color: #E0C3BB; background: #FAF0ED; }

.entry-action { padding-top: 0.28rem; text-align: right; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--forest);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.28rem;
  transition: color 150ms ease, border-color 150ms ease;
}
.link-arrow:hover { color: var(--brass); }
.link-arrow .arw { transition: transform 160ms ease; }
.link-arrow:hover .arw { transform: translateX(3px); }

.entry-action .pending {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.register-empty {
  padding-block: 3.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ==========================================================================
   About
   ========================================================================== */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.portrait {
  border: 1px solid var(--rule);
  background: var(--paper-tint);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.bio-name {
  font-size: 2rem;
  color: var(--forest);
  margin-top: 1rem;
}
.bio-role {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.7rem;
}
.bio-body { margin-top: 1.75rem; display: grid; gap: 1.15rem; }
.bio-body p { color: #343935; font-size: 1rem; line-height: 1.78; max-width: 44rem; }

.credentials { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.credentials li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.75rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.credentials .k {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.credentials .v { font-size: 0.9375rem; color: var(--ink); }
.credentials .v-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
  transition: color 150ms ease;
}
.credentials .v-link:hover { color: var(--brass); }

/* Report specification list - same tabular logic as the register */
.spec-intro {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 46rem;
  margin-bottom: 2.25rem;
}

.spec-title {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 0.75rem;
}
.spec + .spec-title { margin-top: 2.5rem; }

.spec {
  border-top: 2px solid var(--ink);
  counter-reset: spec;
}
.spec li {
  counter-increment: spec;
  display: grid;
  grid-template-columns: 2.5rem 11rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.spec li::before {
  content: counter(spec, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.spec .k {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}
.spec .v { font-size: 0.9375rem; color: var(--ink); line-height: 1.65; }

/* Process - numbered because the steps really are a sequence */
.process { counter-reset: step; border-top: 1px solid var(--rule-dark); }
.process li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule-dark);
  align-items: start;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--brass-lt);
  letter-spacing: 0.06em;
  padding-top: 0.2rem;
}
.process h3 { font-size: 1.1875rem; color: #fff; }
.process p { margin-top: 0.5rem; color: #C3D3C9; font-size: 0.9375rem; line-height: 1.7; max-width: 46rem; }

/* ==========================================================================
   Callout band
   ========================================================================== */
.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
}
.callout h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: #fff;
  margin-top: 1.25rem;
}
.callout p { margin-top: 1rem; color: #C3D3C9; max-width: 40rem; font-size: 1rem; line-height: 1.7; }

/* Same band on a light background */
.callout.on-light h2 { color: var(--forest); }
.callout.on-light p  { color: var(--muted); }

/* "All research" link under the latest-research register */
.register-more { margin-top: 2.5rem; }

/* Body copy block constrained to a comfortable measure */
.prose { max-width: 52rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-foot {
  background: var(--forest-deep);
  color: #fff;
  border-top: 1px solid var(--rule-dark);
  padding-block: 4rem 2.25rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule-dark);
}
.foot-brand img { height: 34px; width: auto; }
.foot-brand p {
  margin-top: 1.4rem;
  color: var(--muted-dark);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 26rem;
}
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.foot-col ul { margin-top: 1.1rem; display: grid; gap: 0.7rem; }
.foot-col a {
  font-size: 0.9375rem;
  color: #E4EDE7;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
.foot-col a:hover { color: #fff; border-bottom-color: var(--brass); }

.foot-base {
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.foot-base p {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.disclaimer {
  margin-top: 1.5rem;
  color: #8FA598;
  font-size: 0.75rem;
  line-height: 1.7;
  max-width: 60rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  :root { --section-y: 5rem; }

  .hero-grid { grid-template-columns: 1fr; gap: 3.25rem; align-items: start; }
  .hero { padding-top: 5.5rem; }

  .principles { grid-template-columns: 1fr; }
  .principles > li {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 2rem 0 2rem 0 !important;
  }
  .principles > li:last-child { border-bottom: 0; }

  .foot-grid { grid-template-columns: 1fr 1fr; }

  .callout { grid-template-columns: 1fr; gap: 2rem; }
  .bio-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .portrait { max-width: 240px; }
}

@media (max-width: 760px) {
  :root { --gutter: 1.35rem; --section-y: 4rem; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding-block: 0.95rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--brass); }
  .nav-toggle { display: block; }
  .masthead-inner { position: relative; min-height: 66px; }
  .brand img { height: 28px; }

  .register-head { display: none; }

  .entry {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.35rem 1rem;
    padding-block: 1.35rem;
  }
  .entry-index { grid-row: 1; padding-top: 0; }
  .entry-date  { grid-column: 2; grid-row: 1; padding-top: 0; }
  .entry-main  { grid-column: 2; }
  .entry-action { grid-column: 2; padding-top: 0.5rem; text-align: left; }

  .colophon div { grid-template-columns: 1fr; gap: 0.3rem; padding-block: 0.9rem; }

  .credentials li { grid-template-columns: 1fr; gap: 0.3rem; }
  .spec li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.3rem 1rem;
  }
  .spec li::before { grid-row: 1; }
  .spec .k { grid-column: 2; grid-row: 1; }
  .spec .v { grid-column: 2; }
  .process li { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; }

  .foot-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-footer { margin-top: 3rem; }
}

/* ---------- Print ---------- */
@media print {
  .masthead, .site-foot, .hero-actions, .nav-toggle { display: none; }
  body { background: #fff; }
  .hero, .section.is-dark { background: #fff !important; color: #000 !important; }
}
