/* =======================================
   Dreingeld Institute – Global Styles
   ======================================= */

/* ---------- Variables ---------- */

:root {
  --bg-main: #050608;
  --bg-elevated: #0b0b0f;
  --bg-card: radial-gradient(circle at top left, #141017, #050608);
  --border-soft: #2a2620;
  --border-gold-soft: rgba(212, 163, 64, 0.25);
  --border-gold-strong: #c89b3c;

  --text-main: #f5f1e5;
  --text-soft: #c7c0aa;
  --text-gold: #f7e7c1;
  --text-gold-strong: #f2cf7b;

  --accent-gold: #c89b3c;
  --accent-gold-bright: #e1b756;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 24px 55px rgba(0, 0, 0, 0.8);
}

/* ---------- Reset ---------- */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ---------- Layout ---------- */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

/* =======================================
   Header & Navigation
   ======================================= */

.site-header {
  border-bottom: 1px solid var(--border-soft);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: "Times New Roman", "Georgia", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: #d9c9a1;
}

/* Navigation */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.main-nav a {
  color: #e9dfc5;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover {
  border-color: var(--accent-gold);
  background: rgba(200, 155, 60, 0.08);
}

.main-nav a.active {
  background: var(--accent-gold);
  color: var(--bg-main);
  border-color: var(--accent-gold);
}

/* =======================================
   Typography
   ======================================= */

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.62rem;
  color: #d0c2a0;
  margin-bottom: 0.5rem;
}

.hero-lead {
  max-width: 44rem;
  color: #e1d5bd;
}

h1,
h2,
h3 {
  font-family: "Times New Roman", "Georgia", serif;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

/* Generic text helpers */

.muted {
  color: var(--text-soft);
}

.small {
  font-size: 0.82rem;
}

/* =======================================
   Hero Sections
   ======================================= */

.hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.75rem;
}

.hero.compact {
  padding-top: 1.75rem;
  padding-bottom: 1rem;
}

/* =======================================
   Layout grids & cards
   ======================================= */

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.content-grid.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.path-card,
.content-block {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem 1.6rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.path-card h2,
.content-block h2 {
  color: var(--text-gold);
}

/* Accent list */

.accent-list {
  list-style: none;
  padding-left: 0;
  margin: 0.6rem 0 0.8rem;
}

.accent-list li {
  margin-bottom: 0.25rem;
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.9rem;
}

.accent-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* Info strip (used on overview) */

.info-strip {
  margin-top: 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.info-item h3 {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: #f5e4bd;
}

/* CTA / note panel */

.cta-panel {
  margin-top: 1.8rem;
  padding: 1.6rem 1.5rem;
  border-radius: 1rem;
  border: 1px dashed #4a3f2b;
  background: rgba(18, 14, 8, 0.8);
  font-size: 0.9rem;
}

/* =======================================
   Support / Links Grid (Links page)
   ======================================= */

.support-grid {
  padding: 4rem 0 3.5rem;
  background: radial-gradient(
    circle at top,
    rgba(250, 230, 180, 0.04),
    transparent 55%
  );
}

.support-grid h2 {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.section-intro ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.section-intro li + li {
  margin-top: 0.2rem;
}

/* Cards grid */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Individual card */

.link-card {
  position: relative; /* to anchor the side-pill */
  overflow: visible;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  background: rgba(5, 5, 5, 0.9);
  border-radius: 0.9rem;
  border: 1px solid var(--border-gold-soft);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--border-gold-strong);
  box-shadow: 0 0 0 1px rgba(212, 163, 64, 0.35), var(--shadow-strong);
  transform: translateY(-2px);
  background: rgba(12, 12, 12, 0.98);
}

/* Circular icon – looks like a stamped coin */

.link-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 64, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(
    circle at 30% 20%,
    #fce8b2 0,
    #c99a3e 40%,
    #3b2b11 100%
  );
  color: #111;
}

/* Text inside cards */

.link-text-main {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
}

.link-text-sub {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.83rem;
  color: var(--text-soft);
}

/* Floating side-pills – more coin-like and non-optional in tone */

.side-pill {
  position: absolute;
  top: -0.9rem;
  right: 1.2rem;
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 64, 0.9);
  background: radial-gradient(
    circle at 30% 0,
    #fce9b5 0,
    #c99a3e 38%,
    #2b2110 100%
  );
  color: #111008;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.75);
  pointer-events: none; /* whole card remains the hit area */
}

.side-pill--left {
  left: 1.2rem;
  right: auto;
}

.side-pill--right {
  right: 1.2rem;
}

.link-card:hover .side-pill {
  border-color: rgba(250, 214, 114, 0.96);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(250, 214, 114, 0.5);
}

/* =======================================
   Links, Buttons, etc.
   ======================================= */

a {
  color: var(--text-gold-strong);
}

a:hover {
  color: #ffe39d;
}

/* Generic button style – used where needed */

.button {
  display: inline-block;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent-gold);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.08s ease;
}

.button.primary {
  background: var(--accent-gold);
  color: var(--bg-main);
}

.button.outline {
  background: rgba(5, 5, 5, 0.9);
  color: #f5e7c7;
  box-shadow: 0 0 0 1px rgba(200, 155, 60, 0.55);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.button.primary:hover {
  background: var(--accent-gold-bright);
  border-color: var(--accent-gold-bright);
}

.button.outline:hover {
  background: rgba(18, 14, 8, 0.98);
  box-shadow:
    0 0 0 1px rgba(225, 183, 86, 0.85),
    0 10px 20px rgba(0, 0, 0, 0.6);
  border-color: #e1b756;
  cursor: pointer;
}

/* =======================================
   Footer
   ======================================= */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.1rem 1.5rem 2rem;
  font-size: 0.75rem;
  color: #b9ad92;
  text-align: center;
}

/* =======================================
   Responsive
   ======================================= */

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .split-grid,
  .content-grid,
  .info-strip,
  .link-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page {
    padding-inline: 1.1rem;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 1.45rem;
    letter-spacing: 0.09em;
  }

  .brand-subtitle {
    display: none; /* keep header clean on very small screens */
  }

  .main-nav {
    gap: 0.4rem;
  }

  .main-nav a {
    padding-inline: 0.55rem;
  }

  .side-pill {
    top: -0.8rem;
    font-size: 0.6rem;
  }
}