/*
Theme Name: Toby.bio
Theme URI: https://toby.bio/
Author: Phoenix Geeks
Author URI: https://phoenixgeeks.us/
Description: A photo-first, SQL-integrated personal publishing theme for Toby.bio. Designed to work with the PG plugin ecosystem for banners, photos, stories, media, users, sharing, SEO, and shortcodes.
Version: 0.1.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: toby-bio
*/

:root {
  --toby-navy: #08233f;
  --toby-blue: #0d4f8b;
  --toby-ocean: #1479c9;
  --toby-sky: #62b7e8;
  --toby-ice: #eaf6fd;
  --toby-white: #ffffff;
  --toby-ink: #17212b;
  --toby-muted: #647485;
  --toby-line: #d9e5ee;
  --toby-shadow: 0 18px 48px rgba(8, 35, 63, 0.12);
  --toby-radius: 18px;
  --toby-content: 1220px;
  --toby-reading: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--toby-white);
  color: var(--toby-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--toby-blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--toby-ocean); }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--toby-navy);
  display: block;
  font-size: 14px;
  height: auto;
  left: 8px;
  padding: 12px 16px;
  top: 8px;
  width: auto;
  z-index: 100000;
}

.toby-container { width: min(calc(100% - 36px), var(--toby-content)); margin-inline: auto; }
.toby-reading { width: min(calc(100% - 36px), var(--toby-reading)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 10, .98);
  border-bottom: 1px solid rgba(197, 139, 42, .34);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 108px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}
.site-branding a { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  color: white;
}
.brand-logo {
  display: block;
  width: clamp(154px, 14vw, 188px);
  height: auto;
  border-radius: 2px;
}

.primary-menu, .footer-menu { margin: 0; padding: 0; list-style: none; }
.primary-menu { display: flex; align-items: center; justify-content: center; gap: 4px; }
.primary-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  font-size: .93rem;
  font-weight: 720;
  text-decoration: none;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { background: rgba(255,255,255,.09); color: #e5bd70; }
.primary-menu .menu-item-account > a { border: 1px solid rgba(229,189,112,.52); color: #f1cf8d; }
.primary-menu .menu-item-account > a:hover, .primary-menu .menu-item-account.current-menu-item > a { border-color: #e5bd70; background: rgba(197,139,42,.16); color: #f5dba7; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #c58b2a;
  color: #07101a;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(197,139,42,.22);
}
.header-cta:hover { color: #07101a; background: #e0b965; }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.06); color: white; border-radius: 12px; padding: 9px 12px; font-weight: 800; }

.breadcrumb-wrap { background: #f7fbfe; border-bottom: 1px solid var(--toby-line); }
.breadcrumbs { min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--toby-muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: none; font-weight: 700; }
.breadcrumb-separator { color: #9eb0bf; }

.hero-shell { position: relative; overflow: hidden; background: var(--toby-navy); color: white; }
.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(8,35,63,.98), rgba(13,79,139,.86));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; min-height: 560px; display: grid; align-items: center; padding-block: 84px; }
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 14px; color: var(--toby-sky); font-size: .82rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero-title { margin: 0; max-width: 900px; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .94; letter-spacing: -.055em; }
.hero-description { max-width: 670px; margin: 24px 0 0; color: rgba(255,255,255,.86); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 850; text-decoration: none; }
.button-primary { background: white; color: var(--toby-navy); }
.button-primary:hover { color: var(--toby-blue); }
.button-secondary { border: 1px solid rgba(255,255,255,.45); color: white; }
.button-secondary:hover { color: white; border-color: white; background: rgba(255,255,255,.08); }

.pg-banner-slot:empty { display: none; }
.pg-banner-slot > * { margin: 0; }

.section { padding: 78px 0; }
.section-soft { background: #f5faff; }
.section-dark { background: var(--toby-navy); color: white; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; color: var(--toby-navy); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; letter-spacing: -.045em; }
.section-dark .section-heading h2 { color: white; }
.section-heading p { max-width: 640px; margin: 0; color: var(--toby-muted); }
.section-dark .section-heading p { color: rgba(255,255,255,.72); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--toby-line);
  border-radius: var(--toby-radius);
  box-shadow: var(--toby-shadow);
}
.card-media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--toby-blue), var(--toby-sky)); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 24px; }
.card-kicker { margin: 0 0 8px; color: var(--toby-ocean); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.card-title { margin: 0; color: var(--toby-navy); font-size: 1.35rem; line-height: 1.15; letter-spacing: -.025em; }
.card-copy { margin: 12px 0 0; color: var(--toby-muted); font-size: .95rem; }

.photo-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  min-height: 570px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--toby-navy);
  color: white;
  box-shadow: 0 28px 70px rgba(8,35,63,.22);
}
.photo-feature-media { min-height: 570px; background: #0d4f8b; }
.photo-feature-media img { width: 100%; height: 100%; min-height: 570px; object-fit: cover; }
.photo-feature-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 42px; background: linear-gradient(180deg, #0d4f8b, #08233f); }
.photo-feature-copy h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1; letter-spacing: -.045em; }
.photo-feature-copy p { color: rgba(255,255,255,.78); }

.entry-header { padding: 72px 0 36px; background: linear-gradient(180deg, #f2f9fd, white); }
.entry-title { margin: 0; color: var(--toby-navy); font-size: clamp(2.5rem, 6vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.entry-subtitle { max-width: 760px; margin: 20px 0 0; color: var(--toby-muted); font-size: 1.16rem; }
.entry-content { padding: 32px 0 78px; }
.entry-content > * { max-width: var(--toby-reading); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--toby-content); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { color: var(--toby-navy); line-height: 1.15; letter-spacing: -.03em; }
.entry-content blockquote { padding: 22px 26px; border-left: 5px solid var(--toby-ocean); background: var(--toby-ice); border-radius: 0 14px 14px 0; }
.entry-meta { margin-top: 16px; color: var(--toby-muted); font-size: .9rem; }

.site-footer { background: #061b30; color: rgba(255,255,255,.78); }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 44px; padding: 64px 0 42px; }
.footer-title { margin: 0 0 14px; color: white; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-menu { display: grid; gap: 8px; }
.footer-menu a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-menu a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

.plugin-placeholder {
  padding: 28px;
  border: 1px dashed #9fc8df;
  border-radius: var(--toby-radius);
  background: #f2f9fd;
  color: var(--toby-muted);
}
.plugin-placeholder strong { color: var(--toby-navy); }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-navigation { grid-column: 1 / -1; display: none; padding-bottom: 14px; }
  .site-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; }
  .primary-menu a { border-radius: 10px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-feature { grid-template-columns: 1fr; }
  .photo-feature-media, .photo-feature-media img { min-height: 430px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .toby-container, .toby-reading { width: min(calc(100% - 24px), var(--toby-content)); }
  .brand-logo { width: 142px; }
  .hero-inner { min-height: 520px; padding-block: 64px; }
  .hero-title { font-size: clamp(3rem, 16vw, 4.6rem); }
  .section { padding: 58px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .card-grid { grid-template-columns: 1fr; }
  .photo-feature-copy { padding: 28px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
