/*
Theme Name: Joanna C. Strange
Theme URI: https://joannacstrange.com
Author: Joanna C. Strange
Description: A quiet editorial portfolio and directory for Joanna C. Strange, with dedicated theatre and film pages.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: joanna-c-strange
*/

:root {
  --ink: #17141c;
  --cream: #eee8f4;
  --paper: #faf7fc;
  --purple: #76509f;
  --purple-wash: #e5dcec;
  --navy: #24324d;
  --blue: #4169a5;
  --blue-wash: #dce7f2;
  --coral: #e16e62;
  --coral-wash: #f2d8d1;
  --orange: #e39a49;
  --orange-wash: #f3dfbd;
  --line: rgba(23, 20, 28, 0.2);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-post-content { margin-block-start: 0; }
a { color: inherit; }

.site-shell { min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 4.5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 232, 244, 0.94);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header { top: 32px; }

.wordmark,
.wordmark a,
.wp-block-site-title.wordmark,
.wp-block-site-title.wordmark a {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.header-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-links a,
.site-footer a { text-decoration: none; }

.header-links a:hover,
.header-links a:focus-visible,
.header-links a[aria-current="page"],
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.intro {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 10vw, 150px) 4.5vw clamp(64px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
}

.kicker,
.section-label,
.card-number {
  margin: 0;
  color: var(--purple);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.display-title,
.page-display-title {
  margin: 18px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 10vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.intro-line {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.25vw, 2rem);
  line-height: 1.35;
}

.directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.directory-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 44px);
  border-right: 1px solid var(--line);
  background: var(--paper);
  transition: background 160ms ease, color 160ms ease;
}

.directory-card:last-child { border-right: 0; }
.directory-card:hover { background: var(--purple); color: #fff; }
.directory-card:hover .card-number { color: var(--cream); }
.directory-card > :nth-child(2) { margin: auto 0; }

.directory-card h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 3.5vw, 4.1rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.directory-card p:not(.card-number):not(.card-action) {
  max-width: 300px;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.card-action {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-action a { text-decoration: none; }
.card-action a:hover,
.card-action a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

.about,
.contact,
.portfolio-note,
.archive-callout {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1.55fr);
  gap: 7vw;
  padding: clamp(78px, 10vw, 145px) 4.5vw;
  border-bottom: 1px solid var(--line);
}

.about { background: var(--cream); }
.contact { background: var(--purple-wash); }
.portfolio-note { background: var(--orange-wash); }

.section-title,
.about h2,
.contact h2,
.portfolio-note h2,
.archive-callout h2,
.featured-copy h2 {
  max-width: 900px;
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.2vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.about-copy > p,
.contact-copy > p,
.portfolio-note p:not(.section-label),
.archive-callout p:not(.section-label) {
  max-width: 690px;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
}

.contact-link,
.archive-callout .inquiry-link {
  display: inline-flex;
  gap: 16px;
  margin-top: 4px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  text-decoration: underline;
  text-underline-offset: 7px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 4.5vw;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.76rem;
}

.site-footer p { margin: 0; }

/* Portfolio */
.portfolio-hero {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(100px, 12vw, 180px) 4.5vw clamp(70px, 8vw, 116px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, transparent 0 68%, var(--orange-wash) 68% 83%, var(--coral-wash) 83%);
}

.portfolio-intro,
.work-intro {
  max-width: 830px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.35;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.discipline-card {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4.5vw, 68px);
  border-right: 1px solid var(--line);
  transition: filter 160ms ease;
}

.discipline-card:last-child { border-right: 0; }
.discipline-card.coral { background: var(--coral-wash); }
.discipline-card.blue { background: var(--blue-wash); }
.discipline-card:hover { filter: saturate(1.18); }
.discipline-card > :nth-child(2) { margin: auto 0; }

.discipline-card h2 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 7vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.discipline-card p:not(.card-number):not(.card-action) {
  max-width: 470px;
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.7;
}

/* Theatre and film */
.work-hero {
  min-height: 68vh;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 7vw;
  padding: clamp(86px, 11vw, 150px) 4.5vw clamp(68px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
}

.theatre-hero { background: var(--coral-wash); }
.film-hero { background: var(--blue-wash); }

.back-link {
  display: inline-block;
  margin: 0 0 clamp(60px, 9vw, 130px);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link a { text-decoration: none; }
.back-link a:hover,
.back-link a:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

.media-section {
  padding: clamp(76px, 9vw, 130px) 4.5vw;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1.55fr);
  gap: 7vw;
  margin-bottom: clamp(50px, 7vw, 96px);
}

.section-heading h2 { margin: 0; }

.photo-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.45fr;
  grid-template-rows: repeat(2, minmax(260px, 34vw));
  gap: clamp(14px, 2vw, 28px);
}

.photo-placeholder,
.feature-image-placeholder {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
}

.photo-placeholder::after,
.feature-image-placeholder::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -22%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.28;
}

.photo-placeholder p,
.feature-image-placeholder p,
.video-placeholder p { margin: 0; }

.placeholder-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.photo-tall { grid-row: span 2; }
.photo-wide { background: var(--purple-wash); }
.theatre-photos .photo-tall { background: var(--coral-wash); }
.theatre-photos .photo-placeholder:not(.photo-tall):not(.photo-wide) { background: var(--orange-wash); }
.film-photos .photo-tall { background: var(--blue-wash); }
.film-photos .photo-placeholder:not(.photo-tall):not(.photo-wide) { background: var(--coral-wash); }

.video-section { background: var(--navy); color: var(--cream); }
.video-section .section-label { color: var(--orange); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(243, 238, 229, 0.55);
  background: linear-gradient(145deg, rgba(118, 80, 159, 0.48), transparent 55%), #1a2234;
}

.video-placeholder strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.5rem);
  font-weight: 400;
}

.play-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: auto !important;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.88rem;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 7vw;
  padding: clamp(76px, 9vw, 130px) 4.5vw;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.featured-copy { align-self: center; }
.featured-copy h2 { margin-top: 26px; }
.featured-copy > p:not(.section-label):not(.project-type) { max-width: 590px; line-height: 1.75; }

.project-type {
  margin-bottom: 32px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-image-placeholder {
  min-height: 560px;
  background: linear-gradient(145deg, transparent 0 58%, rgba(225, 110, 98, 0.55) 58% 75%, transparent 75%), var(--purple-wash);
  font-size: clamp(3rem, 7vw, 7rem);
  letter-spacing: -0.055em;
}

.theatre-callout { background: var(--coral-wash); }
.film-callout { background: var(--orange-wash); }

/* Generic pages */
.generic-page {
  min-height: 70vh;
  padding: clamp(100px, 12vw, 180px) 4.5vw;
}

.generic-page .wp-block-post-content {
  max-width: 820px;
  font-size: 1.08rem;
  line-height: 1.75;
}

@media (max-width: 1020px) {
  .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-card:nth-child(2) { border-right: 0; }
  .directory-card:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .work-hero { grid-template-columns: 1fr; }
  .work-intro { max-width: 700px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 70px; }

  .site-header {
    min-height: 70px;
    padding-inline: 20px;
  }

  .header-links {
    gap: 16px;
    font-size: 0.62rem;
  }

  .header-links .optional-link { display: none; }

  .intro {
    min-height: auto;
    padding: 82px 20px 72px;
  }

  .display-title,
  .page-display-title { font-size: clamp(3.9rem, 20vw, 6rem); }

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

  .directory-card,
  .directory-card:nth-child(2) {
    min-height: 310px;
    padding: 28px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .directory-card:last-child { border-bottom: 0; }

  .about,
  .contact,
  .portfolio-note,
  .archive-callout,
  .section-heading,
  .featured-project {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 76px 20px;
  }

  .portfolio-hero,
  .work-hero {
    min-height: auto;
    padding: 84px 20px 72px;
  }

  .portfolio-hero { background: linear-gradient(145deg, transparent 0 76%, var(--orange-wash) 76%); }
  .back-link { margin-bottom: 64px; }
  .discipline-grid { grid-template-columns: 1fr; }

  .discipline-card {
    min-height: 430px;
    padding: 32px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .discipline-card:last-child { border-bottom: 0; }
  .media-section { padding: 76px 20px; }
  .section-heading { margin-bottom: 44px; }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .photo-placeholder { min-height: 330px; }
  .photo-tall { grid-row: auto; min-height: 520px; }
  .video-grid { grid-template-columns: 1fr; }
  .feature-image-placeholder { min-height: 460px; }

  .site-footer {
    flex-direction: column;
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
