/* Meridian North — site styles */

:root {
  --navy: #14202b;
  --navy-soft: #1c2e3d;
  --ink: #1c2b36;
  --paper: #faf8f4;
  --paper-alt: #f1ede4;
  --line: #ddd6c8;
  --accent: #a8702f;
  --muted: #5c6b73;
  --white: #ffffff;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 30ch; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.wrap-narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: 780px;
}

.hero-mark {
  position: absolute;
  top: -40px;
  right: -260px;
  width: 480px;
  height: 480px;
  color: var(--line);
  z-index: 0;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 24px;
}

.card-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.prose {
  margin-top: 32px;
  color: var(--ink);
}

.prose p {
  max-width: 68ch;
}

.prose-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 64ch;
  margin-top: 20px;
}

.track-record {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Substack box */
.substack-box {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
}

.substack-copy h3 { margin-bottom: 0.25em; }
.substack-copy p { color: var(--muted); margin-bottom: 1.2em; }

/* Contact form */
.contact-form {
  margin-top: 40px;
  max-width: 560px;
}

.form-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-row input,
.form-row textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 2px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  max-width: 560px;
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 0.9rem;
  margin-top: 32px;
  margin-bottom: -8px;
}

.form-status-ok {
  background: #eaf3ea;
  border: 1px solid #a9c9a9;
  color: #2f5233;
}

.form-status-error {
  background: #f6e7e3;
  border: 1px solid #d8a692;
  color: #8a3a1f;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .substack-box { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding: 90px 0 70px; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
}
