/* Eudormia — Quiet Dusk Editorial Stylesheet
 * Zero external CDN dependencies. Pure CSS, calm twilight palette.
 */

:root {
  --bg-top: #0f1626;
  --bg-bottom: #162038;
  --surface: rgba(24, 34, 58, 0.72);
  --surface-strong: rgba(28, 40, 68, 0.88);
  --border: rgba(227, 232, 244, 0.11);
  --border-warm: rgba(230, 169, 92, 0.24);

  --text: #f3efe6;
  --text-muted: #b3bdcf;
  --text-faint: #8794ab;

  --accent: #e6a95c;
  --accent-soft: #f3c98b;

  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 12px;
  --max-width: 760px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-top);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg-top);
  background-image:
    radial-gradient(ellipse 80% 38% at 50% 0%, rgba(230, 169, 92, 0.09), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: rgba(243, 201, 139, 0.4);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6rem 0.9rem;
  background: var(--bg-top);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent-soft);
  text-decoration: none;
}

.brand-mark {
  color: var(--accent);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* Main */
.site-main {
  flex: 1;
}

/* Opening Story & Curves */
.story {
  padding: 4.25rem 0 3.5rem;
}

.opening-statement {
  margin: 0 0 2.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.bridge-sentence {
  margin: 2.75rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 2.3vw, 1.38rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 58ch;
}

/* Curve Figures */
.curve-figure {
  margin: 0;
  padding: 1.4rem 1.4rem 1.15rem;
  border-radius: var(--radius);
  background-color: var(--surface-strong);
  border: 1px solid var(--border-warm);
}

.curve-svg {
  display: block;
  width: 100%;
  height: auto;
}

.curve-caption {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
}

/* Editorial Sections */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 1.4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

/* Honest Feature List */
.feature-list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.source-note {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-faint);
}

/* Manufacturers Section */
.body-copy {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.contact-links {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.sep {
  margin: 0 0.5rem;
  color: var(--text-faint);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration-color: rgba(179, 189, 207, 0.35);
}

.site-footer a:hover {
  color: var(--accent-soft);
  text-decoration-color: var(--accent-soft);
}

/* Responsive */
@media (max-width: 680px) {
  .story {
    padding: 2.75rem 0 2.5rem;
  }

  .opening-statement {
    margin-bottom: 2rem;
  }

  .bridge-sentence {
    margin: 2rem 0;
  }

  .section {
    padding: 2.5rem 0;
  }

  .curve-figure {
    padding: 0.95rem 0.75rem 0.9rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.86rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a {
    transition: none;
  }
}
