/* ==========================================================================
   CurrencyLook — content pages stylesheet
   --------------------------------------------------------------------------
   RETHEMING: change only the variables in :root below to match your existing
   index.html brand colours. Nothing else needs to be touched.
   ========================================================================== */

:root {
  --ink:        #12212b;   /* primary text / dark surfaces */
  --ink-soft:   #33474f;
  --muted:      #5d6f6a;   /* secondary text */
  --paper:      #f6f7f5;   /* page background */
  --surface:    #ffffff;   /* cards */
  --rule:       #dde1da;   /* hairlines */
  --accent:     #1f6f5c;   /* primary accent — links, active states */
  --accent-dk:  #175346;
  --brass:      #a8802c;   /* figures, warnings, pull-quotes */
  --brass-tint: #fbf4e4;
  --alert:      #9a3b28;

  --measure: 68ch;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(18,33,43,.06), 0 8px 24px rgba(18,33,43,.05);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::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(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

/* --- Numbers are the subject matter here: give them a real treatment ----- */
.fig, .rate, td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -.01em;
}
.fig { color: var(--brass); }

/* --- Skip link ----------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 8px; top: 8px; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; letter-spacing: -.015em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 15px; font-weight: 500; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* --- Layout -------------------------------------------------------------- */
main { display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.col { max-width: var(--measure); }

.crumbs {
  font-size: 14px; color: var(--muted); padding: 22px 0 0;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* --- Page head ----------------------------------------------------------- */
.page-head { padding: 20px 0 34px; border-bottom: 1px solid var(--rule); margin-bottom: 38px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
h1 {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -.02em; line-height: 1.12;
  font-size: clamp(30px, 4.6vw, 46px);
  margin: 0 0 16px; max-width: 22ch;
}
.standfirst {
  font-size: 20px; line-height: 1.5; color: var(--ink-soft);
  max-width: 60ch; margin: 0 0 18px;
}
.byline { font-size: 14px; color: var(--muted); margin: 0; }

/* --- Prose --------------------------------------------------------------- */
.prose { max-width: var(--measure); padding-bottom: 20px; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -.015em;
  line-height: 1.25; margin: 46px 0 14px;
}
.prose h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -.005em;
  margin: 32px 0 8px; color: var(--ink);
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--accent-dk); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

/* --- Callouts ------------------------------------------------------------ */
.note, .warn {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 16px 20px; margin: 26px 0; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
}
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.warn { border-left-color: var(--brass); background: var(--brass-tint); }
.note .label, .warn .label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; color: var(--accent);
}
.warn .label { color: var(--brass); }

/* --- Tables -------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 26px 0; }
table {
  border-collapse: collapse; width: 100%; font-size: 15.5px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
}
caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: #fafbf9;
}
tbody tr:last-child td { border-bottom: 0; }

/* --- Cards / guide index ------------------------------------------------- */
.card-grid {
  display: grid; gap: 18px; margin: 30px 0 10px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: inherit; display: block;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px;
}
.card h3 {
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  line-height: 1.25; margin: 0 0 8px; letter-spacing: -.01em;
}
.card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* --- Related / continue reading ------------------------------------------ */
.related { border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 26px; }
.related h2 { font-family: var(--font-display); font-size: 21px; margin: 0 0 16px; font-weight: 600; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 10px; }
.related a { color: var(--accent-dk); font-weight: 500; }

/* --- Converter CTA strip -------------------------------------------------- */
.cta-strip {
  background: var(--ink); color: #eef2ee; border-radius: var(--radius);
  padding: 26px 28px; margin: 40px 0 0; display: flex; gap: 20px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-strip p { margin: 0; max-width: 46ch; font-size: 16px; color: #c7d3cd; }
.cta-strip strong { color: #fff; display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 11px 22px; border-radius: 6px; text-decoration: none;
  font-weight: 600; font-size: 15px; white-space: nowrap;
}
.btn:hover { background: var(--accent-dk); }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  margin-top: 70px; background: var(--ink); color: #a9bab4;
  padding: 44px 0 30px; font-size: 15px;
}
.footer-grid {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.site-footer h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: #7f948d; margin: 0 0 12px; font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfdcd7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-family: var(--font-display); font-size: 20px; color: #fff; font-weight: 600; margin: 0 0 8px; }
.footer-brand + p { margin: 0; color: #8fa39c; font-size: 14.5px; max-width: 34ch; }
.legal {
  max-width: 1080px; margin: 34px auto 0; padding: 20px 20px 0;
  border-top: 1px solid #24363f; font-size: 13.5px; color: #7f948d;
}
.legal p { margin: 0 0 6px; }

/* --- Ad slots ------------------------------------------------------------ */
.ad-slot { margin: 38px 0; text-align: center; min-height: 90px; }
.ad-slot .ad-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: #9aa8a3; display: block; margin-bottom: 6px;
}

/* --- Contact / simple form ------------------------------------------------ */
.stack { display: grid; gap: 16px; max-width: 520px; }
label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 5px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* --- Accessibility floor -------------------------------------------------- */
a:focus-visible, button:focus-visible, .card:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .header-inner { gap: 12px; padding: 12px 16px; }
  .site-nav { gap: 14px; margin-left: 0; width: 100%; }
  .site-nav a { font-size: 14px; }
  .cta-strip { padding: 22px; }
}
