/*
Theme Name: TMTR V2 Theme
Theme URI: https://openai.com
Author: OpenAI
Description: Rebuilt premium editorial WordPress theme for The Mechanics of Toxic Relationships.
Version: 2.0.0
Text Domain: tmtrv2
*/

:root{
  --bg:#060606;
  --panel:#101010;
  --panel-2:#151515;
  --line:#232323;
  --text:#f3f3f3;
  --muted:#b9b9b9;
  --soft:#8f8f8f;
  --red:#d31332;
  --red-2:#8f0c1f;
  --card:#111111;
  --shadow:0 24px 60px rgba(0,0,0,.45);
  --radius:16px;
  --container:1440px;
  --navh:86px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at top left, rgba(211,19,50,.12), transparent 28%),
    linear-gradient(180deg, #080808 0%, #050505 100%);
  color:var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.55;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
.site-shell{min-height:100vh}
.container{
  width:min(calc(100% - 40px), var(--container));
  margin-inline:auto;
}
.site-header{
  position:sticky; top:0; z-index:100;
  backdrop-filter:blur(14px);
  background:rgba(8,8,8,.9);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-row{
  min-height:84px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:24px;
  align-items:center;
}
.brand{
  display:flex; gap:14px; align-items:center;
}
.brand-mark{
  width:42px;height:42px;display:grid;place-items:center;
  border:1px solid rgba(211,19,50,.6);
  background:linear-gradient(180deg,#ba112c,#8d0f22);
  color:#fff;font-weight:800;font-size:20px;letter-spacing:.04em;
}
.brand-copy{
  display:flex; flex-direction:column; line-height:1;
}
.brand-copy .top{
  font-weight:800;
  font-size:16px;
  letter-spacing:-.03em;
  text-transform:uppercase;
}
.brand-copy .bottom{
  margin-top:6px;
  color:#f83b59;
  font-weight:800;
  font-size:24px;
  letter-spacing:-.04em;
  text-transform:uppercase;
}
.primary-nav{justify-self:center}
.primary-nav ul{
  display:flex; align-items:center; gap:28px; list-style:none; padding:0; margin:0;
}
.primary-nav a{
  position:relative;
  display:inline-block;
  padding:8px 0;
  font-weight:700;
  font-size:13px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#efefef;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav a:hover{color:#fff}
.primary-nav .current-menu-item > a:after,
.primary-nav .current_page_item > a:after,
.primary-nav a:hover:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-14px;
  height:3px; background:var(--red);
}
.header-actions{
  display:flex; gap:14px; align-items:center;
}
.header-pill,
.profile-badge{
  border:1px solid rgba(211,19,50,.7);
  background:rgba(211,19,50,.08);
  color:#fff;
}
.header-pill{
  padding:13px 18px;
  border-radius:14px;
  font-weight:700;
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.profile-badge{
  width:48px;height:48px;border-radius:999px;
  display:grid;place-items:center;
  font-weight:800;
}
.menu-toggle{
  display:none;
  width:44px;height:44px;border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:#101010;color:#fff;
}
.hero{
  padding:34px 0 24px;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:32px;
  align-items:center;
  background:
    linear-gradient(120deg, rgba(211,19,50,.08), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border:1px solid rgba(255,255,255,.06);
  padding:42px;
  border-radius:28px;
  box-shadow:var(--shadow);
}
.kicker{
  display:inline-block;
  color:#f84b67;
  font-weight:800;
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin-bottom:18px;
}
.hero-title{
  font-size:clamp(44px, 6vw, 88px);
  line-height:.96;
  letter-spacing:-.055em;
  font-weight:900;
  text-transform:uppercase;
  max-width:10ch;
  margin:0 0 22px;
}
.hero-title .white{color:#f5f5f5}
.hero-title .red{color:var(--red)}
.hero-rule{
  width:4px; height:156px; background:linear-gradient(180deg,var(--red),transparent);
  position:absolute; left:0; top:8px; border-radius:999px;
}
.hero-copy-wrap{position:relative; padding-left:22px}
.hero-copy{
  max-width:760px;
  color:#d8d8d8;
  font-size:clamp(16px,1.7vw,19px);
  line-height:1.55;
  margin:0 0 24px;
}
.cta-row{display:flex; gap:14px; flex-wrap:wrap}
.btn{
  appearance:none;border:none; cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  min-height:52px; padding:0 22px;
  border-radius:16px;
  font-weight:800;font-size:13px;letter-spacing:.08em;text-transform:uppercase;
  transition:.22s ease;
}
.btn-primary{
  background:linear-gradient(180deg,#df2447,#c61131);
  color:#fff;
  box-shadow:0 14px 34px rgba(211,19,50,.25);
}
.btn-primary:hover{transform:translateY(-1px); filter:brightness(1.05)}
.btn-secondary{
  border:1px solid rgba(211,19,50,.75);
  color:#fff; background:rgba(255,255,255,.02);
}
.btn-secondary:hover{background:rgba(211,19,50,.08)}
.hero-media{
  position:relative;
  min-height:560px;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(211,19,50,.65);
  background:#090909;
}
.hero-slider,
.hero-slide{height:100%}
.hero-slide{
  position:absolute; inset:0;
  opacity:0; pointer-events:none; transition:opacity .45s ease;
}
.hero-slide.active{opacity:1; pointer-events:auto}
.hero-art{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  filter:saturate(.95) contrast(1.05);
}
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.55)),
    linear-gradient(90deg, rgba(0,0,0,.4), transparent 42%);
}
.hero-card-copy{
  position:absolute;
  left:20px; right:20px; bottom:20px;
  display:grid; gap:10px;
  padding:20px;
  border-radius:20px;
  background:rgba(7,7,7,.7);
  border:1px solid rgba(255,255,255,.08);
}
.hero-card-copy .meta{color:#f85a73;font-weight:700;font-size:12px;letter-spacing:.18em;text-transform:uppercase}
.hero-card-copy h2{
  margin:0;font-size:clamp(20px,2vw,28px);line-height:1;letter-spacing:-.04em;text-transform:uppercase
}
.hero-card-copy p{margin:0;color:#d4d4d4}
.slider-controls{
  position:absolute; right:18px; top:18px; z-index:5; display:flex; gap:10px;
}
.slider-controls button{
  width:48px;height:48px;border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(8,8,8,.62);color:#fff; cursor:pointer; font-size:16px;
}
.section{
  padding:38px 0;
}
.section-head{
  display:flex; align-items:end; justify-content:space-between; gap:20px;
  margin-bottom:20px;
}
.section-kicker{
  position:relative; padding-left:22px; margin-bottom:10px;
  color:#fff; font-size:12px; letter-spacing:.22em; text-transform:uppercase; font-weight:800;
}
.section-kicker:before{
  content:""; position:absolute; left:0; top:1px; bottom:1px; width:4px;
  background:linear-gradient(180deg, var(--red), rgba(211,19,50,0));
  border-radius:999px;
}
.section-title{
  margin:0;
  font-size:clamp(28px, 3.2vw, 48px);
  line-height:.98;
  letter-spacing:-.05em;
  text-transform:uppercase;
  font-weight:900;
}
.section-intro{
  margin:10px 0 0;
  color:#d7d7d7;
  font-size:16px;
}
.panel{
  background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.07);
  border-radius:20px;
  box-shadow:var(--shadow);
}
.feature-panels{
  display:grid; grid-template-columns:1fr 1fr; gap:26px;
}
.feature-panel{
  min-height:250px; padding:32px;
  position:relative;
  overflow:hidden;
}
.feature-panel:before{
  content:""; position:absolute; inset:auto -25% -40% auto; width:240px; height:240px;
  background:radial-gradient(circle, rgba(211,19,50,.18), transparent 62%);
}
.feature-icon{font-size:28px;color:var(--red);margin-bottom:16px}
.feature-title{
  margin:0 0 14px;
  font-size:clamp(28px,2.6vw,42px);
  line-height:1;
  text-transform:uppercase;
  letter-spacing:-.04em;
  font-weight:900;
}
.feature-text{margin:0 0 18px;color:#ccc;font-size:15px;max-width:34ch}
.grid{
  display:grid; gap:22px;
}
.cards-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.media-card{
  display:flex; flex-direction:column; overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  box-shadow:var(--shadow);
}
.media-thumb{
  aspect-ratio:1 / 0.95;
  background:#141414 center/cover no-repeat;
  border-bottom:1px solid rgba(255,255,255,.07);
  position:relative;
}
.media-thumb .badge{
  position:absolute; right:14px; top:14px;
  background:rgba(211,19,50,.92); color:#fff;
  padding:10px 12px; border-radius:999px;
  font-size:11px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
}
.media-body{padding:14px 14px 18px}
.meta-line{
  color:#d86b7d; font-size:12px; letter-spacing:.14em; font-weight:700; text-transform:uppercase;
}
.media-card h3{
  margin:8px 0 8px;
  font-size:clamp(19px,1.6vw,28px);
  line-height:1.03; letter-spacing:-.04em; text-transform:uppercase;
}
.media-card p{margin:0 0 16px;color:#cfcfcf}
.inline-link{
  color:#ff3157; font-weight:800; letter-spacing:.08em; text-transform:uppercase; font-size:13px;
}
.thread-card{
  padding:22px; display:flex; flex-direction:column; gap:14px;
}
.thread-top{display:flex; justify-content:space-between; gap:12px; align-items:center}
.pill{
  display:inline-flex; align-items:center; min-height:34px; padding:0 14px;
  background:rgba(211,19,50,.12); border:1px solid rgba(211,19,50,.34);
  color:#ff4565; border-radius:999px; font-weight:800; font-size:12px; letter-spacing:.12em; text-transform:uppercase;
}
.reply-count{color:#b9bfd0;font-size:14px}
.thread-card h3{
  margin:0; font-size:clamp(20px,1.7vw,28px); line-height:1.04; text-transform:uppercase; letter-spacing:-.04em
}
.thread-excerpt{color:#d3d3d3; margin:0}
.thread-footer{
  display:flex; justify-content:space-between; gap:16px; align-items:center;
  padding-top:14px; border-top:1px solid rgba(255,255,255,.08);
}
.archive-hero,.page-hero,.single-hero{
  padding:42px 0 22px;
}
.archive-panel,.page-panel,.single-panel{
  padding:28px; border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
  border:1px solid rgba(255,255,255,.07);
}
.archive-title,.page-title,.single-title{
  margin:6px 0 10px;
  font-size:clamp(32px,4vw,58px);
  line-height:.96; letter-spacing:-.05em; text-transform:uppercase; font-weight:900;
}
.archive-copy,.page-copy,.single-copy{font-size:16px;color:#d5d5d5;max-width:60ch}
.toolbar{
  display:flex; gap:16px; flex-wrap:wrap; justify-content:space-between; align-items:center;
  margin:24px 0 28px;
}
.toolbar .search-field, .toolbar select{
  min-height:48px; border-radius:14px; border:1px solid rgba(255,255,255,.08);
  background:#111; color:#fff; padding:0 18px;
}
.toolbar .search-field{min-width:min(520px,100%)}
.single-layout{
  display:grid; grid-template-columns:.92fr 1.08fr; gap:28px; align-items:start;
}
.single-aside .art{
  border-radius:16px; overflow:hidden; border:1px solid rgba(211,19,50,.45)
}
.audio-box, .video-box, .content-box, .aside-box{
  padding:20px; border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.08);
}
.audio-box{margin-top:22px}
.audio-box audio{width:100%}
.content-box{margin-top:24px}
.wp-block-post-content, .entry-content{font-size:16px;color:#dfdfdf}
.wp-block-post-content h2,.entry-content h2{font-size:30px;line-height:1;letter-spacing:-.04em;text-transform:uppercase}
.content-box p, .entry-content p{color:#ddd}
.related-grid{margin-top:30px}
.site-footer{
  margin-top:38px;
  border-top:1px solid rgba(255,255,255,.07);
  background:#070707;
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr .7fr 1fr; gap:32px;
  padding:42px 0 28px;
}
.footer-title{margin:0 0 14px;font-size:13px;letter-spacing:.16em;font-weight:800;text-transform:uppercase}
.footer-brand{
  display:flex; gap:16px; align-items:flex-start
}
.footer-brand .brand-mark{width:42px;height:42px;font-size:20px}
.footer-tagline{
  position:relative; padding-left:18px; margin:16px 0 20px;
  font-size:16px; color:#f0f0f0
}
.footer-tagline:before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:var(--red);
}
.footer-links{display:grid; gap:8px}
.newsletter-form{
  display:grid; grid-template-columns:1fr; gap:12px; margin-top:18px
}
.newsletter-form input{
  min-height:48px; border-radius:14px; border:1px solid rgba(255,255,255,.08);
  background:#111; color:#fff; padding:0 18px;
}
.footer-bottom{
  display:flex; justify-content:space-between; gap:20px; padding:22px 0 40px;
  border-top:1px solid rgba(255,255,255,.06); color:#ababab
}
.socials{display:flex; gap:12px}
.social{
  width:40px; height:40px; border-radius:14px; display:grid; place-items:center;
  border:1px solid rgba(211,19,50,.46); color:#fff
}
.home-blog-feature{
  padding:18px; display:grid; grid-template-columns:1.05fr .95fr; gap:22px; align-items:center
}
.featured-article-image{
  min-height:280px; border-radius:22px; background:center/cover no-repeat; border:1px solid rgba(255,255,255,.06)
}
.featured-article-copy h3{
  margin:10px 0; font-size:clamp(24px,2.2vw,40px); line-height:1; text-transform:uppercase; letter-spacing:-.04em
}
.comment-respond, .comments-area{
  margin-top:24px; padding:18px; border-radius:22px; background:#101010; border:1px solid rgba(255,255,255,.08)
}
input[type=text], input[type=email], input[type=url], input[type=password], textarea{
  width:100%; min-height:42px; border-radius:12px; border:1px solid rgba(255,255,255,.08); background:#0f0f0f; color:#fff; padding:14px 16px;
}
textarea{min-height:120px}
input[type=submit], .submit{
  appearance:none; border:none; min-height:44px; border-radius:12px; padding:0 24px; background:var(--red); color:#fff; font-weight:800; text-transform:uppercase; letter-spacing:.08em
}
.pagination, .nav-links{display:flex; gap:10px; flex-wrap:wrap; margin-top:24px}
.page-numbers{
  min-width:40px; height:40px; display:grid; place-items:center; padding:0 16px;
  border-radius:14px; background:#101010; border:1px solid rgba(255,255,255,.08)
}
.page-numbers.current{background:var(--red); border-color:var(--red)}
.screen-reader-text{position:absolute;left:-9999px}
@media (max-width: 1200px){
  .cards-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-grid,.home-blog-feature,.single-layout,.footer-grid{grid-template-columns:1fr}
  .hero-media{min-height:520px}
}
@media (max-width: 940px){
  .primary-nav{display:none}
  .primary-nav.is-open{
    display:block; position:absolute; left:24px; right:24px; top:calc(var(--navh) - 4px);
    background:#0e0e0e; border:1px solid rgba(255,255,255,.08); border-radius:20px; padding:16px 18px;
  }
  .primary-nav.is-open ul{flex-direction:column; align-items:flex-start; gap:8px}
  .primary-nav.is-open a:after{bottom:-4px}
  .menu-toggle{display:grid;place-items:center}
  .header-row{grid-template-columns:1fr auto auto}
  .header-actions .header-pill{display:none}
}
@media (max-width: 760px){
  .container{width:min(calc(100% - 28px), var(--container))}
  .brand-copy .top{font-size:16px}
  .brand-copy .bottom{font-size:22px}
  .hero-grid{padding:22px}
  .hero-copy-wrap{padding-left:18px}
  .hero-rule{height:120px}
  .hero-media{min-height:340px}
  .section{padding:28px 0}
  .feature-panels,.cards-3,.cards-4{grid-template-columns:1fr}
  .section-head,.toolbar,.footer-bottom{flex-direction:column; align-items:flex-start}
  .toolbar .search-field{min-width:0;width:100%}
}
