/* Open Field Financial — oeninsight.info — magazine grid */
:root {
  --oei-bg: #f0f2f5;
  --oei-card: #ffffff;
  --oei-ink: #1b2230;
  --oei-muted: #5c6474;
  --oei-accent: #2f6f8d;
  --oei-line: #d9dee6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--oei-bg);
  color: var(--oei-ink);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
}

.oei_skip {
  position: absolute;
  left: -9999px;
}
.oei_skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: var(--oei-accent);
  color: #fff;
  padding: 0.45rem 0.9rem;
}

.oei_top {
  background: var(--oei-card);
  border-bottom: 1px solid var(--oei-line);
  padding: 1.5rem 1.5rem 1rem;
}

.oei_brand {
  max-width: 1200px;
  margin: 0 auto;
}

.oei_k {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--oei-muted);
  margin: 0 0 0.35rem;
}

.oei_name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0 0 1.25rem;
}

.oei_mosaic {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

.oei_mosaic a {
  display: block;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--oei-line);
  background: var(--oei-bg);
  color: var(--oei-ink);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.oei_mosaic a:hover,
.oei_mosaic a[aria-current="page"] {
  border-color: var(--oei-accent);
  color: var(--oei-accent);
}

.oei_shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.oei_grid_home {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .oei_grid_home { grid-template-columns: 1fr; }
}

.oei_hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.oei_hero p {
  color: var(--oei-muted);
  max-width: 48ch;
}

.oei_hero img {
  width: 100%;
  height: auto;
  border: 1px solid var(--oei-line);
}

.oei_panel {
  background: var(--oei-card);
  border: 1px solid var(--oei-line);
  padding: 1.5rem;
  margin-top: 2rem;
}

.oei_panel h2 {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 1rem;
  color: var(--oei-accent);
}

.oei_panel p { margin: 0 0 1rem; }
.oei_panel p:last-child { margin-bottom: 0; }

.oei_split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 800px) {
  .oei_split { grid-template-columns: 1fr; }
}

.oei_split img {
  width: 100%;
  height: auto;
  border: 1px solid var(--oei-line);
}

.oei_note {
  font-size: 0.88rem;
  color: var(--oei-muted);
  border-left: 3px solid var(--oei-accent);
  padding-left: 1rem;
  margin-top: 1rem;
}

.oei_ft {
  border-top: 1px solid var(--oei-line);
  padding: 2rem 1.5rem 3rem;
  background: var(--oei-card);
  font-size: 0.82rem;
  color: var(--oei-muted);
}

.oei_ftin {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .oei_ftin { grid-template-columns: 1fr; }
}

.oei_ft a { color: var(--oei-accent); }

.oei_ban {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: min(420px, calc(100% - 2rem));
  background: var(--oei-ink);
  color: #e8ecf2;
  padding: 1rem;
  font-size: 0.85rem;
  border-radius: 4px;
  display: none;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.oei_ban.oei_show { display: block; }

.oei_ban a { color: #9ecae8; }

.oei_brow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.oei_bbtn {
  border: 1px solid #e8ecf2;
  background: transparent;
  color: #e8ecf2;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-size: 0.78rem;
}

.oei_page {
  padding: 2rem 0 1rem;
}

.oei_page h1 {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.oei_page p {
  margin: 0;
  color: var(--oei-muted);
  max-width: 60ch;
}

.oei_article {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.oei_article figure { margin: 2rem 0; }
.oei_article img {
  width: 100%;
  height: auto;
  border: 1px solid var(--oei-line);
}

.oei_list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.oei_list li {
  padding: 1rem;
  border: 1px solid var(--oei-line);
  background: var(--oei-card);
  margin-bottom: 0.5rem;
}

.oei_list a {
  color: var(--oei-ink);
  text-decoration: none;
  font-weight: 500;
}

.oei_list a:hover { color: var(--oei-accent); }

.oei_form label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--oei-muted);
  margin-top: 1rem;
}

.oei_form input,
.oei_form textarea {
  width: 100%;
  max-width: 520px;
  padding: 0.55rem;
  border: 1px solid var(--oei-line);
  margin-top: 0.35rem;
}

.oei_form button {
  margin-top: 1rem;
  padding: 0.55rem 1.1rem;
  background: var(--oei-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
