/*
Theme Name: Bert Jacoby Executive Portfolio
Author: Bert Jacoby
Version: 2.0
Description: Custom executive portfolio theme for bertjacoby.com.
*/

:root {
  --background: #FAFAF8;
  --text: #222222;
  --muted: #666666;
  --accent: #4A6FA5;
  --border: #E5E5E0;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(90%, var(--max-width));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(88%, var(--max-width));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 46px;
  font-size: 18px;
}

.nav a {
  color: var(--text);
}

.nav a:hover {
  color: var(--accent);
}

/* Shared sections */
.section {
  padding: 95px 0;
  border-top: 1px solid var(--border);
}

.page-hero {
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}

.page-hero .lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  max-width: 760px;
  margin: 0;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 14px 26px;
  min-width: 180px;
  font-size: 17px;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease;
}

.button::after {
  content: "→";
  margin-left: 12px;
}

.button:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Homepage hero */
.hero.section {
  border-top: none;
  padding: 80px 0 95px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 90px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(54px, 5.2vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 0 0 30px;
}

.lede {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
  max-width: 650px;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.portrait {
  width: 100%;
  max-height: 570px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

/* Homepage systems / principles */
.centered {
  max-width: 920px;
  margin: 0 auto 64px;
  text-align: center;
}

.centered h2,
.work-layout h2,
.cta-card h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.centered p,
.work-layout p,
.cta-card p {
  color: var(--muted);
  margin: 0;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.principle {
  padding: 0 48px;
  text-align: center;
}

.principle + .principle {
  border-left: 1px solid var(--border);
}

.principle h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.principle p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

/* Homepage selected work */
.work-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.work-layout > div:first-child p {
  max-width: 430px;
  margin-bottom: 44px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.work-note {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: 17px;
}

.work-list {
  border-top: 1px solid var(--border);
}

.work-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}

.work-item h3 {
  max-width: 600px;
  margin: 0 0 18px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.coming-soon {
  color: var(--accent);
  font-size: 17px;
}

.coming-soon::after {
  content: " →";
}

/* Homepage CTA */
.cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 44px 56px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cta-card h2 {
  margin-bottom: 18px;
}

.cta-card p {
  max-width: 700px;
}

/* Philosophy page */
.content-narrow {
  max-width: 900px;
  margin: 0 auto;
}

body.page-template-page-philosophy .section,
body.page-template-page-philosophy-php .section {
  padding: 48px 0 24px;
}

.philosophy-item {
  padding: 0 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--border);
}

.philosophy-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.philosophy-item h2 {
  margin: 0 0 16px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.philosophy-item p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.philosophy-item p + p {
  margin-top: 22px;
}

.philosophy-item:last-child p:last-of-type {
  margin-bottom: 14px;
}

.closing-question {
  max-width: 760px;
  margin: 18px 0 22px;
  color: var(--text);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.philosophy-item .button {
  margin-top: 12px;
}

/* Work page */
.work-page-section {
  padding: 58px 0 66px;
}

.work-page-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 72px;
  align-items: start;
}

.work-page-intro h2 {
  margin: 0 0 24px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(28px, 2.3vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.work-page-intro p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.work-page-list {
  border-top: 1px solid var(--border);
}

.work-page-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.work-page-item h3 {
  max-width: 620px;
  margin: 0 0 10px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(23px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.work-page-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Contact page */
.contact-page-section {
  padding: 44px 0 50px;
}

.contact-grid {
  display: block;
  max-width: 720px;
  margin: 0 auto;
}

.contact-grid > div:first-child .lede {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.contact-grid > div:nth-child(2) {
  display: none;
}

.contact-links {
  border-top: 1px solid var(--border);
}

.contact-link {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.contact-link span:first-child {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  line-height: 1.25;
}

.contact-link span:last-child {
  align-self: center;
  color: var(--accent);
  font-size: 15px;
}

.contact-link:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Footer */
.site-footer {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* Tablet / small desktop */
@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    min-height: auto;
    padding: 24px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .brand {
    font-size: 18px;
  }

  .nav {
    gap: 24px;
    font-size: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .hero.section {
    padding: 80px 0 90px;
  }

  .hero-grid,
  .work-layout,
  .work-page-layout,
  .cta-card {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .lede {
    font-size: 20px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    padding: 34px 0;
  }

  .principle + .principle {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .cta-card {
    padding: 36px;
  }

  .page-hero {
    padding: 42px 0 36px;
  }

  .page-hero .lede {
    font-size: 17px;
  }

  .philosophy-item {
    padding-bottom: 36px;
    margin-bottom: 36px;
  }

  .philosophy-item h2 {
    font-size: 30px;
  }

  .philosophy-item p {
    font-size: 17px;
  }

  .closing-question {
    font-size: 30px;
  }

  .work-page-section {
    padding: 56px 0;
  }

  .contact-grid {
    max-width: 100%;
  }

  .contact-grid > div:first-child .lede {
    font-size: 16px;
  }

  .contact-link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
}

/* Phone */
@media (max-width: 600px) {
  .header-inner {
    padding: 28px 0 24px;
    gap: 22px;
  }

  .brand {
    font-size: 18px;
    letter-spacing: 0.16em;
  }

  .nav {
    gap: 28px;
    font-size: 17px;
  }

  .hero.section {
    padding: 44px 0 58px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(36px, 10.5vw, 46px);
    line-height: 1.08;
    margin-bottom: 22px;
  }

  .lede {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 26px;
  }

  .hero-actions {
    gap: 12px;
  }

  .button {
    width: 100%;
    min-width: 0;
    padding: 13px 18px;
    font-size: 15px;
  }

  .portrait {
    max-height: none;
    aspect-ratio: 4 / 5;
  }

  .page-hero {
    padding: 28px 0 22px;
  }

  .page-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
  }

  .page-hero .lede {
    font-size: 17px;
    line-height: 1.45;
  }

  .page-hero + .section {
    padding-top: 28px;
  }

  .content-narrow {
    max-width: 100%;
    padding-top: 0;
    margin-top: 0;
  }

  .philosophy-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .philosophy-item:first-child {
    padding-top: 0;
    margin-top: 0;
  }

  .philosophy-item h2 {
    margin-bottom: 12px;
    font-size: 28px;
    line-height: 1.2;
  }

  .philosophy-item p {
    font-size: 16px;
    line-height: 1.48;
  }

  .closing-question {
    margin: 14px 0 16px;
    font-size: 26px;
    line-height: 1.25;
  }

  .work-page-section {
    padding: 22px 0 34px;
  }

  .work-page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-page-intro h2 {
    margin-bottom: 10px;
    font-size: 28px;
    line-height: 1.15;
  }

  .work-page-intro p {
    max-width: 100%;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
  }

  .work-page-list {
    margin-top: 0;
  }

  .work-page-item {
    padding: 14px 0;
  }

  .work-page-item h3 {
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1.18;
  }

  .work-page-item p {
    font-size: 14px;
    line-height: 1.35;
  }

  .contact-page-section {
    padding: 14px 0 28px;
  }

  .contact-grid > div:first-child .lede {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.42;
  }

  .contact-link {
    padding: 8px 0;
  }

  .contact-link span:first-child {
    font-size: 18px;
  }

  .contact-link span:last-child {
    font-size: 15px;
  }
}

/* Footer AI attribution */
.site-footer {
  padding: 22px 0;
}

.footer-inner {
  width: min(90%, var(--max-width));
  margin: 0 auto;
  text-align: center;
}

.footer-location {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.footer-ai-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer-ai-attribution p {
  margin: 0;
}

.footer-ai-badge {
  width: 42px;
  height: auto;
  flex: 0 0 auto;
  opacity: 0.78;
}

@media (max-width: 600px) {
  .footer-ai-attribution {
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
  }

  .footer-ai-badge {
    width: 38px;
  }
}

/* =========================================================
   CASE STUDY PAGE
   ========================================================= */

.case-study-page {
  padding-bottom: 48px;
}

.case-study-container {
  width: min(90%, 880px);
  margin: 0 auto;
}

.case-study-hero {
  padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 7vw, 82px);
  border-bottom: 1px solid var(--border);
}

.case-study-label,
.case-study-summary-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-study-hero h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.case-study-introduction {
  max-width: 740px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.55;
}

.case-study-content {
  padding-top: clamp(48px, 7vw, 82px);
}

.case-study-section {
  max-width: 760px;
  margin: 0 auto clamp(56px, 7vw, 82px);
}

.case-study-section h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.case-study-section p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.78;
}

.case-study-section p:last-child {
  margin-bottom: 0;
}

.case-study-pullquote {
  margin: 40px 0;
  padding: 8px 0 8px 28px;
  border-left: 4px solid var(--accent);
}

.case-study-pullquote p {
  margin: 0;
  font-size: clamp(27px, 4vw, 39px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.case-study-image {
  max-width: 760px;
  margin: 0 auto clamp(56px, 7vw, 82px);
}

.case-study-image-wide {
  max-width: 100%;
}

.case-study-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.case-study-image figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.case-study-summary {
  margin: clamp(64px, 9vw, 104px) 0 52px;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.case-study-summary > h2 {
  margin: 0 0 34px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.025em;
}

.case-study-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 38px;
}

.case-study-summary-item h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 17px;
}

.case-study-summary-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.case-study-navigation {
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.case-study-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

.case-study-back-link:hover,
.case-study-back-link:focus {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .case-study-hero {
    padding-top: 58px;
  }

  .case-study-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .case-study-section p {
    font-size: 17px;
    line-height: 1.72;
  }

  .case-study-summary-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-study-summary {
    padding: 28px 22px;
  }

  .case-study-pullquote {
    margin: 32px 0;
    padding-left: 20px;
  }
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  border-top: 1px solid #dedede;
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-location {
  margin-bottom: 2.5rem;
  font-size: 1.5rem;
  color: #606060;
}

.footer-ai-attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.footer-ai-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.footer-ai-badge {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.footer-ai-attribution p {
  max-width: 950px;
  margin: 0;
  color: #606060;
  font-size: 1.15rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .footer-ai-attribution {
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-location {
    font-size: 1.2rem;
  }

  .footer-ai-attribution p {
    font-size: 1rem;
  }
}

.case-study-list {
  margin: 1.25rem 0 2rem;
  padding-left: 1.5rem;
}

.case-study-list li {
  margin-bottom: 0.65rem;
  line-height: 1.7;
}

.case-study-pullquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
}