/* =========================================================================
   Mini Mundus Sapiens — landing page styles
   ========================================================================= */

:root {
  /* Greens */
  --green-ebony: #45503b;
  --green-reseda: #6c7c59;
  --green-moss: #8a9a5b;
  --green-mindaro: #ccdf92;
  --green-asparagus: #82a762;

  /* Creams */
  --cream-cornsilk: #fefae0;
  --cream-parchment: #fbf1d7;
  --cream-champagne: #f7e7ce;
  --cream-dun: #e5cca8;
  --cream-buff: #d4a373;

  /* Reds / oranges */
  --red-blackbean: #330a05;
  --red-blackred: #550f05;
  --red-barn: #761305;
  --red-brown: #9d3306;
  --red-burnt: #c45306;

  /* Deep blues (sampled to approximate the provided palette) */
  --blue-midnight: #0f1733;
  --blue-navy: #1a2447;
  --blue-indigo: #161a3a;
  --blue-aubergine: #241738;
  --blue-petrol: #142037;

  /* Semantic aliases */
  --color-bg: var(--cream-cornsilk);
  --color-surface: var(--cream-parchment);
  --color-surface-warm: var(--cream-champagne);
  --color-text: var(--green-ebony);
  --color-text-muted: var(--green-reseda);
  --color-border: rgba(138, 154, 91, 0.45); /* moss @ 45% */
  --color-accent: var(--green-asparagus);
  --color-accent-soft: var(--green-mindaro);
  --color-accent-warm: var(--red-burnt);
  --color-accent-deep: var(--blue-indigo);

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --radius-card: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 30px 60px -25px rgba(69, 80, 59, 0.35),
    0 8px 20px -10px rgba(69, 80, 59, 0.18);

  --transition-base: 200ms ease;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(
      circle at 18% 22%,
      rgba(204, 223, 146, 0.35) 0,
      transparent 38%
    ),
    radial-gradient(
      circle at 82% 78%,
      rgba(229, 204, 168, 0.45) 0,
      transparent 42%
    ),
    radial-gradient(rgba(138, 154, 91, 0.18) 1px, transparent 1.4px);
  background-size: auto, auto, 26px 26px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin: 0;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */

.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(20px, 4vw, 48px);
  gap: clamp(24px, 4vw, 48px);
}

.card {
  align-self: center;
  justify-self: center;
  width: min(640px, 100%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(204, 223, 146, 0.2) 0%,
    rgba(255, 255, 255, 0) 35%
  );
}

.card__inner {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.2vw, 22px);
}

/* -------------------------------------------------------------------------
   Brand mark
   ------------------------------------------------------------------------- */

.brand-mark {
  width: clamp(64px, 10vw, 88px);
  height: clamp(64px, 10vw, 88px);
  display: grid;
  place-items: center;
  background: var(--color-surface-warm);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--color-bg);
}

.brand-mark .owl {
  width: 70%;
  height: 70%;
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-top: 4px;
}

.wordmark {
  font-size: clamp(2.1rem, 6.4vw, 3.6rem);
  line-height: 1.05;
  color: var(--color-text);
  font-weight: 600;
  font-style: italic;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.wordmark__line {
  display: block;
}

.wordmark__line--accent {
  color: var(--green-reseda);
  font-weight: 500;
}

.tagline {
  max-width: 38ch;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   Divider
   ------------------------------------------------------------------------- */

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(320px, 80%);
  margin: 6px 0 2px;
}

.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border),
    transparent
  );
}

.divider svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.85;
}

/* -------------------------------------------------------------------------
   Notice / progress
   ------------------------------------------------------------------------- */

.notice {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.notice__title {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

.notice__body {
  max-width: 46ch;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.progress {
  width: min(320px, 100%);
  height: 8px;
  background: var(--color-surface-warm);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--color-border);
}

.progress__bar {
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--green-mindaro) 0%,
    var(--green-asparagus) 50%,
    var(--green-ebony) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.6s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
    transform: translateX(-10%);
  }
  50% {
    background-position: 0 0;
    transform: translateX(0);
  }
  100% {
    background-position: -200% 0;
    transform: translateX(10%);
  }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
}

/* -------------------------------------------------------------------------
   Accessibility & print
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .progress__bar {
    animation: none;
    background: var(--color-accent);
  }
}

@media print {
  body {
    background: #fff;
  }

  .card {
    box-shadow: none;
    border-color: #ccc;
  }

  .progress {
    display: none;
  }
}
