/* AMBROSOLI THINK TANK AI public site.
   Palette and type are provisional until D-28 (brand assets) is approved: change them here only.
   System fonts only, so the site loads nothing from other websites. */
:root {
  --ink: #111012;
  --ink-soft: #2b2a2e;
  --paper: #faf6ee;
  --paper-deep: #f1eadb;
  --card: #fffdf8;
  --red: #a3121a;
  --red-deep: #7c0d13;
  --gold: #c9a227;
  --gold-soft: #e6cf86;
  --muted: #5d5a55;
  --line: #ddd3bf;
  --focus: #1a5fd0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin: 0 0 0.9rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
h4 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 1.2rem 0 0.4rem; }
p { margin: 0 0 1rem; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* Preview banner and decision frames (preview builds only) */
.preview-banner { background: #fff4c4; border-bottom: 2px solid #b08a00; color: #3a2e00; font-size: 0.92rem; padding: 0.55rem 0; }
.block.pending { position: relative; outline: 2px dashed #b08a00; outline-offset: 0.75rem; }
.pending-tag { display: table; background: #fff4c4; color: #3a2e00; border: 1px solid #b08a00; font-size: 0.82rem; padding: 0.2rem 0.6rem; border-radius: var(--radius); margin-bottom: 0.9rem; max-width: none; }
.source-tag { font-size: 0.78rem; color: var(--muted); margin: 0.8rem 0 0; font-style: italic; }
.hero .pending-tag { background: #3a2e00; color: #fff4c4; }
.hero .source-tag { color: var(--gold-soft); }

/* Header */
.site-header { background: var(--ink); color: #fff; border-bottom: 3px solid var(--gold); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 3.1rem; height: 3.1rem; border-radius: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.08em; color: #ff4b4b; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.22em; }
.brand-sub b { color: var(--gold); }
.site-header ul { list-style: none; margin: 0; padding: 0; }
.nav-wide ul { display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; justify-content: flex-end; }
.site-header nav a { color: #f3eee3; text-decoration: none; font-size: 0.92rem; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.nav-narrow { display: none; }
.nav-narrow summary { cursor: pointer; list-style: none; border: 1px solid var(--gold); color: var(--gold); padding: 0.35rem 0.8rem; border-radius: var(--radius); font-size: 0.92rem; }
.nav-narrow summary::-webkit-details-marker { display: none; }
.nav-narrow[open] nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 3px solid var(--gold); padding: 0.5rem 1.25rem 1rem; z-index: 5; }
.nav-narrow li a { display: block; padding: 0.6rem 0; }
@media (max-width: 960px) {
  .nav-wide { display: none; }
  .nav-narrow { display: block; }
  .site-header { position: relative; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 85% 10%, rgba(163, 18, 26, 0.45), transparent 55%), var(--ink); color: #fff; }
.hero::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: 84%; border-radius: 50%; border-top: 3px solid var(--gold); opacity: 0.85; pointer-events: none; }
.hero .block { position: relative; z-index: 1; }
.hero-inner, .hero .block { max-width: var(--wrap); margin: 0 auto; }
.hero .block { padding: clamp(3rem, 8vw, 6.5rem) 1.25rem clamp(4.5rem, 10vw, 8rem); }
.hero h1 { color: #fff; max-width: 18ch; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: #ece6d8; max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* Buttons */
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; padding: 0.7rem 1.25rem; border-radius: var(--radius); font-weight: 600; border: 2px solid var(--red); }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-mail { background: var(--card); color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.btn-mail::before { content: "✉"; margin-right: 0.5rem; color: var(--red); }
.btn-mail:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Content blocks */
.content { padding-top: 2.75rem; padding-bottom: 3.5rem; }
.block { margin: 0 0 3.25rem; }
.content > h1:first-child, .block-intro h1 { border-bottom: 3px solid var(--gold); padding-bottom: 0.6rem; display: inline-block; }
.intro-text p { font-size: 1.14rem; }
.more a { font-weight: 600; text-decoration: none; }
.more a:hover { text-decoration: underline; }
.list { padding-left: 1.25rem; max-width: 70ch; }
.list li { margin-bottom: 0.35rem; }
.list li::marker { color: var(--red); }
.list-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; max-width: none; }
.list-chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.9rem; margin: 0; font-size: 0.95rem; }
.list-areas, .list-steps { list-style: none; padding: 0; counter-reset: n; display: grid; gap: 0.6rem; max-width: 46rem; }
.list-areas li, .list-steps li { counter-increment: n; display: flex; gap: 1rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--line); margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.list-areas li::before, .list-steps li::before { content: counter(n, decimal-leading-zero); color: var(--red); font: 600 0.9rem var(--sans); letter-spacing: 0.05em; min-width: 1.8rem; }
.list-steps li { font-family: var(--sans); font-size: 1rem; }
.outro { color: var(--muted); }

.cards { list-style: none; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 1.3rem 1.3rem 1rem; border-radius: var(--radius); }
.page-index .block-cards .card:nth-child(even), .page-about .block-cards .card:nth-child(even) { border-top-color: var(--gold); }
.card p { margin-bottom: 0.6rem; }
.card-foot { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.6rem; }

.statements { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.statement { background: var(--ink); color: #f3eee3; padding: 1.75rem; border-radius: var(--radius); border-left: 5px solid var(--gold); }
.statement h2 { color: var(--gold); font-size: 1.1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em; }
.statement p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; margin: 0; }

.areas { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.area details { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 0.2rem 1.3rem; }
.area details[open] { padding-bottom: 1rem; }
.area summary { cursor: pointer; padding: 0.85rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.area summary::-webkit-details-marker { display: none; }
.area summary::after { content: "+"; font-size: 1.5rem; color: var(--red); line-height: 1; }
.area details[open] summary::after { content: "−"; }
.area summary h3 { margin: 0; }

.facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; max-width: 40rem; }
.facts dl { margin: 0; display: grid; gap: 0.4rem; }
.facts dl div, .contact-card div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.facts dt, .contact-card dt { font-weight: 600; color: var(--muted); font-size: 0.92rem; }
.facts dd, .contact-card dd { margin: 0; }
.status-badge { display: inline-block; background: var(--paper-deep); border: 1px solid var(--gold); color: #5a4300; font-size: 0.82rem; padding: 0.15rem 0.6rem; border-radius: 999px; margin-bottom: 0.8rem; }
.note { font-size: 0.92rem; color: var(--muted); margin: 0.8rem 0 0; }
.contact-card { max-width: 36rem; margin: 0; }

.empty { background: repeating-linear-gradient(-45deg, var(--paper), var(--paper) 10px, var(--paper-deep) 10px, var(--paper-deep) 20px); border: 1px dashed var(--line); padding: 1.2rem 1.4rem; border-radius: var(--radius); color: var(--ink-soft); max-width: 46rem; }
.notice { border-left: 4px solid var(--gold); background: var(--card); padding: 0.9rem 1.2rem; max-width: 46rem; }
.principle { margin: 0; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle p { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); color: var(--red-deep); max-width: 40ch; margin: 0; }
.platforms { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.platforms li { border-top: 2px solid var(--ink); padding-top: 0.8rem; }
.status-muted { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.enquiry { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d2c3; border-top: 3px solid var(--gold); padding: 2.5rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--gold-soft); }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-name { font-family: var(--serif); font-weight: 700; color: #fff; letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.footer-tag { color: var(--gold-soft); font-style: italic; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer p { margin-bottom: 0.4rem; }

@media (max-width: 520px) {
  .hero::before { top: 95%; width: 260%; left: -80%; }
  body { font-size: 1rem; }
  .facts dl div, .contact-card div { grid-template-columns: 1fr; gap: 0; }
  .brand-name { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header nav, .preview-banner, .skip-link, .hero::before { display: none; } .hero, .site-header, .site-footer { background: none; color: #000; } }
