/*
Theme Name: Tampa Bay is Awesome
Theme URI: https://tampabayisawesome.com
Author: Tampa Bay is Awesome
Description: The Tampa Bay is Awesome home page and article layouts — stamp-blue, single-color brand system with Fun, Food, Events, and Hidden Gems pillars. Assign posts to the Fun, Food, Events, or Hidden Gems categories to tag them with a pillar.
Version: 1.0.0
Requires at least: 6.4
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: tampa-bay-awesome
*/

/* ── Tokens ───────────────────────────────── */
:root {
  --blue: #1B5FA0;
  --blue-ink: #124476;
  --blue-tint: #E6EEF6;
  --ink: #14181F;
  --ink-70: rgba(20, 24, 31, 0.70);
  --ink-50: rgba(20, 24, 31, 0.50);
  --ink-20: rgba(20, 24, 31, 0.20);
  --ink-10: rgba(20, 24, 31, 0.10);
  --sand: #F4EFE6;
  --coral: #FF6B4A;
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(20, 24, 31, 0.08), 0 12px 32px rgba(20, 24, 31, 0.06);
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ── Base ─────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 400; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed !important;
  top: 8px; left: 8px;
  width: auto; height: auto;
  clip: auto;
  z-index: 1000;
  background: #FFFFFF;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

/* ── Utilities ────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.section { padding: 96px 0; }

.grain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(20, 24, 31, 0.07) 1px, transparent 1px),
    radial-gradient(circle, rgba(20, 24, 31, 0.04) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px;
  background-position: 0 0, 10px 10px;
  pointer-events: none;
  z-index: 0;
}

.grain-overlay > * { position: relative; z-index: 1; }

/* ── Buttons ──────────────────────────────── */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  cursor: pointer;
  transition: all 150ms;
}

.btn-primary { background: var(--blue); color: #FFFFFF; border: 0; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-primary:disabled { cursor: default; }

.btn-ghost { border: 2px solid var(--ink-20); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(20, 24, 31, 0.4); background: rgba(20, 24, 31, 0.05); }

.btn-sm { padding: 8px 16px; font-size: 12px; line-height: 16px; }

/* ── Chips ────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.chip-fun     { background: var(--blue-tint); color: var(--blue-ink); }
.chip-food    { background: #CFDFEE; color: var(--blue-ink); }
.chip-events  { background: #FFEAE3; color: #A83A20; }
.chip-gems    { background: var(--blue); color: #FFFFFF; }
.chip-outline { border: 1px solid var(--ink-20); color: var(--ink); background: transparent; }

/* ── Nav ──────────────────────────────────── */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-10);
  display: flex;
  align-items: center;
}

.admin-bar .nav-bar { top: 32px; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-stamp {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transform: rotate(-6deg);
  flex-shrink: 0;
}

.nav-wordmark { display: flex; flex-direction: column; line-height: 1.1; }

.wordmark-top,
.wordmark-bottom {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wordmark-top { color: var(--ink); }
.wordmark-bottom { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color 150ms;
}

.nav-links a:hover,
.nav-links .current-menu-item > a { color: var(--blue); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 200ms;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-10);
  padding: 24px;
  z-index: 99;
  box-shadow: 0 12px 32px rgba(20, 24, 31, 0.10);
}

.mobile-drawer.open { display: block; }

.mobile-nav { display: flex; flex-direction: column; gap: 4px; }

.mobile-nav a:not(.btn-primary) {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid rgba(20, 24, 31, 0.08);
  transition: color 150ms;
}

.mobile-nav a:not(.btn-primary):hover { color: var(--blue); }
.mobile-nav .btn-primary { margin-top: 16px; align-self: flex-start; }

/* ── Hero ─────────────────────────────────── */
.hero {
  background: var(--sand);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--blue);
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
}

.hero-h1-bay { color: var(--blue); display: block; }
.hero-h1-is  { color: var(--ink); display: inline; margin-right: 0.2em; }

.hero-h1-awesome {
  display: inline-block;
  background: var(--blue);
  color: #FFFFFF;
  padding: 0 0.12em;
  transform: rotate(-2.5deg);
  box-shadow: 6px 6px 0 rgba(20, 24, 31, 0.25);
  position: relative;
}

.hero-dot { color: var(--blue); }

.hero-sub {
  font-size: 19px;
  color: var(--ink-70);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(20, 24, 31, 0.15);
}

.hero-stat { display: flex; flex-direction: column; gap: 2px; }

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
}

.hero-stat-label {
  font-size: 12px;
  color: var(--ink-70);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-card {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(20, 24, 31, 0.12), 0 32px 64px rgba(20, 24, 31, 0.08);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-stamp {
  position: absolute;
  top: 24px;
  right: -16px;
  width: 104px;
  height: 104px;
  background: #FFFFFF;
  border-radius: 50%;
  border: 3px solid var(--blue);
  box-shadow: inset 0 0 0 5px #FFFFFF, inset 0 0 0 7px var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  z-index: 5;
  animation: stamp-down 240ms ease-out both;
}

@keyframes stamp-down {
  from { opacity: 0; transform: scale(1.1) rotate(-16deg); }
  to   { opacity: 1; transform: scale(1) rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stamp { animation: none; }
  html { scroll-behavior: auto; }
}

.stamp-inner {
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-caption {
  position: absolute;
  bottom: 20px;
  left: -12px;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 220px;
  box-shadow: 0 4px 12px rgba(20, 24, 31, 0.12);
  z-index: 5;
}

.caption-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 4px;
}

.caption-title {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.caption-sub {
  font-size: 12px;
  color: var(--ink-70);
  line-height: 1.4;
}

.caption-credit {
  font-size: 10px;
  color: var(--ink-70);
  line-height: 1.4;
  margin-top: 6px;
}

.caption-credit a { text-decoration: underline; }

/* ── Pillars ──────────────────────────────── */
.pillars-section { background: #FFFFFF; }

.pillars-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}

.section-h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 48px);
  color: var(--ink);
  line-height: 1;
  margin-top: 8px;
}

.pillars-lead {
  font-size: 17px;
  color: rgba(20, 24, 31, 0.65);
  line-height: 1.55;
  max-width: 420px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: transform 200ms;
}

.pillar-card:hover { transform: translateY(-4px); }

.pillar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms;
}

.pillar-card:hover .pillar-img { transform: scale(1.06); }

.pillar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 31, 0.05) 0%, rgba(20, 24, 31, 0.15) 50%, rgba(20, 24, 31, 0.85) 100%);
}

.pillar-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.pillar-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: #FFFFFF;
  z-index: 2;
}

.pillar-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.75;
  margin-bottom: 6px;
  font-weight: 700;
}

.pillar-name {
  font-family: var(--font-display);
  font-size: 30px;
  margin-bottom: 8px;
  line-height: 1;
}

.pillar-desc {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 12px;
}

.pillar-link {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-block;
  transition: transform 200ms;
}

.pillar-card:hover .pillar-link { transform: translateX(4px); }

/* ── Article cards ────────────────────────── */
.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
}

.featured-h2 { font-size: clamp(26px, 3.2vw, 40px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  display: block;
  background: #FFFFFF;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ink-10);
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms;
}

.article-card:hover .card-photo img { transform: scale(1.05); }

.card-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.card-photo .card-photo-placeholder img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.35;
  transform: rotate(-6deg);
}

.card-chip { position: absolute; top: 16px; left: 16px; z-index: 2; }

.card-body { padding: 20px; }

.card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 10px;
}

.card-excerpt {
  font-size: 14px;
  color: var(--ink-70);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-byline { font-size: 12px; color: var(--ink-70); }

.empty-note {
  font-size: 17px;
  color: var(--ink-70);
  padding: 40px;
  border: 2px dashed var(--ink-20);
  border-radius: var(--radius);
  text-align: center;
}

/* ── Subscribe ────────────────────────────── */
.subscribe-section {
  background: var(--ink);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.subscribe-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.subscribe-eyebrow { color: var(--coral); }

.subscribe-h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 40px);
  color: #FFFFFF;
  line-height: 1.05;
  margin-top: 8px;
  margin-bottom: 16px;
}

.subscribe-lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin-bottom: 32px;
}

.socials-strip { display: flex; flex-wrap: wrap; gap: 8px; }

.social-pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 150ms, color 150ms;
}

a.social-pill:hover { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }

.subscribe-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 12px 32px rgba(20, 24, 31, 0.20), 0 32px 64px rgba(20, 24, 31, 0.12);
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-bottom: 10px;
}

.subscribe-form { display: flex; gap: 10px; margin-bottom: 14px; }

.form-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1.5px solid rgba(20, 24, 31, 0.15);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 150ms;
}

.form-input:focus { border-color: var(--blue); }

.form-fine { font-size: 12px; color: var(--ink-70); line-height: 1.5; }

.subscribe-soon-title {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 10px;
}

.section, .subscribe-section { scroll-margin-top: 80px; }

/* ── Archive / page header ────────────────── */
.page-header {
  background: var(--sand);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  margin-top: 8px;
}

.page-lead {
  font-size: 18px;
  color: var(--ink-70);
  max-width: 640px;
  margin-top: 16px;
}

.pagination { margin-top: 48px; }

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink-20);
  font-size: 14px;
  font-weight: 700;
}

.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }

/* ── Single article ───────────────────────── */
.entry-header {
  background: var(--sand);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

.entry-header-inner { max-width: 880px; margin: 0 auto; }

.entry-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.entry-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 20px;
}

.entry-byline {
  font-size: 14px;
  color: var(--ink-70);
  font-weight: 600;
  padding-bottom: 48px;
}

.entry-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.entry-hero img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.has-hero .entry-byline { padding-bottom: 120px; }
.has-hero .entry-hero { margin-top: -88px; }

.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 32px 96px;
  font-size: 18px;
  line-height: 1.7;
}

.entry-content > * + * { margin-top: 1.25em; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  line-height: 1.1;
  margin-top: 1.8em;
}

.entry-content h2 { font-size: 30px; text-transform: uppercase; }
.entry-content h3 { font-size: 23px; }
.entry-content h4 { font-size: 19px; }

.entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--blue-ink); }

.entry-content ul,
.entry-content ol { padding-left: 1.4em; }

.entry-content li + li { margin-top: 0.4em; }

.entry-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 4px 0 4px 20px;
  font-family: 'Caveat', cursive;
  font-size: 30px;
  line-height: 1.2;
  color: var(--blue);
}

.entry-content img,
.entry-content figure img { border-radius: var(--radius); }

.entry-content figcaption,
.entry-content .wp-element-caption {
  font-size: 13px;
  color: var(--ink-70);
  margin-top: 8px;
}

.entry-content hr { border: 0; border-top: 1px solid var(--ink-10); margin: 2.5em 0; }

.entry-content .alignwide { max-width: 1080px; margin-left: calc(50% - 50vw + 32px); }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }

.entry-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--ink-10);
  padding-top: 32px;
}

.post-nav a {
  display: block;
  padding: 16px;
  border: 1.5px solid var(--ink-10);
  border-radius: var(--radius);
  transition: border-color 150ms;
}

.post-nav a:hover { border-color: var(--blue); }
.post-nav .next { text-align: right; grid-column: 2; }

.post-nav-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.post-nav-title { font-family: var(--font-display); font-size: 16px; line-height: 1.15; }

/* ── 404 ──────────────────────────────────── */
.not-found { text-align: center; padding: 120px 0; }
.not-found .page-lead { margin: 16px auto 32px; }

/* ── Footer ───────────────────────────────── */
.footer-wrap { background: var(--sand); padding: 64px 0 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-stamp {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transform: rotate(-6deg);
  margin-bottom: 16px;
}

.footer-logo-link { display: inline-block; }

.footer-tagline {
  font-size: 14px;
  color: rgba(20, 24, 31, 0.65);
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 420px;
}

.footer-founder { font-size: 13px; color: var(--ink-70); }

.footer-col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 14px;
  color: var(--ink-70);
  transition: color 150ms;
}

.footer-links a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid rgba(20, 24, 31, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p { font-size: 13px; color: var(--ink-70); }
.footer-tagline-bottom { font-style: italic; }

/* ── Menus (wp_nav_menu markup) ───────────── */
.nav-links .menu { display: flex; align-items: center; gap: 28px; }
.mobile-nav .menu { display: flex; flex-direction: column; gap: 4px; }

/* ── Contact page ─────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-intro { padding: 0; margin: 0 0 32px; max-width: none; }

.contact-cards { display: grid; gap: 16px; }

.contact-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-card-title {
  font-size: 20px;
  text-transform: uppercase;
  margin: 12px 0 6px;
}

.contact-card p { font-size: 15px; color: var(--ink-70); line-height: 1.55; }

.contact-form-card { border: 1px solid var(--ink-10); position: sticky; top: 112px; }

.form-row { margin-bottom: 20px; }
.form-row .form-input { width: 100%; }

textarea.form-input { resize: vertical; min-height: 140px; line-height: 1.5; }

select.form-input {
  appearance: none;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314181F' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;
  padding-right: 40px;
}

.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-alert {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-alert-success { background: #E3F4EA; color: #1F6E3F; border-left: 4px solid #2E9E5B; }
.contact-alert-error   { background: #FBE9E5; color: #9A3322; border-left: 4px solid #C4432E; }

/* ── Full-width template ──────────────────── */
.entry-content-wide { max-width: none; padding-left: 0; padding-right: 0; }

/* ── Blocks inside posts and pages ────────── */
.entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
}

.entry-content .wp-block-button__link:hover { background: var(--blue-ink); color: #FFFFFF; }

.entry-content .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink-20);
}

.entry-content .wp-block-pullquote {
  border-top: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  padding: 32px 0;
  text-align: center;
}

.entry-content .wp-block-pullquote blockquote { border: 0; padding: 0; }

.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }

.entry-content th {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: left;
}

.entry-content th,
.entry-content td { padding: 12px; border-bottom: 1px solid var(--ink-10); }

.entry-content .wp-block-separator { border: 0; border-top: 2px solid var(--ink-10); }

.entry-content code { background: var(--sand); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

.entry-content .has-background { padding: 24px 28px; border-radius: var(--radius); }

/* Brand palette and type scale (the only choices offered in the editor) */
.has-stamp-blue-color { color: #1B5FA0; }
.has-stamp-blue-background-color { background-color: #1B5FA0; }
.has-ink-color { color: #14181F; }
.has-ink-background-color { background-color: #14181F; }
.has-white-color { color: #FFFFFF; }
.has-white-background-color { background-color: #FFFFFF; }
.has-sand-color { color: #F4EFE6; }
.has-sand-background-color { background-color: #F4EFE6; }
.has-sunset-coral-color { color: #FF6B4A; }
.has-sunset-coral-background-color { background-color: #FF6B4A; }

.has-small-font-size { font-size: 14px; }
.has-normal-font-size { font-size: 18px; }
.has-large-font-size { font-size: 23px; }
.has-huge-font-size { font-size: 36px; line-height: 1.1; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 1080px) {
  .nav-bar .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-drawer { top: 80px; }
}

@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-bar { height: 72px; }
  .mobile-drawer { top: 72px; }
  /* Below the 64px minimum the stamp drops to the wordmark-only lockup */
  .nav-stamp { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .pillars-header { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .subscribe-inner { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-card { position: static; }
}

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

/* WordPress's admin bar stops being fixed on small phones */
@media (max-width: 600px) {
  .admin-bar .nav-bar { top: 0; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .subscribe-section { padding: 64px 0; }
  .entry-content { padding: 40px 20px 64px; font-size: 17px; }
  .entry-footer { padding: 0 20px 64px; }
}

@media (max-width: 640px) {
  .wrap, .entry-hero { padding: 0 20px; }
}

@media (max-width: 560px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .featured-header { flex-direction: column; align-items: flex-start; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
