/* Patrick Sweeney — personal site
   Simple, clean, light theme with a lime-green accent, matching the spirit
   of the existing patricksweeney.io site. */

:root {
  --bg: #f7f7f4;
  --panel: #ffffff;
  --text: #14161a;
  --muted: #55585f;
  --accent: #6fae1f;
  --accent-dark: #4f7f16;
  --border: #e4e3dd;
  --maxw: 920px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a[aria-current="page"] { color: var(--accent-dark); }
.main-nav a:hover { text-decoration: none; color: var(--accent-dark); }
.nav-pill {
  background: var(--text);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem !important;
}
.nav-pill:hover { background: var(--accent-dark); text-decoration: none; }
.socials-row {
  display: flex;
  gap: 12px;
}
.socials-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
}
.socials-row a:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 .hl, .lede .hl { color: var(--accent-dark); }
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 30px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--text);
  color: var(--text);
}
.btn:hover { text-decoration: none; border-color: var(--accent-dark); color: var(--accent-dark); }
.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* Sections */
section { padding: 46px 0; }
.section-border { border-top: 1px solid var(--border); }
h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.body-copy { color: var(--muted); font-size: 1.05rem; max-width: 760px; }
.credo-line {
  font-size: 0.98rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 26px 0;
}

/* Grid cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Bullet list */
ul.check-list { list-style: none; padding: 0; margin: 22px 0; }
ul.check-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
ul.check-list li:before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

/* Blog / posts */
.post-list { display: grid; gap: 22px; margin-top: 24px; }
.post-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.post-date { font-size: 0.82rem; color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.post-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.post-card p { margin: 0 0 10px; color: var(--muted); }

/* Blog accordion */
.post-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--accent-dark);
  cursor: pointer;
}
.post-toggle:hover { text-decoration: underline; }
.post-toggle .chevron { display: inline-block; transition: transform 0.2s ease; font-size: 0.85em; }
.post-toggle[aria-expanded="true"] .chevron { transform: rotate(90deg); }
.post-full {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.post-full.is-open { display: block; }
.post-full h4 { margin: 20px 0 8px; font-size: 1.02rem; }
.post-full p { margin: 0 0 14px; color: var(--text); }
.post-full ul { margin: 0 0 14px; padding-left: 22px; color: var(--text); }
.post-full li { margin-bottom: 6px; }
.post-byline { color: var(--muted); font-size: 0.85rem; margin-top: -4px; margin-bottom: 4px; }

/* Portrait / photo visuals */
.portrait-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 700px) { .portrait-layout { grid-template-columns: 1fr; } }

/* Blended photo — no border/background box; the photo's own soft-fade
   edges (pre-processed to match --bg) do the blending, so it just sits
   directly on the page. */
.portrait-frame--blend {
  width: 100%;
  aspect-ratio: 855 / 1400;
  overflow: hidden;
}
.portrait-frame--blend img { width: 100%; height: 100%; object-fit: contain; object-position: top center; display: block; }
@media (max-width: 700px) { .portrait-frame--blend { max-width: 340px; margin: 0 auto; } }

/* Quote-card hero — photo runs the full height of the section, edge to
   edge on the left; the text block sits large and bold on the right and
   is pulled left with a negative margin so it sits almost on top of the
   photo's soft-faded right edge (which already fades to --bg), giving
   the overlapping look without needing a background-color swap. */
.hero-quote {
  display: flex;
  align-items: center;
  padding: 0;
}
.hero-quote-photo {
  flex: 0 0 70%;
  min-width: 0;
  /* Same aspect ratio as the source photo, so cover never crops it — the
     whole arena scene stays visible, nothing lost off the sides. */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* Lowered 10% from -15% -> -5% vertical; horizontal offset unchanged. */
  transform: translate(-15%, -5%);
}
.hero-quote-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.hero-quote-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 40px 28px 40px 0;
  /* Photo has grown from 53% to 70% of the row (17 points total since
     v23), so pull the text left by that same 17% plus the original
     -130px offset — keeps its on-screen position fixed regardless of
     how big the photo track gets. */
  margin-left: calc(-17% - 130px);
  position: relative;
  z-index: 2;
}
@media (max-width: 860px) {
  .hero-quote { flex-direction: column; }
  .hero-quote-photo { flex-basis: auto; width: 100%; }
  .hero-quote-text { margin-left: 0; padding: 32px 28px 0; }
}

/* Books */
.book-grid { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
.book-card {
  flex: 1 1 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.book-card .book-title { font-weight: 700; margin-bottom: 6px; }
.book-card .book-note { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }

/* Angel investments */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  background: #eef3e6;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* CTA band */
.cta-band {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 28px;
  text-align: center;
  margin: 20px 0 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfd2d6; max-width: 620px; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn { border-color: #fff; color: #fff; }
.cta-band .btn-solid { background: var(--accent); border-color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 20px; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.info-block { margin-bottom: 22px; }
.info-block .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.info-block .value { font-size: 1.05rem; font-weight: 600; }
.info-block .value a { color: var(--text); }
.info-block .value a:hover { color: var(--accent-dark); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tagline { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; }
.footer-bottom {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
