/* Charterton Capital Management
   Built to the Brand and Style Guide v1.3 (November 2026).
   Colours, typefaces and logo files must not be changed without reference to that guide. */

@font-face {
  font-family: "Cardo";
  src: url("../fonts/cardo-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cardo";
  src: url("../fonts/cardo-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cardo";
  src: url("../fonts/cardo-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #14233C;
  --gold: #B08D57;
  --parchment: #F4EFE6;
  --stone: #8A8577;
  --stone-text: #666256;      /* Portland Stone darkened for small text on Parchment */
  --white: #FFFFFF;
  --serif: "Cardo", "Baskerville", "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --measure: 62ch;
  --page: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--gold); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.on-navy :focus-visible { outline-color: var(--gold); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--parchment); padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

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

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

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.25;
  margin: 0;
}
h1 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.5;
}

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

.masthead { border-bottom: 1px solid rgba(176, 141, 87, 0.55); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.1rem;
}
.masthead .brand img { width: 300px; }
.masthead .brand .compact { display: none; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.1rem, 2.5vw, 2.25rem); }
.nav a { text-decoration: none; font-size: 0.95rem; padding-block: 0.4rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* ---------- Hero: the charter frame ---------- */

.hero { padding: clamp(1rem, 3vw, 2.25rem) var(--gutter) 0; }
.charter {
  max-width: var(--page); margin-inline: auto;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold); outline-offset: -9px;   /* echoes the keyline inside the shield */
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.charter .crest { width: min(470px, 100%); margin: 0 auto clamp(2rem, 4vw, 3rem); }
.charter h1 { max-width: 34ch; margin-inline: auto; }
.charter p, .contact p { margin-inline: auto; }
.charter .lede { max-width: 38ch; margin: 1.25rem auto 0; }
.charter .action { margin-top: 2.25rem; }

.button {
  display: inline-block; text-decoration: none;
  font-family: var(--sans); font-size: 0.98rem;
  padding: 0.85rem 1.9rem;
  background: var(--navy); color: var(--parchment);
  border: 1px solid var(--navy);
}
.button:hover { background: transparent; color: var(--navy); }
.on-navy .button { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.on-navy .button:hover { background: transparent; color: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .charter .crest { animation: settle 1100ms ease-out both; }
  @keyframes settle { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Chevron rule (from the shield) ---------- */

.chevron-rule {
  display: flex; align-items: flex-end; gap: 0;
  max-width: 420px; margin: 0 auto; color: var(--gold);
}
.chevron-rule::before, .chevron-rule::after { content: ""; flex: 1; border-bottom: 1px solid currentColor; }
.chevron-rule svg { width: 56px; height: 20px; display: block; flex: none; }

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

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section > .wrap > .chevron-rule { margin-bottom: clamp(3rem, 6vw, 4.5rem); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }

.principles {
  list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.principles li { padding-inline: clamp(1.25rem, 3vw, 2.5rem); border-left: 1px solid rgba(138, 133, 119, 0.5); }
.principles li:first-child { padding-left: 0; border-left: 0; }
.principles li:last-child { padding-right: 0; }
.principles h3 { font-size: 1.55rem; }

/* Navy band */
.on-navy { background: var(--navy); color: var(--parchment); }
.on-navy h2 { color: var(--parchment); }
.on-navy h3 { color: var(--gold); }

.clients { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem); }
.clients > div { border-top: 1px solid rgba(176, 141, 87, 0.6); padding-block: 1.5rem 2rem; }
.clients dt { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--gold); margin-bottom: 0.4rem; }
.clients dd { margin: 0; max-width: 44ch; }

.international { border-top: 1px solid rgba(176, 141, 87, 0.6); padding-top: clamp(2rem, 4vw, 3rem); margin-top: 0.5rem; }
.small { font-size: 0.88rem; line-height: 1.55; }
.on-navy .small { color: rgba(244, 239, 230, 0.8); }

/* Contact */
.contact { text-align: center; }
.contact .lede { max-width: 40ch; margin: 1.25rem auto 0; }
.contact address {
  font-style: normal; margin: 2.25rem auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; text-align: left;
}
.contact address > div { padding: 0 clamp(1.25rem, 3vw, 2.5rem); }
.contact address > div + div { border-left: 1px solid rgba(138, 133, 119, 0.5); }
.contact address strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-bottom: 0.3rem; }
.contact .action { margin-top: 2.5rem; }

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

.colophon { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.colophon .top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; }
.colophon .top img { width: 300px; }
.colophon .links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; flex-wrap: wrap; font-size: 0.95rem; }
.colophon .regulatory { border-top: 1px solid rgba(176, 141, 87, 0.6); margin-top: 2rem; padding-top: 1.75rem; }
.colophon .regulatory p { max-width: 92ch; }

/* ---------- Legal and plain pages ---------- */

.plain { padding-block: clamp(3rem, 7vw, 5rem) clamp(3.5rem, 8vw, 6rem); }
.plain .wrap { max-width: 820px; }
.plain h1 { margin-bottom: 1.5rem; }
.plain h2 { font-size: 1.2rem; margin: 3rem 0 0.9rem; padding-top: 1.5rem; border-top: 1px solid rgba(176, 141, 87, 0.6); }
.plain dl { margin: 0; display: grid; grid-template-columns: 14rem 1fr; gap: 0.5rem 1.5rem; }
.plain dt { color: var(--stone-text); }
.plain dd { margin: 0; }
.pending { border-left: 2px solid var(--gold); padding: 0.1rem 0 0.1rem 1rem; color: var(--stone-text); }

/* ---------- Insights: The Charterton Correspondent ---------- */

.insights-teaser { padding-bottom: 0; }
.insights-teaser cite, .plain cite, .issue-list cite { font-style: italic; }
.issue-line { font-family: var(--serif); font-size: 1.25rem; margin-top: 1.5rem; }
.insights-teaser .action { margin-top: 1.75rem; }

.news-masthead { text-align: center; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.news-masthead h1 { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.5rem); }
.news-masthead .arabic { font-size: 1.35rem; margin: 0.5rem auto 0; color: var(--stone-text); }
.news-masthead .strap {
  font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.95rem; margin: 1.1rem auto 0;
}
.news-masthead .issue { color: var(--stone-text); font-size: 0.95rem; margin: 0.4rem auto 0; }
.news-masthead .chevron-rule { margin-top: 2.25rem; }

.article { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.article .wrap { max-width: 800px; }
.article h2 { font-size: 1.35rem; margin: 3.5rem 0 1.1rem; padding-top: 1.75rem; border-top: 1px solid rgba(176, 141, 87, 0.6); }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.article ol { padding-left: 1.3rem; max-width: var(--measure); }
.article ol li { margin-bottom: 0.9em; padding-left: 0.3rem; }
.article .note { font-size: 0.88rem; line-height: 1.55; color: var(--stone-text); }
.article .byline { margin-top: 1.75rem; }
.article .byline strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.article .byline span { color: var(--stone-text); font-size: 0.95rem; }

.contents { list-style: none; margin: 0 0 3rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; justify-content: center; font-size: 0.95rem; }

.pull { margin: 2.5rem 0 0; text-align: center; padding: 1.75rem 1rem; border-block: 1px solid rgba(176, 141, 87, 0.6); }
.pull strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 2rem + 3vw, 4rem); line-height: 1.1; color: var(--gold); }
.pull span { font-size: 0.95rem; }

.table-scroll { overflow-x: auto; margin: 1.25rem 0 0.75rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem; border-bottom: 1px solid rgba(138, 133, 119, 0.55); }
thead th { background: var(--navy); color: var(--white); font-weight: 400; border-bottom: 0; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody th { font-weight: 400; }
td.fig { font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }

.issue-list { list-style: none; margin: 0; padding: 0; }
.issue-list li { border-top: 1px solid rgba(176, 141, 87, 0.6); padding-block: 2rem; display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem 2rem; }
.issue-list li:last-child { border-bottom: 1px solid rgba(176, 141, 87, 0.6); }
.issue-list .when { color: var(--stone-text); font-size: 0.95rem; padding-top: 0.35rem; }
.issue-list h2 { font-size: 1.45rem; text-transform: none; letter-spacing: 0; margin: 0 0 0.6rem; padding: 0; border: 0; }
.issue-list h2 a { text-decoration: none; }
.issue-list h2 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.issue-list .links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-size: 0.95rem; }

.important { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(176, 141, 87, 0.6); }
.important h2 { border: 0; padding: 0; margin: 0 0 0.8rem; font-size: 1.05rem; }
.important p { max-width: none; }

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .masthead .wrap { flex-direction: column; gap: 0.75rem; }
  .split { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles li { padding: 1.5rem 0; border-left: 0; border-top: 1px solid rgba(138, 133, 119, 0.5); }
  .principles li:first-child { border-top: 0; padding-top: 0; }
  .clients { grid-template-columns: 1fr; }
  .plain dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .plain dd { margin-bottom: 0.8rem; }
  .issue-list li { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .masthead .brand .full { display: none; }
  .masthead .brand .compact { display: block; width: 220px; }
  .nav ul { gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
  .charter { outline-offset: -6px; }
  .contact address { grid-template-columns: 1fr; text-align: center; }
  .contact address > div + div { border-left: 0; margin-top: 1.5rem; }
  .colophon .top img { width: 260px; }
}

@media print {
  .nav, .button, .skip { display: none; }
  .on-navy { background: none; color: #000; }
}
