/* KMA Theme: ported from the original static site (Docs/OriginalSite/index.html).
   Every custom class is prefixed "k-" so it never collides with Bootstrap, which the
   theme also loads for Oqtane's admin screens. */
:root {
  --k-ink: #0e0b0a;
  --k-curtain: #1a1211;
  --k-panel: #201716;
  --k-line: #3a2a27;
  --k-cream: #f4ead9;
  --k-muted: #b9a998;
  --k-gold: #f2b53a;
  --k-red: #c8372d;
}
html { scroll-behavior: smooth; }
body { background: var(--k-ink); }
.kma {
  background: var(--k-ink); color: var(--k-cream);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: clip;
  --bs-body-bg: var(--k-ink); --bs-body-color: var(--k-cream); --bs-border-color: var(--k-line);
  --bs-link-color-rgb: 242, 181, 58; --bs-link-hover-color-rgb: 244, 234, 217;
}
.kma a { color: inherit; }
.k-wrap { width: min(1080px, 100% - 3rem); margin-inline: auto; }

/* Nav */
/* No backdrop-filter here: it makes the nav the containing block for position:fixed children,
   which squeezed Oqtane's Control Panel (an off-canvas panel inside the nav) off the right edge. */
.k-nav { position: sticky; top: 0; z-index: 1020; background: rgba(14, 11, 10, .97); border-bottom: 1px solid var(--k-line); }
.k-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; flex-wrap: wrap; }
.k-mark { font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; letter-spacing: .08em; text-decoration: none; display: flex; align-items: center; gap: .7rem; }
.k-mark img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--k-gold); }
.k-mark b { color: var(--k-gold); font-weight: 400; }
.k-menu { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; margin: 0; padding: 0; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.k-menu a { text-decoration: none; color: var(--k-muted) !important; transition: color .2s; }
.k-menu a:hover, .k-menu a:focus-visible, .k-menu a.active { color: var(--k-gold) !important; }
.k-tools { display: flex; align-items: center; gap: .5rem; }
.k-tools .btn { border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.k-tools .btn-primary { background: transparent; border: 1.5px solid var(--k-gold); color: var(--k-gold); }
.k-tools .btn-primary:hover, .k-tools .btn-primary:focus-visible { background: var(--k-gold); color: var(--k-ink); }
.k-tools .btn-outline-secondary { border-color: var(--k-line); color: var(--k-muted); }

/* Hero */
.k-hero { position: relative; overflow: hidden; min-height: min(78vh, 720px); display: flex; align-items: center; padding: clamp(4rem, 9vw, 6rem) 0; background: var(--k-ink) url("../../images/keith-hero.jpg") left center / cover no-repeat; }
.k-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,11,10,0) 18%, rgba(14,11,10,.72) 48%, rgba(14,11,10,.94) 78%), linear-gradient(180deg, rgba(14,11,10,.25), rgba(14,11,10,0) 30%, rgba(14,11,10,.9)); }
.k-hero .k-wrap { position: relative; display: flex; justify-content: flex-end; }
.k-hero-copy { width: min(560px, 100%); }
.k-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--k-gold); margin: 0; }
.k-title { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: clamp(3.6rem, 9vw, 7.2rem); line-height: .88; letter-spacing: .02em; margin: 1.2rem 0 1.4rem; text-shadow: 0 6px 40px rgba(242, 181, 58, .25); color: var(--k-cream); }
.k-title em { font-style: normal; color: var(--k-gold); display: block; }
.k-tag { font-family: "DM Serif Display", serif; font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.7rem); max-width: 30ch; margin: 0 0 2.2rem; line-height: 1.35; }
.k-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.k-center .k-cta { justify-content: center; }
.k-btn { display: inline-block; padding: .95rem 1.7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1.5px solid var(--k-gold); color: var(--k-cream) !important; transition: transform .15s, background .2s, color .2s; }
.k-btn.k-solid { background: var(--k-gold); color: var(--k-ink) !important; }
.k-btn:hover, .k-btn:focus-visible { transform: translateY(-2px); background: var(--k-cream); border-color: var(--k-cream); color: var(--k-ink) !important; }

/* Credits strip */
.k-strip { border-block: 1px solid var(--k-line); background: var(--k-curtain); }
.k-strip .k-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; padding: 1.2rem 0; }
.k-strip span { font-family: "Bebas Neue", sans-serif; font-size: 1.25rem; letter-spacing: .14em; color: var(--k-muted); }
.k-strip b { color: var(--k-gold); font-weight: 400; }

/* Page content */
.k-main { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.k-main:has(> .k-wrap:empty) { padding: 0; }
.k-section + .k-section { margin-top: clamp(3rem, 8vw, 5.5rem); }
.k-h2, .kma .k-section h2 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: .03em; margin: 0 0 1.6rem; color: var(--k-cream); }
.k-h2 small, .kma .k-section h2 small { display: block; font-family: "Inter", sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--k-red); margin-bottom: .7rem; }
.k-about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.k-about p { color: #e6dac8; }
.k-lede { font-family: "DM Serif Display", serif; font-size: 1.45rem; line-height: 1.4; color: var(--k-cream) !important; }
.k-portrait img { display: block; width: 100%; height: auto; border: 1px solid var(--k-line); box-shadow: 14px 14px 0 var(--k-red); }
.k-facts { background: var(--k-panel); border: 1px solid var(--k-line); border-top: 4px solid var(--k-gold); padding: 1.8rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.k-facts h3 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 1.5rem; letter-spacing: .1em; color: var(--k-gold); margin-bottom: .9rem; }
.k-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem 2rem; margin: 0; }
.k-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--k-muted); }
.k-facts dd { font-size: .98rem; margin: 0; }
.k-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.k-card { background: var(--k-curtain); border: 1px solid var(--k-line); padding: 1.8rem 1.6rem; transition: border-color .2s, transform .2s; }
.k-card:hover { border-color: var(--k-gold); transform: translateY(-4px); }
.k-card .k-num { font-family: "Bebas Neue", sans-serif; font-size: 1.1rem; letter-spacing: .2em; color: var(--k-red); }
.k-card h3 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 1.5rem; margin: .5rem 0 .6rem; }
.k-card p { font-size: .95rem; color: var(--k-muted); margin: 0; }
.k-show { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.k-badge { width: clamp(150px, 24vw, 230px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 3px solid var(--k-gold); outline: 1px solid var(--k-gold); outline-offset: 8px; font-family: "Bebas Neue", sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); line-height: .95; color: var(--k-gold); transform: rotate(-8deg); }
.k-badge small { display: block; font-size: .32em; letter-spacing: .3em; color: var(--k-cream); margin-top: .4em; }
.k-show p { color: #e6dac8; max-width: 58ch; }
.k-quote { text-align: center; max-width: 820px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--k-line); }
.k-quote p { font-family: "DM Serif Display", serif; font-style: italic; font-size: clamp(1.6rem, 4.2vw, 2.7rem); line-height: 1.25; margin: 0; }
.k-quote p::before { content: "\201C"; color: var(--k-gold); }
.k-quote p::after { content: "\201D"; color: var(--k-gold); }
.k-quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--k-muted); }
.k-rating { margin-top: 2.6rem; text-align: center; font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; letter-spacing: .14em; color: var(--k-gold); }
.k-rating span { display: block; font-family: "Inter", sans-serif; font-size: .74rem; font-weight: 600; letter-spacing: .2em; color: var(--k-muted); margin-top: .3rem; }
.k-center { text-align: center; }
.k-center p { max-width: 52ch; margin: 0 auto 2.2rem; color: #e6dac8; }

/* Modules (Appearances blog, anything the comedian adds) */
.k-module-head { display: flex; align-items: flex-start; gap: .75rem; }
.k-module .card, .kma .list-group-item { background: var(--k-panel); border-color: var(--k-line); color: var(--k-cream); }
/* Blog module (Appearances) list and posts */
.k-module .row > [class*="col-"] { padding-block: 1rem; }
.k-module .row > [class*="col-"] > a, .k-module .row > [class*="col-"] > a * { font-family: "DM Serif Display", serif; font-weight: 400; color: var(--k-cream) !important; text-decoration: none; }
.k-module .row > [class*="col-"] > a:hover, .k-module .row > [class*="col-"] > a:hover * { color: var(--k-gold) !important; }
.k-module .btn-primary { background: var(--k-gold); border-color: var(--k-gold); color: var(--k-ink); }
.k-module .btn-primary:hover { background: var(--k-cream); border-color: var(--k-cream); color: var(--k-ink); }
.k-module .form-control { background: var(--k-panel); border-color: var(--k-line); color: var(--k-cream); }

/* Rich text editor (Radzen) inherits the cream text colour, so give its toolbar a dark ground */
.kma .rz-html-editor-toolbar { background: var(--k-panel); border-color: var(--k-line); }
.kma .rz-html-editor-toolbar .rz-dropdown { background: var(--k-ink); color: var(--k-cream); border-color: var(--k-line); }
.k-footer { border-top: 1px solid var(--k-line); padding: 1.8rem 0; text-align: center; font-size: .8rem; color: var(--k-muted); letter-spacing: .06em; }
.k-footer a { color: var(--k-gold) !important; text-decoration: none; }

@media (max-width: 760px) {
  .k-about, .k-show { grid-template-columns: 1fr; }
  .k-badge { margin-inline: auto; }
  .k-hero { display: block; min-height: 0; padding: 0 0 3rem; background: var(--k-ink); }
  .k-hero::before { display: none; }
  .k-hero .k-wrap { display: block; }
  .k-hero .k-wrap::before { content: ""; display: block; margin: 0 -1.5rem 2rem; aspect-ratio: 16 / 10; background: url("../../images/keith-hero.jpg") 12% center / cover no-repeat; }
  .k-portrait img { box-shadow: 8px 8px 0 var(--k-red); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .k-btn, .k-card { transition: none; }
}
