/* ============================================
   North of Daniel — Shared Styles
   "observations from the second half"
   ============================================ */

:root {
  --ink: #1A1D26;
  --paper: #E9ECEF;
  --atlantic: #1E3A5F;
  --slate: #5A7894;
  --mist: #A0A8B0;

  --max-width: 1080px;
  --gutter: clamp(20px, 5vw, 64px);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--atlantic);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---------- Typography ---------- */

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

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

p {
  margin: 0 0 1.2em;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--atlantic);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 0.9em;
  display: block;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--slate);
  max-width: 640px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(233, 236, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 29, 38, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand .compass {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand .wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand .wordmark span {
  color: var(--atlantic);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--atlantic);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--atlantic);
  border-bottom: 2px solid var(--atlantic);
  padding-bottom: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.btn-primary {
  background: var(--atlantic);
  border-color: var(--atlantic);
  color: var(--paper);
}

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

/* ---------- Hero ---------- */

.hero {
  padding: clamp(60px, 12vh, 140px) 0 clamp(50px, 8vh, 100px);
}

.hero .eyebrow {
  margin-bottom: 1.2em;
}

.hero h1 {
  max-width: 11ch;
}

.hero .tagline {
  display: block;
  margin-top: 0.3em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2em;
}

/* ---------- Placeholder media blocks ---------- */

.media-block {
  background: linear-gradient(135deg, var(--mist) 0%, var(--slate) 100%);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.media-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(233, 236, 239, 0.06) 0px,
    rgba(233, 236, 239, 0.06) 2px,
    transparent 2px,
    transparent 14px
  );
}

.media-block span {
  position: relative;
  z-index: 1;
  padding: 1em;
}

.media-block.tall {
  aspect-ratio: 4 / 5;
}

.media-block.wide {
  aspect-ratio: 16 / 9;
}

.media-block.square {
  aspect-ratio: 1 / 1;
}

.media-block.reel {
  aspect-ratio: 9 / 16;
}

/* ---------- Video embeds (real footage, no placeholder texture) ---------- */

.video-embed {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ink);
}

.video-embed.reel {
  aspect-ratio: 9 / 16;
}

.video-embed video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Image embeds (real images, no placeholder texture) ---------- */

.image-embed {
  border-radius: 2px;
  overflow: hidden;
}

.image-embed.tall {
  aspect-ratio: 4 / 5;
}

.image-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Sections ---------- */

section {
  padding: clamp(50px, 8vh, 96px) 0;
}

.section-tight {
  padding-top: 0;
}

hr.divider {
  border: none;
  border-top: 1px solid rgba(26, 29, 38, 0.12);
  margin: 0;
}

/* ---------- Two-column layouts ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media {
    order: 0;
  }
}

/* ---------- Pillars grid ---------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

@media (max-width: 760px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  border: 1px solid rgba(26, 29, 38, 0.12);
  padding: clamp(24px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.35);
}

.pillar-card .pillar-weight {
  font-family: var(--serif);
  font-style: italic;
  color: var(--atlantic);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.4em;
}

.pillar-card ul {
  margin: 1em 0 0;
  padding-left: 1.2em;
  color: var(--slate);
}

.pillar-card li {
  margin-bottom: 0.5em;
}

/* ---------- Grid (general) ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

@media (max-width: 760px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Quote / callout ---------- */

.callout {
  border-left: 3px solid var(--atlantic);
  padding: 0.4em 0 0.4em clamp(20px, 3vw, 36px);
  margin: 0;
}

.callout p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--ink);
  margin-bottom: 0.4em;
}

/* ---------- Social links ---------- */

.social-row {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
  margin-top: 1.5em;
}

.social-row a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.social-row a:hover {
  color: var(--atlantic);
  border-bottom-color: var(--atlantic);
  text-decoration: none;
}

/* ---------- Tables (offer ladder etc) ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(26, 29, 38, 0.12);
  vertical-align: top;
}

th {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--slate);
}

/* ---------- Forms ---------- */

.signup-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.5em;
}

.signup-form input[type="email"] {
  flex: 1 1 260px;
  padding: 13px 16px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
}

.signup-form input[type="email"]::placeholder {
  color: var(--mist);
}

.signup-form input[type="email"]:focus {
  outline: 2px solid var(--atlantic);
  outline-offset: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(26, 29, 38, 0.12);
  padding: 48px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer .brand .wordmark {
  font-size: 1rem;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--slate);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

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

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

.footer-meta {
  width: 100%;
  font-size: 0.8rem;
  color: var(--mist);
  margin-top: 8px;
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  padding: clamp(50px, 9vh, 110px) 0 clamp(30px, 5vh, 60px);
}

.page-header .eyebrow {
  margin-bottom: 1.2em;
}

.page-header h1 {
  max-width: 16ch;
}

/* ---------- Utility ---------- */

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
