/* ============================================================
   Ryan Doom — clean static rebuild
   Type: Medula One (display) · Caveat (accent) · Crimson Text (prose)
   ============================================================ */

:root {
  --paper:      #fbf9f5;
  --paper-2:    #f3efe7;
  --ink:        #1c1a17;
  --ink-soft:   #4a463f;
  --muted:      #837c70;
  --line:       #e4ddd0;
  --accent:     #e8552d;   /* warm coral — energy */
  --accent-ink: #c23d18;
  --deep:       #15303a;   /* deep teal — contrast sections */
  --deep-2:     #0e2129;
  --cream-on-deep: #eef2ee;

  --maxw: 1140px;
  --gap: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --shadow: 0 18px 50px -22px rgba(21, 48, 58, .35);
  --shadow-sm: 0 8px 24px -16px rgba(21, 48, 58, .4);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", cursive;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif);
  font-size: clamp(1.075rem, 0.6vw + 1rem, 1.2rem);
  line-height: 1.72;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.lead { font-size: 1.25em; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}
.accent-script {
  font-family: var(--hand);
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}

/* ---------- headings ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.9rem, 7vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h2, .prose h3 { margin-top: 2.2rem; margin-bottom: .8rem; }
p + p { margin-top: 1.15rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .02em;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent); color: #fff;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { color: #fff; background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-2px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--on-deep { background: var(--accent); border-color: var(--accent); }
.btn--light { background: #fff; color: var(--deep); border-color:#fff; }
.btn--light:hover { background: var(--paper-2); color: var(--deep); border-color: var(--paper-2); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 245, .82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand {
  font-family: "Medula One", var(--display); font-size: 2.5rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink); line-height: 1;
}
.brand:hover { color: var(--accent); }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--sans); font-weight: 600; font-size: .92rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft); position: relative; padding-block: .4rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { margin-left: .5rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  width: 44px; height: 44px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 26px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease; position: relative;
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after  { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: min(88vh, 760px);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  color: #fff;
  background-image:
    linear-gradient(100deg, rgba(11,29,36,.94) 0%, rgba(11,29,36,.84) 32%, rgba(11,29,36,.5) 54%, rgba(11,29,36,.15) 76%, rgba(11,29,36,.05) 100%),
    url("../img/header-hat-background.jpg");
  background-size: cover; background-position: top right; background-repeat: no-repeat;
}
.hero__content { max-width: 640px; position: relative; z-index: 1; }
.hero .accent-script { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: -.3rem; display: block; color: #ff8056; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero .sub {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem); color: #e9eeee;
  max-width: 34ch; line-height: 1.35; font-style: italic;
}
.hero .mission { max-width: 54ch; margin-top: 1.5rem; color: #d2dadb; }
.hero .mission strong { color: #fff; }
.hero .hero-cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn--ghost:hover { background: #fff; color: var(--deep); border-color: #fff; }

/* ---------- generic content blocks ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature--reverse .feature__media { order: 2; }
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature__body .eyebrow { margin-bottom: .8rem; }
.feature__body h2 { margin-bottom: 1rem; }

/* ---------- video embed ---------- */
.video-embed {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  max-width: 760px; margin: 2.2rem auto 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.band--deep .video-embed { box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); }

.band { background: var(--paper-2); }
.band--deep { background: var(--deep); color: var(--cream-on-deep); }
.band--deep h2, .band--deep h3 { color: #fff; }
.band--deep .eyebrow { color: #f0a98f; }
.band--deep a:not(.btn) { color: #ffb9a3; }
.band--deep .muted { color: #9fb1b6; }
.band--deep .lead { color: #eef2ee; }
.band--deep p { color: #cdd9da; }
.band--deep strong { color: #fff; }

.measure { max-width: 62ch; }
.measure--center { margin-inline: auto; }

/* ---------- ebook card ---------- */
.ebook {
  display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem,5vw,3.5rem);
  align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: clamp(1.6rem, 4vw, 3rem); box-shadow: var(--shadow);
}
.ebook img { border-radius: 10px; box-shadow: var(--shadow-sm); }

/* ---------- blog cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.tag {
  font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6rem;
}
.card__body h3 { font-size: 1.55rem; line-height: 1; margin-bottom: .6rem; }
.card__body h3 a { color: var(--ink); }
.card__body h3 a:hover { color: var(--accent); }
.card__excerpt { font-size: 1rem; color: var(--ink-soft); flex: 1; }
.card__more {
  font-family: var(--sans); font-weight: 600; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .04em; margin-top: 1rem;
}

/* ---------- page hero (interior) ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem,4vw,3rem); text-align: center; }
.page-hero .accent-script { font-size: clamp(1.8rem,4vw,2.6rem); display:block; margin-bottom:-.3rem;}
.page-hero p { max-width: 56ch; margin-inline: auto; margin-top: 1rem; }

/* photo header variant — full-bleed image of Ryan with a dark scrim */
.page-hero--photo {
  position: relative; display: flex; align-items: center; text-align: left;
  min-height: min(58vh, 480px);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
  background-size: cover; background-position: top right; background-repeat: no-repeat;
}
.page-hero--photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,29,36,.93) 0%, rgba(11,29,36,.8) 34%, rgba(11,29,36,.42) 58%, rgba(11,29,36,.12) 80%, rgba(11,29,36,.02) 100%);
}
.page-hero--photo .wrap { position: relative; z-index: 1; }
.page-hero__content { max-width: 620px; }
.page-hero--photo .accent-script { color: #ff8056; }
.page-hero--photo h1 { color: #fff; }
.page-hero--photo p { color: #dde4e4; margin-inline: 0; max-width: 52ch; }

/* ---------- about ---------- */
.bio { max-width: 64ch; margin-inline: auto; }
.bio .pull { font-family: var(--hand); color: var(--accent); font-size: 1.9rem; line-height:1.2; }
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; margin-top: 2.5rem; }
.work-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; display:flex; flex-direction:column; gap:.9rem;
}
.work-card__logo { height: 46px; display:flex; align-items:center; }
.work-card__logo img { max-height: 46px; width:auto; }
.work-card h3 { font-size: 1.4rem; }
.work-card p { font-size: 1rem; color: var(--ink-soft); flex:1; }
.work-card .link-arrow { font-family: var(--sans); font-weight:600; font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; }

/* ---------- quote ---------- */
.quote { text-align: center; max-width: 60ch; margin-inline: auto; }
.quote blockquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.5; color: var(--ink);
}
.quote cite { display:block; margin-top: 1.2rem; font-style: normal; font-family: var(--sans);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
.quote .mark { font-family: var(--display); font-size: 4rem; color: var(--accent); line-height:0; }
/* quote on dark teal band */
.band--deep .quote blockquote { color: #fff; }
.band--deep .quote cite { color: #9fb1b6; }

/* ---------- article ---------- */
.article-head { padding-block: clamp(2.5rem,6vw,4.5rem) 1.5rem; text-align:center; }
.article-head .meta { font-family: var(--sans); font-size:.85rem; letter-spacing:.06em;
  text-transform: uppercase; color: var(--muted); margin-top: 1rem; }
.article-head .meta a { color: var(--accent-ink); }
.article-hero-img { max-width: var(--maxw); margin: 0 auto 1rem; }
.article-hero-img img { border-radius: var(--radius); box-shadow: var(--shadow); width:100%; }
.prose { max-width: 68ch; margin-inline: auto; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose strong { color: var(--ink); }
.author-box {
  display:flex; gap:1.3rem; align-items:flex-start; max-width:68ch; margin:3rem auto 0;
  padding:1.8rem; background:var(--paper-2); border-radius: var(--radius); border:1px solid var(--line);
}
.author-box__avatar {
  flex:none; width:64px; height:64px; border-radius:50%; background:var(--deep); color:#fff;
  font-family: var(--display); font-size:2rem; display:flex; align-items:center; justify-content:center;
}
.author-box h4 { font-family: var(--display); text-transform:uppercase; font-size:1.5rem; color:var(--ink); font-weight:500;}
.author-box p { font-size:.98rem; margin-top:.3rem; }
.post-nav { display:flex; justify-content:space-between; gap:1rem; max-width:68ch; margin:2.5rem auto 0; flex-wrap:wrap;}

/* ---------- AMA form ---------- */
.ama-grid { display:grid; grid-template-columns: 1fr 1fr; gap:1.5rem; }
.ama-option {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; text-align:center;
}
.ama-option .ico { font-size: 2.4rem; }
.ama-option h3 { font-size:1.5rem; margin:.6rem 0; }
.form { max-width: 620px; margin: 2.5rem auto 0; display:grid; gap:1.1rem; }
.field { display:grid; gap:.4rem; }
.field label { font-family:var(--sans); font-weight:600; font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-soft); }
.field input, .field textarea {
  font-family: var(--serif); font-size:1.05rem; padding:.8rem 1rem; border:1px solid var(--line);
  border-radius: 10px; background:#fff; color:var(--ink); width:100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.boast-embed { max-width: 720px; margin: 2.5rem auto 0; }
.boast-credit { display:block; text-align:center; margin-top:.75rem; font-family:var(--sans); font-size:.72rem; color:var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep-2); color: var(--cream-on-deep); padding-block: 3.5rem 2rem; margin-top: 0; }
.footer-top { display:flex; justify-content:space-between; gap:2rem; flex-wrap:wrap; align-items:flex-start; }
.footer-brand .brand { color:#fff; }
.footer-brand p { color:#93a5aa; max-width: 32ch; margin-top:.6rem; font-size:1rem; }
.footer-cols { display:flex; gap:3.5rem; flex-wrap:wrap; }
.footer-col h5 { font-family:var(--sans); text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; color:#7d9197; margin-bottom:.9rem; }
.footer-col ul { list-style:none; display:grid; gap:.55rem; }
.footer-col a { color:#d4ddde; font-family:var(--sans); font-size:.95rem; }
.footer-col a:hover { color:#fff; }
.footer-bottom {
  display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap;
  margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid rgba(255,255,255,.1);
  font-family:var(--sans); font-size:.85rem; color:#7d9197;
}
.socials { display:flex; gap:.8rem; }
.socials a {
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center; color:#d4ddde;
}
.socials a:hover { background:var(--accent); border-color:var(--accent); color:#fff; }
.socials svg { width:17px; height:17px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hero {
    min-height: 0;
    background-image:
      linear-gradient(180deg, rgba(11,29,36,.84), rgba(11,29,36,.74)),
      url("../img/header-hat-background.jpg");
    background-position: center 18%;
  }
  .hero__content { max-width: none; }
  .hero .sub { max-width: none; }
  .page-hero--photo { min-height: 0; background-position: center 22%; }
  .page-hero--photo::before { background: linear-gradient(180deg, rgba(11,29,36,.8), rgba(11,29,36,.72)); }
  .page-hero__content { max-width: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display:block; }
  .nav-links {
    position: absolute; top: 72px; left:0; right:0;
    flex-direction: column; align-items: stretch; gap:0;
    background: var(--paper); border-bottom:1px solid var(--line);
    padding: .5rem var(--gap) 1.2rem;
    transform: translateY(-12px); opacity:0; pointer-events:none; transition: .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity:1; pointer-events:auto; }
  .nav-links a { padding-block:.9rem; border-bottom:1px solid var(--line); }
  .nav-links a::after { display:none; }
  .nav-cta { margin:.8rem 0 0; }
  .nav-cta .btn { width:100%; justify-content:center; }
  .feature, .feature--reverse .feature__media { grid-template-columns: 1fr; order: 0; }
  .feature__media { order: -1 !important; }
  .ebook { grid-template-columns: 1fr; text-align:center; }
  .ebook img { max-width: 240px; margin-inline:auto; }
  .cards, .work-grid, .ama-grid { grid-template-columns: 1fr; }
  .cards { gap: 1.4rem; }
}
@media (max-width: 520px) {
  .footer-cols { gap: 2rem; }
}
