/*
 * CHIRON'S ARROW — Landing page styles
 * Old World book aesthetic: cream parchment, fine lines, EB Garamond + Lora
 */

:root {
  --cream: #F5F1E8;
  --charcoal: #2B2B2B;
  --gold: #8B7355;
  --gold-deep: #6E5B43;
  --indigo: #4A5F7A;
  --aspect-good: #3D7A6A;
  --aspect-bad: #8B4A4A;
  --line: 1px;
  --line-fine: 0.5px;
  --max-w: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.parchment {
  position: relative;
  max-width: var(--max-w);
  width: 100%;
  padding: 64px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Paper texture overlay — subtle grain */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url('/assets/paper_texture.png');
  background-image: image-set(
    url('/assets/paper_texture.webp') type('image/webp'),
    url('/assets/paper_texture.png') type('image/png')
  );
  background-size: 400px;
  background-repeat: repeat;
  opacity: 0.35;
  mix-blend-mode: multiply;
  filter: grayscale(1);
}

/* ─── Typography ──────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-weight: 700;
  margin: 0;
  color: var(--charcoal);
}

h1.title {
  font-family: 'Cinzel', 'EB Garamond', serif;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--gold-deep);
  margin: 16px 0 4px;
}

.subtitle {
  font-family: 'EB Garamond', serif;
  font-size: clamp(15px, 2.5vw, 18px);
  font-style: italic;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--gold-deep);
  opacity: 0.85;
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(20px, 3vw, 24px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: 16px;
}

p {
  margin: 0 0 12px;
}

strong {
  font-weight: 500;
  color: var(--gold-deep);
}

em {
  font-style: italic;
  color: var(--indigo);
}

/* ─── Hero ────────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.hero-arrow {
  max-width: min(360px, 80%);
  height: auto;
  mix-blend-mode: multiply;
}

.tagline {
  max-width: 540px;
  font-size: 16px;
  color: var(--charcoal);
  opacity: 0.85;
  font-style: italic;
  text-align: center;
  margin-top: 8px;
}

/* ─── Decorative line ─────────────────────────────────────────────── */

.fine-line {
  border: 0;
  height: var(--line-fine);
  background: var(--charcoal);
  opacity: 0.25;
  margin: 0;
}

/* ─── Chiron section ──────────────────────────────────────────────── */

.chiron {
  text-align: center;
}

/* Clearfix so the section wraps the floated figure */
.chiron::after {
  content: "";
  display: table;
  clear: both;
}

.chiron p {
  text-align: left;
  margin-bottom: 14px;
}

.chiron-figure {
  float: right;
  width: 50%;
  margin: 4px 0 14px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chiron-figure img {
  max-width: 100%;
  height: auto;
  border: var(--line-fine) solid rgba(139, 115, 85, 0.5);
  padding: 6px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 4px rgba(43, 43, 43, 0.08);
}

.chiron-figure figcaption {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--gold-deep);
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Source/license credit at the tail of a figcaption — quieter than the title/author text */
.caption-credit {
  font-size: 9px;
  opacity: 0.8;
  letter-spacing: 0.03em;
}

.chiron-coda {
  clear: both;
  text-align: center !important;
  font-style: italic;
  color: var(--charcoal);
  opacity: 0.75;
  margin-top: 18px;
}

/* On narrow viewports, drop back to a stacked layout */
@media (max-width: 480px) {
  .chiron-figure {
    float: none;
    width: 100%;
    margin: 8px 0 18px;
  }
}

/* Small celestial seal at the end of the Chiron section */
.chiron-constellation {
  clear: both;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px auto 0;
  max-width: 380px;
}

.chiron-constellation .constellation-pair {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.chiron-constellation .constellation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  flex: 0 0 auto;
}

.chiron-constellation img {
  width: 156px;
  height: 156px;
  object-fit: contain;
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.chiron-constellation .constellation-label {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  opacity: 0.8;
  text-align: center;
  line-height: 1.4;
}

.chiron-constellation .constellation-label a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}

.chiron-constellation .constellation-label a:hover {
  color: var(--charcoal);
}

/* Vertical fine-line divider between the two constellation items, matches the
   horizontal section dividers (charcoal at 0.25 opacity, var(--line-fine) thick) */
.chiron-constellation .constellation-divider {
  width: var(--line-fine);
  background: var(--charcoal);
  opacity: 0.25;
  align-self: stretch;
  flex-shrink: 0;
}

.chiron-constellation figcaption {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--gold-deep);
  opacity: 0.8;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ─── Vision section ──────────────────────────────────────────────── */

.vision {
  text-align: center;
}

/* Clearfix so the section wraps the floated figure */
.vision::after {
  content: "";
  display: table;
  clear: both;
}

.vision p {
  text-align: left;
  margin-bottom: 14px;
}

.vision-tagline {
  text-align: center !important;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(18px, 2.8vw, 21px);
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  margin: 0 0 22px !important;
}

.vision-figure {
  float: left;
  width: 38%;
  margin: 4px 22px 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vision-figure img {
  max-width: 100%;
  height: auto;
  border: var(--line-fine) solid rgba(139, 115, 85, 0.5);
  padding: 6px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 4px rgba(43, 43, 43, 0.08);
}

.vision-figure figcaption {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--gold-deep);
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.5;
}

.vision-figure figcaption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}

.vision-figure figcaption a:hover {
  color: var(--charcoal);
}

.vision-coda {
  clear: both;
  text-align: center !important;
  font-style: italic;
  color: var(--charcoal);
  opacity: 0.75;
  margin-top: 18px;
}

@media (max-width: 480px) {
  .vision-figure {
    float: none;
    width: 100%;
    margin: 8px 0 18px;
  }
}

/* ─── Philosophy ──────────────────────────────────────────────────── */

.philosophy {
  text-align: center;
}

/* Clearfix so the section wraps the floated figure */
.philosophy::after {
  content: "";
  display: table;
  clear: both;
}

.philosophy p {
  margin-bottom: 14px;
}

.lens-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(18px, 2.8vw, 21px);
  letter-spacing: 0.05em;
  color: var(--gold-deep);
  text-align: center;
  margin: 22px 0 10px;
}

/* Lens titles inside the philosophy section clear the floated zodiac wheel
   so they sit fully centered on the screen, not nudged by the float */
.philosophy h3.lens-title {
  clear: both;
}

/* Same lens-title styling for closing lines in the Chiron and Vision
   sections — needs higher specificity to override the .chiron p / .vision p
   left-align rules. clear: both protects against any floated figures still
   active above the closing line. */
.chiron p.lens-title,
.vision p.lens-title {
  clear: both;
  text-align: center;
}

.philosophy-figure {
  float: right;
  width: 32%;
  margin: 4px 0 14px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (max-width: 480px) {
  .philosophy-figure {
    float: none;
    width: 100%;
    margin: 8px 0 18px;
  }
}

.philosophy-figure img {
  max-width: 100%;
  height: auto;
}

.philosophy-figure figcaption {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--gold-deep);
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.5;
}

.philosophy-figure figcaption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}

.philosophy-figure figcaption a:hover {
  color: var(--charcoal);
}

.philosophy-coda {
  font-style: italic;
  color: var(--charcoal);
  opacity: 0.75;
  margin-top: 18px;
}

/* ─── Features section ────────────────────────────────────────────── */

.features {
  text-align: center;
}

.features-intro {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(15px, 2.4vw, 18px);
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  opacity: 0.85;
  margin: 0 0 32px;
}

.feature {
  text-align: left;
  margin-bottom: 36px;
}

/* Clearfix so a floated feature-figure doesn't overflow the article */
.feature::after {
  content: "";
  display: table;
  clear: both;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(18px, 2.8vw, 21px);
  letter-spacing: 0.05em;
  color: var(--gold-deep);
  text-align: center;
  margin: 0 0 12px;
}

/* Short fine-line flourishes above and below each feature name */
.feature-title::before,
.feature-title::after {
  content: "";
  display: block;
  width: 50px;
  height: var(--line-fine);
  background: var(--gold-deep);
  opacity: 0.45;
}

.feature-title::before {
  margin: 0 auto 8px;
}

.feature-title::after {
  margin: 8px auto 0;
}

.feature-figure {
  float: right;
  width: 45%;
  margin: 4px 0 14px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feature-figure--left {
  float: left;
  margin: 4px 22px 14px 0;
}

/* Centered hero variant — image gets full card width, no float */
.feature-figure--centered {
  float: none;
  width: 100%;
  margin: 0 auto 20px;
}

/* Narrower centered variant — caps width so the image reads smaller */
.feature-figure--narrow {
  max-width: 400px;
}

/* Container for two images side-by-side inside a centered figure */
.feature-figure-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.feature-figure .feature-figure-row img {
  max-width: 110px;
  width: 110px;
}

.feature-figure img {
  max-width: 100%;
  height: auto;
  border: var(--line-fine) solid rgba(139, 115, 85, 0.5);
  padding: 6px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 4px rgba(43, 43, 43, 0.08);
}

.feature-figure figcaption {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--gold-deep);
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.5;
}

.feature-figure figcaption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}

.feature-figure figcaption a:hover {
  color: var(--charcoal);
}

.feature p {
  margin-bottom: 12px;
}

.feature--with-subs > p {
  margin-bottom: 18px;
}

.feature-subs {
  clear: both;
  border-left: var(--line-fine) solid rgba(139, 115, 85, 0.45);
  padding-left: 18px;
  margin: 4px 0 0 8px;
}

/* On narrow viewports, drop floated feature figure to a stacked layout */
@media (max-width: 480px) {
  .feature-figure {
    float: none;
    width: 100%;
    margin: 8px 0 18px;
  }
}

.feature-sub {
  margin-bottom: 18px;
}

.feature-sub:last-child {
  margin-bottom: 0;
}

.feature-sub-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  text-align: left;
  margin: 0 0 4px;
}

.feature-sub p {
  font-size: 15px;
  margin-bottom: 0;
  opacity: 0.9;
}

/* ─── Principles ──────────────────────────────────────────────────── */

.principles {
  background: rgba(139, 115, 85, 0.05);
  border: var(--line-fine) solid rgba(139, 115, 85, 0.3);
  border-radius: 4px;
  padding: 18px 24px;
  text-align: center;
}

.principles p {
  font-size: 14px;
  margin: 0;
  opacity: 0.85;
  line-height: 1.55;
}

.principles strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
}

/* ─── Beta tester section ─────────────────────────────────────────── */

.beta {
  background: rgba(139, 115, 85, 0.05);
  border: var(--line-fine) solid rgba(139, 115, 85, 0.3);
  border-radius: 4px;
  padding: 28px 28px 24px;
}

.beta-eyebrow {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
  opacity: 0.85;
}

.beta-title {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.beta-description {
  text-align: center;
  font-size: 15px;
  margin-bottom: 22px;
  opacity: 0.85;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.field input, .field textarea {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.6);
  border: var(--line) solid rgba(139, 115, 85, 0.35);
  border-radius: 3px;
  color: var(--charcoal);
  text-transform: none;
  letter-spacing: normal;
  resize: vertical;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.85);
}

/* Checkbox group (e.g. platform selection) */
.field-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-hint {
  font-family: 'Lora', Georgia, serif;
  font-size: 12px;
  font-style: italic;
  color: var(--charcoal);
  opacity: 0.6;
  text-transform: none;
  letter-spacing: normal;
  margin: 0 0 4px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  color: var(--charcoal);
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold-deep);
  cursor: pointer;
  flex-shrink: 0;
}

.form-status {
  text-align: center;
  font-size: 14px;
  margin: 4px 0 0;
  min-height: 20px;
}

.form-status.success { color: var(--aspect-good); }
.form-status.error { color: var(--aspect-bad); }

/* ─── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px;
  font-family: 'Cinzel', 'EB Garamond', serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: var(--line) solid transparent;
}

.btn-primary {
  background: var(--gold-deep);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--charcoal);
}

.btn-outline {
  background: transparent;
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}
.btn-outline:hover {
  background: var(--gold-deep);
  color: var(--cream);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cta-detail {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.8;
  text-transform: none;
  font-family: 'Lora', Georgia, serif;
}

/* ─── CTAs ────────────────────────────────────────────────────────── */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta-row .btn {
  flex: 1 1 240px;
  min-width: 200px;
}


/* ─── Footer ──────────────────────────────────────────────────────── */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--charcoal);
  opacity: 0.6;
}

.footer-mark {
  width: 48px;
  height: auto;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.footer p {
  margin: 0;
}

/* ─── Responsive ──────────────────────────────────────────────────── */

/* Roomier column on desktop — keeps proportions, just gives more breathing room */
@media (min-width: 1000px) {
  .parchment {
    max-width: 800px;
  }
}

@media (max-width: 480px) {
  .parchment {
    padding: 32px 20px 32px;
    gap: 36px;
  }
  .beta {
    padding: 22px 18px 20px;
  }
  .cta-row .btn {
    width: 100%;
  }
}
