/* INED.UK — site stylesheet
   Design language: quiet boardroom. Ivory paper, ink navy,
   racing green accent, serif-led type, hairline rules. */

:root {
  --paper: #f7f4ee;
  --card: #fffdf8;
  --ink: #1b2733;
  --body: #3b4650;
  --muted: #707b85;
  --green: #1c4d3a;
  --green-dark: #143c2d;
  --brass: #96772f;
  --rule: #e3dccd;
  --rag-red: #a33b2e;
  --rag-amber: #a8761f;
  --rag-green: #2e6b46;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

.kicker {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: .75rem;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--brass); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); text-decoration: none; }
.site-nav .nav-btn {
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 8px 16px;
}
.site-nav .nav-btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fdfcf8;
  font-weight: 600;
  font-size: .92rem;
  padding: 14px 28px;
  border-radius: 3px;
  border: 1px solid var(--green);
  transition: background .15s ease;
}
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn.quiet {
  background: transparent;
  color: var(--ink);
  border-color: #b9b1a0;
}
.btn.quiet:hover { border-color: var(--ink); background: transparent; }

/* ---------- Hero ---------- */
.hero { padding: 100px 0 80px; border-bottom: 1px solid var(--rule); }
.hero h1 { max-width: 16em; margin-bottom: 1.25rem; }
.hero .sub { font-size: 1.15rem; max-width: 32em; margin-bottom: 2.5rem; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .source-line { margin-top: 3.5rem; font-size: .88rem; color: var(--muted); max-width: 36em; }
.hero .source-line strong { color: var(--ink); font-weight: 600; }

/* ---------- Stats band ---------- */
.stats { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.stat { border-top: 2px solid var(--ink); padding-top: 18px; }
.stat .num { font-family: var(--display); font-size: 2.6rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stat p { margin-top: .5rem; font-size: .88rem; }
.stat .src { display: block; margin-top: .5rem; font-size: .76rem; color: var(--muted); }

/* ---------- Pull quote ---------- */
.pullquote { padding: 88px 0; border-bottom: 1px solid var(--rule); text-align: center; }
.pullquote blockquote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 500;
  color: var(--ink);
  max-width: 28em;
  margin: 0 auto 1.25rem;
}
.pullquote cite { font-style: normal; font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; border-bottom: 1px solid var(--rule); }
.section .lead { max-width: 38em; margin-bottom: .5rem; }

/* ---------- Services ---------- */
.service { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 44px 0; border-top: 1px solid var(--rule); }
.service:first-of-type { border-top: 2px solid var(--ink); margin-top: 2.5rem; }
.service .meta .tag { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.service .meta h3 { margin-top: .5rem; font-size: 1.5rem; }
.service .meta .fee { margin-top: .75rem; font-size: .9rem; color: var(--muted); }
.service .detail p { margin-bottom: 1rem; }
.service .detail ul { list-style: none; margin: 1.25rem 0; }
.service .detail li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--rule); font-size: .95rem; position: relative; }
.service .detail li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.service .detail .svc-link { font-weight: 600; font-size: .92rem; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 2.5rem; }
.step .n { font-family: var(--display); font-size: 1rem; color: var(--brass); margin-bottom: .5rem; }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .9rem; }

/* ---------- Board questions ---------- */
.questions { background: var(--ink); color: #b8c2cc; }
.questions .kicker { color: var(--brass); }
.questions h2 { color: #f4f1e9; }
.questions p.lead { color: #b8c2cc; }
.questions ol { list-style: none; counter-reset: q; margin-top: 2rem; columns: 2; column-gap: 56px; }
.questions li {
  counter-increment: q;
  break-inside: avoid;
  padding: 16px 0 16px 44px;
  border-bottom: 1px solid #2c3947;
  font-size: .98rem;
  position: relative;
  color: #d4dbe2;
}
.questions li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--display);
  color: var(--brass);
}
.questions .after { margin-top: 2rem; font-size: .95rem; color: #8d99a5; }
.questions .after a { color: #e8e2d2; text-decoration: underline; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 56px; align-items: start; margin-top: 2rem; }
.about-grid .portrait {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--rule);
}
.about-grid .bio p { margin-bottom: 1.1rem; }
.about-grid .credentials { margin-top: 1.75rem; border-top: 2px solid var(--ink); }
.about-grid .credentials div { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; display: grid; grid-template-columns: 11em 1fr; gap: 16px; }
.about-grid .credentials dt, .about-grid .credentials .k { color: var(--muted); }
.about-grid .links { margin-top: 1.5rem; font-size: .95rem; }
.about-grid .links a { margin-right: 24px; font-weight: 600; }

/* ---------- Insights / posts ---------- */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 2.5rem; }
.post-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.post-card:hover { border-color: #b9ae97; }
.post-card .tag { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: .9rem; }
.post-card h3 { font-size: 1.3rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--green); text-decoration: none; }
.post-card p { font-size: .93rem; flex-grow: 1; margin-top: .6rem; }
.post-card .meta-line { margin-top: 1.5rem; font-size: .82rem; color: var(--muted); }
.post-card.featured-post { grid-column: 1 / -1; padding: 44px 40px; border-color: var(--ink); }
.post-card.featured-post h3 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 22em; }
.post-card.featured-post p { font-size: 1.02rem; max-width: 42em; }
.post-card.featured-post .tag::before { content: "Latest · "; color: var(--ink); }
.post-list-foot { margin-top: 2rem; font-weight: 600; font-size: .92rem; }

/* ---------- Briefing ---------- */
.briefing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.briefing ul { list-style: none; margin-top: 1rem; border-top: 2px solid var(--ink); }
.briefing li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.briefing .edition { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.briefing .note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.briefing .btn { margin-top: 1.75rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; border-bottom: 0; }
.contact h2 { max-width: 22em; margin: 0 auto 1rem; }
.contact p { max-width: 34em; margin: 0 auto 2.25rem; }
.contact .quiet-line { margin-top: 1.5rem; font-size: .88rem; color: var(--muted); }

/* ---------- Article pages ---------- */
.article { max-width: 700px; margin: 0 auto; padding: 80px 28px 64px; }
.article .back { display: inline-block; margin-bottom: 2.5rem; font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.article .tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-bottom: 1.25rem; }
.article .meta { font-size: .88rem; color: var(--muted); margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.article-body { font-family: var(--serif); font-size: 1.13rem; line-height: 1.78; }
.article-body .lede { font-size: 1.3rem; color: var(--ink); margin-bottom: 2rem; line-height: 1.6; }
.article-body h2 { font-size: 1.55rem; margin: 2.75rem 0 1rem; }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; font-family: var(--sans); font-weight: 600; }
.article-body p { margin-bottom: 1.3rem; }
.article-body ul, .article-body ol { margin: 0 0 1.3rem 1.4rem; }
.article-body li { margin-bottom: .5rem; }
.article-body blockquote {
  border-left: 3px solid var(--brass);
  padding: .25rem 0 .25rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
}
.article-body blockquote cite { display: block; margin-top: .75rem; font-family: var(--sans); font-size: .85rem; font-style: normal; color: var(--muted); }
.article-body table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-family: var(--sans); font-size: .92rem; }
.article-body th { text-align: left; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 2px solid var(--ink); }
.article-body td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rag { font-weight: 700; font-size: .8rem; letter-spacing: .06em; white-space: nowrap; }
.rag.red { color: var(--rag-red); }
.rag.amber { color: var(--rag-amber); }
.rag.green { color: var(--rag-green); }

.series-nav {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 20px 24px;
  margin-bottom: 2.5rem;
  font-family: var(--sans);
  font-size: .88rem;
}
.series-nav .series-title {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: .6rem;
}
.series-nav ol { list-style: none; counter-reset: part; margin: 0; }
.series-nav li { counter-increment: part; padding: 5px 0 5px 26px; position: relative; }
.series-nav li::before {
  content: counter(part);
  position: absolute;
  left: 0;
  font-family: var(--display);
  color: var(--brass);
}
.series-nav li.current { color: var(--ink); font-weight: 600; }
.series-nav li .soon { color: var(--muted); }

.article .endnote {
  margin-top: 3.5rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: 3px;
  padding: 28px 32px;
  font-family: var(--sans);
  font-size: .95rem;
}
.article .endnote strong { color: var(--ink); }
.article .sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.article .sources h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); margin-bottom: .75rem; }
.article .sources ul { list-style: none; }
.article .sources li { padding: 4px 0; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 3rem; align-items: start; }
.price-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--green); border-width: 2px; }
.price-card .tier {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: .75rem;
}
.price-card h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.price-card .who { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.price-card .price { font-family: var(--display); font-size: 2.1rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.price-card .price small { font-family: var(--sans); font-size: .85rem; font-weight: 400; color: var(--muted); }
.price-card .price-note { font-size: .8rem; color: var(--muted); margin-top: .35rem; margin-bottom: 1.5rem; }
.price-card .blurb { font-size: .93rem; margin-bottom: 1.25rem; }
.price-card ul { list-style: none; margin-bottom: 1.75rem; flex-grow: 1; }
.price-card li { padding: 8px 0 8px 24px; border-bottom: 1px solid var(--rule); font-size: .88rem; position: relative; }
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.price-card li.head { padding-left: 0; font-weight: 600; color: var(--ink); }
.price-card li.head::before { content: none; }
.price-card .btn { text-align: center; }
.pricing-foot { margin-top: 2.5rem; font-size: .85rem; color: var(--muted); max-width: 44em; }

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

/* ---------- Insights index ---------- */
.insights-head { padding: 80px 0 0; }
.insights-head p { max-width: 36em; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 56px; font-size: .85rem; color: var(--muted); }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .fbrand { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 130px 28px; }
.error-page .code { font-family: var(--display); font-size: 6rem; color: var(--brass); line-height: 1; margin-bottom: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .questions ol { columns: 1; }
  .service { grid-template-columns: 1fr; gap: 16px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .portrait { max-width: 200px; }
  .briefing { grid-template-columns: 1fr; }
  .post-list { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .site-nav { gap: 16px; }
  .site-nav a.hide-m { display: none; }
}
