/* ==========================================================================
   OCM Life — screen.css
   Implements ocm-life-brand-reference.md v1.0
   Navy #0F1B2D · Cream #F5EFE4 · Brass #B8893A (restricted) · Fraunces / Inter
   ========================================================================== */

:root {
  --navy:     #0F1B2D;
  --cream:    #F5EFE4;
  --brass:    #B8893A;
  --stone:    #6B6356;
  --charcoal: #2A2A2A;
  --hair:     rgba(15, 27, 45, .15);
  --serif: 'Fraunces', Georgia, 'Iowan Old Style', Palatino, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 680px;
  --wide: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

.container { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 2rem; }
.site-main { flex: 1; }

/* ---------- shared editorial atoms ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.standfirst {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  font-size: 18px; line-height: 1.5;
  color: var(--charcoal);
}

/* ---------- header ---------- */
.site-header { border-bottom: .5px solid var(--hair); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 1.05rem 0; }
.site-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.site-seal {
  width: 34px; height: 34px; flex: none;
  background: var(--navy); color: var(--cream);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 5px;
}
.site-seal__top { font-family: var(--serif); font-weight: 600; font-size: 11px; letter-spacing: .02em; line-height: 1; }
.site-seal__rule { width: 13px; height: 1px; background: var(--brass); margin: 2px 0; }
.site-seal__bot { font-family: var(--sans); font-weight: 500; font-size: 5px; letter-spacing: .24em; text-transform: uppercase; line-height: 1; opacity: .9; }
.site-wordmark { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: var(--navy); }
.site-nav .nav { list-style: none; display: flex; gap: 1.4rem; }
.site-nav a { font-size: 13px; font-weight: 500; color: var(--navy); text-decoration: none; }
.site-nav a:hover { color: var(--brass); }

/* ---------- footer ---------- */
.site-footer { border-top: .5px solid var(--hair); padding: 2.5rem 0; margin-top: 4rem; text-align: center; font-size: 11px; color: var(--stone); line-height: 1.7; }
.site-footer__links { margin-bottom: .75rem; }
.site-footer__links a { color: var(--stone); text-decoration: none; border-bottom: 1px solid rgba(184, 137, 58, .4); margin: 0 .5rem; }
.site-footer__links a:hover { color: var(--navy); border-bottom-color: var(--brass); }
.site-footer__name { color: var(--charcoal); }

/* ---------- home ---------- */
.home-hero { padding: 4rem 0 2.5rem; border-bottom: .5px solid var(--hair); }
.home-hero__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.home-hero__title { font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.1; letter-spacing: -.015em; color: var(--navy); margin-bottom: 1rem; }
.home-hero .standfirst { margin-bottom: 2rem; }

.post-feed { padding: 3rem 0; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; max-width: 920px; margin: 0 auto; }
.post-card__link { display: block; text-decoration: none; color: inherit; }
.post-card__image { aspect-ratio: 16 / 9; background: #e7e0d1 center / cover no-repeat; border-radius: 12px; margin-bottom: 1rem; }
.post-card__title { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: var(--navy); margin: .35rem 0 .5rem; }
.post-card__excerpt { font-size: 14.5px; color: var(--charcoal); margin-bottom: .6rem; }
.post-card__meta { font-size: 12px; color: var(--stone); }
.post-card__link:hover .post-card__title { color: var(--brass); }

/* ---------- post ---------- */
.post__container { max-width: var(--maxw); margin: 0 auto; }
.post__header { padding: 3.5rem 0 1.5rem; }
.post__title { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -.015em; color: var(--navy); margin-bottom: 1rem; }
.post__header .standfirst { margin-bottom: 1.5rem; }
.post__byline { display: flex; align-items: center; gap: .6rem; font-size: 12px; color: var(--stone); }
.byline-mark { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--navy); color: var(--cream); font-family: var(--serif); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.post__feature { margin: 1.5rem 0 2.5rem; }
.post__feature img { border-radius: 12px; }
.post__feature figcaption { font-size: 12px; font-style: italic; color: var(--stone); margin-top: .5rem; text-align: center; }

/* ---------- article prose ---------- */
.gh-content { font-size: 16px; line-height: 1.65; color: var(--charcoal); }
.gh-content > * + * { margin-top: 1.4rem; }
.gh-content h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; color: var(--navy); margin-top: 2.5rem; }
.gh-content h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--navy); margin-top: 2rem; }
.gh-content a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--brass); }
.gh-content a:hover { color: var(--brass); }
.gh-content ul, .gh-content ol { padding-left: 1.3rem; }
.gh-content li + li { margin-top: .4rem; }
.gh-content blockquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.4; color: var(--navy); border-left: 2px solid var(--brass); padding: .25rem 0 .25rem 1.25rem; margin: 1.75rem 0; max-width: 95%; }
.gh-content img, .gh-content .kg-card { border-radius: 12px; }
.gh-content figcaption { font-size: 12px; font-style: italic; color: var(--stone); text-align: center; margin-top: .5rem; }
.gh-content hr { border: 0; border-top: .5px solid var(--hair); margin: 2.5rem 0; }
.gh-content code { background: #EFEAE0; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.gh-content th, .gh-content td { padding: .5rem .6rem; border-bottom: .5px solid var(--hair); text-align: left; }
.gh-content th { color: var(--navy); }

/* Koenig editor card widths */
.gh-content .kg-width-wide { width: min(1040px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: min(1280px, 100vw); margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full img { border-radius: 0; }

/* ---------- signup ---------- */
.signup-block { background: rgba(255, 255, 255, .45); border: 1px solid var(--hair); border-radius: 12px; padding: 1.75rem; margin: 2.5rem 0; text-align: center; }
.signup-block__kicker { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--navy); margin-bottom: 1rem; }
.signup-block--hero { background: transparent; border: 0; padding: 0; margin: 0; }
.ocm-form__row { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; }
.ocm-form__email { flex: 1; font-family: var(--sans); font-size: 15px; padding: 12px 14px; border: 1px solid rgba(15, 27, 45, .25); background: rgba(255, 255, 255, .6); color: var(--navy); border-radius: 4px; outline: none; transition: border-color .15s ease; }
.ocm-form__email:focus { border-color: var(--navy); }
.ocm-form__email::placeholder { color: var(--stone); }
.ocm-form__btn { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .01em; padding: 12px 22px; background: var(--navy); color: var(--cream); border: none; border-radius: 4px; cursor: pointer; white-space: nowrap; transition: background-color .15s ease; }
.ocm-form__btn:hover { background: #1a2a40; }
.ocm-form__fine { font-size: 12px; color: var(--stone); margin-top: .75rem; }
.ocm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- pagination / error ---------- */
.pagination { text-align: center; margin-top: 3rem; font-size: 13px; }
.pagination a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--brass); }
.error { padding: 5rem 0; text-align: center; }
.error .post__title { margin: 0 0 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  .container { padding: 0 1.25rem; }
  .post-grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-hero { padding: 3rem 0 2rem; }
  .home-hero__title { font-size: 28px; }
  .post__title { font-size: 27px; }
  .gh-content h2 { font-size: 21px; }
  .ocm-form__row { flex-direction: column; }
  .site-wordmark { font-size: 18px; }
  .site-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
