/* ============================================================
   Eastern · Phase 0 Design System
   Style: Scholarly Editorial (warm cream, serif, generous whitespace)
   Brand colors: ink black, brick red, antique gold
   ============================================================ */

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F8F5F0;
  color: #1F2937;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ----- Typography ----- */
.serif { font-family: 'Georgia', 'Noto Serif CJK SC', 'Songti SC', serif; }
.mono  { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; }

h1, h2, h3, h4 { font-family: 'Georgia', 'Noto Serif CJK SC', serif; font-weight: 400; color: #1F2937; line-height: 1.3; }
h1 { font-size: 40px; letter-spacing: -0.5px; }
h2 { font-size: 28px; letter-spacing: -0.3px; }
h3 { font-size: 20px; letter-spacing: -0.2px; }

p { line-height: 1.85; color: #1F2937; }

/* ----- Layout ----- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 32px; }

/* ----- Top nav ----- */
.nav {
  border-bottom: 1px solid #E7E5E4;
  background: #F8F5F0;
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px; max-width: 1080px; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 28px; height: 28px; background: #1F2937; color: #F8F5F0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Georgia', serif; font-size: 15px;
}
.nav-name { font-family: 'Georgia', serif; font-size: 16px; letter-spacing: 0.4px; color: #1F2937; }
.nav-links { display: flex; gap: 24px; font-size: 13px; color: #57534E; }
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: #8B0000; }
.nav-cta { color: #8B0000; }

/* ----- Hero ----- */
.hero {
  text-align: center;
  padding: 96px 0 64px;
}
.hero .eyebrow {
  font-size: 12px; color: #8B0000; letter-spacing: 1.8px;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  font-size: 56px; line-height: 1.15; max-width: 760px; margin: 0 auto 20px;
  letter-spacing: -0.8px;
}
.hero .lede {
  font-size: 19px; color: #57534E; line-height: 1.7;
  max-width: 580px; margin: 0 auto 48px;
}

/* ----- Search ----- */
.search-wrap {
  max-width: 640px; margin: 0 auto;
}
.search-box {
  display: flex; align-items: stretch;
  border: 1px solid #1F2937;
  background: #FFFFFF;
  transition: box-shadow 0.2s;
}
.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}
.search-input {
  flex: 1; border: none; outline: none; padding: 18px 22px;
  font-size: 16px; font-family: inherit; background: transparent; color: #1F2937;
}
.search-input::placeholder { color: #A8A29E; font-style: italic; }
.search-btn {
  border: none; background: #1F2937; color: #F8F5F0;
  padding: 0 26px; font-size: 14px; cursor: pointer; letter-spacing: 0.5px;
  font-family: 'Georgia', serif;
  transition: background 0.15s;
}
.search-btn:hover { background: #8B0000; }

.search-meta {
  margin-top: 16px; text-align: center; font-size: 12px; color: #78716C;
}
.search-suggest {
  margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
}
.suggest-label { font-size: 12px; color: #78716C; margin-right: 4px; align-self: center; }
.suggest-pill {
  display: inline-block; padding: 7px 14px; border: 1px solid #D6D3D1;
  font-size: 13px; color: #57534E; background: #FFFFFF;
  cursor: pointer; transition: all 0.15s;
}
.suggest-pill:hover { border-color: #8B0000; color: #8B0000; }

/* ----- Section ----- */
.section { padding: 64px 0; }
.section-eyebrow {
  font-size: 11px; color: #8B0000; letter-spacing: 1.8px;
  text-transform: uppercase; margin-bottom: 14px;
}
.section-title { font-size: 32px; margin-bottom: 14px; }
.section-sub { font-size: 16px; color: #57534E; margin-bottom: 40px; max-width: 580px; }

/* ----- Article cards ----- */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #FFFFFF; border: 1px solid #E7E5E4;
  padding: 28px 28px 24px; transition: all 0.2s;
}
.card:hover {
  border-color: #1F2937;
  transform: translateY(-2px);
}
.card .source {
  font-size: 11px; color: #8B0000; letter-spacing: 1.4px;
  text-transform: uppercase; margin-bottom: 12px;
}
.card h3 {
  font-size: 22px; margin-bottom: 10px; line-height: 1.3;
}
.card .excerpt {
  font-size: 14px; color: #57534E; line-height: 1.7; margin-bottom: 18px;
}
.card .meta {
  font-size: 12px; color: #78716C; display: flex; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid #E7E5E4;
}

/* ----- Article reading view ----- */
.article-page { padding: 56px 0 80px; }
.article-eyebrow {
  font-size: 12px; color: #8B0000; letter-spacing: 1.6px;
  text-transform: uppercase; margin-bottom: 16px;
}
.article-title {
  font-size: 44px; line-height: 1.2; margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.article-subtitle {
  font-family: 'Georgia', serif; font-style: italic;
  font-size: 18px; color: #57534E; margin-bottom: 28px;
}
.article-meta {
  display: flex; gap: 14px; font-size: 13px; color: #78716C;
  margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid #E7E5E4;
}
.article-meta span:not(:last-child)::after { content: '·'; margin-left: 14px; color: #D6D3D1; }

.original-quote {
  background: #FFFFFF; border: 1px solid #E7E5E4;
  padding: 26px 32px; margin: 32px 0;
  border-left: 3px solid #8B0000;
}
.original-quote .label {
  font-size: 11px; color: #78716C; letter-spacing: 1.3px;
  text-transform: uppercase; margin-bottom: 14px;
}
.original-quote .text {
  font-family: 'Georgia', 'Noto Serif CJK SC', serif;
  font-size: 19px; line-height: 1.95; color: #1F2937;
}

.article-body p {
  font-size: 17px; line-height: 1.95; margin-bottom: 24px; color: #1F2937;
}
.article-body p .highlight {
  font-family: 'Georgia', serif; color: #8B0000;
}
.article-body h2 {
  font-size: 28px; margin: 48px 0 18px; padding-top: 16px;
  border-top: 1px solid #E7E5E4;
}

.english-block {
  background: #EFEAE0; padding: 26px 32px; margin: 36px 0; border-radius: 4px;
}
.english-block .label {
  font-size: 11px; color: #8B0000; letter-spacing: 1.4px;
  text-transform: uppercase; margin-bottom: 12px;
}
.english-block .text {
  font-style: italic; font-size: 15px; line-height: 1.8; color: #1F2937;
}

.source-block {
  border-top: 1px solid #E7E5E4; padding-top: 28px; margin-top: 40px;
}
.source-block .label {
  font-size: 11px; color: #78716C; letter-spacing: 0.6px; margin-bottom: 14px;
}
.source-block .text {
  font-size: 14px; color: #57534E; line-height: 1.7;
}
.source-block .text small { color: #78716C; display: block; margin-top: 6px; font-size: 12px; }

.confidence {
  display: inline-block; padding: 3px 10px; font-size: 11px;
  letter-spacing: 0.4px; margin-top: 8px;
}
.confidence.high { background: #DCFCE7; color: #166534; }
.confidence.med { background: #FEF3C7; color: #92400E; }
.confidence.low { background: #FEE2E2; color: #991B1B; }

/* ----- Inline waitlist CTA box ----- */
.waitlist-inline {
  margin-top: 44px; padding: 24px 28px; border: 1px solid #E7E5E4;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.waitlist-inline .copy { flex: 1; min-width: 240px; }
.waitlist-inline .title {
  font-family: 'Georgia', serif; font-size: 17px; color: #1F2937; margin-bottom: 6px;
}
.waitlist-inline .desc { font-size: 13px; color: #78716C; }
.btn {
  display: inline-block; padding: 11px 22px; font-size: 13px;
  background: #1F2937; color: #F8F5F0;
  border: none; cursor: pointer; font-family: inherit;
  letter-spacing: 0.4px; transition: background 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #8B0000; }
.btn-outline {
  background: transparent; color: #1F2937; border: 1px solid #1F2937;
}
.btn-outline:hover { background: #1F2937; color: #F8F5F0; }

/* ----- Search results ----- */
.results-list { margin-top: 32px; }
.result-card {
  background: #FFFFFF; border: 1px solid #E7E5E4;
  padding: 24px 28px; margin-bottom: 16px;
}
.result-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.result-source {
  font-family: 'Georgia', serif; font-size: 17px; color: #1F2937;
}
.result-source .num { color: #8B0000; margin-right: 8px; }
.result-meta { font-size: 11px; color: #78716C; }
.result-original {
  background: #F8F5F0; padding: 14px 18px; border-left: 2px solid #8B0000;
  font-family: 'Georgia', 'Noto Serif CJK SC', serif;
  font-size: 16px; line-height: 1.85; color: #1F2937; margin-bottom: 14px;
}
.result-translation {
  font-size: 14px; color: #57534E; line-height: 1.75; margin-bottom: 10px;
}
.result-translation .lbl { color: #8B0000; }
.result-perspective {
  font-size: 13px; color: #78716C; line-height: 1.7;
  padding-top: 10px; border-top: 1px dashed #E7E5E4;
}
.result-perspective .lbl { color: #57534E; }
.result-cta {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid #E7E5E4;
  display: flex; justify-content: space-between; align-items: center;
}
.result-cta a { font-size: 12px; color: #8B0000; }

.disclaimer-box {
  background: #FFFFFF; border-left: 2px solid #8B0000;
  padding: 16px 22px; margin-top: 28px;
  font-size: 13px; color: #57534E; line-height: 1.7;
}

/* ----- Waitlist page ----- */
.waitlist-hero { padding: 96px 0 64px; text-align: center; }
.waitlist-form {
  max-width: 460px; margin: 32px auto 0;
}
.form-row {
  display: flex; gap: 0; border: 1px solid #1F2937; background: #FFFFFF;
  margin-bottom: 14px;
}
.form-input {
  flex: 1; border: none; outline: none; padding: 14px 18px;
  font-size: 15px; font-family: inherit; background: transparent;
}
.form-submit {
  border: none; background: #1F2937; color: #F8F5F0;
  padding: 0 22px; font-size: 13px; cursor: pointer;
  font-family: 'Georgia', serif; letter-spacing: 0.4px;
}
.form-submit:hover { background: #8B0000; }
.form-note { font-size: 12px; color: #78716C; text-align: center; }

.waitlist-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 80px;
}
.feature .num {
  font-family: 'Georgia', serif; font-size: 14px; color: #8B0000;
  letter-spacing: 1px; margin-bottom: 10px;
}
.feature h3 {
  font-size: 18px; margin-bottom: 10px;
}
.feature p { font-size: 14px; color: #57534E; line-height: 1.75; }

/* ----- About ----- */
.prose p { font-size: 17px; line-height: 1.95; margin-bottom: 22px; }
.prose h2 { font-size: 26px; margin: 48px 0 16px; }

/* ----- Footer ----- */
.footer {
  border-top: 1px solid #E7E5E4; margin-top: 80px;
  padding: 40px 32px 60px; background: #EFEAE0;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px;
}
.footer-brand { font-family: 'Georgia', serif; font-size: 15px; color: #1F2937; }
.footer-brand small { display: block; color: #78716C; font-size: 12px; margin-top: 6px; font-family: inherit; }
.footer-links { display: flex; gap: 32px; font-size: 13px; color: #57534E; }
.footer-disclaimer {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid #D6D3D1;
  font-size: 12px; color: #78716C; line-height: 1.65;
  max-width: 720px;
}

/* ----- Responsive ----- */
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 22px; }
  .nav-inner { padding: 14px 22px; }
  .nav-links { gap: 16px; font-size: 12px; }
  .hero { padding: 64px 0 40px; }
  .hero h1 { font-size: 36px; }
  .hero .lede { font-size: 16px; }
  .article-title { font-size: 32px; }
  .article-body p { font-size: 16px; }
  .original-quote .text { font-size: 17px; }
  .waitlist-features { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 48px 0; }
  .footer-inner { flex-direction: column; }
}
