/* The Men From the Medium — warm, classically clean.
   Palette: cream ground, deep-navy ink (from the cover), dawn-gold accent. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-normal-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #faf5ec;
  --cream-deep: #f3ead9;
  --card: #fffdf8;
  --ink: #22303e;
  --ink-soft: #51606f;
  --gold: #b07c22;
  --gold-deep: #96660f;
  --gold-soft: #f0ddb4;
  --line: #e6dac4;
  --shadow: 0 18px 40px -18px rgba(34, 48, 62, .35);
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.075rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.4rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* ── header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 245, 236, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .8rem; padding-bottom: .8rem; flex-wrap: wrap;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.12rem;
  color: var(--ink); text-decoration: none; letter-spacing: .01em;
  display: flex; align-items: center; gap: .55rem;
}
.brand img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }
.site-nav { display: flex; gap: 1.35rem; font-family: var(--sans); font-size: .93rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-deep); }

/* ── hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(52rem 30rem at 78% 8%, rgba(240, 200, 120, .38), transparent 60%),
    radial-gradient(40rem 26rem at 8% 96%, rgba(240, 221, 180, .5), transparent 65%),
    linear-gradient(180deg, #fbf7ef 0%, var(--cream) 70%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 3.4rem; align-items: center; padding-top: 4rem; padding-bottom: 4.4rem;
}
.hero-cover { justify-self: center; }
.hero-cover img {
  display: block; width: 100%; max-width: 380px; height: auto;
  border-radius: 6px; box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: .78rem;
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); background: var(--gold-soft);
  border: 1px solid #e3c98e; border-radius: 999px;
  padding: .32rem .95rem; margin-bottom: 1.15rem;
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); margin-bottom: .55rem; }
.hero .byline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.25rem; color: var(--ink-soft); margin-bottom: 1.2rem;
}
.hero .lede { max-width: 34em; color: var(--ink-soft); margin-bottom: 1.9rem; }
.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: .97rem; border-radius: 8px; text-decoration: none;
  padding: .78rem 1.5rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(180deg, #c08a2e, #a9721e);
  color: #fffdf6; box-shadow: 0 10px 22px -12px rgba(150, 102, 15, .8);
}
.btn-gold:hover { color: #fff; box-shadow: 0 12px 26px -12px rgba(150, 102, 15, .95); }
.btn-quiet { background: transparent; color: var(--ink); border-color: #cdbfa4; }
.btn-quiet:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

/* ── sections ───────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.4rem; }
.section .kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: .6rem;
}
.prose { max-width: 42em; }
.prose p + p { margin-top: 1.1rem; }

.epigraph {
  text-align: center; padding: 3.6rem 1.4rem;
  background: var(--cream-deep); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.epigraph blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.5;
  max-width: 30em; margin: 0 auto .8rem; color: var(--ink);
}
.epigraph cite { font-family: var(--sans); font-style: normal; font-size: .88rem; color: var(--ink-soft); letter-spacing: .06em; }

/* ── subscribe card ─────────────────────────────────────── */
.subscribe-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 2.6rem 2.4rem; box-shadow: 0 14px 34px -22px rgba(34, 48, 62, .35);
  max-width: 620px;
}
.subscribe-card h2 { font-size: 1.75rem; margin-bottom: .5rem; }
.subscribe-card p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.subscribe-form { display: flex; gap: .7rem; flex-wrap: wrap; }
.subscribe-form input[type="email"] {
  flex: 1 1 240px; font-family: var(--sans); font-size: 1rem;
  padding: .78rem 1rem; border: 1px solid #cdbfa4; border-radius: 8px;
  background: #fff; color: var(--ink);
}
.subscribe-form input[type="email"]:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.form-note { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); margin-top: .9rem; margin-bottom: 0 !important; }
.form-msg { font-family: var(--sans); font-size: .95rem; margin-top: 1rem; display: none; }
.form-msg.ok { display: block; color: #33691e; }
.form-msg.err { display: block; color: #a33a2a; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ── cards / blog ───────────────────────────────────────── */
.card-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.8rem 1.7rem; box-shadow: 0 10px 26px -20px rgba(34, 48, 62, .4);
  display: block; text-decoration: none; color: var(--ink);
  transition: transform .14s ease, box-shadow .14s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(34, 48, 62, .5); color: var(--ink); }
.post-card .date { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.post-card h3 { font-size: 1.3rem; margin: .45rem 0 .55rem; }
.post-card p { color: var(--ink-soft); font-size: .98rem; }
.post-card .read-more { display: inline-block; margin-top: .9rem; font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--gold-deep); }

/* ── excerpt quotes ─────────────────────────────────────── */
.quote-grid { display: grid; gap: 2.6rem 2.2rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.quote-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.9rem 1.8rem 1.7rem; box-shadow: 0 10px 26px -20px rgba(34, 48, 62, .4);
}
.quote-card::before {
  content: "\201C"; font-family: var(--serif); font-weight: 600;
  font-size: 3rem; color: var(--gold); line-height: .6; display: block;
  margin-bottom: .55rem;
}
.quote-card p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.04rem; line-height: 1.65; color: var(--ink);
}
.quote-card p + p { margin-top: .8rem; }
.quote-card cite {
  display: block; margin-top: 1.1rem; font-family: var(--sans);
  font-style: normal; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* ── article page ───────────────────────────────────────── */
.article-head { padding: 3.4rem 0 2rem; }
.article-head .date { font-family: var(--sans); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin: .5rem 0 .6rem; }
.article-head .byline { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
.article-body { max-width: 40em; padding-bottom: 3rem; }
.article-body p + p { margin-top: 1.15rem; }
.back-link { font-family: var(--sans); font-size: .9rem; }

/* ── about page ─────────────────────────────────────────── */
.author-grid { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.author-mark {
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f6e7c6, var(--gold-soft) 58%, #e3c98e);
  border: 1px solid #dcc491; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 4rem; color: var(--gold-deep);
  box-shadow: var(--shadow);
}
.author-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── contact / footer ───────────────────────────────────── */
.contact-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 2.4rem; display: flex; gap: 2rem; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
}
.contact-panel .prose { margin: 0; }
.social-btn { display: inline-flex; align-items: center; gap: .55rem; }
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }

.site-footer { border-top: 1px solid var(--line); background: var(--cream-deep); padding: 2.6rem 0; margin-top: 4rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 1.2rem; font-family: var(--sans); font-size: .88rem; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold-deep); }
.site-footer .fine { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.4rem; padding-top: 2.6rem; padding-bottom: 3rem; text-align: center; }
  .hero-cover img { max-width: 300px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .author-grid { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .contact-panel { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 1.02rem; }
  .site-header .wrap { justify-content: center; }
  .site-nav { gap: 1rem; }
  .section { padding: 3rem 0; }
  .subscribe-card { padding: 2rem 1.5rem; }
}
