/* ==========================================================================
   Shaun Singh — Personal Site Stylesheet
   Loxta palette + #1A4D7A navy accent
   Biographical reference style — sober, factual, KG-optimised
   ========================================================================== */

:root {
  /* Loxta palette */
  --c-maroon:   #4A1525;
  --c-claret:   #612233;
  --c-rose:     #9B3A4A;
  --c-gold:     #E2AC4A;
  --c-copper:   #A0623B;
  --c-cream:    #F5E5D5;
  --c-silk:     #FFFCF5;
  --c-silk-text:#FFFEF9;
  --c-charcoal: #3B2C2C;

  /* Navy accent — used sparingly for personality */
  --c-navy:     #1A4D7A;
  --c-navy-dk:  #143E62;

  /* Functional */
  --c-bg: var(--c-silk);
  --c-text: var(--c-charcoal);
  --c-text-muted: rgba(59, 44, 44, 0.72);
  --c-border: rgba(74, 21, 37, 0.14);
  --c-border-strong: rgba(74, 21, 37, 0.32);

  /* Type */
  --ff: 'Jost', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --container: 1140px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);

  --shadow-sm: 0 1px 2px rgba(74, 21, 37, 0.06), 0 4px 12px rgba(74, 21, 37, 0.05);
  --shadow-md: 0 4px 14px rgba(74, 21, 37, 0.10), 0 18px 40px rgba(74, 21, 37, 0.08);
  --radius: 4px;
  --radius-lg: 10px;

  --transition: 220ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-navy); text-decoration: none; transition: color var(--transition); border-bottom: 1px solid transparent; }
a:hover { color: var(--c-navy-dk); border-bottom-color: var(--c-navy-dk); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2rem 0; }

/* Type */
h1, h2, h3, h4 {
  font-family: var(--ff);
  color: var(--c-maroon);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.3rem); }
h4 { font-size: 1rem; font-weight: 500; }
p  { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; color: var(--c-text); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin-bottom: 0.85rem;
}
.eyebrow--gold { color: var(--c-gold); }
.eyebrow--navy { color: var(--c-navy); }
strong { font-weight: 600; color: var(--c-charcoal); }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--cream { background: var(--c-cream); }
.section--maroon { background: var(--c-maroon); color: var(--c-silk-text); }
.section--maroon h1, .section--maroon h2, .section--maroon h3, .section--maroon h4 { color: var(--c-silk-text); }
.section-head { max-width: 720px; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-silk);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--c-maroon);
  border-bottom: none !important;
}
.brand-link:hover { color: var(--c-claret); }
.brand-link .accent { color: var(--c-gold); margin: 0 0.15em; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-charcoal);
  border-radius: var(--radius);
  border-bottom: none !important;
  position: relative;
}
.nav a:not(.btn):hover { color: var(--c-maroon); background: rgba(74, 21, 37, 0.04); }
.nav a:not(.btn).is-current { color: var(--c-maroon); }
.nav a:not(.btn).is-current::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.95rem;
  right: 0.95rem;
  height: 2px;
  background: var(--c-gold);
}
.nav .btn { margin-left: 0.5rem; padding: 0.55rem 1.1rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  color: var(--c-maroon);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-silk);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 0.75rem var(--gutter) 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.85rem 0.5rem; font-size: 1rem; }
  .nav a:not(.btn).is-current::after { left: 0.5rem; right: auto; width: 18px; }
  .nav .btn { margin: 0.6rem 0 0; align-self: flex-start; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--c-maroon);
  color: var(--c-silk-text) !important;
  border-bottom: none !important;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { background: var(--c-gold); color: var(--c-maroon) !important; transform: translateY(-1px); }
.btn--gold { background: var(--c-gold); color: var(--c-maroon) !important; }
.btn--gold:hover { background: #cf9c3d; color: var(--c-maroon) !important; }
.btn--navy { background: var(--c-navy); color: var(--c-silk-text) !important; }
.btn--navy:hover { background: var(--c-navy-dk); color: var(--c-silk-text) !important; }
.btn--ghost {
  background: transparent;
  color: var(--c-maroon) !important;
  border-color: var(--c-border-strong);
}
.btn--ghost:hover { background: var(--c-maroon); color: var(--c-silk-text) !important; border-color: var(--c-maroon); }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- Bio header (text-led, photo lower) ----- */
.bio-header {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.bio-header h1 { margin-bottom: 0.4rem; }
.bio-header .role {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.bio-header .role .sep { color: var(--c-gold); margin: 0 0.5rem; }

/* Bio body — wikipedia-ish two-col */
.bio-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 880px) { .bio-body { grid-template-columns: 1fr; } }

.bio-prose p:first-child::first-letter {
  /* subtle drop cap */
  /* float: left;
  font-size: 3.4em;
  line-height: 0.85;
  margin: 0.18em 0.12em -0.05em -0.02em;
  color: var(--c-maroon); */
}
.bio-prose p { margin-bottom: 1.1em; }

/* Side card (infobox) */
.infobox {
  background: var(--c-silk);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.92rem;
  position: sticky;
  top: 100px;
}
.infobox-photo {
  aspect-ratio: 1 / 1;
  background: var(--c-cream);
  overflow: hidden;
}
.infobox-photo img { width: 100%; height: 100%; object-fit: cover; }
.infobox-name {
  padding: 1.25rem 1.25rem 0.3rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-maroon);
  border-bottom: 2px solid var(--c-gold);
  margin-bottom: 0;
  padding-bottom: 0.85rem;
}
.infobox-role {
  padding: 0.7rem 1.25rem 0.9rem;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--c-border);
}
.infobox dl { margin: 0; padding: 0.5rem 0; }
.infobox dt {
  padding: 0.6rem 1.25rem 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-copper);
}
.infobox dd {
  padding: 0 1.25rem 0.6rem;
  margin: 0;
  color: var(--c-charcoal);
  line-height: 1.45;
}
.infobox dd a { color: var(--c-navy); }
.infobox-foot {
  padding: 1rem 1.25rem;
  background: var(--c-cream);
  border-top: 1px solid var(--c-border);
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

/* Page header for non-home pages */
.page-header {
  background: var(--c-maroon);
  color: var(--c-silk-text);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 12%, rgba(226, 172, 74, 0.12), transparent 45%),
              radial-gradient(circle at 14% 86%, rgba(26, 77, 122, 0.16), transparent 50%);
  pointer-events: none;
}
.page-header h1 { color: var(--c-silk-text); margin-bottom: 0.4rem; }
.page-header .lead { color: rgba(255, 254, 249, 0.85); max-width: 680px; }
.page-header .eyebrow { color: var(--c-gold); }
.page-header .container { position: relative; z-index: 1; }

.breadcrumb {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  color: rgba(255, 254, 249, 0.65);
}
.breadcrumb a { color: var(--c-gold); border-bottom-color: transparent; }
.breadcrumb a:hover { color: var(--c-silk-text); border-bottom-color: var(--c-silk-text); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--c-border);
  margin-left: 0.5rem;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 7px);
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-gold);
  border: 2px solid var(--c-silk);
  box-shadow: 0 0 0 2px var(--c-gold);
}
.timeline-item.is-current::before { background: var(--c-navy); box-shadow: 0 0 0 2px var(--c-navy); }
.timeline-year {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-navy);
  margin-bottom: 0.3rem;
}
.timeline-item h3 { margin: 0 0 0.4rem; }
.timeline-item h3 .role { color: var(--c-text-muted); font-weight: 400; font-size: 0.92em; }
.timeline-item p { margin: 0 0 0.6em; }
.timeline-item p:last-child { margin-bottom: 0; }

/* Grids */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 880px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

/* Brand cards */
.brand-card {
  background: var(--c-silk);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.brand-card:hover { transform: translateY(-2px); border-color: var(--c-gold); box-shadow: var(--shadow-md); }
.brand-card-meta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-copper);
}
.brand-card h3 { margin: 0 0 0.3rem; }
.brand-card p { font-size: 0.95rem; color: var(--c-text); margin: 0; flex: 1; }
.brand-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--c-navy);
  font-weight: 500;
  margin-top: 0.5rem;
  border-bottom: none !important;
}
.brand-card-link:hover { color: var(--c-navy-dk); }

/* Press / coverage list */
.press-group { margin-bottom: 2.5rem; }
.press-group:last-child { margin-bottom: 0; }
.press-group h2 { margin-bottom: 0.4rem; }
.press-group .group-meta {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}
.press-list { list-style: none; padding: 0; margin: 0; }
.press-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.press-item:last-child { border-bottom: none; }
.press-source {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-navy);
}
.press-item h3 { font-size: 1rem; margin: 0 0 0.25rem; line-height: 1.4; font-weight: 500; }
.press-item h3 a { color: var(--c-maroon); border-bottom-color: rgba(74, 21, 37, 0.25); }
.press-item h3 a:hover { color: var(--c-navy); border-bottom-color: var(--c-navy); }
.press-item p { margin: 0; font-size: 0.9rem; color: var(--c-text-muted); }
@media (max-width: 600px) {
  .press-item { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--c-silk);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-card .label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin-bottom: 0.6rem;
}
.contact-card .value {
  font-size: 1.15rem;
  color: var(--c-maroon);
  font-weight: 500;
  margin-bottom: 0.4rem;
  word-break: break-word;
}
.contact-card .value a { color: inherit; border-bottom-color: rgba(74, 21, 37, 0.25); }
.contact-card .value a:hover { color: var(--c-navy); border-bottom-color: var(--c-navy); }
.contact-card p { margin: 0; color: var(--c-text-muted); font-size: 0.92rem; }

/* Credentials */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 254, 249, 0.18);
  border-bottom: 1px solid rgba(255, 254, 249, 0.18);
}
.creds-grid > div {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(255, 254, 249, 0.18);
}
.creds-grid > div:last-child { border-right: none; }
.creds-grid .label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.4rem;
  display: block;
}
.creds-grid .value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c-silk-text);
  line-height: 1.35;
}
.creds-grid .sub {
  font-size: 0.85rem;
  color: rgba(255, 254, 249, 0.72);
  margin-top: 0.3rem;
}
@media (max-width: 720px) {
  .creds-grid { grid-template-columns: 1fr; }
  .creds-grid > div { border-right: none; border-bottom: 1px solid rgba(255, 254, 249, 0.18); }
  .creds-grid > div:last-child { border-bottom: none; }
}

/* CTA panel — used on contact and home */
.cta-panel {
  background: var(--c-cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
}
.cta-panel h2 { margin-bottom: 0.5rem; }
.cta-panel p { color: var(--c-text-muted); margin-bottom: 1.5rem; }
.cta-panel .actions { display: inline-flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Footer */
.site-footer {
  background: var(--c-maroon);
  color: rgba(255, 254, 249, 0.78);
  padding-block: clamp(2.75rem, 5vw, 3.5rem) 1.5rem;
  font-size: 0.95rem;
  border-top: 3px solid var(--c-gold);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 2rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--c-gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a {
  color: rgba(255, 254, 249, 0.78);
  border-bottom: none !important;
}
.site-footer a:hover { color: var(--c-gold); }
.footer-brand { max-width: 320px; }
.footer-brand .name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--c-silk-text);
  margin-bottom: 0.25rem;
}
.footer-brand .tag {
  font-size: 0.85rem;
  color: rgba(255, 254, 249, 0.65);
  margin-bottom: 1rem;
}
.footer-brand p { color: rgba(255, 254, 249, 0.62); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 254, 249, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 254, 249, 0.55);
}
.footer-bottom a { color: rgba(255, 254, 249, 0.7); }

/* Focus ring */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { color: #000; background: #fff; }
  .infobox { position: static; }
}
