/*
Theme Name: Ready-Action Production Journal
Theme URI: https://blog.ready-action.com
Author: Ready-Action
Author URI: https://ready-action.com
Description: 영화·드라마·방송 제작 실무자를 위한 Ready-Action 공식 WordPress 블로그 테마.
Version: 1.1.4
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: ready-action-blog
*/

:root {
  --ra-ink: #111010;
  --ra-ink-2: #1e1e1e;
  --ra-night: #08070c;
  --ra-night-2: #0e0d14;
  --ra-surface-dark: #131119;
  --ra-paper: #f7f5f1;
  --ra-paper-2: #f1eee7;
  --ra-card: #ffffff;
  --ra-line: #e4e1d9;
  --ra-line-dark: rgba(255, 255, 255, 0.11);
  --ra-copy: #3a3a3e;
  --ra-muted: #6a6670;
  --ra-muted-dark: #b9b4ad;
  --ra-orange: #eea65a;
  --ra-orange-bright: #ff6b35;
  --ra-orange-soft: #f4bc80;
  --ra-red: #ff3130;
  --ra-focus: #339dff;
  --ra-shell: 1240px;
  --ra-reading: 720px;
  --ra-sans: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --ra-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --ra-shadow: 0 18px 50px rgba(17, 16, 16, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ra-night);
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--ra-paper);
  color: var(--ra-ink);
  font-family: var(--ra-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.018em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

body.admin-bar .ra-read-progress {
  top: 32px;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(238, 166, 90, 0.35);
  color: var(--ra-ink);
}

:focus-visible {
  outline: 2px solid var(--ra-focus);
  outline-offset: 3px;
}

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

.ra-skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ra-card);
  color: var(--ra-ink);
  font-size: 14px;
  font-weight: 800;
}

.ra-skip-link:focus {
  transform: translateY(0);
}

.ra-shell {
  width: min(calc(100% - 48px), var(--ra-shell));
  margin-inline: auto;
}

.ra-main {
  min-height: 65vh;
  background: var(--ra-paper);
}

.ra-section {
  padding: 112px 0;
}

.ra-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #7b4c20;
  font-family: var(--ra-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ra-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ra-red);
  box-shadow: 0 0 0 4px rgba(255, 49, 48, 0.12);
}

.ra-eyebrow-light {
  color: var(--ra-orange-soft);
}

.ra-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  word-break: keep-all;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ra-button:hover {
  transform: translateY(-2px);
}

.ra-button-small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 13px;
}

.ra-button-primary {
  background: var(--ra-orange);
  color: #17100a;
}

.ra-button-primary:hover {
  background: var(--ra-orange-soft);
}

.ra-button-dark {
  background: var(--ra-ink);
  color: #fff;
}

.ra-button-dark:hover {
  background: #2c2929;
}

.ra-button-outline {
  border-color: #b9b4ab;
  background: transparent;
  color: var(--ra-ink);
}

.ra-button-outline:hover {
  border-color: var(--ra-ink);
}

.ra-button-ghost-light {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.ra-button-ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

.ra-cta-mobile {
  display: none;
}

.ra-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
}

.ra-text-link span[aria-hidden="true"] {
  transition: transform 180ms ease;
}

.ra-text-link:hover span[aria-hidden="true"] {
  transform: translateX(4px);
}

.ra-text-link-light {
  color: #fff;
}

/* Header */

.ra-site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--ra-line-dark);
  background: rgba(8, 7, 12, 0.94);
  color: #fff;
  backdrop-filter: blur(16px);
}

.ra-header-inner {
  width: min(calc(100% - 48px), var(--ra-shell));
  min-height: 70px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.ra-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ra-brand-logo {
  width: 155px;
  height: auto;
  display: block;
}

.ra-brand-journal {
  padding-left: 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  color: #a9a49d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ra-desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.ra-desktop-nav a {
  padding: 10px 11px;
  border-radius: 6px;
  color: #d4d0ca;
  font-size: 13px;
  font-weight: 650;
  transition: background-color 160ms ease, color 160ms ease;
}

.ra-desktop-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.ra-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ra-search-toggle,
.ra-menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: transparent;
  color: #fff;
}

.ra-search-toggle:hover,
.ra-menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.ra-search-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.ra-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 1.8px;
  right: -5px;
  bottom: -2px;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(45deg);
}

.ra-menu-toggle {
  display: none;
}

.ra-menu-toggle span:not(.screen-reader-text) {
  position: absolute;
  left: 11px;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 160ms ease, top 160ms ease;
}

.ra-menu-toggle span:first-child {
  top: 14px;
}

.ra-menu-toggle span:nth-child(2) {
  top: 23px;
}

.ra-menu-toggle[aria-expanded="true"] span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.ra-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

.ra-search-panel {
  border-top: 1px solid var(--ra-line-dark);
  background: var(--ra-night);
}

.ra-search-panel .ra-header-inner {
  min-height: 92px;
}

.ra-search-form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.ra-search-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.ra-search-form input::placeholder {
  color: #8f8b85;
}

.ra-search-form input:focus {
  border-color: var(--ra-orange);
}

.ra-search-form input:focus-visible,
.ra-inline-search input:focus-visible {
  outline: 2px solid var(--ra-focus);
  outline-offset: 3px;
}

.ra-search-form button {
  min-width: 84px;
  border: 0;
  border-radius: 7px;
  background: var(--ra-orange);
  color: var(--ra-ink);
  font-weight: 850;
}

.ra-mobile-menu {
  border-top: 1px solid var(--ra-line-dark);
  padding: 12px 24px 22px;
  background: var(--ra-night);
}

.ra-mobile-menu a {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e6e2db;
  font-weight: 700;
}

.ra-mobile-menu a span {
  color: var(--ra-orange);
  font-family: var(--ra-mono);
  font-size: 10px;
}

.ra-read-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.ra-read-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--ra-orange), var(--ra-red));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* Home hero */

.ra-home-hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 98px;
  background:
    radial-gradient(circle at 75% 38%, rgba(238, 166, 90, 0.13), transparent 32%),
    linear-gradient(155deg, #08070c 0%, #111017 60%, #0c0a0f 100%);
  color: #fff;
}

.ra-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, transparent, black 55%, transparent);
}

.ra-home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 72px;
  align-items: center;
}

.ra-home-hero-copy h1 {
  max-width: 780px;
  margin: 22px 0 24px;
  font-size: clamp(2.9rem, 5.5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.99;
}

.ra-home-hero-copy h1 em {
  color: var(--ra-orange);
  font-style: normal;
}

.ra-home-hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: #c9c4bd;
  font-size: 18px;
  line-height: 1.75;
}

.ra-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.ra-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 43px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #aaa59e;
  font-family: var(--ra-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.ra-hero-proof span {
  display: inline-flex;
  gap: 8px;
}

.ra-hero-proof b {
  color: var(--ra-orange);
}

.ra-call-sheet {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #f5f1e9;
  color: var(--ra-ink);
  box-shadow: 22px 24px 0 rgba(238, 166, 90, 0.08), var(--ra-shadow);
  transform: rotate(1.6deg);
}

.ra-call-sheet::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #d8d3c8;
  pointer-events: none;
}

.ra-call-sheet-top,
.ra-call-sheet-title,
.ra-call-sheet ol,
.ra-call-sheet > a {
  position: relative;
  z-index: 1;
}

.ra-call-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ra-ink);
  font-family: var(--ra-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.ra-call-sheet-top span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ra-call-sheet-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ra-red);
}

.ra-call-sheet-title {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 28px 0 25px;
  border-bottom: 1px solid #cfc9bd;
}

.ra-call-sheet-title small {
  padding-top: 5px;
  color: #706b62;
  font-family: var(--ra-mono);
  font-size: 9px;
  line-height: 1.5;
}

.ra-call-sheet-title strong {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.ra-call-sheet ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ra-call-sheet li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #d9d4ca;
}

.ra-call-sheet li > span {
  font-family: var(--ra-mono);
  font-size: 11px;
}

.ra-call-sheet li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ra-call-sheet li b {
  font-size: 13px;
}

.ra-call-sheet li em {
  color: #746f68;
  font-size: 11px;
  font-style: normal;
}

.ra-call-sheet li > i {
  padding: 4px 6px;
  border: 1px solid #bbb4a8;
  color: #7e4c20;
  font-family: var(--ra-mono);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.ra-call-sheet > a {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 13px 15px;
  background: var(--ra-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* Section heading */

.ra-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.55fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 42px;
}

.ra-section-heading h1,
.ra-section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(2.25rem, 4.1vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.ra-section-heading > p {
  margin: 0;
  color: var(--ra-muted);
  font-size: 15px;
  line-height: 1.8;
}

.ra-section-heading-light {
  color: #fff;
}

.ra-section-heading-light > p {
  color: #aba69f;
}

/* Featured */

.ra-featured-section {
  background: var(--ra-paper);
}

.ra-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 20px;
}

.ra-featured-grid.is-single {
  grid-template-columns: 1fr;
}

.ra-featured-main {
  display: grid;
  min-height: 560px;
  grid-template-rows: 1.1fr auto;
  overflow: hidden;
  border: 1px solid var(--ra-line);
  background: var(--ra-card);
  box-shadow: 0 12px 28px rgba(17, 16, 16, 0.045);
}

.ra-featured-visual {
  min-height: 300px;
}

.ra-featured-visual > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ra-featured-copy {
  padding: 30px 32px 34px;
}

.ra-featured-copy h3 {
  max-width: 760px;
  margin: 17px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.13;
}

.ra-featured-copy > p {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--ra-muted);
}

.ra-featured-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ra-featured-side-card {
  display: grid;
  grid-template-rows: minmax(150px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--ra-line);
  background: var(--ra-card);
}

.ra-featured-side-visual {
  min-height: 170px;
}

.ra-featured-side-visual > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ra-featured-side-card > div {
  padding: 22px 23px 24px;
}

.ra-featured-side-card h3 {
  margin: 13px 0 16px;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.35;
}

.ra-small-meta {
  color: #67625c;
  font-family: var(--ra-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.ra-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #67625c;
  font-family: var(--ra-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.ra-card-meta > span + span::before {
  content: "/";
  margin-right: 10px;
  color: #bbb6ad;
}

.ra-category-tag {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--tag-color) 22%, transparent);
  background: var(--tag-tint);
  color: var(--tag-color);
  font-family: var(--ra-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Branded fallback visual */

.ra-visual {
  position: relative;
  width: 100%;
  min-height: 230px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--visual-color) 15%, #111 85%), #0b0a0e 72%);
  color: #fff;
}

.ra-visual::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -42px;
  bottom: -48px;
  border-radius: 50%;
  background: var(--visual-color);
  opacity: 0.92;
}

.ra-visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 34px 34px;
}

.ra-visual-number {
  position: absolute;
  top: 22px;
  left: 26px;
  color: var(--ra-orange-soft);
  font-family: var(--ra-mono);
  font-size: 12px;
  font-weight: 800;
}

.ra-visual-rec {
  position: absolute;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c8c3bc;
  font-family: var(--ra-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.ra-visual-rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ra-red);
}

.ra-visual strong,
.ra-visual small {
  position: relative;
  z-index: 1;
}

.ra-visual strong {
  max-width: 78%;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.ra-visual small {
  margin-top: 9px;
  color: #afa9a2;
  font-family: var(--ra-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.ra-visual--templates::after {
  width: 130px;
  height: 165px;
  right: -8px;
  bottom: -52px;
  border: 8px solid var(--visual-color);
  border-radius: 2px;
  background: var(--visual-tint);
  opacity: 0.9;
  transform: rotate(10deg);
}

.ra-visual--product-updates::after {
  width: 170px;
  height: 170px;
  border: 30px solid var(--visual-color);
  background: transparent;
  opacity: 0.86;
}

.ra-visual--script-storyboard .ra-visual-grid {
  background-size: 50px 26px;
  transform: skewX(-5deg);
}

/* Topic index */

.ra-topic-section {
  padding: 108px 0 114px;
  background: var(--ra-ink);
  color: #fff;
}

.ra-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.ra-topic-card {
  position: relative;
  min-height: 220px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 20px;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 180ms ease;
}

.ra-topic-card:hover {
  background: color-mix(in srgb, var(--topic-color) 16%, transparent);
}

.ra-topic-card > span {
  color: var(--ra-orange);
  font-family: var(--ra-mono);
  font-size: 11px;
}

.ra-topic-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.ra-topic-card p {
  margin: 0;
  color: #aaa59e;
  font-size: 13px;
  line-height: 1.7;
}

.ra-topic-card > i {
  color: #77736e;
  font-size: 18px;
  font-style: normal;
}

/* Latest cards */

.ra-latest-section {
  background: var(--ra-paper);
}

.ra-inline-search {
  position: relative;
  width: min(100%, 330px);
}

.ra-inline-search input {
  width: 100%;
  height: 46px;
  padding: 0 50px 0 15px;
  border: 1px solid #cbc6bd;
  border-radius: 6px;
  outline: 0;
  background: #fff;
}

.ra-inline-search input:focus {
  border-color: var(--ra-ink);
}

.ra-inline-search button {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
}

.ra-inline-search .ra-search-icon {
  color: var(--ra-ink);
}

.ra-filter-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 34px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.ra-filter-nav a {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid #d2cdc4;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.6);
  color: #55515a;
  font-size: 12px;
  font-weight: 750;
}

.ra-filter-nav a:hover,
.ra-filter-nav a.is-active {
  border-color: var(--ra-ink);
  background: var(--ra-ink);
  color: #fff;
}

.ra-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ra-article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ra-line);
  background: var(--ra-card);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ra-article-card:hover {
  transform: translateY(-4px);
  border-color: #c9c3ba;
  box-shadow: 0 18px 36px rgba(17, 16, 16, 0.07);
}

.ra-card-visual {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ra-card-visual > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.ra-article-card:hover .ra-card-visual > * {
  transform: scale(1.025);
}

.ra-card-body {
  padding: 24px 25px 27px;
}

.ra-card-title {
  margin: 16px 0 11px;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.35;
}

.ra-card-body > p {
  display: -webkit-box;
  min-height: 3.4em;
  margin: 0 0 21px;
  overflow: hidden;
  color: var(--ra-muted);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ra-empty-state {
  grid-column: 1 / -1;
  padding: 80px 28px;
  border: 1px dashed #c4beb4;
  text-align: center;
}

.ra-empty-state > span {
  color: #8b5524;
  font-family: var(--ra-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ra-empty-state h2,
.ra-empty-state h3 {
  margin: 13px 0 8px;
  font-size: 27px;
  letter-spacing: -0.05em;
}

.ra-empty-state p {
  margin: 0 auto 24px;
  color: var(--ra-muted);
}

.ra-center-action {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.ra-pagination {
  margin-top: 48px;
}

.ra-pagination ul {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ra-pagination a,
.ra-pagination span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbc6bd;
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.ra-pagination .current {
  border-color: var(--ra-ink);
  background: var(--ra-ink);
  color: #fff;
}

/* Template band */

.ra-template-band {
  overflow: hidden;
  padding: 100px 0;
  background: var(--ra-orange);
  color: var(--ra-ink);
}

.ra-template-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 80px;
  align-items: center;
}

.ra-template-band h2 {
  margin: 15px 0 18px;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1.02;
}

.ra-template-band p {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: 16px;
}

.ra-template-band .ra-eyebrow {
  color: #442812;
}

.ra-template-stack {
  position: relative;
  min-height: 390px;
}

.ra-template-stack > div {
  position: absolute;
  width: 72%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 29px;
  border: 1px solid rgba(17, 16, 16, 0.45);
  background: var(--ra-paper);
  box-shadow: 14px 16px 0 rgba(17, 16, 16, 0.13);
}

.ra-template-stack > div:nth-child(1) {
  z-index: 3;
  left: 0;
  top: 22px;
  transform: rotate(-5deg);
}

.ra-template-stack > div:nth-child(2) {
  z-index: 2;
  left: 18%;
  top: 10px;
  transform: rotate(2deg);
}

.ra-template-stack > div:nth-child(3) {
  z-index: 1;
  right: 0;
  top: 35px;
  transform: rotate(7deg);
}

.ra-template-stack span,
.ra-template-stack em {
  font-family: var(--ra-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.09em;
}

.ra-template-stack span {
  color: #8c5222;
}

.ra-template-stack b {
  margin: 80px 0 auto;
  font-size: 26px;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

/* Archive and search */

.ra-archive-hero,
.ra-search-hero {
  padding: 82px 0 78px;
  background:
    radial-gradient(circle at 82% 30%, color-mix(in srgb, var(--archive-color, #eea65a) 20%, transparent), transparent 26%),
    var(--ra-night);
  color: #fff;
}

.ra-archive-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
}

.ra-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: #aaa59e;
  font-family: var(--ra-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.ra-breadcrumb a:hover {
  color: var(--ra-orange);
}

.ra-archive-number {
  color: var(--ra-orange);
  font-family: var(--ra-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ra-archive-hero h1,
.ra-search-hero h1,
.ra-page-header h1,
.ra-template-hero h1 {
  margin: 14px 0 17px;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.98;
}

.ra-archive-hero p,
.ra-search-hero p,
.ra-page-header p,
.ra-template-hero p {
  max-width: 640px;
  margin: 0;
  color: #b9b4ad;
  font-size: 16px;
}

.ra-archive-count {
  min-width: 150px;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.ra-archive-count strong {
  display: block;
  color: var(--ra-orange);
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.ra-archive-count span {
  color: #8f8a83;
  font-family: var(--ra-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.ra-search-hero .ra-search-form {
  max-width: 680px;
  margin-top: 30px;
}

/* Article */

.ra-article-page {
  background: var(--ra-paper);
}

.ra-article-header {
  padding: 56px 24px 54px;
  background: var(--ra-night);
  color: #fff;
}

.ra-article-header-inner {
  width: min(100%, 980px);
  margin-inline: auto;
}

.ra-article-header .ra-breadcrumb {
  margin-bottom: 22px;
}

.ra-article-header h1 {
  max-width: 960px;
  margin: 17px 0 18px;
  font-size: clamp(2.55rem, 5vw, 4.65rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1.04;
  text-wrap: balance;
}

.ra-article-deck {
  max-width: 760px;
  margin: 0 0 24px;
  color: #c3beb7;
  font-size: 17px;
  line-height: 1.68;
}

.ra-article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #aba69f;
  font-family: var(--ra-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.ra-article-byline span {
  display: inline-flex;
  gap: 8px;
}

.ra-article-byline b {
  color: var(--ra-orange);
}

.ra-article-visual {
  width: min(calc(100% - 48px), 980px);
  height: clamp(170px, 15vw, 210px);
  margin: 0 auto;
  overflow: hidden;
  transform: translateY(30px);
  box-shadow: 0 16px 36px rgba(17, 16, 16, 0.12);
}

.ra-article-visual > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ra-article-visual .ra-visual {
  min-height: 0;
  padding: 28px 32px;
}

.ra-article-visual .ra-visual::after {
  width: 104px;
  height: 104px;
  right: -25px;
  bottom: -35px;
}

.ra-article-visual .ra-visual-grid {
  opacity: 0.09;
  background-size: 42px 42px;
}

.ra-article-visual .ra-visual-number {
  top: 20px;
  left: 30px;
}

.ra-article-visual .ra-visual-rec {
  top: 20px;
  right: 28px;
}

.ra-article-visual .ra-visual strong {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.ra-article-layout {
  width: min(calc(100% - 48px), 980px);
  display: grid;
  grid-template-columns: 76px minmax(0, var(--ra-reading));
  gap: 48px;
  justify-content: center;
  margin: 74px auto 0;
  padding-bottom: 120px;
}

.ra-article-rail {
  position: sticky;
  top: 112px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.ra-article-rail > span {
  margin-bottom: 5px;
  color: var(--ra-muted);
  font-family: var(--ra-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  writing-mode: vertical-rl;
}

.ra-article-rail a,
.ra-article-rail button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbc6bc;
  border-radius: 50%;
  background: transparent;
  color: var(--ra-copy);
  font-family: var(--ra-mono);
  font-size: 12px;
  font-weight: 800;
}

.ra-article-rail a:hover,
.ra-article-rail button:hover {
  border-color: var(--ra-ink);
  background: var(--ra-ink);
  color: #fff;
}

.ra-article-content {
  min-width: 0;
  color: #2e2d31;
  font-size: 17px;
  line-height: 1.85;
}

.ra-article-content > *:first-child {
  margin-top: 0;
}

.ra-article-content p {
  margin: 0 0 1.45em;
}

.ra-article-content h2 {
  margin: 2.5em 0 0.75em;
  padding-top: 0.5em;
  color: var(--ra-ink);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.25;
}

.ra-article-content h3 {
  margin: 2em 0 0.7em;
  color: var(--ra-ink);
  font-size: 1.4rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.4;
}

.ra-article-content h4 {
  margin: 1.8em 0 0.6em;
  color: var(--ra-ink);
  font-size: 1.1rem;
  font-weight: 850;
}

.ra-article-content a:not(.ra-button):not(.ra-text-link) {
  color: #874817;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ra-article-content ul,
.ra-article-content ol {
  margin: 0 0 1.6em;
  padding-left: 1.3em;
}

.ra-article-content li {
  margin: 0.55em 0;
  padding-left: 0.2em;
}

.ra-article-content blockquote {
  margin: 2.2em 0;
  padding: 28px 30px;
  border: 0;
  border-left: 4px solid var(--ra-orange);
  background: #eee9df;
  color: var(--ra-ink);
  font-size: 1.14em;
  font-weight: 700;
  line-height: 1.7;
}

.ra-article-content blockquote p:last-child {
  margin-bottom: 0;
}

.ra-article-content figure {
  margin: 2.4em 0;
}

.ra-article-content figcaption {
  margin-top: 9px;
  color: var(--ra-muted);
  font-size: 12px;
  text-align: center;
}

.ra-article-content hr {
  height: 1px;
  margin: 3em 0;
  border: 0;
  background: var(--ra-line);
}

.ra-article-content table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 14px;
}

.ra-article-content th,
.ra-article-content td {
  padding: 13px 12px;
  border: 1px solid #d8d3c9;
  text-align: left;
  vertical-align: top;
}

.ra-article-content th {
  background: #ece7de;
  color: var(--ra-ink);
  font-weight: 850;
}

.ra-article-content code {
  padding: 2px 5px;
  border-radius: 3px;
  background: #e9e4db;
  font-family: var(--ra-mono);
  font-size: 0.88em;
}

.ra-article-content pre {
  overflow: auto;
  margin: 2em 0;
  padding: 22px;
  background: var(--ra-ink);
  color: #f5f1e9;
  font-family: var(--ra-mono);
  font-size: 13px;
  line-height: 1.65;
}

.ra-article-content pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.ra-article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: 68px 0 40px;
  padding: 34px;
  background: var(--ra-ink);
  color: #fff;
}

.ra-article-cta > div:first-child > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ra-orange);
  font-family: var(--ra-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ra-article-cta > div:first-child > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ra-red);
}

.ra-article-cta h2 {
  margin: 13px 0 12px;
  padding: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.13;
}

.ra-article-cta p {
  max-width: 440px;
  margin: 0;
  color: #aaa59e;
  font-size: 13px;
}

.ra-article-cta > div:last-child {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
}

.ra-article-footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ra-line);
  font-family: var(--ra-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.ra-article-footer-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ra-article-footer-meta span {
  color: var(--ra-muted);
}

.ra-post-tags a {
  margin-right: 8px;
  color: var(--ra-copy);
}

.ra-related-section {
  border-top: 1px solid var(--ra-line);
  background: #eeebe4;
}

.ra-toast {
  position: fixed;
  z-index: 999;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ra-ink);
  color: #fff;
  box-shadow: var(--ra-shadow);
  font-size: 13px;
  font-weight: 750;
}

/* Generic and template pages */

.ra-page-header,
.ra-template-hero {
  padding: 82px 0 78px;
  background: var(--ra-night);
  color: #fff;
}

.ra-page-content {
  width: min(calc(100% - 48px), var(--ra-reading));
  margin-inline: auto;
  padding: 90px 0 120px;
  color: #2e2d31;
  font-size: 17px;
  line-height: 1.85;
}

.ra-page-content h2 {
  margin: 2.3em 0 0.75em;
  font-size: 2.2rem;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.ra-template-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 70px;
  align-items: end;
}

.ra-template-hero-stat {
  min-width: 220px;
  padding: 30px 0 3px 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.ra-template-hero-stat strong {
  display: block;
  color: var(--ra-orange);
  font-size: 76px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.ra-template-hero-stat span {
  color: #aaa59e;
  font-family: var(--ra-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.ra-template-hero-stat p {
  max-width: 210px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.6;
}

.ra-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ra-download-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
  min-height: 360px;
  border: 1px solid var(--ra-line);
  background: #fff;
}

.ra-download-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 25px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    var(--ra-ink);
  background-size: 32px 32px;
  color: #fff;
}

.ra-download-cover::after {
  content: "";
  position: absolute;
  width: 115px;
  height: 115px;
  right: -30px;
  bottom: -28px;
  border-radius: 50%;
  background: var(--ra-red);
}

.ra-download-cover span,
.ra-download-cover small {
  font-family: var(--ra-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.ra-download-cover span {
  color: var(--ra-orange);
}

.ra-download-cover b {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #8d8983;
  font-family: var(--ra-mono);
  font-size: 11px;
}

.ra-download-cover strong {
  max-width: 80%;
  margin: auto 0 10px;
  font-size: 25px;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.ra-download-cover small {
  color: #aaa59e;
}

.ra-download-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
}

.ra-download-copy > span {
  color: #85501e;
  font-family: var(--ra-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.ra-download-copy h2 {
  margin: 12px 0 13px;
  font-size: 25px;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.ra-download-copy p {
  margin: 0 0 24px;
  color: var(--ra-muted);
  font-size: 13px;
  line-height: 1.75;
}

.ra-download-copy .ra-button {
  margin-top: auto;
}

.ra-download-feedback {
  display: block;
  margin-top: 11px;
  color: var(--ra-muted);
  font-size: 11px;
  line-height: 1.5;
}

.ra-template-note {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 42px;
  margin-top: 50px;
  padding: 34px 36px;
  border-top: 2px solid var(--ra-ink);
  border-bottom: 1px solid var(--ra-line);
}

.ra-template-note > span {
  color: #8a5525;
  font-family: var(--ra-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ra-template-note h2 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.ra-template-note p {
  max-width: 760px;
  margin: 0;
  color: var(--ra-muted);
}

/* 404 */

.ra-not-found {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 24px;
  background: var(--ra-night);
  color: #fff;
  text-align: center;
}

.ra-not-found-code {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 950;
  letter-spacing: -0.11em;
  line-height: 0.8;
}

.ra-not-found-code i {
  width: clamp(54px, 10vw, 110px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ra-red);
}

.ra-not-found h1 {
  margin: 22px 0 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.06em;
}

.ra-not-found > p {
  max-width: 560px;
  margin: 0 0 28px;
  color: #aaa59e;
}

.ra-not-found > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Footer */

.ra-site-cta {
  position: relative;
  overflow: hidden;
  padding: 94px 0;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 49, 48, 0.19), transparent 26%),
    var(--ra-night);
  color: #fff;
}

.ra-site-cta::after {
  content: "ACTION";
  position: absolute;
  right: -15px;
  bottom: -56px;
  color: rgba(255, 255, 255, 0.028);
  font-size: 180px;
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 1;
  pointer-events: none;
}

.ra-site-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 80px;
  align-items: end;
}

.ra-site-cta h2 {
  margin: 15px 0 16px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1;
}

.ra-site-cta p {
  max-width: 580px;
  margin: 0;
  color: #aaa59e;
}

.ra-site-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 190px;
}

.ra-site-footer {
  padding: 72px 0 30px;
  border-top: 1px solid var(--ra-line-dark);
  background: #050507;
  color: #fff;
}

.ra-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 72px;
  align-items: start;
}

.ra-brand-footer {
  color: #fff;
}

.ra-brand-logo-footer {
  width: 180px;
}

.ra-footer-brand > p {
  margin: 20px 0 0;
  color: #8e8a84;
  font-size: 13px;
}

.ra-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
}

.ra-footer-nav > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.ra-footer-nav strong {
  margin-bottom: 7px;
  color: var(--ra-orange);
  font-family: var(--ra-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ra-footer-nav a,
.ra-footer-legal a {
  color: #aaa6a0;
  font-size: 12px;
}

.ra-footer-nav a:hover,
.ra-footer-legal a:hover {
  color: #fff;
}

.ra-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-top: 58px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #928d87;
  font-size: 10px;
}

.ra-footer-bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
}

.ra-footer-bottom strong {
  color: #a09c96;
}

.ra-footer-bottom p {
  margin: 0;
  white-space: nowrap;
}

.ra-footer-legal {
  justify-content: flex-end;
  align-items: center;
}

/* WordPress core */

.alignwide {
  width: min(100vw - 48px, 980px);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-caption,
.gallery-caption {
  color: var(--ra-muted);
  font-size: 12px;
}

.sticky {
  position: relative;
}

.bypostauthor {
  display: block;
}

/* Responsive */

@media (max-width: 1100px) {
  .ra-home-hero-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 42px;
  }

  .ra-desktop-nav a:nth-child(3) {
    display: none;
  }

  .ra-topic-card {
    padding: 26px 22px;
  }

  .ra-download-grid {
    grid-template-columns: 1fr;
  }

  .ra-download-card {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 900px) {
  body.admin-bar .ra-site-header,
  body.admin-bar .ra-read-progress {
    top: 46px;
  }

  .ra-shell,
  .ra-header-inner {
    width: min(calc(100% - 36px), var(--ra-shell));
  }

  .ra-section {
    padding: 84px 0;
  }

  .ra-desktop-nav {
    display: none;
  }

  .ra-header-actions {
    margin-left: auto;
  }

  .ra-menu-toggle {
    display: block;
  }

  .ra-home-hero {
    padding: 72px 0 80px;
  }

  .ra-home-hero-grid {
    grid-template-columns: 1fr;
  }

  .ra-home-hero-copy {
    max-width: 760px;
  }

  .ra-call-sheet {
    width: min(100%, 570px);
    justify-self: center;
    transform: rotate(0.8deg);
  }

  .ra-section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ra-section-heading > p {
    max-width: 620px;
  }

  .ra-featured-grid {
    grid-template-columns: 1fr;
  }

  .ra-featured-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .ra-topic-grid,
  .ra-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ra-template-band-grid {
    grid-template-columns: 1fr;
  }

  .ra-template-stack {
    width: min(100%, 660px);
    justify-self: center;
  }

  .ra-article-layout {
    grid-template-columns: minmax(0, var(--ra-reading));
    gap: 0;
  }

  .ra-article-rail {
    position: static;
    flex-direction: row;
    margin-bottom: 30px;
  }

  .ra-article-rail > span {
    margin: 0 6px 0 0;
    writing-mode: initial;
  }

  .ra-article-rail a,
  .ra-article-rail button {
    width: 44px;
    height: 44px;
  }

  .ra-article-cta {
    grid-template-columns: 1fr;
  }

  .ra-article-cta > div:last-child {
    width: min(100%, 250px);
  }

  .ra-site-cta-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ra-site-cta-actions {
    width: min(100%, 260px);
  }

  .ra-footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 44px;
  }
}

@media (max-width: 680px) {
  .ra-shell,
  .ra-header-inner,
  .ra-article-visual,
  .ra-article-layout,
  .ra-page-content {
    width: min(calc(100% - 32px), var(--ra-shell));
  }

  .ra-header-inner {
    min-height: 62px;
    gap: 10px;
  }

  .ra-brand {
    gap: 8px;
  }

  .ra-brand-logo {
    width: 116px;
  }

  .ra-brand-logo-footer {
    width: 160px;
  }

  .ra-brand-journal {
    display: none;
  }

  .ra-header-actions .ra-button-small {
    min-width: 78px;
    min-height: 44px;
    padding-inline: 12px;
  }

  .ra-cta-desktop {
    display: none;
  }

  .ra-cta-mobile {
    display: inline;
  }

  .ra-home-hero {
    padding: 58px 0 66px;
  }

  .ra-home-hero-copy h1 {
    margin-top: 17px;
    font-size: clamp(2.55rem, 13vw, 4rem);
    line-height: 1.03;
  }

  .ra-home-hero-copy > p {
    font-size: 16px;
  }

  .ra-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ra-hero-proof {
    gap: 10px 18px;
  }

  .ra-call-sheet {
    padding: 21px;
    box-shadow: 10px 12px 0 rgba(238, 166, 90, 0.08);
  }

  .ra-call-sheet-title {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ra-call-sheet-title small {
    padding-top: 0;
  }

  .ra-call-sheet li {
    grid-template-columns: 28px 1fr;
  }

  .ra-call-sheet li > i {
    display: none;
  }

  .ra-section-heading h1,
  .ra-section-heading h2 {
    font-size: 2.45rem;
  }

  .ra-featured-main {
    min-height: 0;
  }

  .ra-featured-copy {
    padding: 24px 22px 27px;
  }

  .ra-featured-copy h3 {
    font-size: 1.8rem;
  }

  .ra-featured-side {
    grid-template-columns: 1fr;
  }

  .ra-featured-side-card {
    min-height: 145px;
    grid-template-columns: minmax(112px, 0.42fr) minmax(0, 0.58fr);
    grid-template-rows: none;
  }

  .ra-featured-side-visual {
    min-height: 145px;
  }

  .ra-featured-side-card > div {
    padding: 19px 17px;
  }

  .ra-featured-side-card h3 {
    margin: 10px 0 12px;
    font-size: 15px;
    line-height: 1.4;
  }

  .ra-featured-side-card .ra-visual {
    min-height: 145px;
    padding: 16px;
  }

  .ra-featured-side-card .ra-visual-number,
  .ra-featured-side-card .ra-visual-rec {
    top: 12px;
  }

  .ra-featured-side-card .ra-visual-number {
    left: 14px;
  }

  .ra-featured-side-card .ra-visual-rec {
    right: 12px;
  }

  .ra-featured-side-card .ra-visual strong {
    max-width: 82%;
    font-size: 15px;
  }

  .ra-featured-side-card .ra-visual small {
    display: none;
  }

  .ra-topic-grid,
  .ra-article-grid {
    grid-template-columns: 1fr;
  }

  .ra-topic-card {
    min-height: 170px;
  }

  .ra-inline-search {
    width: 100%;
  }

  .ra-template-band {
    padding: 76px 0;
  }

  .ra-template-band-grid {
    gap: 45px;
  }

  .ra-template-stack {
    min-height: 310px;
  }

  .ra-template-stack > div {
    min-height: 245px;
    padding: 22px;
  }

  .ra-template-stack b {
    margin-top: 60px;
    font-size: 18px;
  }

  .ra-archive-hero,
  .ra-search-hero,
  .ra-page-header,
  .ra-template-hero {
    padding: 60px 0;
  }

  .ra-archive-hero-grid,
  .ra-template-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ra-archive-hero h1,
  .ra-search-hero h1,
  .ra-page-header h1,
  .ra-template-hero h1 {
    font-size: 3.2rem;
  }

  .ra-archive-count,
  .ra-template-hero-stat {
    min-width: 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .ra-article-header {
    padding: 42px 16px 46px;
  }

  .ra-article-header h1 {
    font-size: clamp(2.15rem, 10vw, 3.25rem);
  }

  .ra-article-deck {
    font-size: 16px;
  }

  .ra-article-visual {
    height: 148px;
    transform: translateY(20px);
  }

  .ra-article-visual .ra-visual {
    padding: 22px;
  }

  .ra-article-visual .ra-visual-number {
    top: 16px;
    left: 20px;
  }

  .ra-article-visual .ra-visual-rec {
    top: 16px;
    right: 18px;
  }

  .ra-article-visual .ra-visual strong {
    max-width: 70%;
    font-size: 1.35rem;
  }

  .ra-article-visual .ra-visual small {
    margin-top: 6px;
  }

  .ra-article-layout {
    margin-top: 52px;
    padding-bottom: 86px;
  }

  .ra-article-content {
    font-size: 16px;
    line-height: 1.85;
  }

  .ra-article-content h2 {
    font-size: 1.8rem;
  }

  .ra-article-content blockquote {
    padding: 22px 20px;
  }

  .ra-article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ra-article-cta {
    padding: 26px 22px;
  }

  .ra-article-cta h2 {
    font-size: 25px;
  }

  .ra-article-footer-meta {
    flex-direction: column;
  }

  .ra-download-card {
    grid-template-columns: 1fr;
  }

  .ra-download-cover {
    min-height: 290px;
  }

  .ra-template-note {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 28px 0;
  }

  .ra-site-cta {
    padding: 75px 0;
  }

  .ra-site-cta h2 {
    font-size: 3rem;
  }

  .ra-site-cta::after {
    font-size: 100px;
  }

  .ra-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ra-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .ra-footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .ra-home-hero-copy h1,
  .ra-archive-hero h1,
  .ra-search-hero h1,
  .ra-page-header h1,
  .ra-template-hero h1 {
    word-break: keep-all;
  }

  .ra-card-body {
    padding: 21px;
  }

  .ra-topic-card {
    grid-template-columns: 30px 1fr;
  }

  .ra-topic-card > i {
    display: none;
  }

  .ra-template-stack > div {
    width: 78%;
  }

  .ra-footer-nav {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ra-call-sheet,
  .ra-template-stack > div {
    transform: none !important;
  }
}

.ra-footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ra-footer-legal button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b9b5ac;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ra-consent {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #171717;
  color: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

.ra-consent[hidden] {
  display: none;
}

.ra-consent strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.ra-consent p {
  margin: 0;
  color: #d2cec5;
  font-size: 12px;
  line-height: 1.65;
}

.ra-consent p a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ra-consent-actions {
  display: flex;
  gap: 8px;
}

.ra-consent .ra-button {
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .ra-footer-legal {
    align-items: flex-start;
  }

  .ra-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .ra-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
