/*
Theme Name: Theme Park Cities 1.0.3.3
Theme URI: https://www.themeparkcities.com/
Author: Theme Park Cities
Author URI: https://www.themeparkcities.com/
Description: Theme Park Cities prototype with Media Library cropped logo header, reduced single-post title scale, hardcoded Maps and About pages, a Blog post index, and an editable Video Ideas page.
Version: 1.0.3.3
Requires at least: 6.0
Tested up to: 6.6
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: theme-park-cities
Tags: custom-logo, featured-images, blog, one-column, two-columns
*/

@font-face {
  font-family: 'JelleeTpc';
  src: url('https://www.themeparkcities.com/wp-content/fonts/Jellee-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SourceSansTpc';
  src: url('https://www.themeparkcities.com/wp-content/fonts/SourceSansPro-Regular.otf.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SourceSansTpc';
  src: url('https://www.themeparkcities.com/wp-content/fonts/SourceSansPro-Semibold.otf.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --tpc-ink: #172139;
  --tpc-ink-soft: #465272;
  --tpc-paper: #fff9ee;
  --tpc-card: #ffffff;
  --tpc-sky: #d9f1ff;
  --tpc-sky-strong: #63c7f2;
  --tpc-blue: #1e5aa7;
  --tpc-red: #f45a4e;
  --tpc-yellow: #ffd66b;
  --tpc-teal: #16a7a8;
  --tpc-orange: #ff9b3d;
  --tpc-green: #64ba67;
  --tpc-purple: #7661c9;
  --tpc-line: rgba(23, 33, 57, .14);
  --tpc-shadow: 0 16px 45px rgba(22, 31, 57, .16);
  --tpc-radius-lg: 28px;
  --tpc-radius-md: 18px;
  --tpc-radius-sm: 12px;
  --tpc-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tpc-ink);
  background:
    radial-gradient(circle at 6% 12%, rgba(255, 214, 107, .48), transparent 22rem),
    radial-gradient(circle at 95% 4%, rgba(99, 199, 242, .50), transparent 22rem),
    linear-gradient(180deg, #f8fcff 0%, #fff8eb 48%, #eefaff 100%);
  font-family: 'SourceSansTpc', Verdana, Geneva, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--tpc-blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus { color: #0a366f; }
img { max-width: 100%; height: auto; }

.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;
  word-wrap: normal !important;
}

.tpc-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 2px solid rgba(30, 90, 167, .14);
}

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

.tpc-header-inner {
  max-width: var(--tpc-max);
  margin: 0 auto;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tpc-logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 180px;
  text-decoration: none;
}

.tpc-header-logo {
  width: 310px;
  max-width: min(310px, 58vw);
  display: block;
}

.tpc-primary-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tpc-primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 11px;
  color: var(--tpc-ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
}

.tpc-primary-nav a:hover,
.tpc-primary-nav a:focus,
.tpc-primary-nav .current-menu-item > a,
.tpc-primary-nav .current_page_item > a {
  background: var(--tpc-sky);
  border-color: rgba(30, 90, 167, .16);
}

.tpc-site-main,
.tpc-page-shell,
.tpc-post-shell,
.tpc-blog-shell {
  max-width: var(--tpc-max);
  margin: 0 auto;
  padding: 26px 18px 64px;
}

.tpc-button,
.wp-block-button__link,
.tpc-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid rgba(23, 33, 57, .16);
  background: var(--tpc-yellow);
  color: var(--tpc-ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(23, 33, 57, .12);
}

.tpc-button:hover,
.tpc-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.tpc-pill-button:hover,
.tpc-pill-button:focus {
  transform: translateY(-1px);
  color: var(--tpc-ink);
}

/* Homepage */
.tpc-home {
  max-width: var(--tpc-max);
  margin: 0 auto;
  padding: 14px 18px 70px;
}

.tpc-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 255px;
  gap: 18px;
  align-items: stretch;
  margin-top: 4px;
}

.tpc-home-panel,
.tpc-hero-stage,
.tpc-home-strip,
.tpc-home-card,
.tpc-home-rail-card,
.tpc-page-card,
.tpc-post-card,
.tpc-content-card {
  background: rgba(255, 255, 255, .94);
  border: 3px solid rgba(23, 33, 57, .10);
  border-radius: var(--tpc-radius-lg);
  box-shadow: var(--tpc-shadow);
}

.tpc-home-panel {
  padding: 17px;
  overflow: hidden;
  border-left: 7px solid var(--tpc-yellow);
}

.tpc-panel-kicker,
.tpc-section-kicker,
.tpc-card-kicker {
  margin: 0 0 8px;
  color: var(--tpc-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tpc-panel-title {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1;
}

.tpc-search-dummy {
  background: #f5fbff;
  border: 2px solid rgba(30, 90, 167, .18);
  border-radius: 999px;
  padding: 12px 14px;
  color: var(--tpc-ink-soft);
  font-size: 14px;
}

.tpc-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tpc-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff5d9;
  border: 1px solid rgba(23, 33, 57, .13);
  font-size: 13px;
  font-weight: 600;
}

.tpc-mini-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.tpc-mini-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--tpc-ink-soft);
  font-size: 14px;
}

.tpc-mini-list strong { color: var(--tpc-ink); }

.tpc-dot {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--tpc-red);
  box-shadow: 14px 0 0 var(--tpc-yellow), 28px 0 0 var(--tpc-teal);
}

.tpc-hero-stage {
  position: relative;
  min-height: 438px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(222, 246, 255, .94)),
    radial-gradient(circle at 20% 18%, rgba(255, 214, 107, .55), transparent 11rem);
}

.tpc-hero-stage::before,
.tpc-hero-stage::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.tpc-hero-stage::before {
  width: 390px;
  height: 390px;
  right: -130px;
  bottom: -185px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(244,90,78,.88) 0deg 12deg, rgba(255,214,107,.9) 12deg 24deg, rgba(30,90,167,.82) 24deg 36deg, rgba(22,167,168,.82) 36deg 48deg);
  opacity: .26;
}

.tpc-hero-stage::after {
  left: 28px;
  right: 28px;
  bottom: 26px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tpc-red), var(--tpc-yellow), var(--tpc-teal), var(--tpc-blue));
}

.tpc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.tpc-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff1cd;
  border: 1px solid rgba(23, 33, 57, .12);
  color: #7a4816;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.tpc-home-title {
  margin: 0;
  font-family: 'SourceSansTpc', Verdana, Geneva, sans-serif;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: .88;
  letter-spacing: -.05em;
  color: var(--tpc-ink);
}

.tpc-home-title span {
  display: block;
  color: var(--tpc-red);
  text-shadow: 3px 3px 0 rgba(255, 214, 107, .7);
}

.tpc-home-intro {
  max-width: 560px;
  margin: 17px 0 0;
  color: var(--tpc-ink-soft);
  font-size: 19px;
}

.tpc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.tpc-button.alt {
  background: #fff;
}

.tpc-hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  max-width: 620px;
}

.tpc-hero-badge {
  padding: 12px;
  min-height: 86px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  border: 2px solid rgba(23, 33, 57, .09);
}

.tpc-hero-badge strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.tpc-hero-badge span {
  display: block;
  margin-top: 6px;
  color: var(--tpc-ink-soft);
  font-size: 13px;
  line-height: 1.3;
}

.tpc-rail-stack {
  display: grid;
  gap: 16px;
}

.tpc-home-rail-card {
  padding: 16px;
  border-radius: 22px;
  border-left: 6px solid rgba(30, 90, 167, .18);
}

.tpc-home-rail-card h2,
.tpc-home-rail-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.1;
}

.tpc-home-rail-card p {
  margin: 0;
  color: var(--tpc-ink-soft);
  font-size: 14px;
}

.tpc-rail-card-extra-day { background: linear-gradient(180deg, #fff, #fff4d8); border-left-color: var(--tpc-yellow); }
.tpc-rail-card-spotlight { background: linear-gradient(180deg, #fff, #e9fbff); border-left-color: var(--tpc-teal); }
.tpc-rail-card-loop { background: linear-gradient(180deg, #fff, #fff0f0); border-left-color: var(--tpc-red); }

.tpc-signup-mini {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px dashed rgba(23, 33, 57, .22);
  color: var(--tpc-ink-soft);
  font-size: 13px;
}

.tpc-video-strip {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--tpc-radius-lg);
  background:
    linear-gradient(90deg, rgba(23, 33, 57, .94), rgba(35, 51, 91, .94)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 8px, transparent 8px 16px);
  color: #fff;
  box-shadow: var(--tpc-shadow);
}

.tpc-video-strip-inner {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, .7fr));
  gap: 14px;
  align-items: stretch;
}

.tpc-video-strip h2,
.tpc-video-strip h3,
.tpc-video-strip p { margin: 0; }
.tpc-video-strip h2 { font-size: 28px; line-height: 1.05; }
.tpc-video-strip p { color: rgba(255,255,255,.80); }
.tpc-video-tile {
  min-height: 112px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
}

.tpc-discover {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--tpc-radius-lg);
  background: rgba(255,255,255,.90);
  border: 3px solid rgba(23, 33, 57, .10);
  box-shadow: var(--tpc-shadow);
}

.tpc-discover-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.tpc-discover h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.tpc-discover p { margin: 0; color: var(--tpc-ink-soft); max-width: 560px; }

.tpc-category-grid,
.tpc-bottom-grid,
.tpc-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tpc-category-card,
.tpc-bottom-card,
.tpc-map-card {
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid rgba(23, 33, 57, .10);
  min-height: 128px;
}

.tpc-category-card h3,
.tpc-bottom-card h3,
.tpc-map-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.08;
}

.tpc-category-card p,
.tpc-bottom-card p,
.tpc-map-card p { margin: 0; color: var(--tpc-ink-soft); font-size: 15px; }

.tpc-card-red { border-top: 7px solid var(--tpc-red); }
.tpc-card-blue { border-top: 7px solid var(--tpc-blue); }
.tpc-card-yellow { border-top: 7px solid var(--tpc-yellow); }
.tpc-card-teal { border-top: 7px solid var(--tpc-teal); }
.tpc-card-green { border-top: 7px solid var(--tpc-green); }
.tpc-card-purple { border-top: 7px solid var(--tpc-purple); }
.tpc-card-orange { border-top: 7px solid var(--tpc-orange); }

.tpc-bottom-grid { margin-top: 20px; }
.tpc-bottom-card { min-height: 150px; box-shadow: 0 10px 26px rgba(23, 33, 57, .09); }

/* Standard pages */
.tpc-page-card,
.tpc-content-card {
  padding: clamp(22px, 5vw, 48px);
}

.tpc-page-title,
.tpc-video-ideas-title {
  margin: 0 0 22px;
  font-family: 'JelleeTpc', 'SourceSansTpc', Verdana, Geneva, sans-serif;
  font-weight: 700;
  font-size: clamp(46px, 8vw, 86px);
  line-height: .94;
  color: var(--tpc-red);
  text-shadow: 4px 4px 0 rgba(255, 214, 107, .75);
}

.tpc-video-ideas-title { text-align: center; }

.tpc-video-ideas-content {
  max-width: 820px;
  margin: 0 auto;
  font-family: 'SourceSansTpc', Verdana, Geneva, sans-serif;
  font-size: 18px;
  line-height: 1.75;
}

.tpc-video-ideas-content ol,
.tpc-video-ideas-content ul {
  padding-left: 1.4em;
}

.tpc-video-ideas-content li + li { margin-top: .32rem; }

.tpc-page-intro {
  max-width: 840px;
  margin: 0 0 28px;
  color: var(--tpc-ink-soft);
  font-size: 20px;
}

.tpc-map-hero {
  position: relative;
  min-height: 320px;
  margin: 22px 0;
  padding: 24px;
  border-radius: var(--tpc-radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,214,107,.75), transparent 9rem),
    radial-gradient(circle at 70% 35%, rgba(22,167,168,.40), transparent 9rem),
    linear-gradient(135deg, #e9f8ff, #fff8df);
  border: 3px solid rgba(23, 33, 57, .11);
}

.tpc-map-blob {
  position: absolute;
  border-radius: 50% 40% 55% 35%;
  opacity: .90;
  border: 3px solid rgba(255,255,255,.70);
}

.tpc-map-blob.one { width: 190px; height: 110px; background: var(--tpc-green); left: 10%; top: 30%; transform: rotate(-12deg); }
.tpc-map-blob.two { width: 210px; height: 130px; background: var(--tpc-yellow); left: 38%; top: 20%; transform: rotate(8deg); }
.tpc-map-blob.three { width: 165px; height: 120px; background: var(--tpc-red); right: 14%; top: 34%; transform: rotate(-6deg); }
.tpc-map-blob.four { width: 185px; height: 90px; background: var(--tpc-teal); left: 28%; bottom: 18%; transform: rotate(-4deg); }
.tpc-map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--tpc-blue);
  box-shadow: 0 4px 14px rgba(23, 33, 57, .24);
}
.tpc-map-pin.a { left: 22%; top: 38%; }
.tpc-map-pin.b { left: 52%; top: 31%; }
.tpc-map-pin.c { right: 22%; top: 45%; }
.tpc-map-pin.d { left: 42%; bottom: 25%; }

/* Blog */
.tpc-blog-title {
  margin: 0 0 12px;
  font-family: 'JelleeTpc', 'SourceSansTpc', Verdana, Geneva, sans-serif;
  font-size: clamp(44px, 7vw, 80px);
  line-height: .95;
  color: var(--tpc-blue);
  text-shadow: 4px 4px 0 rgba(255, 214, 107, .70);
}

.tpc-single-title {
  margin: 0 0 12px;
  font-family: 'JelleeTpc', 'SourceSansTpc', Verdana, Geneva, sans-serif;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.02;
  color: var(--tpc-blue);
  text-shadow: 3px 3px 0 rgba(255, 214, 107, .70);
}

.tpc-blog-description {
  margin: 0 0 26px;
  max-width: 760px;
  color: var(--tpc-ink-soft);
  font-size: 19px;
}

.tpc-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tpc-post-card {
  overflow: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tpc-post-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d9f1ff, #fff4d8);
  overflow: hidden;
}

.tpc-post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tpc-post-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tpc-post-card-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.tpc-post-card-title a {
  color: var(--tpc-ink);
  text-decoration: none;
}

.tpc-post-card-title a:hover,
.tpc-post-card-title a:focus { color: var(--tpc-blue); }

.tpc-post-meta {
  color: var(--tpc-ink-soft);
  font-size: 14px;
}

.tpc-post-excerpt {
  color: var(--tpc-ink-soft);
  font-size: 16px;
}

.tpc-read-more {
  margin-top: auto;
  font-weight: 600;
}

.tpc-pagination {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tpc-single-article {
  max-width: 900px;
  margin: 0 auto;
}

.tpc-single-featured {
  margin: 24px 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--tpc-shadow);
}

.tpc-single-featured img { display: block; width: 100%; }

.tpc-entry-content {
  font-size: 18px;
}

.tpc-entry-content > *:first-child { margin-top: 0; }
.tpc-entry-content h2,
.tpc-entry-content h3 { line-height: 1.1; }

.tpc-empty-state {
  padding: 36px;
  background: #fff;
  border-radius: var(--tpc-radius-lg);
  border: 3px dashed rgba(23, 33, 57, .16);
}

.tpc-site-footer {
  border-top: 3px solid rgba(30, 90, 167, .12);
  background: rgba(255,255,255,.82);
}

.tpc-footer-inner {
  max-width: var(--tpc-max);
  margin: 0 auto;
  padding: 28px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--tpc-ink-soft);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .tpc-home-hero { grid-template-columns: 1fr 1fr; }
  .tpc-hero-stage { grid-column: 1 / -1; order: -1; }
  .tpc-video-strip-inner { grid-template-columns: 1fr 1fr; }
  .tpc-category-grid, .tpc-bottom-grid, .tpc-page-grid, .tpc-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .tpc-site-header { top: 46px; }
  .tpc-header-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .tpc-primary-nav ul { justify-content: flex-start; }
  .tpc-home-hero { grid-template-columns: 1fr; }
  .tpc-hero-stage { min-height: auto; }
  .tpc-hero-badges { grid-template-columns: 1fr; }
  .tpc-discover-head { display: block; }
  .tpc-video-strip-inner { grid-template-columns: 1fr; }
  .tpc-category-grid, .tpc-bottom-grid, .tpc-page-grid, .tpc-post-grid { grid-template-columns: 1fr; }
  .tpc-footer-inner { flex-direction: column; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .tpc-primary-nav a { font-size: 14px; padding: 7px 10px; }
  .tpc-home { padding-top: 10px; }
  .tpc-home-title { font-size: 42px; }
  .tpc-page-title,
  .tpc-video-ideas-title,
  .tpc-blog-title { font-size: 44px; }
  .tpc-single-title { font-size: 34px; }
}
