/*
Theme Name: OffHanger 2.0
Theme URI: https://demo.jaydentaylor.website
Author: Web Alliance
Description: Custom theme for the OffHanger 2.0 offline sandbox project. Ported from the Figma Make design. Bilingual EN/RU via an in-page toggle.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: offhanger
*/

/* ---------------------------------------------------------------------------
   1. Reset
   The original design was built on Tailwind purely for its Preflight reset --
   no utility classes are used anywhere in the markup. This block replaces
   Preflight with just the rules the design actually depends on.
   --------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}
body {
  line-height: inherit;
}
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: inherit;
}
b, strong {
  font-weight: bolder;
}
code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1em;
}
table {
  border-collapse: collapse;
  text-indent: 0;
}
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}
button, [type="button"], [type="submit"] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}
ol, ul, menu {
  list-style: none;
}
img, svg, video, canvas {
  display: block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------------------
   2. Design tokens
   --------------------------------------------------------------------------- */

:root {
  --font-display: "IBM Plex Sans", sans-serif;
  --font-sans: "IBM Plex Sans", sans-serif;
  --red: #e22626;
  --red-dark: #9d1212;
  --paper: #eeeae5;
  --muted: #9a9793;
  --line: rgba(255, 255, 255, 0.11);
  --panel: #111110;
  color-scheme: dark;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #090909;
  color: #eeeae5;
  font-family: "IBM Plex Sans", sans-serif;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: #df1f1f;
  color: white;
}

/* ---------------------------------------------------------------------------
   3. Language toggle
   Both language variants ship in the markup; the active one is chosen by the
   lang attribute on <html>, set before paint by an inline script in header.php.
   --------------------------------------------------------------------------- */

/* The wrappers must not generate boxes of their own: several rules in the
   design target a bare `span` inside a block (.download-state span, for one),
   and a language wrapper would otherwise pick those styles up. display:contents
   makes the wrapper transparent to layout while still being hideable. */
[data-oh-lang] {
  display: contents;
}
html[lang="ru"] [data-oh-lang="en"],
html:not([lang="ru"]) [data-oh-lang="ru"] {
  display: none;
}

/* ---------------------------------------------------------------------------
   4. Layout and components (ported from the design's index.css)
   --------------------------------------------------------------------------- */

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background: #090909;
}
.content {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.disclaimer-bar {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #121211;
  border-bottom: 1px solid var(--line);
  color: #888581;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.header {
  height: 82px;
  padding: 0 max(24px, calc((100vw - 1320px)/2));
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 20;
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
  min-width: 212px;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
}
.brand span {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1;
}
.brand b {
  font-size: 20px;
  letter-spacing: 0.12em;
}
.brand small {
  color: #77736f;
  font: 600 9px/1.5 var(--font-sans);
  letter-spacing: 0.12em;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1;
}
.nav a,
.wiki-link {
  position: relative;
  padding: 31px 0 29px;
  color: #9a9691;
  font: 600 12px/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover,
.nav a.active {
  color: white;
}
.nav a.active::after {
  content: "";
  height: 2px;
  background: var(--red);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 0 12px var(--red);
}
.wiki-link {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.58;
  cursor: not-allowed;
}
.wiki-link i {
  margin-left: 3px;
  padding: 3px 5px;
  color: #aaa5a0;
  background: #242321;
  font: 700 7px var(--font-sans);
  font-style: normal;
}
.button {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid #ef3b32;
  background: linear-gradient(135deg, #e42d27, #b91212);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.2),
    0 8px 30px rgba(187, 17, 17, 0.16);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.2s,
    filter 0.2s;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.button:hover:not(.disabled) {
  filter: brightness(1.12);
  transform: translateY(-2px);
}
.button-small {
  min-height: 40px;
  padding-inline: 17px;
}
.button-ghost {
  background: rgba(10, 10, 10, 0.64);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}
.button.disabled {
  opacity: 0.46;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.menu-button {
  display: none;
  background: none;
  border: 0;
  color: white;
  padding: 8px;
}

.hero {
  min-height: 690px;
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("assets/img/hangar-hero.jpg") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 5, 0.98) 0%,
      rgba(5, 5, 5, 0.86) 36%,
      rgba(5, 5, 5, 0.25) 72%,
      rgba(5, 5, 5, 0.46)
    ),
    linear-gradient(0deg, #090909 0%, transparent 22%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, black, transparent 60%);
}
.hero-content {
  padding-block: 80px 100px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b5b0aa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}
.hero h1,
.page-hero h1 {
  margin: 20px 0 24px;
  max-width: 760px;
  font: 800 clamp(68px, 8.5vw, 116px)/0.78 var(--font-display);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero h1 em,
.page-hero h1 em {
  color: var(--red);
  font-style: italic;
  text-shadow: 0 3px 24px rgba(226, 38, 38, 0.23);
}
.hero-content > p {
  max-width: 560px;
  color: #aaa6a1;
  font-size: 15px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}
.hero-content .cta-note {
  margin-top: 12px;
  color: #676461;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-status {
  position: absolute;
  right: max(24px, calc((100vw - 1180px)/2));
  bottom: 45px;
  padding: 17px 20px;
  min-width: 210px;
  border-left: 2px solid var(--red);
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: blur(8px);
}
.hero-status span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #85817d;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-status span i,
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #ef3535;
  box-shadow: 0 0 8px #e22;
}
.hero-status strong {
  display: block;
  margin: 5px 0 3px;
  font: 700 18px var(--font-display);
  letter-spacing: 0.08em;
}
.hero-status small {
  color: #696662;
  font-size: 9px;
}

.section-number {
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.manifesto {
  padding-block: 110px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: end;
}
.manifesto h2,
.about-grid h2,
.split-copy h2 {
  margin-top: 13px;
  font: 700 clamp(46px, 6vw, 76px)/0.92 var(--font-display);
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.manifesto-copy p,
.split-copy p {
  color: #aaa6a1;
  font-size: 16px;
  line-height: 1.75;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 1px solid #a82727;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
}
.features,
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-bottom: 110px;
}
.feature {
  min-height: 300px;
  padding: 38px;
  position: relative;
  border-right: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent);
}
.feature:last-child {
  border-right: 0;
}
.feature-icon {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  margin-bottom: 48px;
  background: #1b1514;
  border: 1px solid #3e2220;
  color: var(--red);
  transform: rotate(45deg);
}
.feature-icon svg {
  transform: rotate(-45deg);
}
.feature small {
  position: absolute;
  right: 30px;
  top: 35px;
  color: #4e4b48;
  font: 700 10px var(--font-sans);
  letter-spacing: 0.1em;
}
.feature h3 {
  font: 700 27px var(--font-display);
  text-transform: uppercase;
}
.feature p {
  max-width: 290px;
  margin-top: 10px;
  color: #86827e;
  font-size: 12px;
  line-height: 1.65;
}
.split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-block: 1px solid var(--line);
}
.split-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle, #24100f, #080808 60%);
}
.split-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: repeating-linear-gradient(125deg, transparent 0 18px, #fff 19px 20px);
}
.split-art img {
  position: relative;
  width: min(580px, 85%);
  mix-blend-mode: screen;
}
.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px max(40px, calc((100vw - 1180px)/2));
  padding-left: 7vw;
  background: #10100f;
}
.split-copy p {
  max-width: 440px;
  margin: 20px 0 28px;
  font-size: 14px;
}

.page-hero {
  min-height: 450px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(147, 16, 16, 0.18), transparent 35%),
    linear-gradient(115deg, #090909 50%, #121110);
}
.page-hero::after {
  content: "OH / 2.0";
  position: absolute;
  right: 6vw;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.025);
  font: 800 170px var(--font-display);
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.page-hero .content {
  position: relative;
  z-index: 1;
  padding-block: 70px;
}
.page-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(61px, 7.5vw, 102px);
}
.page-hero p {
  max-width: 580px;
  color: #96928e;
  font-size: 14px;
  line-height: 1.7;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  padding-block: 110px;
}
.about-grid h2 {
  font-size: 60px;
}
.prose p {
  margin-bottom: 20px;
  color: #8d8985;
  font-size: 14px;
  line-height: 1.85;
}
.prose .lead {
  color: #dedad5;
  font: 500 26px/1.45 var(--font-display);
}
.values {
  margin-bottom: 70px;
}
.legal-notice {
  display: flex;
  gap: 24px;
  margin-bottom: 100px;
  padding: 28px 32px;
  border: 1px solid #382321;
  background: #130e0d;
  color: #ca4a42;
}
.legal-notice h3 {
  margin-bottom: 6px;
  color: white;
  font: 700 20px var(--font-display);
  text-transform: uppercase;
}
.legal-notice p {
  color: #86817c;
  font-size: 11px;
  line-height: 1.6;
}

.install-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  padding-block: 100px;
}
.release-card {
  margin-top: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  background: #111110;
}
.release-card > div {
  color: #8b8783;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.release-card .status-dot {
  margin-right: 7px;
}
.release-card h3 {
  margin-top: 22px;
  font: 700 35px var(--font-display);
  text-transform: uppercase;
}
.release-card p {
  margin: 8px 0 24px;
  color: #7e7a76;
  font-size: 12px;
  line-height: 1.65;
}
.requirements {
  margin-top: 20px;
  padding: 24px;
  border-left: 2px solid #353330;
  background: #0d0d0c;
}
.requirements h4 {
  margin-bottom: 12px;
  font: 700 16px var(--font-display);
  text-transform: uppercase;
}
.requirements p {
  color: #77736f;
  font-size: 11px;
  line-height: 1.8;
}
.steps > .section-number {
  display: block;
  margin-bottom: 18px;
}
.steps article {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.steps article:last-child {
  border-bottom: 1px solid var(--line);
}
.steps article > b {
  color: #3f3c39;
  font: 700 30px var(--font-display);
}
.steps h3 {
  font: 700 23px var(--font-display);
  text-transform: uppercase;
}
.steps p {
  margin-top: 7px;
  color: #85817c;
  font-size: 12px;
  line-height: 1.65;
}
.support-strip {
  max-width: 1180px;
  margin: 0 auto 100px;
  padding: 28px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #35201f;
  background: #120d0d;
}
.support-strip > div {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--red);
}
.support-strip span {
  display: flex;
  flex-direction: column;
}
.support-strip b {
  color: white;
  font: 700 18px var(--font-display);
  text-transform: uppercase;
}
.support-strip small {
  color: #7b7773;
  font-size: 10px;
}
.support-strip .text-link {
  margin: 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 80px;
  padding-block: 100px 120px;
}
.faq-layout aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.faq-layout aside .section-number {
  margin-bottom: 10px;
}
.faq-layout aside a {
  color: #85817d;
  font-size: 11px;
  text-decoration: none;
}
.faq-layout aside a:first-of-type {
  color: white;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list article {
  border-bottom: 1px solid var(--line);
}
.faq-list button {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 45px 1fr 30px;
  align-items: center;
  color: #d8d4cf;
  text-align: left;
  background: none;
  border: 0;
  font: 600 20px var(--font-display);
  cursor: pointer;
}
.faq-list button span {
  color: #4d4a46;
  font: 700 11px var(--font-sans);
}
.faq-list button i {
  color: var(--red);
  font: 300 25px var(--font-sans);
  font-style: normal;
  transition: transform 0.2s;
}
.faq-list article > div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s;
}
.faq-list article > div p {
  overflow: hidden;
  padding: 0 55px;
  color: #88847f;
  font-size: 12px;
  line-height: 1.75;
}
.faq-list .faq-open > div {
  grid-template-rows: 1fr;
}
.faq-list .faq-open > div p {
  padding-bottom: 28px;
}
.faq-list .faq-open button {
  color: white;
}
.faq-list .faq-open button i {
  transform: rotate(45deg);
}

.forum-wrap {
  padding-block: 90px 120px;
}
.forum-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px;
  border: 1px solid var(--line);
  background: #111110;
}
.forum-toolbar > div {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
}
.forum-toolbar small {
  grid-column: 2;
  color: #716e6a;
  font-size: 9px;
  margin-top: 3px;
}
.forum-toolbar b {
  font: 700 16px var(--font-display);
  text-transform: uppercase;
}
.forum-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 25px;
  margin-top: 25px;
}
.discussion-list {
  border: 1px solid var(--line);
}
.discussion-heading {
  display: grid;
  grid-template-columns: 1fr 70px;
  padding: 16px 23px;
  border-bottom: 1px solid var(--line);
  color: #5f5c58;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.discussion-list article {
  display: grid;
  grid-template-columns: 46px 1fr 60px;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.discussion-list article:last-child {
  border-bottom: 0;
}
.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #211514;
  border: 1px solid #4a2522;
  color: #d9433c;
  font: 700 12px var(--font-display);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.tag {
  display: inline-block;
  margin-bottom: 7px;
  color: #d75851;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.discussion-copy h3 {
  font: 600 18px var(--font-display);
}
.discussion-copy p {
  margin-top: 4px;
  color: #625f5b;
  font-size: 9px;
}
.reply-count {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #77736f;
  font-size: 11px;
}
.forum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.forum-sidebar > div {
  padding: 27px;
  border: 1px solid var(--line);
  background: #10100f;
}
.forum-sidebar h3 {
  margin-top: 15px;
  font: 700 25px var(--font-display);
  text-transform: uppercase;
}
.forum-sidebar p {
  margin: 9px 0 20px;
  color: #7e7a76;
  font-size: 11px;
  line-height: 1.6;
}
.forum-sidebar > div:last-child p {
  display: flex;
  justify-content: space-between;
  margin: 13px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.forum-sidebar > div:last-child b {
  color: white;
}

footer {
  border-top: 1px solid var(--line);
  background: #070707;
}
.footer-main {
  min-height: 245px;
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 0.75fr 1.1fr;
  gap: 55px;
  align-items: center;
}
.footer-brand img {
  width: 60px;
  height: 60px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links > span:first-child {
  margin-bottom: 5px;
  color: #55524f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-links a,
.muted-link {
  color: #918d88;
  font-size: 10px;
  text-decoration: none;
}
.footer-links a:hover {
  color: white;
}
.footer-links small {
  margin-left: 4px;
  color: #554e4a;
  text-transform: uppercase;
}
.footer-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
}
.footer-callout b {
  font: 700 16px var(--font-display);
  text-transform: uppercase;
}
.footer-callout p {
  margin-top: 4px;
  color: #65615e;
  font-size: 9px;
}
.footer-bottom {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #4c4946;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .header {
    padding-inline: 20px;
  }
  .header-cta {
    margin-left: auto;
  }
  .menu-button {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 81px;
    left: 0;
    right: 0;
    padding: 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0b0b0b;
    border-bottom: 1px solid var(--line);
  }
  .nav-open {
    display: flex;
  }
  .nav a,
  .wiki-link {
    padding: 16px 0;
  }
  .nav a.active::after {
    right: auto;
    width: 30px;
  }
  .hero {
    min-height: 650px;
  }
  .manifesto {
    gap: 50px;
  }
  .feature {
    padding: 28px;
  }
  .forum-grid {
    grid-template-columns: 1fr;
  }
  .forum-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr;
    padding-block: 50px;
  }
  .footer-callout {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .content {
    width: min(100% - 32px, 1180px);
  }
  .disclaimer-bar {
    height: 35px;
    padding-inline: 14px;
    text-align: center;
    font-size: 8px;
  }
  .header {
    height: 70px;
  }
  .nav {
    top: 69px;
  }
  .brand {
    min-width: 0;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  .brand span {
    display: none;
  }
  .header-cta {
    min-height: 36px;
    padding-inline: 13px;
    font-size: 9px;
  }
  .hero {
    min-height: 680px;
    align-items: flex-start;
  }
  .hero-image {
    background-position: 62% center;
  }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.48)),
      linear-gradient(0deg, #090909, transparent 50%);
  }
  .hero-content {
    padding-top: 90px;
  }
  .hero h1 {
    font-size: clamp(59px, 20vw, 84px);
  }
  .hero-content > p {
    font-size: 13px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-status {
    right: 16px;
    bottom: 25px;
  }
  .manifesto,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 75px;
  }
  .features,
  .values {
    grid-template-columns: 1fr;
    margin-bottom: 70px;
  }
  .feature {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .feature:last-child {
    border-bottom: 0;
  }
  .split-cta {
    grid-template-columns: 1fr;
  }
  .split-art {
    min-height: 290px;
  }
  .split-copy {
    padding: 60px 25px;
  }
  .page-hero {
    min-height: 400px;
  }
  .page-hero h1 {
    font-size: 58px;
  }
  .page-hero::after {
    font-size: 100px;
  }
  .install-layout {
    grid-template-columns: 1fr;
    gap: 65px;
    padding-block: 70px;
  }
  .support-strip {
    margin-inline: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 70px;
  }
  .faq-layout aside {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .faq-layout aside .section-number {
    width: 100%;
  }
  .faq-list button {
    font-size: 17px;
    grid-template-columns: 35px 1fr 25px;
  }
  .faq-list article > div p {
    padding-inline: 35px;
  }
  .forum-toolbar {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
  .discussion-list article {
    grid-template-columns: 38px 1fr;
  }
  .avatar {
    width: 36px;
    height: 36px;
  }
  .reply-count {
    grid-column: 2;
  }
  .discussion-heading {
    display: block;
  }
  .discussion-heading span:last-child {
    display: none;
  }
  .forum-sidebar {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    text-align: center;
  }
}

.forum-doc {
  padding-top: 48px;
  padding-bottom: 95px;
}

.forum-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: #7f7b77;
  font-size: 11px;
}

.forum-notice strong {
  color: #bbb7b2;
  font-weight: 600;
}

.forum-notice > span,
.forum-notice > a {
  color: #6f6b67;
  font-size: 10px;
}

.forum-notice > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aaa6a1;
  text-decoration: none;
}

.forum-notice > a:hover {
  color: white;
}

.thread-table {
  border-top: 1px solid var(--line);
}

.thread-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 130px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: #615e5a;
  font-size: 9px;
  font-weight: 600;
}

.thread-table article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 130px;
  align-items: center;
  min-height: 105px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
}

.thread-table small {
  display: block;
  margin-bottom: 7px;
  color: #8e4843;
  font-size: 9px;
}

.thread-table h2 {
  color: #d6d2cd;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.thread-table p {
  margin-top: 5px;
  color: #686460;
  font-size: 10px;
}

.thread-replies,
.thread-table time {
  color: #7a7672;
  font-size: 11px;
}

.forum-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 55px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.forum-help h2 {
  color: #d2cec9;
  font-size: 17px;
  font-weight: 600;
}

.forum-help p {
  margin-top: 7px;
  color: #716d69;
  font-size: 11px;
}

.forum-help > div:last-child {
  display: flex;
  gap: 22px;
}

.forum-help a {
  color: #aaa6a1;
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: #4f4b47;
  text-underline-offset: 4px;
}

@media (max-width: 680px) {
  .forum-doc {
    padding-top: 30px;
    padding-bottom: 65px;
  }

  .forum-notice,
  .forum-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .thread-head {
    display: none;
  }

  .thread-table article {
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding-inline: 0;
  }

  .thread-table time {
    grid-column: 1;
    margin-top: 12px;
  }

  .thread-replies {
    grid-column: 2;
    grid-row: 1;
  }
}

.doc-header {
  padding-top: 92px;
  padding-bottom: 62px;
  border-bottom: 1px solid var(--line);
}

.doc-header > p {
  margin-bottom: 18px;
  color: #8b8782;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-header h1 {
  max-width: 760px;
  color: #e3dfda;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.doc-header > div {
  max-width: 650px;
  margin-top: 21px;
  color: #8c8884;
  font-size: 14px;
  line-height: 1.75;
}

.install-doc {
  display: grid;
  grid-template-columns: 280px minmax(0, 680px);
  gap: 80px;
  padding-top: 75px;
  padding-bottom: 80px;
}

.install-doc h2,
.faq-doc h2 {
  color: #d7d3ce;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.install-doc aside {
  padding-right: 40px;
  border-right: 1px solid var(--line);
}

.install-doc dl {
  margin-top: 25px;
}

.install-doc dl > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.install-doc dt {
  margin-bottom: 5px;
  color: #696662;
  font-size: 10px;
}

.install-doc dd {
  color: #b9b5b0;
  font-size: 12px;
}

.download-state {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: #817d79;
  font-size: 10px;
}

.download-state span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9b2c28;
}

.install-instructions > h2 {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.install-instructions ol {
  list-style: decimal;
  padding-left: 25px;
}

.install-instructions li {
  padding: 25px 0 25px 12px;
  border-bottom: 1px solid var(--line);
  color: #65615e;
  font-size: 11px;
}

.install-instructions li::marker {
  color: #6b6763;
}

.install-instructions h3 {
  color: #d4d0cb;
  font-size: 16px;
  font-weight: 600;
}

.install-instructions li p {
  max-width: 580px;
  margin-top: 8px;
  color: #817d79;
  font-size: 12px;
  line-height: 1.7;
}

.doc-note {
  margin-top: 28px;
  color: #706c68;
  font-size: 11px;
  line-height: 1.7;
}

.faq-doc {
  max-width: 850px;
  padding-top: 48px;
  padding-bottom: 70px;
}

.faq-doc article {
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.faq-doc article:first-child {
  border-top: 1px solid var(--line);
}

.faq-doc h2 {
  font-size: 19px;
}

.faq-doc p {
  max-width: 700px;
  margin-top: 10px;
  color: #817d79;
  font-size: 13px;
  line-height: 1.75;
}

.doc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 90px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #77736f;
  font-size: 11px;
}

.doc-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9c5c0;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 680px) {
  .doc-header {
    padding-top: 65px;
    padding-bottom: 45px;
  }

  .install-doc {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 55px;
  }

  .install-doc aside {
    padding-right: 0;
    padding-bottom: 35px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .faq-doc {
    padding-top: 30px;
  }

  .doc-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 65px;
  }
}

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

/* Quieter editorial treatment: fewer badges, boxes, and decorative UI patterns. */
.header-cta {
  margin-left: auto;
  padding: 8px 0;
  border-bottom: 1px solid #6f211f;
  color: #d4cfca;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-cta:hover {
  color: white;
  border-color: var(--red);
}

.hero {
  min-height: 650px;
}

.hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(5, 5, 5, 0.98) 0%,
      rgba(5, 5, 5, 0.82) 38%,
      rgba(5, 5, 5, 0.08) 78%
    ),
    linear-gradient(0deg, #090909 0%, transparent 20%);
}

.hero-content {
  padding-block: 105px 120px;
}

.hero h1 {
  max-width: 720px;
  margin-top: 0;
  font-size: clamp(68px, 7.6vw, 104px);
  line-height: 0.84;
}

.hero-actions {
  align-items: center;
}

.plain-link {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 10px 4px;
  color: #d1ccc7;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.plain-link span {
  color: #66625f;
  font-size: 9px;
  font-weight: 400;
}

.project-intro {
  max-width: 930px;
  padding-block: 120px 75px;
}

.project-kicker,
.page-label {
  margin-bottom: 20px;
  color: #8b8782 !important;
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-intro h2 {
  max-width: 900px;
  color: #dedad5;
  font: 600 clamp(38px, 4.5vw, 58px) / 1.08 var(--font-display);
  letter-spacing: -0.015em;
}

.project-intro .project-answer {
  max-width: 850px;
  margin-top: 24px;
  color: #c8c3bd;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.38;
  letter-spacing: -0.015em;
}

.project-intro .project-detail {
  max-width: 680px;
  margin-top: 26px;
  color: #8d8985;
  font-size: 14px;
  line-height: 1.8;
}

.features,
.values {
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 100px;
}

.feature {
  min-height: 0;
  padding: 36px 36px 42px 0;
  border-right: 0;
  background: none;
}

.feature + .feature {
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.feature h3 {
  color: #d8d4cf;
  font-size: 22px;
  font-weight: 600;
  text-transform: none;
}

.feature p {
  margin-top: 8px;
  color: #77736f;
}

.release-note {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: end;
  margin-bottom: 110px;
  padding: 60px;
  border-left: 2px solid #7c2421;
  background: #10100f;
}

.release-note h2 {
  font: 600 34px / 1.1 var(--font-display);
}

.release-note p:not(.project-kicker) {
  max-width: 590px;
  margin-top: 12px;
  color: #77736f;
  font-size: 12px;
  line-height: 1.7;
}

.release-links {
  display: flex;
  flex-direction: column;
}

.release-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: #c9c4bf;
  font-size: 11px;
  text-decoration: none;
}

.release-links a:hover {
  color: white;
}

.page-hero {
  min-height: 380px;
  background: #0b0b0a;
}

.page-hero::after {
  display: none;
}

.page-hero h1 {
  max-width: 810px;
  margin-top: 0;
  font-size: clamp(54px, 6.2vw, 82px);
  line-height: 0.9;
}

.page-hero h1 em {
  color: inherit;
  text-shadow: none;
}

.footer-main {
  min-height: 210px;
  grid-template-columns: 1.7fr 0.7fr 0.7fr;
}

@media (max-width: 680px) {
  .header-cta {
    margin-left: auto;
    font-size: 9px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 90px;
  }

  .hero-actions {
    align-items: flex-start;
  }

  .project-intro {
    padding-block: 80px 55px;
  }

  .features,
  .values {
    grid-template-columns: 1fr;
  }

  .feature,
  .feature + .feature {
    padding: 26px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .release-note {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 70px;
    padding: 35px 28px;
  }

  .page-hero {
    min-height: 340px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

/* A single restrained type system across every page. */
.hero h1,
.page-hero h1,
.manifesto h2,
.about-grid h2,
.split-copy h2,
.project-intro h2,
.release-note h2,
.release-card h3,
.steps h3,
.feature h3,
.legal-notice h3,
.forum-sidebar h3,
.discussion-copy h3,
.forum-toolbar b,
.support-strip b,
.footer-callout b {
  font-family: var(--font-sans);
  font-style: normal;
  letter-spacing: -0.025em;
  text-transform: none;
}

.hero h1,
.page-hero h1 {
  font-weight: 700;
}

.hero h1 em,
.page-hero h1 em {
  font-style: normal;
}

.project-intro h2 {
  font-weight: 600;
}

.feature h3,
.steps h3,
.discussion-copy h3,
.forum-sidebar h3,
.release-card h3,
.legal-notice h3 {
  font-weight: 600;
}

.feature h3 {
  font-size: 19px;
}

.steps h3,
.discussion-copy h3 {
  font-size: 18px;
}

.hero-content > p,
.page-hero p,
.feature p,
.prose p,
.steps p,
.discussion-copy p,
.forum-sidebar p {
  font-family: var(--font-sans);
  font-style: normal;
  letter-spacing: 0;
}

.language-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  background: transparent;
  color: #67635f;
  font: 600 9px var(--font-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.language-switch span {
  min-width: 28px;
  padding: 6px 5px;
  text-align: center;
}

.language-switch .active {
  background: #242321;
  color: white;
}

.versions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  margin-bottom: 100px;
  padding-block: 62px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.versions-heading h2 {
  max-width: 480px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.versions-heading > p:last-child {
  max-width: 480px;
  margin-top: 13px;
  color: #77736f;
  font-size: 12px;
  line-height: 1.65;
}

.version-list {
  border-top: 1px solid var(--line);
}

.version-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.version-list code {
  color: #d7d2cc;
  font: 600 13px var(--font-sans);
}

.version-list span {
  color: #736f6b;
  font-size: 10px;
}

@media (max-width: 900px) {
  .language-switch {
    margin-left: auto;
  }

  .header-cta {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .language-switch span {
    min-width: 25px;
    padding-inline: 3px;
  }

  .header-cta {
    display: none;
  }

  .versions {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-bottom: 70px;
    padding-block: 45px;
  }
}

/* ---------------------------------------------------------------------------
   5. WordPress-specific additions
   --------------------------------------------------------------------------- */

.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;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--red);
  color: white;
  font-size: 12px;
}
.wp-page-content {
  padding-block: 70px 100px;
}
.wp-page-content h2 {
  margin-bottom: 14px;
  color: #d7d3ce;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.wp-page-content h3 {
  margin-bottom: 10px;
  color: #d4d0cb;
  font-size: 17px;
  font-weight: 600;
}
.wp-page-content p,
.wp-page-content li {
  max-width: 700px;
  margin-bottom: 16px;
  color: #8d8985;
  font-size: 14px;
  line-height: 1.8;
}
.wp-page-content ul,
.wp-page-content ol {
  margin-bottom: 16px;
  padding-left: 22px;
  list-style: disc;
}
.wp-page-content ol {
  list-style: decimal;
}
.wp-page-content a {
  color: #d1ccc7;
  text-decoration: underline;
  text-decoration-color: #7c2421;
  text-underline-offset: 3px;
}
.wp-page-content img {
  margin-bottom: 20px;
}
