/* =====================================================================
   danmcd.io — shared styles
   Editorial-magazine personal site. Forest green + warm gold on cream.
   Built for browser display (not print). Photos sit in /assets/images/.
   ===================================================================== */

:root {
  --ink: #1a1f1a;
  --body: #2d3530;
  --muted: #5a635c;
  --light: #8f968f;
  --rule: #d8d6cf;
  --accent: #1f4d3a;      /* deep forest green */
  --accent-soft: #2a5f48;
  --paper: #f7f4ec;       /* warm cream */
  --paper-deep: #efeae0;
  --highlight: #c8a35a;   /* warm gold */
  --white: #ffffff;

  --serif: 'Playfair Display', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.15s ease; }
a:hover { opacity: 0.7; }

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

/* ============ LAYOUT ============ */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 60px 48px;
}
.container { max-width: 720px; margin: 0 auto; }
.wide { max-width: 900px; margin: 0 auto; }

/* ============ TOP BAR ============ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 24px;
  margin-bottom: 64px;
  border-bottom: 0.5px solid var(--rule);
}
.topbar .brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.4px;
}
.topbar .brand a { color: var(--ink); }
.topbar nav {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar nav a {
  color: var(--muted);
  margin-left: 28px;
}
.topbar nav a.active {
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
}

/* ============ TYPOGRAPHY ============ */
h1 {
  font-family: var(--serif);
  font-size: 60px;
  line-height: 1.06;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1.2px;
  margin-bottom: 28px;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}

h2 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.7px;
  margin-bottom: 28px;
}

h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.65;
}

p.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 640px;
}

strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

/* ============ SECTIONS ============ */
section { margin-bottom: 96px; }
section:last-child { margin-bottom: 0; }

.divider {
  border-top: 0.5px solid var(--rule);
  margin: 64px 0;
}

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 88px;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  max-width: 560px;
}

/* ============ PHOTOS ============ */
.photo {
  background: var(--paper-deep);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.portrait { aspect-ratio: 4 / 5; }
.photo.square { aspect-ratio: 1 / 1; }
.photo.wide { aspect-ratio: 16 / 9; }
.photo.landscape { aspect-ratio: 3 / 2; }

/* placeholder treatment when no image is set */
.photo[data-placeholder] {
  border: 1px dashed var(--light);
  color: var(--light);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

/* ============ OPT-IN ============ */
.optin {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 44px;
  border-radius: 4px;
  margin-bottom: 88px;
}
.optin-lead {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--highlight);
  font-weight: 700;
  margin-bottom: 14px;
}
.optin-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--white);
}
.optin-body {
  font-size: 16px;
  color: #c8cec9;
  margin-bottom: 24px;
  max-width: 560px;
  line-height: 1.55;
}
.optin-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  max-width: 540px;
}
.optin-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--paper);
  padding: 14px 16px;
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}
.optin-input::placeholder { color: var(--light); }
.optin-input:focus { border-color: var(--highlight); }
.optin-btn {
  background: var(--highlight);
  color: var(--ink);
  padding: 14px 28px;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.3px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.optin-btn:hover { opacity: 0.9; }
.optin-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.optin-btn:disabled:hover { opacity: 0.55; }
.optin-input:disabled { opacity: 0.6; cursor: not-allowed; }
.optin-fineprint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--light);
}

/* ============ BULLETS ============ */
.bullets {
  list-style: none;
  margin-top: 24px;
}
.bullets li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.6;
}
.bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============ TWO-COL ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col.flip { grid-template-columns: 0.85fr 1.4fr; }
.two-col.video { grid-template-columns: 1fr 1fr; gap: 32px; }

/* ============ OFFER CARDS ============ */
.offer {
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.5);
  padding: 36px 40px;
  border-radius: 4px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.offer:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.offer-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.offer-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.offer-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  margin-bottom: 16px;
}
.offer-meta {
  font-size: 14px;
  color: var(--muted);
  border-top: 0.5px solid var(--rule);
  padding-top: 14px;
}
.offer-meta strong { color: var(--ink); }

/* ============ TESTIMONIAL QUOTES ============ */
.quote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 28px;
  margin-bottom: 36px;
}
.quote-text {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 12px;
}
.quote-attr {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.quote-attr strong { color: var(--ink); }

/* ============ PROSE BIO ============ */
.prose-bio p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 640px;
}

.client-list {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  padding: 24px 28px;
  background: var(--paper-deep);
  border-radius: 3px;
  margin-top: 20px;
}
.client-list .label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

/* ============ VIDEO BLOCK ============ */
.video-block {
  background: var(--ink);
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.video-block:hover { transform: scale(1.01); }
.video-block .play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  padding-left: 5px;
}
.video-block .vid-label {
  position: absolute;
  bottom: 18px;
  left: 22px;
  right: 22px;
  color: #c8cec9;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.video-caption {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

/* ============ WRITING / ARCHIVE ============ */
.essay-list {
  list-style: none;
  margin-top: 32px;
}
.essay-item {
  padding: 28px 0;
  border-bottom: 0.5px solid var(--rule);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: baseline;
}
.essay-item:first-child { padding-top: 0; }
.essay-date {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.essay-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  line-height: 1.25;
}
.essay-title a { color: var(--ink); }
.essay-excerpt {
  font-size: 16px;
  color: var(--body);
  line-height: 1.55;
  max-width: 560px;
}

/* ============ NOW PAGE ============ */
.now-block {
  margin-bottom: 40px;
}
.now-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.now-content {
  font-size: 17px;
  line-height: 1.65;
}
.now-updated {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: 32px;
}

/* ============ FOOTER ============ */
footer {
  border-top: 0.5px solid var(--rule);
  padding-top: 48px;
  margin-top: 80px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
footer .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
footer .foot-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 700;
}
footer .foot-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 700;
  font-family: var(--sans);
}
footer .foot-col a, footer .foot-col span {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
  font-size: 14px;
}
footer .foot-bottom {
  padding-top: 24px;
  border-top: 0.5px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--light);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .page { padding: 32px 24px; }
  .topbar { flex-direction: column; gap: 18px; align-items: flex-start; margin-bottom: 40px; }
  .topbar nav a { margin-left: 0; margin-right: 20px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .two-col, .two-col.flip, .two-col.video { grid-template-columns: 1fr; gap: 32px; }
  .optin { padding: 28px 24px; }
  .optin-form { flex-direction: column; }
  .optin-btn { width: 100%; }
  .essay-item { grid-template-columns: 1fr; gap: 8px; }
  footer .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  footer .foot-bottom { flex-direction: column; gap: 8px; }
  section { margin-bottom: 64px; }
}
