/* OsteoV, shared styles
   Palette: navy #1F3A5F, terracotta #C75145, paper #F7F6F2
   Type: Inter (headings/body), IBM Plex Mono (labels/detail) */

:root {
  --navy: #1F3A5F;
  --navy-tint: #eef1f6;
  --navy-soft: #35547a;
  --terracotta: #C75145;
  --terracotta-soft: #b0463b;
  --terracotta-tint: #f5e7e4;
  --paper: #F7F6F2;
  --ink: #1A2230;
  --muted: #5b6472;
  --line: #e4e2db;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(26,34,48,.06), 0 8px 24px rgba(26,34,48,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 650;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 .8rem;
  display: inline-block;
}

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #dfe6ef; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: #e9b7af; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: #16304d; color: #fff; }
.btn--accent { background: var(--terracotta); color: #fff; }
.btn--accent:hover { background: var(--terracotta-soft); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--onnavy { background: #fff; color: var(--navy); }
.btn--onnavy:hover { background: var(--terracotta); color: #fff; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,242,.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 750; font-size: 1.35rem; color: var(--navy); letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--terracotta); }
.brand small { font-family: "IBM Plex Mono", monospace; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--terracotta); text-decoration: none; }
.nav-links a.current { color: var(--navy); font-weight: 650; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero .lead { font-size: 1.3rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.4rem; }
.hero-note { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
.hero-media {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, #2c4a70 60%, var(--terracotta) 160%);
  position: relative; box-shadow: var(--shadow);
  display: flex; align-items: flex-end; padding: 28px; color: #fff;
}
.hero-media .tag { font-family: "IBM Plex Mono", monospace; font-size: .8rem; letter-spacing: .08em; background: rgba(255,255,255,.14); padding: 8px 14px; border-radius: 999px; }
.hero-media--logo { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.hero-media--logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

/* Brand banner band above footer */
.brand-band { background: var(--paper); padding: 40px 0; border-top: 1px solid var(--line); }
.brand-band .wrap { display: flex; justify-content: center; }
.brand-banner { max-width: 460px; width: 100%; height: auto; border-radius: var(--radius); }
.tagline-strip { text-align: center; font-family: "IBM Plex Mono", monospace; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--navy-soft); padding: 8px 0 0; }

/* Trust bar */
.trust { background: var(--navy); color: #cfd9e6; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: center; padding-top: 22px; padding-bottom: 22px; }
.trust span { font-family: "IBM Plex Mono", monospace; font-size: .82rem; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); display: inline-block; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.card .num { font-family: "IBM Plex Mono", monospace; color: var(--terracotta); font-size: .85rem; letter-spacing: .1em; }
.card h3 { margin-top: .4rem; }
.card ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.card ul li { margin-bottom: .3rem; }

.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .12s; display: block; color: var(--ink);
}
.tile:hover { border-color: var(--terracotta); transform: translateY(-2px); text-decoration: none; }
.tile h3 { color: var(--navy); }
.tile .go { font-family: "IBM Plex Mono", monospace; font-size: .82rem; color: var(--terracotta); }

/* Two-column feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature .media { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-tint); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--navy-soft); font-family: "IBM Plex Mono", monospace; font-size: .8rem; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pillars */
.pillars { counter-reset: pillar; display: grid; gap: 16px; }
.pillar { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.15); }
.pillar:first-child { border-top: 0; }
.pillar .n { font-family: "IBM Plex Mono", monospace; color: #e9b7af; font-size: .9rem; min-width: 34px; }
.pillar h3 { margin: 0 0 .2rem; }
.pillar p { margin: 0; color: #c3cfdd; }

/* Quotes */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote p { font-size: 1.05rem; }
.quote .who { font-family: "IBM Plex Mono", monospace; font-size: .82rem; color: var(--muted); }

/* CTA band */
.cta { background: var(--terracotta); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #fdeeec; max-width: 560px; margin: 0 auto 1.4rem; }

/* Contact form */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; color: var(--navy); }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: var(--paper);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--terracotta); border-color: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.form .check input { width: auto; margin-top: 4px; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: baseline; }
.info-list .k { font-family: "IBM Plex Mono", monospace; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); min-width: 92px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { font-family: "IBM Plex Mono", monospace; font-size: .82rem; background: var(--navy-tint); color: var(--navy); padding: 8px 14px; border-radius: 999px; }

/* Callout */
.callout { border-left: 4px solid var(--terracotta); background: var(--terracotta-tint); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout h3 { color: var(--terracotta-soft); }
.callout p:last-child { margin-bottom: 0; }

/* Page header */
.page-head { padding: 64px 0 12px; }
.page-head h1 { margin-bottom: .2em; }

/* Blog */
.post-list { display: grid; gap: 22px; }
.post-card { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .12s; color: var(--ink); }
.post-card:hover { border-color: var(--terracotta); transform: translateY(-2px); text-decoration: none; }
.post-card .cat { font-family: "IBM Plex Mono", monospace; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
.post-card h3 { color: var(--navy); margin: .3rem 0 .3rem; }
.post-card p { color: var(--muted); margin: 0; }
.post-card .thumb { aspect-ratio: 1/1; border-radius: 10px; background: var(--navy-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { font-family: "IBM Plex Mono", monospace; font-size: .82rem; letter-spacing: .04em; color: var(--muted); }
.article { max-width: 720px; margin: 0 auto; }
.article h2 { font-size: 1.5rem; margin-top: 2rem; }
.article h3 { font-size: 1.2rem; margin-top: 1.4rem; }
.article p, .article li { font-size: 1.08rem; line-height: 1.7; }
.article ul, .article ol { padding-left: 1.2rem; }
.article li { margin-bottom: .4rem; }
.article .refs { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.4rem; padding-top: 1.2rem; }
.article .refs li { font-size: .92rem; }
@media (max-width: 560px) { .post-card { grid-template-columns: 1fr; } .post-card .thumb { aspect-ratio: 16/9; } }

/* Footer */
.site-footer { background: var(--navy); color: #aebccd; padding: 56px 0 28px; }
.site-footer a { color: #dfe6ef; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-family: "IBM Plex Mono", monospace; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { font-weight: 750; font-size: 1.3rem; color: #fff; }
.footer-safety { font-size: .82rem; color: #9fb0c4; border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; margin-top: 16px; color: #90a2b8; }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/10; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .btn { border-bottom: 0; margin-top: 8px; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 32px 22px; }
  .section { padding: 60px 0; }
}
