:root {
  color-scheme: light;
  --bg: #fcfbfa;
  --surface: #fff;
  --soft: #f3f1f6;
  --ink: #24202f;
  --muted: #6d687a;
  --line: #e4e0e9;
  --accent: #6543c3;
  --accent-soft: #efebfa;
  --button: #6543c3;
  --button-text: #fff;
  --shadow: 0 18px 55px #3023440a;
  --radius: 20px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121119;
  --surface: #1c1a25;
  --soft: #252230;
  --ink: #f1eef7;
  --muted: #aaa3b8;
  --line: #353040;
  --accent: #b69bf7;
  --accent-soft: #302440;
  --button: #8b68dc;
  --button-text: #fff;
  --shadow: 0 18px 55px #0003;
}
html[data-brand="profitvena"] {
  --accent: #3c57c3;
  --accent-soft: #eaf0fc;
  --button: #3553bb;
}
html[data-brand="profitvena"][data-theme="dark"] {
  --accent: #9ab7ff;
  --accent-soft: #24304a;
  --button: #4665ce;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 115px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 0.65em;
  font-weight: 650;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(42px, 6vw, 78px);
}
h2 {
  font-size: clamp(27px, 3vw, 38px);
}
h3 {
  font-size: 24px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--button);
  color: var(--button-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.18s,
    background 0.18s;
  vertical-align: middle;
}
button:hover,
.button:hover {
  color: var(--button-text);
  filter: brightness(1.08);
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}
.button.small {
  font-size: 13px;
  min-height: 42px;
  padding: 11px 16px;
}
button svg,
.button svg,
.text-link svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.secondary,
button.secondary,
.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 650;
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  padding: 12px 14px;
  line-height: 1.5;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--button);
  padding: 0;
  flex-shrink: 0;
  margin: 3px 0 0;
}
input[type="range"] {
  padding: 4px;
  accent-color: var(--button);
}
input[type="file"] {
  cursor: pointer;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 17px;
}
label input,
label textarea,
label select {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 400;
}
.shell {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.sr-only,
.screen-reader-text,
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--surface);
  padding: 10px 20px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.header {
  position: relative;
  background: var(--bg);
  z-index: 10;
  border-bottom: 1px solid var(--line);
}
.masthead {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.brand img {
  object-fit: contain;
}
.brand small {
  font-weight: 400;
  letter-spacing: 0;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  margin-left: 14px;
  font-size: 14px;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 550;
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-search svg {
  height: 18px;
  width: 18px;
}
.icon-button {
  padding: 8px;
  width: 36px;
  min-height: 36px;
  color: var(--muted);
  background: transparent;
  border: 0;
}
.icon-button:hover {
  color: var(--accent);
  background: var(--soft);
}
.icon-button svg {
  width: 20px;
  height: 20px;
}
.category-bar {
  border-top: 1px solid var(--line);
}
.category-nav {
  display: flex;
  gap: 28px;
  overflow: auto;
  scrollbar-width: none;
}
.category-nav a {
  padding: 15px 0;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.category-nav a[aria-current],
.category-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.journal-hero {
  padding: 82px 0 74px;
  display: grid;
  grid-template-columns: 1.4fr 0.75fr;
  gap: 70px;
  align-items: center;
}
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}
.journal-hero h1 {
  max-width: 900px;
  margin-bottom: 25px;
  letter-spacing: -0.065em;
  line-height: 1.04;
}
.journal-hero p {
  max-width: 610px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.hero-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 30% 25%, #cfeaff70, transparent 55%),
    radial-gradient(ellipse at 85% 90%, #c7b3f870, transparent 65%), var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 25%;
  border: 1px solid #fff7;
  border-radius: 50%;
  z-index: -1;
  background: #ffffff26;
  box-shadow: 0 15px 45px #61489a15;
}
.hero-art > img {
  width: 26%;
  height: auto;
  filter: drop-shadow(0 20px 25px #54358a30);
  transform: rotate(-8deg);
}
.hero-orbit {
  position: absolute;
  inset: 8%;
  border: 1px solid #9486b649;
  border-radius: 50%;
  transform: rotate(-35deg) scaleX(1.45);
  z-index: -1;
}
.hero-orbit.second {
  inset: 20%;
  transform: rotate(45deg) scaleX(1.9);
}
.hero-art > span {
  position: absolute;
  bottom: 13%;
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.section {
  padding: 38px 0 50px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-heading h1,
.section-heading h2,
.section-heading p,
.section-heading .eyebrow {
  margin: 0;
}
.section-heading h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
}
.section-heading > a {
  font-size: 13px;
  flex-shrink: 0;
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
}
.feature-grid.single-feature {
  grid-template-columns: 1fr;
}
.single-feature .featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.feature-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 28px;
}
.story-card {
  position: relative;
  min-width: 0;
}
.cover-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  isolation: isolate;
}
.cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.cover-link:hover .cover {
  transform: scale(1.025);
}
.story-body {
  padding: 23px 0 13px;
  position: relative;
}
.story-body .eyebrow {
  font-size: 10px;
  margin-bottom: 12px;
}
.story-body h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.story-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-arrow {
  position: absolute;
  right: 0;
  bottom: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.story-arrow svg {
  width: 21px;
  height: 21px;
}
.article-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  padding-right: 24px;
}
.article-meta > span:not(.views):before {
  content: "·";
  padding-right: 10px;
}
.views {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.views svg {
  width: 15px;
  height: 15px;
}
.featured-card .story-body h2 {
  font-size: 36px;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}
.featured-card .story-body p {
  font-size: 16px;
  max-width: 620px;
}
.compact-card {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 23px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}
.compact-card:last-child {
  border: 0;
  padding: 0;
}
.compact-card .cover {
  aspect-ratio: 1.15;
}
.compact-card .cover-link {
  border-radius: 14px;
}
.compact-card .story-body {
  padding: 2px 0 32px;
}
.compact-card h3 {
  font-size: 23px;
}
.compact-card .story-arrow {
  bottom: 0;
  right: auto;
  left: 0;
}
.compact-card .article-meta {
  padding: 0;
  font-size: 10px;
  gap: 6px;
}
.compact-card .article-meta > span:not(.views):before {
  padding-right: 6px;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 30px;
}
.art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #e5e4f6;
  overflow: hidden;
}
.art:after {
  content: "";
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 30%;
  background: linear-gradient(135deg, #fff9, #fff1);
  transform: rotate(-25deg);
  box-shadow: 0 24px 40px #45348624;
  border: 1px solid #fff8;
  z-index: -1;
}
.art > img {
  width: 15%;
  height: auto;
  filter: drop-shadow(0 10px 15px #30303a22);
}
.art > span {
  position: absolute;
  left: 20px;
  bottom: 15px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #252b4eaa;
}
.art-orbit {
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  border: 1px solid #7884c333;
  transform: rotate(-40deg) scaleX(1.4);
  z-index: -2;
}
.art-line {
  position: absolute;
  inset: -70%;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 36px,
    #fff3 36px 37px
  );
  z-index: -3;
}
.art-0 {
  background: linear-gradient(125deg, #d2e7ff, #c8c5f4);
}
.art-1 {
  background: linear-gradient(130deg, #e5e0fa, #d3d6f2);
}
.art-2 {
  background: linear-gradient(120deg, #d7ece8, #a1c5dc);
}
.art-3 {
  background: linear-gradient(135deg, #e9ded4, #dcc5e8);
}
html[data-theme="dark"] .art {
  filter: brightness(0.8);
}
.guides-section {
  border-block: 1px solid var(--line);
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.popular-grid > a {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.popular-number {
  font-size: 36px;
  letter-spacing: -0.06em;
  color: var(--muted);
  line-height: 1;
}
.popular-grid h3 {
  font-size: 21px;
}
.subscribe {
  margin: 55px 0 80px;
  padding: 48px 50px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 65px;
  align-items: center;
  background: var(--soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.subscribe h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
}
.subscribe p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 460px;
  margin: 0;
}
.subscribe .eyebrow {
  margin-bottom: 14px;
}
.subscribe form {
  position: relative;
}
.subscribe-input {
  display: flex;
  gap: 8px;
}
.subscribe-input input {
  flex: 1;
  width: 0;
}
.subscribe-input button {
  flex-shrink: 0;
}
.subscribe .consent {
  margin-top: 18px;
  margin-bottom: 0;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted);
}
.consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  background: var(--surface);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer p {
  margin-top: 15px;
  font-size: 13px;
  color: var(--muted);
}
.footer nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-size: 11px;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer .footer-credit {
  margin: 0;
  font-size: inherit;
  line-height: 1.8;
}
.footer-credit a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.footer-credit a:hover {
  text-decoration-color: currentColor;
}
.empty {
  border: 1px solid var(--line);
  padding: 48px;
  border-radius: var(--radius);
  background: var(--surface);
}
.empty p {
  color: var(--muted);
  max-width: 600px;
}
.editorial-empty {
  padding: 60px;
  background: linear-gradient(130deg, var(--surface), var(--accent-soft));
}
.editorial-empty h2 {
  font-size: 32px;
  max-width: 500px;
}
.editorial-empty p {
  font-size: 15px;
}
.message {
  max-width: 670px;
  margin: 90px auto;
}
.message h1 {
  font-size: 38px;
}
.message form {
  max-width: 420px;
}
.archive-hero {
  padding: 34px 0 12px;
  max-width: 900px;
}
.archive-hero h1 {
  font-size: 58px;
}
.archive-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 730px;
}
.archive-cover {
  max-width: 700px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 28px;
}
.search-form {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  max-width: 740px;
}
.search-form input {
  font-size: 17px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  font-size: 14px;
  margin: 45px 0 0;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  margin-top: 34px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}
.breadcrumbs > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumbs a {
  flex-shrink: 0;
}
.article-heading {
  max-width: 940px;
  margin: 55px auto 45px;
}
.article-heading h1 {
  font-size: clamp(38px, 4.7vw, 65px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.article-deck {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 800px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.byline strong {
  font-size: 13px;
  display: block;
  margin-bottom: 3px;
}
.byline img,
.author-avatar {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  object-fit: cover;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.article-cover {
  margin: 0 0 60px;
}
.article-cover > .cover {
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
}
.article-cover figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.reading-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 70px;
  justify-content: center;
  margin-bottom: 60px;
}
.article-aside {
  position: sticky;
  top: 28px;
  align-self: start;
  max-height: calc(100vh - 50px);
  overflow: auto;
}
.toc .eyebrow {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}
.toc a {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  padding: 8px 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.toc a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.toc .toc-level-3 {
  padding-left: 25px;
}
.toc .toc-level-4 {
  padding-left: 35px;
}
.share-tools {
  margin-top: 26px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-tools button {
  font-size: 11px;
  min-height: 36px;
  padding: 8px 10px;
}
.share-tools button svg {
  width: 14px;
}
.share-status {
  font-size: 11px;
  color: var(--accent);
  width: 100%;
  min-height: 20px;
}
.entry {
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.entry > p:first-child {
  font-size: 19px;
}
.entry p {
  margin-bottom: 1.4em;
}
.entry h2 {
  font-size: 30px;
  margin: 1.7em 0 0.8em;
}
.entry h3 {
  font-size: 24px;
  margin: 1.5em 0 0.7em;
}
.entry a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry ul,
.entry ol {
  padding-left: 1.5em;
}
.entry li {
  margin-bottom: 0.45em;
}
.entry blockquote {
  margin: 30px 0;
  padding: 8px 25px;
  border-left: 3px solid var(--accent);
  font-size: 21px;
  color: var(--muted);
}
.entry img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.entry pre {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  overflow: auto;
  line-height: 1.7;
  font-size: 13px;
}
.entry code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--soft);
  border-radius: 3px;
  font-size: 0.85em;
  padding: 2px 5px;
}
.entry pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}
.entry hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.entry table,
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.entry table {
  display: block;
  overflow: auto;
  margin: 25px 0;
}
.entry th,
.entry td,
th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  font-weight: 600;
  background: var(--soft);
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 35px;
}
.tags a,
.tag-chip {
  padding: 6px 11px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 6px;
}
.author-note {
  border-block: 1px solid var(--line);
  padding: 25px 0;
  margin-top: 35px;
}
.author-note strong {
  font-size: 15px;
}
.author-note p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}
.product-note {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 30px;
  margin-top: 35px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.product-note h2 {
  font-size: 24px;
  max-width: 400px;
  margin-bottom: 0;
}
.product-note .eyebrow {
  margin-bottom: 12px;
}
.product-note .button {
  flex-shrink: 0;
}
.notice {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px 22px;
  margin-top: 30px;
  font-size: 14px;
}
.notice a {
  text-decoration: underline;
  margin-left: 12px;
}
.muted,
.field-help {
  color: var(--muted);
}
.field-help {
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0 20px;
}
.admin-shell {
  width: min(1480px, calc(100% - 64px));
}
.admin-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 40px;
  padding: 45px 0 80px;
}
.admin-nav {
  position: sticky;
  top: 20px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-nav .eyebrow {
  padding: 0 12px;
  margin-bottom: 10px;
}
.admin-nav > a {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
}
.admin-nav > a[aria-current] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.admin-nav form {
  padding: 20px 10px;
}
.admin-content {
  min-width: 0;
}
.admin-content > .section-heading h1 {
  font-size: 36px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.admin-stats > div {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
}
.admin-stats span {
  font-size: 12px;
  color: var(--muted);
}
.admin-stats strong {
  display: block;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.editor-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.editor-row {
  padding: 23px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.editor-row:last-child {
  border: 0;
}
.editor-row strong {
  font-size: 16px;
}
.editor-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.editor-row:hover {
  background: var(--soft);
}
.badge {
  display: inline-flex;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 25px;
  background: var(--surface);
  margin-bottom: 22px;
}
.panel h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
}
.panel summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
}
.panel[open] > summary {
  margin-bottom: 22px;
}
.panel > summary .muted {
  font-size: 12px;
  display: inline-block;
  margin-left: 12px;
  font-weight: 400;
}
.panel p {
  font-size: 14px;
}
.panel form:last-child {
  margin-bottom: 0;
}
.panel label:last-child {
  margin-bottom: 0;
}
.article-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.editor-main,
.editor-sidebar {
  min-width: 0;
}
.editor-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0;
}
.editor-status [data-error="true"] {
  color: #c73f42;
}
.editor-main input[name="title"] {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.editor-main textarea[name="content"] {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin: 0;
}
.markdown-toolbar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: var(--soft);
}
.markdown-toolbar button {
  min-height: 30px;
  font-size: 11px;
  padding: 5px 8px;
}
.live-preview {
  margin-top: 20px;
}
.live-preview > summary {
  font-size: 13px;
  color: var(--muted);
}
.live-preview .entry {
  font-size: 15px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 12px;
}
.live-preview .entry h2 {
  font-size: 25px;
}
.editor-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.editor-sidebar a {
  font-size: 12px;
}
.editor-sidebar .field-help {
  font-size: 11px;
}
.editor-sidebar .panel {
  padding: 20px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 20px;
}
.upload-label {
  margin: 0;
}
.media-preview {
  max-width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 15px;
}
.tag-entry {
  display: flex;
  gap: 6px;
}
.tag-entry input {
  width: 0;
  flex: 1;
  font-size: 12px;
}
.tag-entry button {
  margin-top: 7px;
  padding: 5px 12px;
}
.tag-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  margin: 0 5px 6px 0;
}
.tag-chip button {
  background: none;
  color: var(--muted);
  padding: 0;
  min-height: 20px;
  font-size: 15px;
  border: 0;
}
.search-preview {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px;
  margin: 20px 0 0;
}
.search-preview > * {
  display: block;
}
.search-preview small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.search-preview strong {
  color: var(--accent);
  font-size: 20px;
  margin: 7px 0;
}
.search-preview > span {
  font-size: 13px;
}
.revision-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.revision-row > span {
  flex: 1;
}
.revision-row button {
  padding: 8px 12px;
  min-height: 34px;
  font-size: 11px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.field-grid > label:has(textarea) {
  grid-column: 1/-1;
}
.field-grid > button {
  justify-self: start;
}
.merge-form {
  display: flex;
  align-items: end;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.merge-form label {
  flex: 1;
  margin: 0;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.media-card {
  padding: 16px;
}
.media-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: 8px;
}
.media-card > p {
  margin: 10px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.media-card > small {
  font-size: 11px;
  color: var(--muted);
}
.media-card form {
  margin-top: 18px;
}
.media-card button {
  font-size: 12px;
}
.media-card details {
  margin-top: 20px;
}
.media-card summary {
  font-size: 13px;
}
.media-card label {
  font-size: 11px;
}
.media-card input {
  font-size: 12px;
}
.crop-stage {
  margin-bottom: 14px;
}
.crop-stage canvas {
  width: 100%;
  height: auto;
  display: block;
}
.table-scroll {
  overflow: auto;
}
.table-scroll table {
  min-width: 600px;
}
.table-scroll button {
  min-height: 32px;
  font-size: 11px;
  padding: 7px 10px;
}
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 1000px;
  width: 90vw;
  max-height: 85vh;
  padding: 30px;
}
dialog::backdrop {
  background: #11172499;
  backdrop-filter: blur(5px);
}
dialog .media-grid button {
  display: block;
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  padding: 8px;
}
dialog .media-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
dialog .media-grid small {
  display: block;
  font-size: 11px;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  font-size: 14px;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
dt {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .journal-hero {
    gap: 120px;
  }
  .journal-hero h1 {
    font-size: 83px;
  }
}
@media (max-width: 1150px) {
  .shell {
    width: calc(100% - 56px);
  }
  .nav {
    gap: 17px;
  }
  .nav-subscribe {
    display: none;
  }
  .journal-hero {
    gap: 40px;
    padding-block: 60px;
  }
  .journal-hero h1 {
    font-size: 60px;
  }
  .feature-grid {
    gap: 25px;
    grid-template-columns: 1.2fr 1fr;
  }
  .compact-card {
    grid-template-columns: 36% 1fr;
    gap: 15px;
  }
  .compact-card h3 {
    font-size: 20px;
  }
  .compact-card .cover {
    aspect-ratio: 0.8;
  }
  .story-body h3 {
    font-size: 22px;
  }
  .featured-card .story-body h2 {
    font-size: 30px;
  }
  .subscribe {
    gap: 35px;
    padding: 35px;
  }
  .reading-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 40px;
  }
  .article-editor {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
  .admin-layout {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 22px;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-shell {
    width: calc(100% - 36px);
  }
}
@media (max-width: 900px) {
  .masthead {
    min-height: 80px;
  }
  .brand small {
    display: none;
  }
  .nav-search span {
    display: none;
  }
  .journal-hero {
    grid-template-columns: 1.4fr 0.7fr;
    gap: 20px;
  }
  .journal-hero h1 {
    font-size: 50px;
  }
  .journal-hero p {
    font-size: 15px;
  }
  .hero-art > span {
    display: none;
  }
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }
  .compact-card {
    display: block;
    border: 0;
    padding: 0;
  }
  .compact-card .cover {
    aspect-ratio: 1.6;
  }
  .compact-card .story-body {
    padding-top: 17px;
  }
  .single-feature .featured-card {
    display: block;
  }
  .subscribe {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .subscribe form {
    max-width: 600px;
  }
  .subscribe h2 br {
    display: none;
  }
  .reading-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    max-width: 760px;
    margin-inline: auto;
  }
  .article-aside {
    position: static;
    max-height: none;
    display: flex;
    gap: 25px;
    align-items: start;
  }
  .toc {
    flex: 1;
  }
  .share-tools {
    margin: 0;
    max-width: 200px;
  }
  .toc a {
    font-size: 12px;
    padding-block: 5px;
  }
  .article-cover {
    margin-bottom: 40px;
  }
  .popular-grid {
    grid-template-columns: 1fr;
  }
  .popular-grid h3 {
    font-size: 23px;
  }
  .popular-grid > a {
    padding-block: 18px;
  }
  .admin-layout {
    display: block;
  }
  .admin-nav {
    position: static;
    flex-direction: row;
    overflow: auto;
    gap: 5px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }
  .admin-nav .eyebrow {
    display: none;
  }
  .admin-nav form {
    padding: 0;
  }
  .admin-nav button {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }
  .article-editor {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .footer-grid {
    display: block;
  }
  .footer nav {
    margin-top: 25px;
  }
  .archive-hero h1 {
    font-size: 46px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .shell {
    width: calc(100% - 36px);
  }
  .masthead {
    gap: 12px;
    min-height: 74px;
    flex-wrap: wrap;
    padding-block: 15px;
  }
  .brand {
    font-size: 18px;
    gap: 9px;
  }
  .brand img {
    width: 26px;
    height: 30px;
  }
  .nav {
    gap: 13px;
    font-size: 12px;
  }
  .nav > .button {
    display: none;
  }
  .nav-search svg {
    width: 18px;
  }
  .icon-button {
    width: 30px;
    min-height: 30px;
    padding: 4px;
  }
  .category-nav {
    gap: 22px;
  }
  .category-nav a {
    font-size: 12px;
    padding: 12px 0;
  }
  .journal-hero {
    display: block;
    padding: 45px 0 20px;
    position: relative;
  }
  .journal-hero h1 {
    font-size: 49px;
    letter-spacing: -0.058em;
    max-width: 100%;
    position: relative;
    z-index: 1;
  }
  .journal-hero .eyebrow {
    font-size: 9px;
  }
  .journal-hero p {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .hero-art {
    display: none;
  }
  .section {
    padding: 30px 0;
  }
  .section-heading {
    gap: 15px;
    align-items: center;
    margin-bottom: 23px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading > a {
    font-size: 11px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .story-body {
    padding: 20px 0 12px;
  }
  .story-body h3 {
    font-size: 25px;
  }
  .story-body p {
    font-size: 15px;
  }
  .featured-card .story-body h2 {
    font-size: 29px;
  }
  .feature-side {
    display: block;
  }
  .compact-card {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .compact-card .cover {
    aspect-ratio: 1;
  }
  .compact-card .story-body {
    padding: 0 0 25px;
  }
  .compact-card h3 {
    font-size: 19px;
  }
  .feature-grid {
    gap: 26px;
  }
  .featured-section {
    padding-top: 25px;
  }
  .cover-link {
    border-radius: 14px;
  }
  .subscribe {
    padding: 28px 22px;
    margin: 35px 0 50px;
    border-radius: 16px;
  }
  .subscribe h2 {
    font-size: 28px;
  }
  .subscribe-input {
    flex-wrap: wrap;
  }
  .subscribe-input input {
    width: 100%;
    flex: auto;
  }
  .subscribe-input button {
    width: 100%;
  }
  .subscribe .consent {
    font-size: 11px;
  }
  .subscribe p {
    font-size: 12px;
  }
  .empty {
    padding: 28px 23px;
  }
  .editorial-empty {
    padding: 32px 24px;
  }
  .editorial-empty h2 {
    font-size: 27px;
  }
  .footer {
    padding-top: 35px;
  }
  .footer nav {
    gap: 15px 25px;
    font-size: 12px;
  }
  .footer-bottom {
    margin-top: 28px;
    gap: 20px;
  }
  .breadcrumbs {
    font-size: 10px;
    margin-top: 22px;
    gap: 7px;
  }
  .archive-hero {
    padding-top: 27px;
  }
  .archive-hero h1 {
    font-size: 39px;
  }
  .archive-hero p {
    font-size: 16px;
  }
  .search-form {
    display: block;
  }
  .search-form button {
    margin-top: 10px;
    width: 100%;
  }
  .article-heading {
    margin: 32px 0;
  }
  .article-heading h1 {
    font-size: 39px;
  }
  .article-deck {
    font-size: 17px;
  }
  .article-heading .eyebrow {
    font-size: 10px;
  }
  .article-meta {
    font-size: 10px;
    gap: 8px;
  }
  .byline {
    margin-top: 23px;
  }
  .article-cover {
    margin-bottom: 28px;
  }
  .article-cover > .cover {
    border-radius: 12px;
  }
  .article-aside {
    display: block;
  }
  .share-tools {
    max-width: none;
    margin-top: 20px;
  }
  .entry {
    font-size: 16px;
    line-height: 1.85;
  }
  .entry > p:first-child {
    font-size: 17px;
  }
  .entry h2 {
    font-size: 27px;
  }
  .entry h3 {
    font-size: 22px;
  }
  .entry pre {
    padding: 16px;
    font-size: 12px;
  }
  .entry blockquote {
    font-size: 18px;
    padding-inline: 18px;
  }
  .product-note {
    display: block;
    padding: 25px;
  }
  .product-note h2 {
    font-size: 24px;
  }
  .product-note > .button {
    margin-top: 22px;
  }
  .notice {
    padding: 15px;
    font-size: 12px;
  }
  .message {
    margin: 45px auto;
  }
  .message h1 {
    font-size: 30px;
  }
  .admin-shell {
    width: calc(100% - 24px);
  }
  .admin-layout {
    padding-top: 24px;
  }
  .admin-content > .section-heading h1 {
    font-size: 30px;
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .admin-stats > div {
    padding: 16px;
  }
  .admin-stats strong {
    font-size: 28px;
  }
  .admin-content > .section-heading {
    flex-wrap: wrap;
  }
  .editor-row {
    padding: 18px;
    display: block;
  }
  .editor-row > div + div {
    margin-top: 15px;
  }
  .article-editor {
    display: block;
  }
  .panel {
    padding: 19px;
  }
  .field-grid {
    display: block;
  }
  .editor-main input[name="title"] {
    font-size: 22px;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .revision-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .revision-row > span {
    min-width: 100%;
  }
  .merge-form {
    display: block;
  }
  .merge-form button {
    margin-top: 10px;
  }
  .markdown-toolbar {
    gap: 3px;
  }
  .markdown-toolbar button {
    font-size: 10px;
  }
  .panel > summary .muted {
    display: block;
    margin: 8px 0 0;
  }
  .admin-status {
    font-size: 11px;
  }
  dialog {
    padding: 20px;
  }
  .reading-layout {
    margin-bottom: 20px;
  }
  dl {
    grid-template-columns: 1fr;
  }
  dd {
    margin-bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.mobile-product {
  display: none;
}
@media (max-width: 640px) {
  .mobile-product {
    display: flex;
    flex-basis: 100%;
    margin-top: 4px;
    min-height: 38px;
    padding: 9px 15px;
    font-size: 12px;
  }
}
