/*
Theme Name: Intera People Design
Theme URI: https://interapeople.com
Author: Chandra Rai
Description: The complete Intera People Co website. Activate it and it creates the Home, About, Events, Writing, Contact and AI Executive Summit pages, sets the menu and homepage, and needs no page builder.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: intera-people-design
*/

:root {
  --bg: #EEF3F5;
  --soft: #C9DBE3;
  --accent: #5F8A9B;
  --link: #3F6F82;
  --ink: #2E4A57;
  --text: #3D5560;
  --sand: #E8DCCB;
  --white: #FBFCFC;
  --line: #B4CAD3;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size:clamp(2.69rem, 5vw, 4.37rem); line-height: 1.1; }
h2 { font-size:clamp(2.13rem, 3.4vw, 2.8rem); }
h3 { font-size:1.68rem; font-weight: 500; }
p { margin: 0 0 1.2em; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 100000; top: 8px; left: 8px;
}

/* Layout helpers */
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 28px; }
.band { padding: 88px 0; }
.band-mist { background: var(--bg); }
.band-white { background: var(--white); }
.band-dark { background: var(--ink); color: #E6EEF1; }
.band-dark h2 { color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-brand { text-decoration: none; }
.brand-name { font-family: var(--serif); font-size:1.62rem; color: var(--ink); letter-spacing: -0.01em; }
.custom-logo { max-height: 44px; width: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.primary-nav a {
  display: block; padding: 8px 16px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500;
}
.primary-nav a:hover { background: var(--bg); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { background: var(--soft); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: '';
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after { position: absolute; top: 6px; left: 0; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a { padding: 12px 14px; border-radius: 10px; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: 16px; font-weight: 500; border: 1px solid var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--link); border-color: var(--link); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-sand { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-sand:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Generic page and blog */
.site-main { min-height: 50vh; }
.page-wrap { padding: 72px 0 96px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content img { border-radius: 8px; margin: 1.5em 0; }
.entry-content blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size:1.4em; color: var(--ink);
}
.archive-header { padding: 72px 0 24px; }
.archive-header p { margin: 0; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; padding: 32px 0 72px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.post-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post-date { font-size: 15px; color: var(--accent); margin: 0 0 8px; }
.post-card h2 { font-size:1.68rem; margin-bottom: 12px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--link); }
.post-card p { font-size: 16px; line-height: 1.65; }
.read-more { margin-top: auto; font-weight: 500; }
.entry-meta { color: var(--accent); font-size: 16px; margin-bottom: 12px; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 16px; }
.navigation.pagination { padding-bottom: 88px; }
.navigation.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.navigation.pagination .page-numbers {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 16px;
}
.navigation.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form input[type="search"] {
  flex: 1 1 220px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.search-form input[type="submit"] { cursor: pointer; }

/* Footer */
.site-footer { background: var(--ink); color: #DCE6E8; padding: 64px 0 40px; font-size: 16px; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 28px; display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.footer-brand { font-family: var(--serif); font-size:1.79rem; color: #fff; margin: 0 0 10px; }
.footer-note { max-width: 380px; margin: 0; line-height: 1.65; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sand); }
.footer-menu { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-menu a { text-decoration: none; }
.footer-legal { max-width: 1100px; margin: 40px auto 0; padding: 24px 28px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; color: #B9CBD1; }

/* Built-in About template */
.about-hero .hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: center; }
.about-hero h1 { margin-bottom: 0.5em; }
.about-lede { font-family: var(--serif); font-size:1.79rem; line-height: 1.4; color: var(--ink); margin: 0 0 28px; }
.word-pair .word { font-family: var(--serif); font-style: italic; font-weight: 500; font-size:clamp(4.48rem, 8vw, 6.72rem); line-height: 1; letter-spacing: -0.02em; margin: 0 0 8px; }
.word-pair .word-inter { color: var(--accent); }
.word-pair .word-intra { color: var(--ink); }
.word-pair p { margin: 0; }
.word-pair .pair-block + .pair-block { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 36px; }
.callout { margin-top: 28px; padding: 22px 28px; background: #fff; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
.callout p { margin: 0; }
.beliefs-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 72px; }
.beliefs-lead { font-family: var(--serif); font-size:1.46rem; line-height: 1.55; color: var(--ink); }
.belief { padding: 24px 0 26px; border-top: 1px solid var(--line); }
.belief h3 { margin-bottom: 8px; }
.belief p { margin: 0; font-size: 17px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col h2 { font-size:2.35rem; }
@media (max-width: 860px) {
  .about-hero .hero-grid, .beliefs-grid, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .band { padding: 60px 0; }
}

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

/* Built-in Home template */
.band-sand { background: var(--sand); color: var(--ink); }
.band-sand h2 { color: var(--ink); }
.home-hero { padding-bottom: 0; }
.home-hero .hero-grid { align-items: end; }
.home-hero .hero-copy { align-self: center; padding-bottom: 96px; }
.home-hero h1 { font-size:clamp(2.8rem, 4.8vw, 4.2rem); line-height: 1.1; }
.home-hero .hero-intro { font-size: 1.2rem; margin-bottom: 32px; }
.home-hero.no-photo { padding-bottom: 96px; }
.home-hero.no-photo .hero-grid { grid-template-columns: 1fr; max-width: 760px; }
.home-hero.no-photo .hero-copy { padding-bottom: 0; }
.arch-photo { margin: 0; }
.arch-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: 999px 999px 0 0;
}
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 44px 0 48px; }
.explore-item { border-top: 1px solid var(--line); padding-top: 24px; }
.explore-item h3 { margin-bottom: 12px; font-size:1.74rem; }
.explore-item p { margin: 0; font-size: 17px; }
.series-lede { font-size: 1.25rem; color: #E6EEF1; }
.doorway {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size:clamp(2.02rem, 3.8vw, 2.91rem); line-height: 1.28; letter-spacing: -0.01em; margin: 0 0 32px;
}
@media (max-width: 860px) {
  .explore-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-hero .hero-copy { padding-bottom: 40px; }
  .arch-photo { max-width: 420px; }
}

/* Built-in AI Executive Summit template */
.band-soft { background: var(--soft); }
.summit-hero .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
.summit-kicker { font-family: var(--serif); font-size:1.68rem; color: var(--link); margin: 0 0 14px; }
.summit-hero h1 { margin-bottom: 0.5em; }
.summit-flyer { margin: 0; }
.summit-flyer img { width: 100%; border-radius: 18px; box-shadow: 0 24px 60px rgba(46, 74, 87, 0.28); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.facts-grid h2 { font-size:1.68rem; margin-bottom: 8px; }
.facts-grid p { margin: 0; color: var(--ink); }
.about-speaker { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; }
.about-speaker.no-photo { grid-template-columns: 1fr; }
.round-photo { margin: 0; }
.round-photo img {
  width: 300px; height: 300px; border-radius: 50%; object-fit: cover; object-position: center top; margin: 0 auto;
}
.band-dark a:not(.btn) { color: var(--sand); }
@media (max-width: 860px) {
  .summit-hero .hero-grid, .facts-grid, .about-speaker { grid-template-columns: 1fr; gap: 36px; }
  .round-photo img { width: 220px; height: 220px; }
}

.btn-outline-sand { background: transparent; border-color: var(--sand); color: var(--sand); }
.btn-outline-sand:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }

/* Built-in Contact template */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-grid h2 { font-size:2.35rem; }
.contact-email { font-family: var(--serif); font-size:1.68rem; line-height: 1.4; }
.contact-note { margin: 48px 0 0; max-width: 620px; font-size: 16px; }
.map-frame { display: block; width: 100%; height: 460px; border: 0; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .map-frame { height: 340px; }
}

/* Built-in Events template */
.event-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; margin-top: 44px; }
.event-feature h3 { font-size:clamp(1.9rem, 3vw, 2.52rem); font-weight: 500; margin-bottom: 16px; }
.event-meta { color: var(--ink); font-weight: 500; margin-bottom: 20px; }
@media (max-width: 860px) { .event-feature { grid-template-columns: 1fr; gap: 36px; } }

/* Events template: date badge and calendar link */
.date-badge { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.date-day { font-family: var(--serif); font-size:clamp(4.2rem, 6vw, 5.32rem); font-weight: 500; line-height: 1; color: var(--ink); margin: 0; letter-spacing: -0.02em; }
.date-rest { border-left: 1px solid var(--line); padding: 4px 0 4px 22px; color: var(--ink); line-height: 1.4; }
.date-rest p { margin: 0; }
.date-rest p:first-child { font-weight: 500; margin-bottom: 2px; }
.cal-link { margin: 22px 0 0; font-size: 16px; }

.word-pair .pair-line { font-family: var(--serif); font-size:1.4rem; color: var(--text); }

/* Writing page and Home strip */
.pub-list { margin-top: 28px; }
.pub { display: grid; grid-template-columns: 0.3fr 1fr; gap: 48px; padding: 36px 0; border-top: 1px solid var(--line); }
.pub-meta-col p { margin: 0; line-height: 1.4; }
.pub-meta-col .pub-name { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.pub h3 { font-size:clamp(1.79rem, 3vw, 2.24rem); font-weight: 500; margin-bottom: 12px; }
.pub h3 a { color: var(--ink); text-decoration: none; }
.pub h3 a:hover { color: var(--link); text-decoration: underline; }
.pub p.pub-desc { font-size: 17px; margin-bottom: 16px; }
.pub .read-link { font-weight: 500; font-size: 16px; margin: 0; }
.pub-meta { font-size: 15px; font-weight: 500; color: var(--link); margin: 0 0 8px; line-height: 1.4; }
.explore-item h3 a { color: var(--ink); text-decoration: none; }
.explore-item h3 a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 860px) { .pub { grid-template-columns: 1fr; gap: 12px; } }

.arch-photo picture, .round-photo picture { display: block; }
