:root {

  --color-aqua: #3fb7d6;
  --color-aqua-deep: #1a7fa0;
  --color-gold: #d4af37;
  --color-gold-bright: #f1d78c;
  --color-ink: #16232b;
  --color-parchment: #f4faf9;


  --bg-image: url("https://images.unsplash.com/photo-1767658598839-11136feb425c?auto=format&fit=crop&w=2400&q=80");
  --bg-overlay: linear-gradient(
    180deg,
    rgba(10, 35, 45, 0.72) 0%,
    rgba(10, 40, 55, 0.55) 45%,
    rgba(6, 26, 34, 0.82) 100%
  );

  /* Fonts (loaded via Google Fonts CDN in index.html) */
  --font-display: "Cinzel", serif;
  --font-body: "EB Garamond", "Cormorant Garamond", serif;

  /* Card surface — the "illuminated decree" glass/parchment panel */
  --card-bg: rgba(244, 250, 249, 0.94);
  --card-border: var(--color-gold);

  /* Spacing & shape */
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --radius: 0.5rem;
  --max-width: 46rem;

  /* Motion */
  --transition-fast: 150ms ease;
}

/* ---- base / reset ---- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-ink);
  background-image: var(--bg-overlay), var(--bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: var(--color-aqua-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* ---- page frame ---- */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: var(--space-lg) var(--space-md);
  gap: var(--space-xl);
}

/* ---- hero ---- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  color: var(--color-parchment);
  max-width: var(--max-width);
}

.hero__crest {
  width: 10rem;
  height: 10rem;
  object-fit: contain;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 0 0.75rem rgba(63, 183, 214, 0.6));
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.03em;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: var(--color-gold-bright);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ---- decorative gold divider ---- */

.divider {
  width: 100%;
  max-width: 20rem;
  height: 1px;
  margin: var(--space-md) auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold) 20%,
    var(--color-gold-bright) 50%,
    var(--color-gold) 80%,
    transparent
  );
}

/* ---- the creed (illuminated decree card) ---- */

.creed {
  width: 100%;
  max-width: var(--max-width);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 1.5rem 3rem rgba(6, 26, 34, 0.45);
  padding: var(--space-lg) var(--space-md);
}

.creed__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  color: var(--color-aqua-deep);
  margin: 0 0 var(--space-md);
  letter-spacing: 0.04em;
}

.creed__list {
  list-style: none;
  counter-reset: tenet;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tenet {
  counter-increment: tenet;
  padding-left: 3rem;
  position: relative;
}

.tenet::before {
  content: counter(tenet);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-parchment);
  background: linear-gradient(160deg, var(--color-aqua), var(--color-aqua-deep));
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  font-size: 1rem;
}

.tenet__text {
  margin: 0;
  font-size: 1.15rem;
}

.tenet__ref {
  display: block;
  margin-top: 0.35rem;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-gold);
  opacity: 0.85;
}

/* ---- footer ---- */

.footer {
  max-width: var(--max-width);
  text-align: center;
  color: var(--color-parchment);
  font-size: 0.85rem;
  opacity: 0.85;
  padding-bottom: var(--space-md);
}

.footer a {
  color: var(--color-gold-bright);
}

.footer__feedback {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.footer__feedback a {
  text-decoration-color: var(--color-gold);
}


@media (max-width: 30rem) {
  .creed {
    padding: var(--space-md) var(--space-sm);
  }

  .tenet {
    padding-left: 2.5rem;
  }

  .tenet::before {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.85rem;
  }
}
