/* ════════════════════════════════════════════════════════════════
   Eden Openly — home page (November 2026)
   Loaded on the front page only (inc/home.php). Everything is scoped to
   .eo-home. The few !important rules exist only to beat style.css's global
   "H2 nuclear" overrides (any h2 forced to 24px italic); remove them when
   style.css is rebuilt.
   ════════════════════════════════════════════════════════════════ */

.eo-home {
  --eh-navy: #0B1B2A;
  --eh-paper: #FBF7F2;
  --eh-cream: #F6F1EC;
  --eh-rule: #E7DED4;
  --eh-ink: #171512;
  --eh-ink-2: #3A332D;
  --eh-muted: #5F5650;        /* 6.4:1 on cream */
  --eh-accent: #7A5F48;       /* 5.5:1 on paper */
  --eh-on-navy: #D8CFC6;      /* 11.3:1 on navy */
  --eh-on-navy-2: #C9B39C;    /* 8.6:1 on navy */
  --eh-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --eh-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  background: var(--eh-paper);
  color: var(--eh-ink);
  font-family: var(--eh-serif);
  font-size: 19px;
  line-height: 1.6;
}
.eo-home a { color: var(--eh-accent); text-decoration: none; }
.eo-home a:hover { color: var(--eh-ink); text-decoration: none; }
.eo-home a:focus-visible { outline: 2px solid var(--eh-accent); outline-offset: 3px; }

.eh-wrap { max-width: 1240px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.eh-section { padding-top: 88px; }
.eh-section--tight { padding-top: 56px; }
.eh-signup { padding-bottom: 88px; }

/* Labels and section heads (h2 — beat the global h2 override) */
.eo-home .eh-label,
.eo-home h2.eh-label {
  font-family: var(--eh-sans) !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eh-muted) !important;
  line-height: 1.4;
  margin: 0;
  display: block;
}
.eh-eyebrow {
  font-family: var(--eh-sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 20px;
}
.eh-eyebrow--light { color: var(--eh-on-navy-2); }
.eh-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 12px; border-bottom: 1px solid var(--eh-rule); padding-bottom: 12px; margin-bottom: 8px;
}
.eo-home .eh-more { font-family: var(--eh-sans); font-size: 14px; }

/* Hero */
.eh-hero { background: var(--eh-navy); color: var(--eh-cream); }
.eh-hero__grid {
  padding-top: 88px; padding-bottom: 72px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px; align-items: end;
}
.eo-home .eh-hero__title {
  font-family: var(--eh-serif); font-weight: 400; font-style: normal;
  font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.01em;
  color: var(--eh-cream); margin: 0 0 24px;
}
.eh-hero__sub { font-size: 21px; line-height: 1.55; color: var(--eh-on-navy); margin: 0 0 32px; max-width: 34rem; }
.eh-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.eo-home .eh-btn {
  font-family: var(--eh-sans); font-size: 15px; font-weight: 500;
  padding: 13px 22px; border-radius: 3px; display: inline-block; line-height: 1.3;
}
.eo-home .eh-btn--light { background: var(--eh-cream); color: var(--eh-navy); }
.eo-home .eh-btn--light:hover { background: #FFFFFF; color: var(--eh-navy); }
.eo-home .eh-btn--ghost { color: var(--eh-cream); border: 1px solid rgba(246,241,236,0.45); padding: 12px 21px; }
.eo-home .eh-btn--ghost:hover { color: var(--eh-cream); border-color: var(--eh-cream); }
.eh-hero__latest { border-top: 1px solid rgba(246,241,236,0.18); padding-top: 22px; }
.eh-hero__latest .eh-eyebrow { margin-bottom: 10px; }
.eh-hero__meta { font-family: var(--eh-sans); font-size: 13px; color: var(--eh-on-navy); margin: 0 0 6px; }
.eo-home .eh-hero__latest-title { display: block; font-size: 26px; line-height: 1.25; color: var(--eh-cream); margin: 0 0 10px; }
.eo-home .eh-hero__latest-title:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.eh-hero__latest-text { font-size: 17px; color: var(--eh-on-navy); margin: 0 0 12px; }
.eh-hero__doi { font-family: var(--eh-sans); font-size: 13px; color: var(--eh-on-navy-2); margin: 0; }

/* Figures */
.eh-figures { background: var(--eh-cream); border-bottom: 1px solid var(--eh-rule); }
.eh-figures__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-top: 0; margin-bottom: 0;
}
.eh-figure { padding: 28px 24px; border-right: 1px solid var(--eh-rule); }
.eh-figure:first-child { padding-left: 0; }
.eh-figure:last-child { border-right: 0; }
.eh-figure__n { font-size: 44px; line-height: 1; color: var(--eh-accent); margin: 0 0 8px; }
.eh-figure__label { font-family: var(--eh-sans); font-size: 14px; line-height: 1.45; color: var(--eh-muted); margin: 0; }

/* Recently published (beat style.css's global table rules, all !important) */
.eo-home table.eh-table { margin: 0 !important; font-size: 18px !important; color: var(--eh-ink) !important; }
.eo-home table.eh-table th,
.eo-home table.eh-table td { padding: 16px 16px 16px 0 !important; border-bottom: 0 !important; }
.eo-home table.eh-table th { font-family: var(--eh-sans) !important; font-size: 12px !important; font-weight: 500 !important; color: var(--eh-muted) !important; padding: 14px 16px 10px 0 !important; border-bottom: 1px solid var(--eh-rule) !important; }
.eo-home table.eh-table td.eh-table__id,
.eo-home table.eh-table td.eh-table__meta { font-family: var(--eh-sans) !important; padding-top: 19px !important; }
.eo-home table.eh-table tr:last-child td { border-bottom: 1px solid var(--eh-rule) !important; }
.eh-table-wrap { overflow-x: auto; }
.eh-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 18px; }
.eh-table th {
  font-family: var(--eh-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--eh-muted); text-align: left; padding: 14px 16px 10px 0;
}
.eh-table th:first-child { width: 96px; }
.eh-table td { border-top: 1px solid var(--eh-rule); padding: 16px 16px 16px 0; vertical-align: top; }
.eh-table tr:last-child td { border-bottom: 1px solid var(--eh-rule); }
.eh-table td:last-child, .eh-table th:last-child { padding-right: 0; }
.eh-table__id { font-family: var(--eh-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--eh-accent); white-space: nowrap; padding-top: 19px !important; }
.eo-home .eh-table__title { color: var(--eh-ink); }
.eo-home .eh-table__title:hover { color: var(--eh-accent); }
.eh-table__meta { font-family: var(--eh-sans); font-size: 13.5px; color: var(--eh-muted); padding-top: 19px !important; white-space: nowrap; }
.eh-note { font-family: var(--eh-sans); font-size: 13px; color: var(--eh-muted); margin: 14px 0 0; }

/* In progress */
.eh-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 20px; margin-top: 24px;
}
.eo-home .eh-card {
  background: #FFFFFF; border: 1px solid var(--eh-rule); border-radius: 3px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px; color: var(--eh-ink);
  transition: border-color .15s ease;
}
.eo-home .eh-card:hover { border-color: var(--eh-accent); color: var(--eh-ink); }
.eh-card__kind { font-family: var(--eh-sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--eh-muted); }
.eh-card__title { font-size: 25px; line-height: 1.2; }
.eh-card__text { font-size: 17px; line-height: 1.5; color: var(--eh-ink-2); }
.eh-card__now {
  font-family: var(--eh-sans); font-size: 13px; font-weight: 500; color: var(--eh-accent);
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--eh-rule);
}

/* Findings */
.eh-findings {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 48px;
}
.eh-finding { padding: 28px 0; border-bottom: 1px solid var(--eh-rule); }
.eh-finding__n { display: block; font-size: 48px; line-height: 1; color: var(--eh-accent); margin-bottom: 12px; }
.eo-home .eh-finding__title { font-family: var(--eh-serif); font-weight: 500; font-style: normal; font-size: 22px; line-height: 1.3; color: var(--eh-ink); margin: 0 0 10px; text-transform: none; letter-spacing: 0; }
.eh-finding__text { font-size: 17px; line-height: 1.5; color: var(--eh-ink-2); margin: 0 0 12px; }

/* Teaching / advocacy, Korean / author */
.eh-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; }
.eh-section--tight.eh-split { gap: 24px; }
.eh-list { list-style: none; margin: 0; padding: 0; }
.eh-list li { border-bottom: 1px solid var(--eh-rule); }
.eo-home .eh-list a { display: block; padding: 18px 0; color: var(--eh-ink); }
.eo-home .eh-list a:hover .eh-list__title { color: var(--eh-accent); }
.eh-list__title { display: block; font-size: 22px; line-height: 1.3; }
.eh-list__text { display: block; font-family: var(--eh-sans); font-size: 14px; line-height: 1.5; color: var(--eh-muted); margin-top: 4px; }

.eo-home .eh-box { display: block; border: 1px solid var(--eh-rule); border-radius: 3px; padding: 28px; background: #FFFFFF; color: var(--eh-ink); }
.eo-home a.eh-box:hover { border-color: var(--eh-accent); color: var(--eh-ink); }
.eh-box .eh-label { margin-bottom: 10px; }
.eh-box__title { display: block; font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
.eh-box__text { font-family: var(--eh-sans); font-size: 15px; color: var(--eh-ink-2); }

.eh-links { font-family: var(--eh-sans); font-size: 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Standards panel (h2/h3 — beat the global overrides) */
.eh-panel {
  background: var(--eh-cream); border-radius: 3px; padding: 44px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px;
}
.eh-panel .eh-label { margin-bottom: 14px; }
.eo-home h2.eh-panel__title {
  font-family: var(--eh-serif) !important; font-style: normal !important; font-weight: 400 !important;
  font-size: 34px !important; line-height: 1.15; color: var(--eh-ink) !important; margin: 0 0 16px;
}
.eh-panel__text { font-size: 17px; line-height: 1.55; color: var(--eh-ink-2); margin: 0 0 18px; }
.eh-panel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px 32px; }
.eo-home .eh-panel__h { font-family: var(--eh-serif); font-weight: 500; font-style: normal; font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--eh-ink); margin: 0 0 6px; }
.eh-panel__grid p { font-size: 16px; line-height: 1.5; color: var(--eh-ink-2); margin: 0; }

/* Phone */
@media (max-width: 720px) {
  .eh-wrap { padding-left: 20px; padding-right: 20px; }
  .eh-section { padding-top: 64px; }
  .eh-hero__grid { padding-top: 56px; padding-bottom: 48px; gap: 40px; }
  .eh-figure { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--eh-rule); }
  .eh-figure:last-child { border-bottom: 0; }
  .eh-panel { padding: 28px 22px; }
  .eh-split { gap: 56px; }

  /* Publications become stacked rows: ID · series, title, DOI */
  .eo-home table.eh-table,
  .eo-home table.eh-table tbody,
  .eo-home table.eh-table tr { display: block; width: 100% !important; min-width: 0; }
  .eo-home table.eh-table thead { display: none; }
  .eo-home table.eh-table tr { border-top: 1px solid var(--eh-rule); padding: 14px 0; }
  .eo-home table.eh-table tr:last-child { border-bottom: 1px solid var(--eh-rule); }
  .eo-home table.eh-table td { display: block; padding: 0 !important; border: 0 !important; white-space: normal; }
  .eo-home table.eh-table tr:last-child td { border-bottom: 0 !important; }
  .eo-home table.eh-table td.eh-table__id { display: inline; padding: 0 !important; }
  .eo-home table.eh-table td.eh-table__id + td { margin: 4px 0 6px; }
  .eo-home table.eh-table td.eh-table__meta { padding: 0 !important; }
  .eh-table-wrap { overflow: visible; }
}
