/*
Theme Name: 32Thirteen
Theme URI: https://32thirteen.com
Author: Steven Harnell
Description: Cinematic dark theme for 32Thirteen Productions, LLC. Near-black canvas, warm gold accent, Archivo + IBM Plex Mono. Built from the Claude Design "Website redesign for 32thirteen" project.
Version: 2.2.1
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thirtytwothirteen
*/

:root {
  --t13-bg: #101012;
  --t13-panel: #17171a;
  --t13-border: #26262a;
  --t13-text: #e8e6e2;
  --t13-body: #bdb9b0;
  --t13-muted: #a9a59d;
  --t13-dim: #8f8b84;
  --t13-faint: #6a6660;
  --t13-gold: #c9a24a;
  --t13-gold-hover: #d9b767;
  --t13-border2: #2f2f34;
  --t13-icon-border: #3a3a3e;
  --t13-faint2: #57544f;
  --t13-strong: #cfccc5;
  --t13-sans: 'Archivo', sans-serif;
  --t13-mono: 'IBM Plex Mono', monospace;
  --t13-gutter: clamp(20px, 5vw, 60px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--t13-bg);
  color: var(--t13-text);
  font-family: var(--t13-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--t13-gold); color: var(--t13-bg); }

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--t13-gold); }

img { max-width: 100%; height: auto; }

/* ---------- Header / nav ---------- */

.t13-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: clamp(20px, 4vw, 30px) var(--t13-gutter);
  border-bottom: 1px solid var(--t13-border);
}

.t13-logo img {
  height: clamp(34px, 5.6vw, 48px);
  width: auto;
  display: block;
}

.t13-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
  font-family: var(--t13-mono);
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 0.06em;
}

.t13-nav a { color: var(--t13-dim); }
.t13-nav a:hover { color: var(--t13-gold); }
.t13-nav .current-menu-item > a,
.t13-nav .current_page_item > a { color: var(--t13-text); }

/* ---------- Home: hero ---------- */

.t13-hero {
  padding: clamp(28px, 4.5vw, 48px) var(--t13-gutter) clamp(50px, 9vw, 90px);
}

.t13-kicker {
  font-family: var(--t13-mono);
  font-size: clamp(11px, 1.6vw, 13px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t13-gold);
  margin-bottom: clamp(20px, 4vw, 30px);
}

.t13-hero h1 {
  font-family: var(--t13-sans);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(24px, 4vw, 34px);
  max-width: 15ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.t13-hero p {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.65;
  color: var(--t13-muted);
  margin: 0;
  max-width: 640px;
}

/* ---------- Home: intro band ---------- */

.t13-intro {
  padding: 0 var(--t13-gutter) clamp(50px, 9vw, 90px);
}

.t13-intro p {
  font-weight: 400;
  font-size: clamp(19px, 3vw, 25px);
  line-height: 1.55;
  color: #cfccc5;
  margin: 0;
  max-width: 960px;
  border-top: 1px solid var(--t13-border);
  padding-top: clamp(32px, 5vw, 48px);
  text-wrap: pretty;
}

/* ---------- Home: services ---------- */

.t13-services {
  padding: 0 var(--t13-gutter) clamp(60px, 10vw, 100px);
}

.t13-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(28px, 5vw, 44px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--t13-border);
}

.t13-section-head .t13-num {
  font-family: var(--t13-mono);
  font-size: 13px;
  color: var(--t13-gold);
}

.t13-section-head h2 {
  font-weight: 600;
  font-size: clamp(13px, 2vw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

.t13-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(32px, 5vw, 48px);
}

.t13-service-col h3 {
  font-family: var(--t13-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t13-gold);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--t13-border);
}

.t13-service-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.5;
  color: var(--t13-body);
}

/* ---------- Home: DITools banner ---------- */

.t13-banner {
  padding: clamp(40px, 7vw, 56px) var(--t13-gutter);
  background: var(--t13-panel);
  border-top: 1px solid var(--t13-border);
  border-bottom: 1px solid var(--t13-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
  flex-wrap: wrap;
}

.t13-banner-copy { flex: 1; min-width: 260px; }

.t13-banner-copy .t13-kicker-sm {
  font-family: var(--t13-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t13-gold);
  margin-bottom: 14px;
}

.t13-banner-copy .t13-banner-title {
  font-weight: 700;
  font-size: clamp(26px, 4vw, 32px);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.t13-banner-copy p {
  font-size: clamp(15px, 2vw, 16px);
  color: var(--t13-muted);
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}

.t13-btn {
  font-family: var(--t13-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--t13-gold);
  border: 1px solid var(--t13-gold);
  border-radius: 4px;
  padding: 14px 26px;
  white-space: nowrap;
  transition: all .15s;
  display: inline-block;
}

.t13-btn:hover {
  background: var(--t13-gold);
  color: var(--t13-bg);
}

/* ---------- Home: credentials ---------- */

.t13-creds {
  padding: clamp(50px, 9vw, 72px) var(--t13-gutter);
}

.t13-creds > p {
  font-weight: 500;
  font-size: clamp(21px, 3.4vw, 28px);
  line-height: 1.45;
  margin: 0 0 clamp(28px, 5vw, 40px);
  max-width: 860px;
  text-wrap: pretty;
}

.t13-creds-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 40px);
  font-family: var(--t13-mono);
  font-size: clamp(12px, 1.8vw, 13px);
  color: var(--t13-dim);
  line-height: 1.5;
}

.t13-creds-list .t13-dash { color: var(--t13-gold); }

/* ---------- Home: brand strip ---------- */

.t13-brands {
  padding: clamp(36px, 6vw, 44px) var(--t13-gutter);
  border-top: 1px solid var(--t13-border);
}

.t13-brands .t13-label {
  font-family: var(--t13-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t13-faint);
  margin-bottom: 24px;
}

.t13-brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 44px);
  align-items: center;
  font-weight: 600;
  font-size: clamp(16px, 2.6vw, 20px);
  letter-spacing: 0.04em;
  color: #77736c;
}

/* ---------- Footer ---------- */

.t13-footer {
  padding: clamp(32px, 5vw, 40px) var(--t13-gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--t13-mono);
  font-size: 12px;
  color: var(--t13-faint);
  border-top: 1px solid var(--t13-border);
}

.t13-footer-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.t13-footer-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.t13-footer a:hover { color: var(--t13-gold); }

/* ---------- Social icons ---------- */

.t13-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.t13-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--t13-icon-border);
  border-radius: 4px;
  color: var(--t13-muted);
  transition: all .15s;
}

.t13-social a.t13-social-imdb {
  width: auto;
  padding: 0 12px;
  font-family: var(--t13-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.t13-social a:hover {
  border-color: var(--t13-gold);
  color: var(--t13-gold);
}

/* ---------- Interior page header (Services / Recent Work) ---------- */

.t13-pagehead {
  padding: clamp(28px, 4.5vw, 48px) var(--t13-gutter) clamp(40px, 7vw, 64px);
  border-bottom: 1px solid var(--t13-border);
}

.t13-pagehead .t13-kicker { margin-bottom: clamp(18px, 3vw, 26px); }

.t13-pagehead h1 {
  font-weight: 700;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(22px, 4vw, 30px);
}

.t13-pagehead p {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.65;
  color: var(--t13-muted);
  margin: 0;
  max-width: 680px;
}

/* ---------- Services page rows ---------- */

.t13-svc-list {
  padding: clamp(20px, 4vw, 40px) var(--t13-gutter) clamp(40px, 7vw, 60px);
}

.t13-svc-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding: clamp(32px, 5vw, 48px) 0;
  border-bottom: 1px solid var(--t13-border);
}

.t13-svc-num {
  font-family: var(--t13-mono);
  font-size: clamp(13px, 1.8vw, 15px);
  color: var(--t13-gold);
  padding-top: 6px;
}

.t13-svc-row h2 {
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(14px, 2vw, 18px);
  text-wrap: balance;
}

.t13-svc-row p {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  color: var(--t13-muted);
  margin: 0;
  max-width: 760px;
  text-wrap: pretty;
}

.t13-svc-more {
  padding: clamp(36px, 6vw, 56px) 0 clamp(8px, 2vw, 16px);
  font-family: var(--t13-mono);
  font-size: clamp(13px, 2vw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #77736c;
}

/* ---------- Recent Work ---------- */

.t13-cats {
  padding: clamp(24px, 4vw, 48px) var(--t13-gutter) clamp(50px, 8vw, 90px);
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 80px);
}

.t13-cat-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 36px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--t13-border);
}

.t13-cat-head .t13-num {
  font-family: var(--t13-mono);
  font-size: 13px;
  color: var(--t13-gold);
}

.t13-cat-head h2 {
  font-weight: 600;
  font-size: clamp(16px, 2.4vw, 20px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

.t13-cat-count {
  font-family: var(--t13-mono);
  font-size: 12px;
  color: var(--t13-faint2);
  margin-left: auto;
  white-space: nowrap;
}

.t13-workgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 30vw, 320px), 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.t13-work-card { display: block; }

.t13-work-thumbbox {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--t13-panel);
  border: 1px solid var(--t13-border);
}

.t13-work-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.t13-work-thumb.t13-fit-contain { object-fit: contain; }

.t13-work-title {
  font-weight: 500;
  font-size: clamp(14px, 1.9vw, 16px);
  line-height: 1.4;
  color: var(--t13-strong);
  margin-top: 14px;
  transition: color .15s;
}

.t13-work-card:hover .t13-work-thumb { transform: scale(1.04); }
.t13-work-card:hover .t13-work-title { color: var(--t13-gold); }
.t13-work-card:hover { color: inherit; }

/* ---------- Apps (DITools) page ---------- */

.t13-apphero {
  padding: clamp(28px, 4.5vw, 48px) var(--t13-gutter) clamp(44px, 7vw, 70px);
  border-bottom: 1px solid var(--t13-border);
}

.t13-apphero .t13-kicker { margin-bottom: clamp(18px, 3vw, 26px); }

.t13-apphero h1 {
  font-weight: 700;
  font-size: clamp(44px, 9vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(22px, 4vw, 30px);
}

.t13-apphero-tag {
  font-weight: 500;
  font-size: clamp(18px, 2.8vw, 24px);
  line-height: 1.4;
  color: var(--t13-strong);
  margin: 0 0 clamp(20px, 3vw, 26px);
  max-width: 760px;
}

.t13-apphero-desc {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.65;
  color: var(--t13-muted);
  margin: 0 0 clamp(32px, 5vw, 44px);
  max-width: 680px;
}

.t13-btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.t13-btn-row--center { justify-content: center; }

.t13-btn-solid {
  font-family: var(--t13-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--t13-bg);
  background: var(--t13-gold);
  border: 1px solid var(--t13-gold);
  border-radius: 4px;
  padding: 15px 30px;
  transition: all .15s;
  display: inline-block;
}

.t13-btn-solid:hover {
  background: var(--t13-gold-hover);
  border-color: var(--t13-gold-hover);
  color: var(--t13-bg);
}

.t13-btn-ghost {
  font-family: var(--t13-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--t13-gold);
  border: 1px solid var(--t13-icon-border);
  border-radius: 4px;
  padding: 15px 30px;
  transition: all .15s;
  display: inline-block;
}

.t13-btn-ghost:hover { border-color: var(--t13-gold); color: var(--t13-gold); }

.t13-features-wrap {
  padding: clamp(50px, 8vw, 80px) var(--t13-gutter);
}

.t13-section-head--plain {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.t13-section-head--plain h2 {
  font-size: clamp(16px, 2.4vw, 20px);
  letter-spacing: 0.14em;
}

.t13-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.t13-feat {
  padding: clamp(24px, 3vw, 30px);
  background: var(--t13-panel);
  border: 1px solid var(--t13-border);
  border-radius: 5px;
  transition: border-color .15s;
}

.t13-feat:hover { border-color: var(--t13-icon-border); }

.t13-feat-num {
  font-family: var(--t13-mono);
  font-size: 12px;
  color: var(--t13-gold);
  margin-bottom: 16px;
}

.t13-feat h3 {
  font-weight: 600;
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.25;
  margin: 0 0 12px;
  text-wrap: balance;
}

.t13-feat p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--t13-muted);
  margin: 0;
  text-wrap: pretty;
}

.t13-tech {
  padding: clamp(44px, 7vw, 64px) var(--t13-gutter);
  background: var(--t13-panel);
  border-top: 1px solid var(--t13-border);
  border-bottom: 1px solid var(--t13-border);
}

.t13-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.t13-tech .t13-section-head--plain { margin-bottom: 22px; }

.t13-tech-desc {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  color: var(--t13-muted);
  margin: 0;
  max-width: 560px;
}

.t13-tech-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--t13-mono);
  font-size: 14px;
  color: var(--t13-strong);
}

.t13-tech-list .t13-dash { color: var(--t13-gold); margin-right: 12px; }

.t13-note {
  margin-top: 8px;
  padding: 16px 18px;
  border: 1px solid var(--t13-icon-border);
  border-radius: 4px;
  font-family: var(--t13-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--t13-dim);
}

.t13-note strong { color: var(--t13-gold); font-weight: 600; }

.t13-cta {
  padding: clamp(56px, 9vw, 90px) var(--t13-gutter);
  text-align: center;
}

.t13-cta h2 {
  font-weight: 700;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(18px, 3vw, 24px);
  text-wrap: balance;
}

.t13-cta p {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.6;
  color: var(--t13-muted);
  margin: 0 auto clamp(30px, 4vw, 40px);
  max-width: 520px;
}

/* ---------- Contact page ---------- */

.t13-contact {
  padding: clamp(28px, 4.5vw, 48px) var(--t13-gutter) clamp(60px, 9vw, 90px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 7vw, 80px);
  align-items: start;
  max-width: 1200px;
}

.t13-contact-info .t13-kicker { margin-bottom: clamp(18px, 3vw, 26px); }

.t13-contact-info h1 {
  font-weight: 700;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(22px, 4vw, 30px);
}

.t13-contact-info > p {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.65;
  color: var(--t13-muted);
  margin: 0 0 clamp(32px, 5vw, 44px);
  max-width: 440px;
}

.t13-contact-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--t13-mono);
  font-size: 14px;
  color: var(--t13-dim);
}

.t13-contact-meta span { color: var(--t13-strong); }

.t13-meta-label {
  color: var(--t13-faint2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.t13-contact-meta .t13-social { padding-top: 6px; }

/* WPForms restyle to match the design */

.t13-contact-form .wpforms-container input[type="text"],
.t13-contact-form .wpforms-container input[type="email"],
.t13-contact-form .wpforms-container input[type="tel"],
.t13-contact-form .wpforms-container input[type="number"],
.t13-contact-form .wpforms-container textarea {
  font-family: var(--t13-sans) !important;
  width: 100% !important;
  max-width: none !important;
  background: var(--t13-panel) !important;
  border: 1px solid var(--t13-border2) !important;
  border-radius: 4px !important;
  color: var(--t13-text) !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  height: auto !important;
  transition: border-color .15s;
  box-shadow: none !important;
}

.t13-contact-form .wpforms-container input:focus,
.t13-contact-form .wpforms-container textarea:focus {
  outline: none !important;
  border-color: var(--t13-gold) !important;
  box-shadow: none !important;
}

.t13-contact-form .wpforms-container input::placeholder,
.t13-contact-form .wpforms-container textarea::placeholder {
  color: var(--t13-faint2) !important;
}

.t13-contact-form .wpforms-container textarea { resize: vertical; min-height: 160px; }

.t13-contact-form .wpforms-container .wpforms-field { padding: 11px 0 !important; }

.t13-contact-form .wpforms-container .wpforms-field-label {
  font-family: var(--t13-mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t13-dim) !important;
  font-weight: 400 !important;
  margin-bottom: 8px !important;
}

.t13-contact-form .wpforms-container .wpforms-field-sublabel {
  font-family: var(--t13-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t13-faint2) !important;
  margin-top: 6px !important;
}

.t13-contact-form .wpforms-container .wpforms-required-label { color: var(--t13-gold) !important; }

.t13-contact-form .wpforms-container button[type="submit"] {
  font-family: var(--t13-mono) !important;
  font-size: 14px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t13-bg) !important;
  background: var(--t13-gold) !important;
  border: 1px solid var(--t13-gold) !important;
  border-radius: 4px !important;
  padding: 15px 34px !important;
  height: auto !important;
  cursor: pointer;
  transition: all .15s;
}

.t13-contact-form .wpforms-container button[type="submit"]:hover {
  background: var(--t13-gold-hover) !important;
  border-color: var(--t13-gold-hover) !important;
}

.t13-contact-form .wpforms-confirmation-container-full,
.t13-contact-form div[class*="wpforms-confirmation"] {
  padding: 22px 24px !important;
  border: 1px solid var(--t13-gold) !important;
  border-radius: 4px;
  background: rgba(201, 162, 74, 0.08) !important;
  color: var(--t13-text) !important;
  font-size: 15px;
  line-height: 1.5;
}

.t13-contact-form .wpforms-confirmation-container-full p { color: var(--t13-text) !important; margin: 0; }

/* ---------- Interior pages ---------- */

.t13-page {
  padding: clamp(50px, 8vw, 80px) var(--t13-gutter) clamp(60px, 10vw, 100px);
}

.t13-page-title {
  font-weight: 700;
  font-size: clamp(30px, 5.5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(30px, 5vw, 48px);
  max-width: 20ch;
}

.t13-content {
  max-width: 960px;
  color: var(--t13-body);
  font-size: clamp(15px, 2vw, 17px);
}

/* Plugin stylesheets set bare `p`/`li` colors; reclaim them for the dark canvas */
.t13-content p,
.t13-content li,
.t13-content dd,
.t13-content dt,
.t13-content address,
.t13-content .panel-widget-style p,
.t13-content .so-panel p {
  color: var(--t13-body);
}

/* Editor-era Gutenberg preset colors (has-black-color etc.) were picked for the
   old white background and ship with !important — neutralize them on dark */
.t13-content [class*="has-"][class*="-color"] {
  color: var(--t13-body) !important;
}

.t13-content h1[class*="has-"][class*="-color"],
.t13-content h2[class*="has-"][class*="-color"],
.t13-content h3[class*="has-"][class*="-color"],
.t13-content h4[class*="has-"][class*="-color"],
.t13-content h5[class*="has-"][class*="-color"],
.t13-content h6[class*="has-"][class*="-color"] {
  color: var(--t13-text) !important;
}

/* Gutenberg per-element LINK colors (has-link-color) also date from the old
   light background and render black-on-black; force them to the gold accent */
.t13-content [class*="has-link-color"] a,
.t13-content a:where(:not(.wp-element-button)) {
  color: var(--t13-gold) !important;
}

.t13-content h1, .t13-content h2, .t13-content h3,
.t13-content h4, .t13-content h5, .t13-content h6 {
  color: var(--t13-text);
  font-family: var(--t13-sans);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.t13-content h2 { font-size: clamp(22px, 3.2vw, 28px); margin: 2em 0 0.8em; }
.t13-content h3 { font-size: clamp(18px, 2.6vw, 22px); margin: 1.8em 0 0.7em; }

.t13-content a { color: var(--t13-gold); }
.t13-content a:hover { text-decoration: underline; }

.t13-content strong, .t13-content b { color: var(--t13-text); }

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

.t13-content blockquote {
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.5em;
  border-left: 2px solid var(--t13-gold);
  color: var(--t13-muted);
}

.t13-content table {
  border-collapse: collapse;
  width: 100%;
}

.t13-content th, .t13-content td {
  border: 1px solid var(--t13-border);
  padding: 10px 14px;
  text-align: left;
}

.t13-content th { color: var(--t13-text); font-family: var(--t13-mono); font-size: 13px; }

.t13-content code, .t13-content pre {
  font-family: var(--t13-mono);
  background: var(--t13-panel);
  border: 1px solid var(--t13-border);
}

.t13-content code { padding: 2px 6px; font-size: 0.9em; }
.t13-content pre { padding: 16px 20px; overflow-x: auto; }
.t13-content pre code { border: none; padding: 0; background: none; }

.t13-content figure { margin: 1.5em 0; }
.t13-content figcaption {
  font-family: var(--t13-mono);
  font-size: 12px;
  color: var(--t13-faint);
  margin-top: 8px;
}

/* Forms (WPForms + generic) on dark */

.t13-content input[type="text"],
.t13-content input[type="email"],
.t13-content input[type="tel"],
.t13-content input[type="url"],
.t13-content input[type="number"],
.t13-content select,
.t13-content textarea {
  background: var(--t13-panel);
  border: 1px solid var(--t13-border);
  color: var(--t13-text);
  font-family: var(--t13-sans);
  font-size: 15px;
  padding: 12px 14px;
  width: 100%;
  max-width: 640px;
  border-radius: 0;
}

.t13-content input:focus,
.t13-content select:focus,
.t13-content textarea:focus {
  outline: none;
  border-color: var(--t13-gold);
}

.t13-content input[type="submit"],
.t13-content button[type="submit"],
.t13-content .wpforms-submit {
  font-family: var(--t13-mono) !important;
  font-size: 14px !important;
  letter-spacing: 0.04em;
  color: var(--t13-gold) !important;
  background: transparent !important;
  border: 1px solid var(--t13-gold) !important;
  padding: 14px 26px !important;
  cursor: pointer;
  transition: all .15s;
  width: auto;
  border-radius: 0 !important;
}

.t13-content input[type="submit"]:hover,
.t13-content button[type="submit"]:hover,
.t13-content .wpforms-submit:hover {
  background: var(--t13-gold) !important;
  color: var(--t13-bg) !important;
}

.t13-content .wpforms-field-label {
  color: var(--t13-text) !important;
  font-weight: 500 !important;
}

.t13-content .wpforms-field-sublabel,
.t13-content .wpforms-field-description {
  color: var(--t13-dim) !important;
}

/* SiteOrigin panels: let its grid work, fix colors */
.t13-content .panel-grid-cell h1,
.t13-content .panel-grid-cell h2,
.t13-content .panel-grid-cell h3 { color: var(--t13-text); }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 16px auto; }
.wp-caption { max-width: 100%; }

/* Admin bar offset handled by WP core */
