/* ==========================================================================
   SISIDLAN — styles
   Mobile-first. Hero uses images/banner*.jpg; card imagery is still
   placeholder CSS — swap the variables below for real files, e.g.
   --reflection-image-1: url("images/reflection-1.jpg") center / cover;
   ========================================================================== */

:root {
  /* Palette */
  --c-bg: #070914;
  --c-bg-alt: #0b0f26;
  --c-navy: #121a3d;
  --c-purple: #4a2a85;
  --c-purple-soft: #7b56c2;
  --c-gold: #d9b56a;
  --c-gold-light: #f0d79c;
  --c-text: #ece6d8;
  --c-muted: #b7b2c9;
  --c-line: rgba(217, 181, 106, 0.22);

  /* Type */
  --f-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --nav-h: 3.75rem;
  --radius: 14px;
  --container: 68rem;

  /* ---- Placeholder imagery (replace with url(...) when ready) ---- */
  --reflection-image-1:
    radial-gradient(circle at 50% 60%, rgba(217, 181, 106, 0.35), transparent 35%),
    radial-gradient(ellipse at 30% 30%, rgba(123, 86, 194, 0.6), transparent 60%),
    linear-gradient(160deg, #1a1440, #070914);
  --reflection-image-2:
    radial-gradient(ellipse at 70% 40%, rgba(123, 86, 194, 0.55), transparent 60%),
    radial-gradient(circle at 25% 75%, rgba(217, 181, 106, 0.25), transparent 40%),
    linear-gradient(200deg, #121a3d, #070914);
  --reflection-image-3:
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(217, 181, 106, 0.3), transparent 70%),
    radial-gradient(ellipse at 50% 20%, rgba(74, 42, 133, 0.7), transparent 65%),
    linear-gradient(180deg, #0b0f26, #070914);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--f-serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--c-gold-light); }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--c-gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--c-gold);
  color: var(--c-bg);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---- Nav ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--nav-h);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--c-gold);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo { width: 2rem; height: 2rem; }
.nav__wordmark {
  display: none; /* shown from tablet up to save space */
  font-family: var(--f-serif);
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  color: var(--c-text);
}

.nav__links {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 0.5rem 0.45rem;
  color: var(--c-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { color: var(--c-gold-light); }
.nav__links a[aria-current="true"] { text-decoration: underline; text-underline-offset: 0.4em; text-decoration-thickness: 1px; }

/* ---- Hero / banner ------------------------------------------------------- */
.hero {
  text-align: center;
  padding-bottom: 3.5rem;
}

/* Full-width banner; height follows the image so the wordmark never crops */
.hero__banner {
  position: relative;
  display: block;
}
.hero__banner img {
  display: block;
  width: 100%;
  height: auto;
}
/* Soft fade from the banner into the page background */
.hero__banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, var(--c-bg));
  pointer-events: none;
}

/* Wrapper so the tagline can be sized/positioned relative to the banner width */
.hero__media {
  position: relative;
  container-type: inline-size;
}

/* Sits in the empty gap between the two thin lines below the wordmark
   (gap spans roughly x 30%–70%, centred at y ≈ 56.5% of the banner) */
.hero__tagline {
  position: absolute;
  z-index: 1;
  top: 56.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-serif);
  font-size: 1.35cqw;
  letter-spacing: 0.38em;
  text-indent: 0.38em; /* balances the trailing letter-spacing */
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: #e9d8c0;
  text-shadow: 0 0 0.6em rgba(7, 9, 20, 0.6), 0 1px 2px rgba(7, 9, 20, 0.5);
  pointer-events: none;
}

.hero__tagline-mobile { display: none; }

@media (max-width: 640px) {
  .hero__tagline { display: none; }
  .hero__tagline-mobile {
    display: block;
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--c-gold);
  }
  /* Sit snugly under the gold tagline as its subline */
  .hero__subtext { margin-top: -0.6rem; }
}

.hero__inner { display: grid; justify-items: center; gap: 1.1rem; padding-top: 1.5rem; }

.hero__subtext {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #cbb994; /* muted warm beige-gold, ~10:1 on --c-bg */
}

.hero__bio {
  max-width: 34rem;
  color: var(--c-muted);
  font-size: 0.98rem;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn--ghost {
  margin-top: 0.75rem;
  color: var(--c-gold-light);
  border: 1px solid var(--c-gold);
}
.btn--ghost:hover { background: rgba(217, 181, 106, 0.12); }

.btn--gold {
  background: linear-gradient(135deg, var(--c-gold-light), var(--c-gold));
  color: #1a1206;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(217, 181, 106, 0.2);
}
.btn--gold:hover { box-shadow: 0 8px 32px rgba(217, 181, 106, 0.35); transform: translateY(-1px); }

/* ---- Sections ------------------------------------------------------------ */
.section { padding-block: 4.5rem; }

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--c-gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(2rem, 7vw, 3rem);
  margin-bottom: 2rem;
}
.section__title em { color: var(--c-gold-light); }

/* About */
.about {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(74, 42, 133, 0.25), transparent 70%),
    var(--c-bg);
}

.definition {
  max-width: 42rem;
  padding: 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: rgba(18, 26, 61, 0.45);
}
.definition__term {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--f-serif);
  font-size: 1.6rem;
  color: var(--c-gold-light);
}
.definition__pos { font-family: var(--f-sans); font-size: 0.8rem; font-style: italic; color: var(--c-muted); }
.definition__text { margin-top: 0.5rem; font-size: 1.1rem; }
.definition__note { margin-top: 0.9rem; color: var(--c-muted); }

.questions__title {
  margin: 3.5rem 0 1.5rem;
  font-size: 1.5rem;
  color: var(--c-muted);
  font-style: italic;
}

.questions {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.question {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.5rem 1.5rem 3.25rem;
  border-left: 2px solid var(--c-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(74, 42, 133, 0.28), rgba(18, 26, 61, 0.15));
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 4.5vw, 1.6rem);
  font-style: italic;
  line-height: 1.35;
}
.question::before {
  content: "\201C";
  position: absolute;
  left: 0.9rem;
  top: 0.6rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--c-gold);
  opacity: 0.8;
}

/* Reflections */
.reflections { background: var(--c-bg-alt); }

.cards {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-navy);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(217, 181, 106, 0.5); transform: translateY(-2px); }

.card__media { aspect-ratio: 16 / 9; }
.reflection-image-1 { background: var(--reflection-image-1); }
.reflection-image-2 { background: var(--reflection-image-2); }
.reflection-image-3 { background: var(--reflection-image-3); }

.card__body { display: grid; gap: 0.5rem; padding: 1.25rem 1.25rem 1.5rem; }
.card__title { font-size: 1.55rem; }
.card__meta { color: var(--c-muted); font-size: 0.8rem; letter-spacing: 0.04em; }
.card__excerpt { color: var(--c-muted); font-size: 0.95rem; }

.badge {
  justify-self: start;
  padding: 0.2rem 0.6rem;
  border: 1px dashed var(--c-gold);
  border-radius: 999px;
  color: var(--c-gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Follow */
.follow {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(74, 42, 133, 0.4), transparent 70%),
    var(--c-bg);
}
.follow__inner { display: grid; justify-items: center; }
.follow__inner .section__title { margin-bottom: 1rem; }
.follow__text { max-width: 32rem; margin-bottom: 2rem; color: var(--c-muted); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.85rem;
}
.footer__inner { display: grid; gap: 0.35rem; text-align: center; }
.footer__tagline { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--c-gold); }
.footer__link { color: var(--c-gold); text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s ease; }
.footer__link:hover { color: var(--c-gold-light); text-decoration: underline; }

/* ---- Larger screens ------------------------------------------------------ */
@media (min-width: 40em) {
  .nav__links { gap: 0.5rem; }
  .nav__links a { font-size: 0.875rem; padding-inline: 0.65rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 56em) {
  :root { --nav-h: 4.25rem; }
  .nav__wordmark { display: inline; }
  .section { padding-block: 6rem; }
  /* Wide screens: cap banner to the visible viewport, cropping evenly */
  .hero__banner img {
    max-height: calc(100svh - var(--nav-h));
    object-fit: cover;
    object-position: center;
  }
  /* Same image point (56.5% of full height) after the even vertical crop:
     50% of the visible box + (56.5% − 50%) of the uncropped height (100cqw × 714/1920) */
  .hero__tagline { top: calc(50% + 2.417cqw); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-auto-flow: column; justify-content: space-between; text-align: left; }
}

/* ---- Motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
