/* Public pages: themichaelsullivan.com
   Classic serif (Libre Baskerville, sturdy enough for screens) + clean geometric sans (Jost, echoing the name lockup). */
:root {
  --navy: #0E2240;
  --blue: #1F4E8C;
  --blue-soft: #8FA8CC;
  --white: #FFFFFF;
  --mist: #F3F6FA;
  --line: #D9E0EA;
  --text: #1B2A40;
  --muted: #435369;
  --serif: "Libre Baskerville", "Baskerville", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body.pub { margin: 0; background: var(--white); color: var(--text); font: 400 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
.pub img { max-width: 100%; height: auto; }
.pub a { color: var(--blue); }
.pub :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.pub h1, .pub h2, .pub h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
.pub h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
.pub h3 { font-size: 21px; line-height: 1.35; margin-bottom: 8px; }
.pub p { margin: 0 0 1em; }
.p-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.p-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.p-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.p-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.p-brand img { height: 38px; width: auto; }
.p-brand span { font: 500 13px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--navy); }
.p-nav { display: flex; align-items: center; gap: 30px; }
.p-nav a { color: var(--text); text-decoration: none; font-size: 16px; padding: 6px 0; border-bottom: 1px solid transparent; }
.p-nav a:hover, .p-nav a[aria-current="page"] { border-bottom-color: var(--navy); color: var(--navy); }
.p-nav a.p-nav-cta { border: 1px solid var(--navy); padding: 9px 18px; color: var(--navy); }
.p-nav a.p-nav-cta:hover { background: var(--navy); color: #fff; }

/* Buttons and links */
.p-btn { display: inline-block; font: 500 16px/1 var(--sans); letter-spacing: .02em; padding: 16px 28px; background: var(--navy); color: #fff !important; text-decoration: none; border: 1px solid var(--navy); cursor: pointer; transition: background .2s, color .2s; }
.p-btn:hover { background: var(--blue); border-color: var(--blue); }
.p-btn-light { background: #fff; color: var(--navy) !important; border-color: #fff; }
.p-btn-light:hover { background: transparent; color: #fff !important; border-color: #fff; }
.p-textlink { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; font-size: 16px; }
.p-textlink:hover { color: var(--blue); }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 30px; }

/* Hero */
.p-hero { padding: 84px 0 76px; }
.p-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.p-kicker { font-size: 17px; color: var(--blue); margin-bottom: 18px; }
.p-hero h1 { font-size: clamp(46px, 6.4vw, 82px); line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 30px; }
.p-lede { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.1vw, 26px); line-height: 1.5; color: var(--navy); max-width: 30ch; }
.p-intro { color: var(--muted); max-width: 52ch; }
.p-portrait { margin: 0; position: relative; padding: 0 22px 22px 0; }
.p-portrait::before { content: ""; position: absolute; inset: 22px 0 0 22px; border: 1px solid var(--navy); }
.p-portrait-photo { position: relative; background: linear-gradient(180deg, #E4EBF4 0%, #F3F6FA 100%); }
.p-portrait img { display: block; width: 100%; mix-blend-mode: multiply; }
@media (prefers-reduced-motion: no-preference) {
  .p-hero-text > *, .p-portrait { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .p-hero-text > :nth-child(2) { animation-delay: .08s; }
  .p-hero-text > :nth-child(3) { animation-delay: .16s; }
  .p-hero-text > :nth-child(4), .p-hero-text > :nth-child(5) { animation-delay: .24s; }
  .p-portrait { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Figures */
.p-figures { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-figures-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.p-figures-row div { padding: 30px 26px; border-left: 1px solid var(--line); }
.p-figures-row div:first-child { border-left: 0; padding-left: 0; }
.p-figures-row b { display: block; font: 400 clamp(30px, 3vw, 40px)/1.1 var(--serif); color: var(--navy); margin-bottom: 8px; }
.p-figures-row span { font-size: 15px; color: var(--muted); line-height: 1.45; display: block; }

/* Sections */
.p-section { padding: 100px 0; }
.p-mist { background: var(--mist); }
.p-navy { background: var(--navy); color: #DCE4F0; }
.p-navy h2, .p-navy h3 { color: #fff; }
.p-head { margin-bottom: 48px; max-width: 640px; }
.p-head p { color: var(--muted); margin-top: 12px; }
.p-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.p-prose { max-width: 64ch; }
.p-prose p { font-size: 19px; line-height: 1.7; }
.p-pull { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.1vw, 26px) !important; line-height: 1.5 !important; color: var(--navy); border-top: 1px solid var(--navy); padding-top: 26px; margin-top: 34px; }

/* Method */
.p-method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--navy); }
.p-method li { padding: 28px 28px 0 0; }
.p-method li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.p-roman { display: block; font: italic 400 22px/1 var(--serif); color: var(--blue); margin-bottom: 18px; }
.p-method p { color: var(--muted); font-size: 17px; }

/* Help */
.p-help { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.p-help > div { padding: 30px 0; border-top: 1px solid var(--line); }
.p-help p { color: var(--muted); font-size: 17px; max-width: 48ch; }

/* Results */
.p-results { margin: 0; border-top: 1px solid rgba(255,255,255,.22); }
.p-results > div { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 40px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.14); align-items: baseline; }
.p-results dt { font: 400 clamp(22px, 2.3vw, 28px)/1.25 var(--serif); color: #fff; }
.p-results dd { margin: 0; font-size: 17px; color: #DCE4F0; max-width: 60ch; }
.p-industries { margin-top: 30px; font-size: 15px; color: var(--blue-soft); }

/* Testimonials */
.p-signature { margin: 0 auto 80px; max-width: 900px; text-align: center; }
.p-signature blockquote { margin: 0; font: italic 400 clamp(30px, 4.4vw, 52px)/1.25 var(--serif); color: var(--navy); letter-spacing: -0.01em; }
.p-signature blockquote::before { content: "\201C"; }
.p-signature blockquote::after { content: "\201D"; }
.pub .p-signature > figcaption { margin-top: 30px; font-size: 16px; color: var(--muted); }
.p-signature > figcaption::before { content: ""; display: block; width: 48px; height: 1px; background: var(--navy); margin: 0 auto 18px; }
.p-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.p-quotes figure, .p-quotes-small figure { margin: 0; display: flex; flex-direction: column; }
.p-quotes blockquote { margin: 0 0 22px; font: 400 18px/1.7 var(--serif); color: var(--navy); }
.p-quotes blockquote::before, .p-quotes-small blockquote::before { content: "\201C"; }
.p-quotes blockquote::after, .p-quotes-small blockquote::after { content: "\201D"; }
.pub figcaption { font-size: 15px; color: var(--muted); margin-top: auto; }
.pub figcaption b { display: block; font-weight: 500; color: var(--navy); }
.p-quotes-small { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.p-quotes-small blockquote { margin: 0 0 16px; font-size: 16.5px; line-height: 1.65; color: var(--text); }

/* Career and credentials */
.p-two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; }
.p-two h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 26px; }
.p-h2-spaced { margin-top: 48px; }
.p-timeline, .p-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.p-timeline li { display: grid; grid-template-columns: 150px 1fr; column-gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.p-when { grid-row: span 2; font: italic 400 17px/1.4 var(--serif); color: var(--blue); }
.p-role { display: block; color: var(--navy); font-weight: 500; }
.p-org { display: block; color: var(--muted); font-size: 16px; }
.p-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }

/* Ventures */
.p-ventures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
.p-ventures li { padding: 28px 0; border-top: 1px solid var(--line); }
.p-ventures p { color: var(--muted); font-size: 17px; margin-bottom: 10px; max-width: 50ch; }

/* Outside of work */
.p-off { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.p-off > div { border-top: 1px solid var(--navy); padding-top: 22px; }
.p-off p { color: var(--muted); font-size: 17px; }
.p-rotm { display: grid; grid-template-columns: 220px 1fr; gap: 48px; margin-top: 72px; padding: 48px; background: #fff; border: 1px solid var(--line); }
.p-rotm-label { font: italic 400 22px/1.3 var(--serif); color: var(--blue); }
.p-rotm h3 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 6px; }
.p-rotm-by { color: var(--muted); font-size: 17px; }
.p-rotm-body > p:not(.p-rotm-by) { max-width: 62ch; }

/* Contact */
.p-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.p-contact h2 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 20px; }
.p-contact-list { list-style: none; padding: 0; margin: 36px 0 0; }
.p-contact-list li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); }
.p-contact-list span { display: block; font-size: 14px; color: var(--blue-soft); }
.p-contact-list a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.p-contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.p-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.p-form label { display: block; font-size: 14px; color: #C9D5E7; margin-bottom: 14px; }
.p-form input, .p-form textarea { display: block; width: 100%; margin-top: 6px; font: 400 17px/1.4 var(--sans); color: #fff; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); padding: 10px 0; border-radius: 0; outline: none; }
.p-form textarea { resize: vertical; border: 1px solid rgba(255,255,255,.4); padding: 12px; }
.p-form input:focus, .p-form textarea:focus { border-color: #fff; }
.p-full { grid-column: 1 / -1; }
.p-form .p-btn { margin-top: 8px; justify-self: start; }
.p-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p-error { grid-column: 1 / -1; background: rgba(255,255,255,.1); border-left: 3px solid #fff; color: #fff; padding: 12px 16px; }
.p-sent { font: italic 400 22px/1.5 var(--serif); color: #fff; border-top: 1px solid rgba(255,255,255,.4); padding-top: 26px; }

/* Footer */
.p-footer { padding: 64px 0 48px; text-align: center; border-top: 1px solid var(--line); }
.p-footer img { width: 132px; height: auto; margin: 0 auto 14px; display: block; }
.p-footer p { color: var(--muted); font-size: 15px; margin: 0 0 6px; }
.p-fine { font-size: 14px !important; }
.p-fine a { color: var(--muted); }
.p-fine a:hover { color: var(--navy); }

/* Reading page */
.r-hero { padding: 80px 0 40px; }
.r-hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; margin-bottom: 18px; }
.r-hero p { color: var(--muted); max-width: 56ch; font-size: 19px; }
.r-genres { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 56px; }
.r-genres a { color: var(--text); text-decoration: none; font-size: 16px; }
.r-genres a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.r-genres span { color: var(--muted); font-size: 14px; }
.r-genre { padding: 64px 0 0; scroll-margin-top: 90px; }
.r-genre h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 22px; }
.r-books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 44px; border-top: 1px solid var(--navy); }
.r-books li { border-bottom: 1px solid var(--line); }
.r-books a { display: block; padding: 18px 0; text-decoration: none; }
.r-books b { display: block; font: 400 18px/1.4 var(--serif); color: var(--navy); }
.r-books span { display: block; font-size: 15px; color: var(--muted); margin-top: 3px; }
.r-books a:hover b { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.r-disclosure { margin: 72px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.r-section-end { padding-bottom: 90px; }

/* Responsive */
@media (max-width: 960px) {
  .p-hero-grid, .p-split, .p-two, .p-contact { grid-template-columns: 1fr; gap: 48px; }
  .p-portrait { max-width: 380px; }
  .p-figures-row { grid-template-columns: repeat(2, 1fr); }
  .p-figures-row div:nth-child(3) { border-left: 0; padding-left: 0; }
  .p-figures-row div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .p-method { grid-template-columns: repeat(2, 1fr); }
  .p-method li:nth-child(3) { padding-left: 0; border-left: 0; }
  .p-off { grid-template-columns: repeat(2, 1fr); }
  .p-rotm { grid-template-columns: 1fr; gap: 16px; padding: 32px; }
  .r-books { grid-template-columns: repeat(2, 1fr); }
  .p-quotes-small { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body.pub { font-size: 17px; }
  .p-wrap { padding: 0 20px; }
  .p-header-inner { min-height: 64px; }
  .p-brand span { display: none; }
  .p-nav { gap: 18px; }
  .p-nav a { font-size: 15px; }
  .p-nav a.p-nav-cta { padding: 7px 12px; }
  .p-hero { padding: 48px 0 56px; }
  .p-portrait { max-width: 300px; }
  .p-section { padding: 72px 0; }
  .p-figures-row div { padding: 22px 14px 22px 0; }
  .p-figures-row div:nth-child(even) { padding-left: 14px; }
  .p-method, .p-help, .p-ventures, .p-off, .p-quotes, .p-quotes-small, .r-books { grid-template-columns: 1fr; }
  .p-method li, .p-method li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .p-results > div { grid-template-columns: 1fr; gap: 8px; }
  .p-timeline li { grid-template-columns: 1fr; }
  .p-when { grid-row: auto; }
  .p-form { grid-template-columns: 1fr; }
  .p-rotm { padding: 24px; }
  .p-signature { margin-bottom: 56px; }
}

/* Read of the month, placed right after the hero */
.p-rotm-section { background: var(--mist); padding: 64px 0; border-top: 1px solid var(--line); }
.p-rotm.p-rotm-top { margin-top: 0; }
@media (max-width: 640px) { .p-rotm-section { padding: 44px 0; } }

/* Read of the month cover */
.p-rotm-cover { display: block; align-self: start; }
.p-rotm-cover img { display: block; width: 100%; max-width: 220px; height: auto; box-shadow: 0 1px 2px rgba(14,34,64,.12), 0 14px 32px rgba(14,34,64,.18); transition: transform .25s; }
.p-rotm-cover:hover img { transform: translateY(-3px); }
.p-rotm-kicker { font: italic 400 19px/1.3 var(--serif); color: var(--blue); margin-bottom: 10px !important; }
@media (max-width: 960px) { .p-rotm-cover img { max-width: 180px; } }
@media (prefers-reduced-motion: reduce) { .p-rotm-cover img { transition: none; } }

/* Book covers in the reading list */
.r-books a { display: flex; align-items: center; gap: 16px; }
.r-slot { flex: 0 0 72px; height: 88px; display: flex; align-items: center; justify-content: flex-start; }
.r-slot img { display: block; max-width: 72px; max-height: 88px; width: auto; height: auto; box-shadow: 0 1px 2px rgba(14,34,64,.15), 0 6px 14px rgba(14,34,64,.12); }
.r-books .r-cover-blank { width: 58px; height: 88px; display: grid; place-items: center; margin: 0; background: var(--mist); color: var(--blue); font: italic 400 24px/1 var(--serif); box-shadow: none; border: 1px solid var(--line); border-left: 3px solid var(--navy); }
.r-books .r-text { display: block; min-width: 0; margin: 0; font-size: inherit; color: inherit; }
.r-books .r-note { display: block; font: italic 400 14px/1.4 var(--serif); color: var(--blue); margin-top: 4px; }
