/* ==========================================================================
   William Lively's Blog — clean static rebuild
   Refresh of the GoDaddy export; no builder runtime. Dark brand theme.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Open Sans', arial, sans-serif;

  --black: #000000;
  --white: #ffffff;
  --ink: #f1f1f1;        /* headings on dark */
  --muted: #e2e2e2;      /* nav links, logo box, tagline */
  --body: #919191;       /* body text on dark */
  --footer: #969696;     /* footer text */
  --post-ink: #1b1b1b;   /* post card heading */
  --post-body: #5e5e5e;  /* post card body text */
  --btn-fg: #303030;     /* button text on white */

  --container-max: 1160px;
  --side-pad: 24px;
  --content-col: 760px;
}

/* ---------- Fonts (localized latin subsets from the export) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans-italic.woff2') format('woff2');
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--black);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Keyboard focus ---------- */
:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 3px;
}
.logo:focus-visible,
.site-nav a:focus-visible,
.mobile-menu a:focus-visible,
.menu-toggle:focus-visible,
.menu-close:focus-visible,
.post-card:focus-visible,
.post-back:focus-visible,
.post-share a:focus-visible,
.social-btn:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--white);
}

/* ==========================================================================
   Header
   Desktop: boxed serif logo centered, nav centered below (uppercase, spaced).
   Mobile:  hamburger left, logo centered; drawer slides in from the right.
   ========================================================================== */
.site-header {
  background: var(--black);
  padding-top: 64px;
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 44px;
}
.logo {
  display: inline-block;
  border: 1px solid var(--muted);
  padding: 8px 16px;
  text-decoration: none;
}
.logo h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--muted);
  white-space: nowrap;
}
.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 44px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.site-nav a {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--muted);
}

/* Hamburger (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--muted);
}
.menu-toggle svg { display: block; }

/* Mobile drawer */
.mobile-menu {
  display: none;
}

@media (max-width: 767px) {
  .site-header { padding-top: 0; }
  .header-inner {
    position: relative;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 32px var(--side-pad) 28px;
  }
  .logo { padding: 4px 16px; }
  .logo h3 { font-size: 18px; }
  .menu-toggle {
    display: block;
    position: absolute;
    left: var(--side-pad);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
  }
  .menu-toggle svg { width: 28px; height: 28px; }
  .site-nav { display: none; }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: #0d0d0d;
    border-left: 1px solid #262626;
    padding: 24px;
    z-index: 100;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease;
  }
  .mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-menu ul {
    list-style: none;
    margin: 64px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .mobile-menu a {
    font-size: 22px;
    color: var(--muted);
    text-decoration: none;
  }
  .mobile-menu a.active { font-weight: 700; }
  .menu-close {
    position: absolute;
    top: 18px; right: 18px;
    background: none;
    border: 0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
  }
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  .menu-overlay.open {
    opacity: 1;
    visibility: visible;
  }
}

/* ==========================================================================
   Home hero (photo + headline)
   ========================================================================== */
.hero {
  display: flex;
  align-items: stretch;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}
.hero-media {
  flex: 0 0 540px;
  max-width: 540px;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: var(--ink);
}

@media (max-width: 899px) {
  .hero { flex-direction: column; margin-top: 40px; }
  .hero-media { flex: none; max-width: 540px; margin: 0 auto; }
  .hero-content { max-width: 540px; margin: 0 auto; padding: 36px 8px; }
  .hero-content h1 { font-size: 34px; }
}

@media (max-width: 767px) {
  .hero { margin-top: 24px; }
  .hero-content h1 { font-size: 30px; }
}

/* ==========================================================================
   Intro / content sections (dark)
   ========================================================================== */
.content-section {
  padding: 56px 0 40px;
}
.content-col {
  max-width: var(--content-col);
  margin: 0 auto;
}
.content-col .eyebrow {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.4;
  color: var(--muted);
}
.content-col p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
}
.content-col p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .content-section { padding: 40px 0 32px; }
  .content-col { padding: 0 var(--side-pad); }
}

/* Recent posts (home) — verbatim list */
.recent-posts {
  max-width: var(--content-col);
  margin: 40px auto 0;
}
.recent-posts h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--body);
  text-transform: none;
  margin: 0 0 12px;
}
.recent-posts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent-posts li {
  margin: 0 0 6px;
}
.recent-posts li em {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--muted);
}
@media (max-width: 767px) {
  .recent-posts { padding: 0 var(--side-pad); }
}

/* ==========================================================================
   Page heading (news, blog)
   ========================================================================== */
.page-heading {
  text-align: center;
  padding: 56px var(--side-pad) 8px;
}
.page-heading h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.2;
  color: var(--muted);
}
@media (max-width: 767px) {
  .page-heading h1 { font-size: 30px; }
}

/* ==========================================================================
   Blog index — post cards
   ========================================================================== */
.post-list {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px var(--side-pad) 24px;
}
.post-card {
  display: block;
  text-decoration: none;
  padding: 28px 8px;
  border-bottom: 1px solid #222;
}
.post-card:first-child { border-top: 1px solid #222; }
.post-card .post-date {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--footer);
}
.post-card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 12px;
}
.post-card p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}
.post-card .continue-reading {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.post-card:hover .continue-reading,
.post-card:hover h2 { border-bottom-color: currentColor; }
@media (max-width: 767px) {
  .post-list { padding: 32px var(--side-pad) 16px; }
  .post-card h2 { font-size: 22px; }
}

/* ==========================================================================
   Blog post — white card on black (source pattern kept)
   ========================================================================== */
.post-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px var(--side-pad) 0;
}
.post-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.post-card-body {
  flex: 1 1 680px;
  max-width: 680px;
  background: var(--white);
  padding: 48px 56px;
}
.post-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.post-back:hover { text-decoration: underline; }
.post-card-body h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 0.5px;
  color: var(--post-ink);
  margin: 0 0 10px;
}
.post-card-body .post-date {
  font-size: 14px;
  color: var(--post-body);
  margin: 0 0 28px;
}
.post-card-body .post-content p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--post-body);
}
.post-card-body .post-content p:last-child { margin-bottom: 0; }
.post-card-body .post-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}
.post-card-body .post-content ol li {
  margin-bottom: 8px;
  color: var(--post-body);
}
.post-share {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #ececec;
}
.post-share p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--post-ink);
}
.post-share a {
  display: inline-flex;
  color: var(--post-ink);
}
.post-share a:hover { color: #444; }
.post-share svg { width: 28px; height: 28px; }

/* Post sidebar */
.post-sidebar {
  flex: 0 0 300px;
  max-width: 300px;
}
.post-sidebar h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 20px;
}
.post-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-sidebar li { margin-bottom: 18px; }
.post-sidebar a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.post-sidebar a:hover { text-decoration: underline; }
.post-sidebar .post-side-date {
  display: block;
  font-size: 13px;
  color: var(--footer);
  margin-top: 3px;
}

@media (max-width: 899px) {
  .post-wrap { padding-top: 32px; }
  .post-layout { flex-direction: column; }
  .post-card-body { flex: none; max-width: 680px; width: 100%; }
  .post-sidebar { flex: none; max-width: 680px; width: 100%; padding: 8px 0 0; }
}
@media (max-width: 767px) {
  .post-card-body { padding: 32px 22px; }
  .post-card-body h1 { font-size: 26px; }
}

/* ==========================================================================
   In the news
   ========================================================================== */
.news-list {
  list-style: disc;
  margin: 28px auto 56px;
  padding: 0 var(--side-pad) 0 40px;
  max-width: 680px;
  text-align: left;
}
.news-list li {
  margin-bottom: 6px;
  color: var(--body);
}
.news-list a {
  font-size: 16px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-list a:hover { color: var(--muted); }
@media (max-width: 767px) {
  .news-list { padding-left: 32px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-row {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  max-width: var(--container-max);
  margin: 56px auto 0;
  padding: 0 var(--side-pad);
}
.about-media {
  flex: 0 0 400px;
  max-width: 400px;
}
.about-media img {
  width: 100%;
  height: auto;
}
.about-text {
  flex: 1;
  max-width: 620px;
}
.about-text p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
}
.about-text h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  color: var(--ink);
  margin: 44px 0 16px;
}
.about-text .in-his-words {
  font-weight: 700;
  color: var(--muted);
  margin-top: 44px;
}
.about-text blockquote {
  margin: 12px 0 0;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 899px) {
  .about-row { flex-direction: column; gap: 32px; }
  .about-media { flex: none; max-width: 400px; }
  .about-text { max-width: none; }
}
@media (max-width: 767px) {
  .about-row { margin-top: 40px; }
  .about-text h2 { font-size: 26px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section {
  max-width: var(--content-col);
  margin: 0 auto;
  padding: 56px var(--side-pad) 24px;
}
.contact-section h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  color: var(--muted);
  margin: 0 0 36px;
}
.contact-form .form-field {
  position: relative;
  margin-bottom: 28px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #4d4d4d;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 8px 10px;
  color: var(--white);
  background: transparent;
  outline: none;
}
.contact-form textarea {
  border: 1px solid #4d4d4d;
  min-height: 140px;
  padding: 12px 8px;
  resize: vertical;
}
.contact-form label {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-form .error-msg {
  display: none;
  color: #e57373;
  font-size: 13px;
  margin-top: 4px;
}
.form-field.invalid .error-msg { display: block; }
.form-field.invalid input,
.form-field.invalid textarea { border-bottom-color: #e57373; }

.form-submit {
  margin-top: 8px;
}
.form-submit button {
  width: 100%;
  background: var(--white);
  color: var(--btn-fg);
  border: 0;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.form-submit button:hover { background: #e6e6e6; }
.form-submit button:disabled { opacity: 0.5; cursor: default; }

.form-status {
  display: none;
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
}
.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

.recaptcha-note {
  font-size: 12px;
  color: var(--footer);
  margin-top: 28px;
  text-align: center;
}
.recaptcha-note a { text-decoration: underline; }

@media (max-width: 767px) {
  .contact-section { padding: 40px var(--side-pad) 16px; }
  .contact-section h1 { font-size: 24px; }
}

/* ==========================================================================
   Social links (client custom standard: 48px circles, gap 14, tooltips)
   ========================================================================== */
.social-links{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;padding:40px 20px}
.social-btn{position:relative;width:48px;height:48px;border-radius:50%;color:#fff;display:grid;place-items:center;text-decoration:none;transition:transform .2s,box-shadow .2s}
.social-btn:hover{transform:scale(1.1);box-shadow:0 4px 12px #0003}
.social-btn i,.social-btn svg,.social-btn img{width:18px;height:18px}
.social-btn::after{content:attr(data-tooltip);position:absolute;left:50%;transform:translateX(-50%);bottom:100%;margin-bottom:6px;padding:4px 10px;background:#1a1a2e;color:#fff;font-size:12.5px;white-space:nowrap;border-radius:5px;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .18s,transform .18s}
.social-btn::before{content:'';position:absolute;left:50%;transform:translateX(-50%);bottom:100%;border:5px solid transparent;border-top-color:#1a1a2e;opacity:0;visibility:hidden;transition:opacity .18s,transform .18s}
.social-btn:hover::after,.social-btn:hover::before{opacity:1;visibility:visible}
.social-btn:hover::after{transform:translateX(-50%) translateY(-4px)}
.social-btn:hover::before{transform:translateX(-50%) translateY(-2px)}
.social-btn .monogram{font-family:Arial,sans-serif;font-weight:700;font-size:14px}
.social-btn--linktree{background:#43E660}
.social-btn--crunchbase{background:#0288D1}
.social-btn--linkedin{background:#0A66C2}
.social-btn--youtube{background:#FF0000}
.social-btn--x{background:#545454}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 0 var(--side-pad) 48px;
  text-align: center;
}
.footer-divider {
  border: 0;
  border-top: 1px solid #262626;
  margin: 0 auto 32px;
  max-width: var(--container-max);
}
.site-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--footer);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  text-align: center;
  padding: 120px 24px;
}
.notfound h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 40px;
  color: var(--muted);
  margin-bottom: 16px;
}
.notfound a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
