/*
Theme Name: Salt City Entertainment
Theme URI: https://saltcityentertainment.com/
Author: Salt City Entertainment
Description: A clean, editorial WordPress theme for Mr. B's podcast, trade knowledge, life stories, and beginner chess lessons.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: salt-city-entertainment
*/

:root {
  --paper: #f2eee6;
  --paper-deep: #e7e0d4;
  --ink: #171817;
  --muted: #5f625f;
  --line: rgba(23, 24, 23, 0.19);
  --orange: #ff7a16;
  --orange-dark: #dd5e00;
  --white: #fffdf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 12px;
  padding: 12px 18px;
  background: var(--white);
  z-index: 9999;
}

.site-shell { overflow: hidden; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 104px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-kicker,
.eyebrow,
.card-number,
.meta,
.nav-link,
.button,
.topic,
.credential,
.footer-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  line-height: 1.3;
  text-transform: uppercase;
}
.section-kicker,
.eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; }
.section-kicker::before,
.eyebrow::before { content: ""; width: 68px; height: 4px; background: var(--orange); }
.display,
.section-title,
.card-title,
.post-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}
.display { font-size: clamp(4rem, 9vw, 8.75rem); max-width: 870px; }
.display em { display: block; color: var(--orange); font-weight: 500; }
.section-title { font-size: clamp(3rem, 6vw, 6.4rem); max-width: 900px; }
.section-title em { color: var(--orange); font-weight: 500; }
.section-copy { color: var(--muted); max-width: 760px; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.section-dark .section-copy { color: #c6c4bf; }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 230, 0.96);
}
.admin-bar .site-header { top: 0; }
.header-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 19px; text-decoration: none; min-width: 0; }
.brand-logo {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: #171817;
}
.brand-logo .custom-logo-link { display: block; width: 100%; height: 100%; }
.brand-logo .custom-logo { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
  max-width: 250px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  line-height: 1.02;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-link { text-decoration: none; }
.nav-link:hover,
.nav-link:focus { color: var(--orange-dark); }
.nav-connect { padding: 17px 24px; border: 2px solid var(--ink); }

.hero { padding: 92px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 62px; align-items: center; }
.hero-copy { padding-bottom: 78px; }
.hero-lede { max-width: 760px; margin: 36px 0 38px; color: #4e514e; font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 18px 28px;
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover,
.button:focus { transform: translateY(-2px); }
.button-primary { background: var(--orange); border-color: var(--orange); color: var(--white); }
.button-outline { background: transparent; }
.button-light { border-color: var(--white); color: var(--white); }
.hero-portrait { position: relative; align-self: stretch; min-height: 690px; background: #343535; }
.hero-portrait img { width: 100%; height: 100%; min-height: 690px; object-fit: cover; object-position: 57% center; filter: saturate(0.83) contrast(1.02); }
.hero-stamp {
  position: absolute;
  right: -24px;
  bottom: 24px;
  width: 165px;
  height: 165px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--orange);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
  transform: rotate(8deg);
}
.hero-statement {
  margin-top: -1px;
  padding: 46px 0 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}
.hero-statement .wrap { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.statement-text {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 5.1rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.93;
  text-transform: uppercase;
}
.statement-text span { color: var(--orange); }
.statement-mark { flex: 0 0 92px; width: 92px; height: 128px; object-fit: contain; }

.topic-strip { border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.topic-list { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; }
.topic { min-height: 92px; display: grid; place-items: center; padding: 20px 12px; text-align: center; border-left: 1px solid var(--line); }
.topic:last-child { border-right: 1px solid var(--line); }

.podcast-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 82px; align-items: center; }
.podcast-cover { position: relative; }
.podcast-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: 24px 24px 0 var(--orange); }
.podcast-status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px; padding: 10px 14px; border: 1px solid #565752; }
.podcast-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.episode-card { margin-top: 44px; padding: 28px 30px; border: 1px solid #4b4c48; }
.episode-card h3 { margin: 5px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.episode-card p { margin: 0; color: #bfc0bb; }

.pillars-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 58px; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar-card { min-height: 370px; padding: 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, 0.24); }
.card-number { color: var(--orange-dark); }
.card-title { margin: 48px 0 22px; font-size: clamp(2.4rem, 4vw, 4.2rem); }
.pillar-card p { max-width: 510px; margin: 0; color: var(--muted); }
.pillar-card a { display: inline-block; margin-top: 30px; font-weight: 800; text-underline-offset: 5px; }

.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 74px; align-items: start; }
.story-photo { position: sticky; top: 30px; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% center; }
.story-photo-caption { display: flex; justify-content: space-between; gap: 18px; margin-top: 16px; color: #bcbdb8; }
.story-copy .section-copy { margin-bottom: 34px; }
.credentials { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 50px; }
.credential { padding: 12px 14px; border: 1px solid #555650; }
.chapters { border-top: 1px solid #50514d; }
.chapter { display: grid; grid-template-columns: 75px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid #50514d; }
.chapter h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; }
.chapter p { margin: 0; color: #bdbeb9; }

.chess-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 78px; align-items: center; }
.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1;
  border: 16px solid var(--ink);
  box-shadow: 22px 22px 0 var(--orange);
}
.chess-square { display: grid; place-items: center; background: #e9dfcf; color: var(--ink); font-size: clamp(1.4rem, 4vw, 3.8rem); }
.chess-square.dark { background: #363835; color: var(--white); }
.lesson-list { margin: 34px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lesson-list li { display: flex; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.lesson-list li::before { content: "→"; color: var(--orange-dark); }

.connect { background: var(--orange); }
.connect-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 60px; align-items: end; }
.connect .section-kicker::before { background: var(--ink); }
.connect .section-title { max-width: 820px; }
.social-stack { display: grid; gap: 12px; }
.social-link { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 2px solid var(--ink); text-decoration: none; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.social-link span:last-child { font-size: 1.8rem; }

.site-footer { padding: 42px 0; background: var(--ink); color: var(--white); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 50px; height: 72px; object-fit: contain; }
.footer-brand p,
.footer-meta p { margin: 0; }
.footer-meta { color: #aeadab; font-size: 0.86rem; text-align: right; }

.content-area { min-height: 70vh; padding: 84px 0; }
.post-list { display: grid; gap: 34px; }
.post-card { padding: 38px; border: 1px solid var(--line); background: rgba(255,255,255,0.25); }
.post-title { font-size: clamp(2.3rem, 5vw, 4.8rem); }
.post-title a { text-decoration: none; }
.post-content { max-width: 780px; }
.post-content img { margin: 28px 0; }
.post-meta { margin: 14px 0 26px; color: var(--muted); }
.pagination { margin-top: 38px; }

@media (max-width: 980px) {
  .wrap { width: min(100% - 36px, 760px); }
  .header-inner { min-height: 102px; }
  .main-nav .nav-link:not(.nav-connect) { display: none; }
  .brand-logo { width: 64px; height: 64px; flex-basis: 64px; }
  .hero { padding-top: 64px; }
  .hero-grid,
  .podcast-grid,
  .story-grid,
  .chess-grid,
  .connect-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 28px; }
  .hero-portrait,
  .hero-portrait img { min-height: 620px; }
  .hero-stamp { right: 18px; bottom: 18px; }
  .topic-list { grid-template-columns: repeat(3, 1fr); }
  .topic:nth-child(3) { border-right: 1px solid var(--line); }
  .topic:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .podcast-grid { gap: 72px; }
  .podcast-cover { max-width: 560px; }
  .pillars-head { display: block; }
  .pillar-grid { grid-template-columns: 1fr; }
  .story-photo { position: relative; top: auto; max-width: 620px; }
  .chess-board { max-width: 620px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 28px, 560px); }
  .section { padding: 76px 0; }
  .header-inner { min-height: 92px; gap: 12px; }
  .brand { gap: 12px; }
  .brand-logo { width: 54px; height: 62px; flex-basis: 54px; }
  .brand-name { max-width: 180px; font-size: 0.79rem; letter-spacing: 0.17em; }
  .nav-connect { padding: 14px 16px; font-size: 0.65rem; }
  .hero { padding-top: 56px; }
  .display { font-size: clamp(3.75rem, 20vw, 6.8rem); }
  .section-title { font-size: clamp(2.9rem, 15vw, 5rem); }
  .eyebrow,
  .section-kicker { gap: 12px; }
  .eyebrow::before,
  .section-kicker::before { width: 44px; }
  .hero-lede { margin-top: 30px; }
  .button { width: 100%; }
  .hero-portrait,
  .hero-portrait img { min-height: 510px; }
  .hero-stamp { width: 128px; height: 128px; font-size: 0.64rem; }
  .hero-statement .wrap { align-items: end; }
  .statement-mark { flex-basis: 62px; width: 62px; height: 90px; }
  .topic-list { grid-template-columns: repeat(2, 1fr); }
  .topic:nth-child(n) { border-bottom: 1px solid var(--line); }
  .topic:nth-child(odd) { border-left: 1px solid var(--line); }
  .topic:nth-child(even) { border-right: 1px solid var(--line); }
  .podcast-cover img { box-shadow: 12px 12px 0 var(--orange); }
  .pillar-card { min-height: 0; padding: 30px 24px; }
  .card-title { margin-top: 32px; }
  .chapter { grid-template-columns: 48px 1fr; gap: 14px; }
  .chess-board { border-width: 9px; box-shadow: 12px 12px 0 var(--orange); }
  .connect-grid { gap: 36px; }
  .footer-inner { display: grid; }
  .footer-meta { text-align: left; }
}

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