/* ==========================================================================
   Askari Digital Asset Services Ltd.
   Design tokens, layout and components. No build step, no dependencies.
   ========================================================================== */

:root {
  /* Light palette — warm paper ground, brass accent, ink with a blue bias */
  --ground:        #FAF8F4;
  --surface:       #FFFFFF;
  --surface-2:     #F1EDE4;
  --deep:          #1B242C;   /* dark band sections */
  --deep-2:        #263039;
  --on-deep:       #EDEAE3;
  --on-deep-muted: #A5AEB8;

  --ink:      #161B21;
  --ink-2:    #3E4753;
  --muted:    #6C7581;
  --line:     #E3DED2;
  --line-2:   #CAC3B4;

  --accent:      #8A6A2F;
  --accent-hover:#6F5425;
  --accent-soft: #F2E9D6;
  --accent-line: #D9C9A3;

  --good:      #3C6647;
  --good-soft: #E2ECE4;

  --radius: 5px;
  --shadow-sm: 0 1px 2px rgba(22,27,33,.05);
  --shadow:    0 1px 2px rgba(22,27,33,.05), 0 10px 30px -18px rgba(22,27,33,.30);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 38rem;
  --wide: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:        #11151A;
    --surface:       #181D24;
    --surface-2:     #212832;
    --deep:          #0C1014;
    --deep-2:        #171D24;
    --on-deep:       #E9E6E0;
    --on-deep-muted: #99A2AD;

    --ink:      #E9E6E0;
    --ink-2:    #C3C9D1;
    --muted:    #8D96A2;
    --line:     #29313B;
    --line-2:   #3A4451;

    --accent:      #C9A227;
    --accent-hover:#DDB63C;
    --accent-soft: #2B2517;
    --accent-line: #4A3F20;

    --good:      #7BA98A;
    --good-soft: #1C2922;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 10px 30px -18px rgba(0,0,0,.8);
  }
}

:root[data-theme="dark"] {
  --ground:        #11151A;
  --surface:       #181D24;
  --surface-2:     #212832;
  --deep:          #0C1014;
  --deep-2:        #171D24;
  --on-deep:       #E9E6E0;
  --on-deep-muted: #99A2AD;

  --ink:      #E9E6E0;
  --ink-2:    #C3C9D1;
  --muted:    #8D96A2;
  --line:     #29313B;
  --line-2:   #3A4451;

  --accent:      #C9A227;
  --accent-hover:#DDB63C;
  --accent-soft: #2B2517;
  --accent-line: #4A3F20;

  --good:      #7BA98A;
  --good-soft: #1C2922;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 10px 30px -18px rgba(0,0,0,.8);
}

/* --------------------------------------------------------- reset + base */

*, *::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: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--ink);
  padding: .7rem 1.1rem; z-index: 100; border: 1px solid var(--accent);
}
.skip:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------- typography */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; text-wrap: balance; margin: 0; }

h1 { font-size: clamp(2.05rem, 5vw, 3.15rem); line-height: 1.08; letter-spacing: -.018em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); line-height: 1.2;  letter-spacing: -.012em; }
h3 { font-size: 1.28rem; line-height: 1.3; letter-spacing: -.006em; }
h4 { font-family: var(--sans); font-weight: 650; font-size: .95rem; letter-spacing: .005em; }

p { margin: 0 0 1.1rem; }
.prose p, .prose ul, .prose ol { max-width: var(--measure); }
.prose > h2 { margin: 2.9rem 0 .85rem; }
.prose > h3 { margin: 2.2rem 0 .6rem; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; }

.lede { font-size: 1.16rem; color: var(--ink-2); max-width: 40rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .85rem;
}

.pull {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.42;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding: .2rem 0 .2rem 1.4rem;
  margin: 2rem 0;
  max-width: 34rem;
}

/* --------------------------------------------------------- layout */

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 46rem; }

section { padding: 4.5rem 0; }
section.tight { padding: 3rem 0; }
.band { background: var(--surface-2); }
.band-dark { background: var(--deep); color: var(--on-deep); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--on-deep); }
.band-dark p { color: var(--on-deep-muted); }
.band-dark .eyebrow { color: var(--accent); }
.band-dark a:not(.btn) { color: var(--accent); }

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

/* --------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.4rem;
}
.brand {
  display: flex; align-items: baseline; gap: .55rem;
  text-decoration: none; color: var(--ink); flex: none;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: .3rem 0;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent-line); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--ink); font-family: var(--sans); font-size: .82rem;
  padding: .45rem .75rem; cursor: pointer;
}

@media (max-width: 68rem) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.2rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8rem; text-align: center; }
}

/* --------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .78rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #FFF9EC; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFF9EC; }
:root[data-theme="dark"] .btn-primary,
:root:not([data-theme="light"]) .btn-primary { color: #17130A; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn-primary { color: #FFF9EC; }
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.band-dark .btn-ghost { color: var(--on-deep); border-color: #3B4550; }
.band-dark .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9rem; font-weight: 600; text-decoration: none;
}
.arrow-link::after { content: "→"; transition: transform .15s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------- hero */

.hero { padding: 5.5rem 0 4.5rem; border-bottom: 1px solid var(--line); }
.hero .lede { margin-top: 1.4rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.35fr .8fr; gap: 4rem; align-items: start; }
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.12rem; margin-bottom: .8rem; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li {
  display: grid; grid-template-columns: 1.1rem 1fr; gap: .65rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
  font-size: .93rem; color: var(--ink-2);
}
.hero-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-card li::before { content: "◆"; color: var(--accent); font-size: .7rem; line-height: 1.8; }

/* --------------------------------------------------------- cards */

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 46rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 58rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5rem; }
.card .card-sub {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9rem;
}
.card p { color: var(--ink-2); font-size: .96rem; }
.card .arrow-link { margin-top: auto; padding-top: .6rem; }

/* --------------------------------------------------------- portrait */

.bio { display: grid; gap: 1.8rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 44rem) {
  .bio { grid-template-columns: 216px 1fr; gap: 2.6rem; }
}
.portrait-fig { margin: 0; }
.portrait {
  width: 100%;
  max-width: 216px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.portrait-cap {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  margin-top: .7rem; line-height: 1.5;
}
.band-dark .portrait { border-color: #39434E; }
.band-dark .portrait-cap { color: var(--on-deep-muted); }

/* --------------------------------------------------------- steps */

.steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 1.4rem;
  padding: 1.6rem 0; border-top: 1px solid var(--line);
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .82rem; color: var(--accent);
  padding-top: .28rem; letter-spacing: .05em;
}
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--ink-2); margin-bottom: 0; max-width: var(--measure); }

/* --------------------------------------------------------- callout */

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 2rem 0;
  max-width: 44rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-title {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: .5rem; font-weight: 600;
}

/* --------------------------------------------------------- faq */

.faq { margin-top: 1.8rem; max-width: 44rem; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: .35rem 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.09rem; line-height: 1.4;
  padding: 1rem 2rem 1rem 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: .95rem;
  color: var(--accent); font-family: var(--mono); font-size: 1.2rem; line-height: 1.4;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.1rem; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq details > div p { max-width: var(--measure); }

/* --------------------------------------------------------- form */

.form { max-width: 34rem; margin-top: 2rem; }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-size: .85rem; font-weight: 600;
  margin-bottom: .35rem; color: var(--ink);
}
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans); font-size: 1rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: .68rem .8rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }

/* --------------------------------------------------------- contact details */

.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem;
  padding: .8rem 0; border-top: 1px solid var(--line);
  font-size: .95rem;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); padding-top: .25rem;
}

/* --------------------------------------------------------- article list */

.post-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.post-list > li { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.post-list > li:last-child { border-bottom: 1px solid var(--line); }
.post-list h3 { margin-bottom: .4rem; }
.post-list h3 a { color: var(--ink); text-decoration: none; }
.post-list h3 a:hover { color: var(--accent); }
.post-list p { color: var(--ink-2); margin-bottom: .5rem; max-width: var(--measure); }
.post-meta {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5rem;
}
.upcoming { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.upcoming li {
  padding: .6rem 0; border-bottom: 1px dashed var(--line);
  color: var(--muted); font-size: .94rem;
}

/* --------------------------------------------------------- breadcrumb */

.crumb {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* --------------------------------------------------------- next steps strip */

.next {
  display: grid; gap: 1.5rem; align-items: center;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--surface);
  padding: 1.8rem; margin-top: 3.5rem;
}
@media (min-width: 50rem) { .next { grid-template-columns: 1fr auto; } }
.next h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.next p { color: var(--ink-2); margin-bottom: 0; max-width: 34rem; }

/* --------------------------------------------------------- footer */

.site-footer {
  background: var(--deep); color: var(--on-deep-muted);
  padding: 3.5rem 0 2rem; margin-top: 0;
  font-size: .9rem;
}
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 50rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--on-deep); margin-bottom: .9rem; font-weight: 500;
}
.site-footer a { color: var(--on-deep-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .brand-mark { color: var(--on-deep); }
.site-footer p { color: var(--on-deep-muted); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #2A333D;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .8rem;
}
.disclaimer {
  margin-top: 1.2rem; font-size: .78rem; line-height: 1.6;
  color: #7C8590; max-width: 46rem;
}

/* --------------------------------------------------------- utilities */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-2); margin-bottom: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.scroller { overflow-x: auto; }

table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 30rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--mono); font-size: .67rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  background: var(--surface-2);
}
tbody tr:last-child td { border-bottom: 0; }
