@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ABC Favorit";
  src: url("../fonts/ABCFavorit-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Doto";
  src: url("../fonts/Doto-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #050505;
  --panel: #0a0a0a;
  --panel-2: #0e0e0e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f2efec;
  --muted: #8f8c89;
  --muted-deep: #6b6864;
  --ember: #ff450c;
  --ember-bright: #ff7042;
  --ember-soft: #ffb18d;
  --signal: #19f985;
  --display: var(--gh-font-heading, "ABC Favorit", "Satoshi", sans-serif);
  --body: var(--gh-font-body, "Satoshi", sans-serif);
  --data: "Doto", ui-monospace, monospace;
  --shell: min(1320px, calc(100vw - 48px));
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.search-open {
  overflow: hidden;
}

::selection {
  background: var(--ember);
  color: #fff;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

button,
a[href] {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--text);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-shell {
  width: var(--shell);
  margin-inline: auto;
}

.data {
  font-family: var(--data);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.site-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-backdrop__glow {
  position: absolute;
  top: -460px;
  left: 55%;
  width: 900px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 69, 12, 0.07), transparent 68%);
  filter: blur(18px);
}

.site-backdrop__grid {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
}

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(14px);
  transition: background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.94);
}

.site-header__inner {
  display: grid;
  min-height: 68px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 119px;
  height: 38px;
}

.desktop-nav .nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav .nav a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 140ms ease, border-color 140ms ease;
}

.desktop-nav .nav a:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.desktop-nav .nav-current a {
  border-color: rgba(255, 69, 12, 0.55);
  color: var(--ember-soft);
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-search {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: border-color 140ms ease, color 140ms ease;
}

.header-search:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.header-search kbd,
.journal-search kbd {
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-deep);
  letter-spacing: 0.05em;
}

.button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.button--primary {
  background: var(--ember);
  color: #fff;
}

.button--primary:hover {
  background: var(--ember-bright);
  box-shadow: 0 0 24px rgba(255, 69, 12, 0.35);
}

.button--quiet {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: #d7d4d1;
}

.button--quiet:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

/* ------------------------------------------------------------------ search */

.sumo-search {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(72px, 11vh, 130px) 20px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sumo-search__backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 69, 12, 0.1), transparent 35%),
    rgba(3, 3, 3, 0.9);
  backdrop-filter: blur(16px);
}

.sumo-search__panel {
  position: relative;
  width: min(780px, 100%);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0b0b0b;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.75);
}

.sumo-search__panel::before {
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  content: "";
}

.sumo-search__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 20px;
}

.sumo-search__header h2 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(29px, 5vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.sumo-search__close {
  min-width: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sumo-search__close:hover {
  border-color: var(--ember);
  color: var(--ember-soft);
}

.sumo-search__form {
  display: flex;
  height: 60px;
  align-items: center;
  gap: 13px;
  margin: 0 28px;
  padding: 0 18px;
  border: 1px solid rgba(255, 69, 12, 0.38);
  background: #080808;
  box-shadow: 0 0 34px rgba(255, 69, 12, 0.06);
}

.sumo-search__form:focus-within {
  border-color: rgba(255, 91, 42, 0.76);
  box-shadow: 0 0 0 3px rgba(255, 69, 12, 0.1);
}

.sumo-search__form svg {
  width: 18px;
  color: var(--ember-bright);
}

.sumo-search__form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
}

.sumo-search__form input::placeholder {
  color: #686562;
}

.sumo-search__form kbd {
  font-family: var(--data);
  font-size: 10px;
  color: var(--muted-deep);
}

.sumo-search__body {
  min-height: 150px;
  max-height: min(55vh, 540px);
  margin-top: 16px;
  padding: 0 14px 14px;
  overflow-y: auto;
}

.sumo-search__status {
  padding: 40px 18px 54px;
  color: var(--muted-deep);
  font-size: 13px;
  text-align: center;
}

.sumo-search__results {
  display: grid;
  gap: 4px;
}

.sumo-search-result {
  position: relative;
  display: grid;
  padding: 17px 16px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
}

.sumo-search-result:hover,
.sumo-search-result:focus-visible {
  border-color: var(--line);
  outline: 0;
  background: var(--panel);
}

.sumo-search-result__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sumo-search-result__meta b {
  color: var(--ember-soft);
}

.sumo-search-result > strong {
  padding-right: 92px;
  color: var(--text);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.sumo-search-result__excerpt {
  max-width: 590px;
  margin-top: 7px;
  overflow: hidden;
  color: #817e7b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sumo-search-result__action {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  transform: translateY(-50%);
}

/* ----------------------------------------------------------------- modules */

.module {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
}

.module > .tick {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.module::before,
.module::after,
.module > .tick::before,
.module > .tick::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: var(--line-strong);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}

.module::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.module::after {
  top: -1px;
  right: -1px;
  border-width: 1px 1px 0 0;
}

.module > .tick::before {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 1px 1px;
}

.module > .tick::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.module-head .data {
  font-size: 10px;
  color: var(--muted-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.category-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-soft);
}

.category-label::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
}

a.category-label:hover {
  color: var(--ember-bright);
}

/* ----------------------------------------------------------------- journal */

.journal {
  padding-top: 0;
  padding-bottom: 100px;
}

.journal-intro {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 400px);
  align-items: end;
  gap: 50px;
  padding: 60px 0 34px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ember-soft);
  font-family: var(--data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  background: var(--ember);
  box-shadow: 0 0 12px rgba(255, 69, 12, 0.8);
}

.journal-intro h1 {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(52px, 6.4vw, 96px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.journal-intro h1 em {
  font-style: normal;
  color: var(--ember);
}

.journal-intro__aside {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
  text-align: right;
}

.journal-intro__aside .data {
  font-size: 11px;
  color: var(--muted-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journal-intro__copy {
  max-width: 390px;
  justify-self: end;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.empty-state {
  padding: 54px 40px 58px;
  border: 1px dashed var(--line-strong);
  background: var(--panel);
}

.empty-state h2 {
  max-width: 640px;
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.empty-state p:last-child {
  max-width: 520px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------------------------------------------------------- featured entry */

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
}

.featured-post__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.featured-post__body {
  flex: 1;
  padding: 38px 40px 34px;
}

.featured-post__body h2 {
  max-width: 640px;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
  transition: color 140ms ease;
}

.featured-post__body p {
  max-width: 560px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.featured-post__foot {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-post__read {
  display: inline-flex;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 140ms ease, gap 140ms ease;
}

.featured-post:hover .featured-post__read {
  color: var(--ember-soft);
  gap: 13px;
}

.featured-post:hover .featured-post__body h2 {
  color: var(--ember-soft);
}

.featured-post__data {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--panel-2);
}

.featured-post__visual {
  position: relative;
  flex: 1;
  min-height: 230px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 45%, rgba(255, 87, 33, 0.16), transparent 42%),
    linear-gradient(145deg, #120a07, #080808 55%, #150e0a);
}

.featured-post__visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, filter 400ms ease;
}

.featured-post:hover .featured-post__visual > img {
  transform: scale(1.03);
  filter: saturate(1.1);
}

.featured-post__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.stat {
  padding: 14px 20px 16px;
}

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

.stat .data {
  font-size: 10px;
  color: var(--muted-deep);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-family: var(--data);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text);
}

.stat strong.pos {
  color: var(--signal);
  text-shadow: 0 0 18px rgba(25, 249, 133, 0.35);
}

.stat strong.amber {
  color: var(--ember-bright);
  text-shadow: 0 0 18px rgba(255, 69, 12, 0.35);
}

.market-orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(-9deg);
}

.market-orbit::before,
.market-orbit::after,
.market-orbit i {
  position: absolute;
  border: 1px solid rgba(255, 113, 66, 0.36);
  border-radius: 38% 62% 53% 47%;
  content: "";
}

.market-orbit::before {
  width: 57%;
  aspect-ratio: 1.4;
  box-shadow: inset 0 0 50px rgba(255, 69, 12, 0.08), 0 0 30px rgba(255, 69, 12, 0.08);
}

.market-orbit::after {
  width: 39%;
  aspect-ratio: 1.2;
  transform: rotate(29deg);
}

.market-orbit i:nth-child(1) {
  width: 72%;
  aspect-ratio: 2.4;
  transform: rotate(21deg);
}

.market-orbit i:nth-child(2) {
  width: 46%;
  aspect-ratio: 2.8;
  transform: rotate(-36deg);
}

.market-orbit i:nth-child(3) {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--ember-bright);
  box-shadow: 0 0 34px 12px rgba(255, 69, 12, 0.35);
}

.market-orbit i:nth-child(4) {
  width: 1px;
  height: 76%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(transparent, rgba(255, 133, 88, 0.7), transparent);
  transform: rotate(44deg);
}

.market-orbit--feature {
  transform: scale(1.2) rotate(-7deg);
}

/* ------------------------------------------------------------------- tools */

.journal-log-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 54px 0 16px;
}

.journal-log-head h2 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.journal-log-head .data {
  font-size: 11px;
  color: var(--muted-deep);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journal-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.journal-search {
  display: flex;
  width: 285px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted-deep);
  text-align: left;
  transition: border-color 140ms ease, color 140ms ease;
}

.journal-search:hover {
  border-color: var(--line-strong);
  color: #bcb8b5;
}

.journal-search span {
  flex: 1;
  font-size: 12px;
}

.filter-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  height: 32px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-chip.is-active {
  border-color: var(--ember);
  background: rgba(255, 69, 12, 0.12);
  color: var(--ember-soft);
}

/* -------------------------------------------------------------------- grid */

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

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.article-card:hover {
  border-color: rgba(255, 112, 66, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.article-card.is-filtered {
  display: none;
}

.article-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 32% 58%, rgba(255, 117, 64, 0.16), transparent 38%),
    linear-gradient(122deg, #070707, #170b07 66%, #090909);
}

.article-card__cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, filter 400ms ease;
}

.article-card:hover .article-card__cover > img {
  transform: scale(1.04);
  filter: saturate(1.12);
}

.article-card__content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 15px;
}

.article-card__content h2 {
  font-family: var(--display);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  transition: color 140ms ease;
}

.article-card:hover .article-card__content h2 {
  color: var(--ember-soft);
}

.article-card__content > p {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: auto -18px 0;
  padding: 11px 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-deep);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-card__footer {
  margin-top: 16px;
}

.filter-empty {
  padding: 54px 24px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.journal-pagination {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pagination a,
.pagination span {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding-inline: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--data);
  font-size: 11px;
}

.pagination a:hover {
  border-color: var(--ember);
  color: var(--ember-soft);
}

.pagination .page-number {
  width: auto;
  border-color: transparent;
}

/* --------------------------------------------------------------- cta panel */

.subscribe-panel {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  margin-top: 54px;
  overflow: hidden;
  padding: 44px;
  background:
    radial-gradient(560px 240px at 12% 110%, rgba(255, 69, 12, 0.14), transparent 70%),
    var(--panel);
}

.subscribe-panel__copy h2 {
  max-width: 620px;
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.subscribe-panel__copy > p:last-child {
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.subscribe-panel__action {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.subscribe-panel__action p {
  max-width: 220px;
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
}

.subscribe-panel__action .button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: #070707;
}

.site-footer__inner {
  display: grid;
  min-height: 76px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.site-footer__brand {
  width: max-content;
}

.site-footer__brand img {
  width: 97px;
  height: 31px;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-footer__links a {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.site-footer__links a:hover {
  border-color: rgba(255, 112, 66, 0.4);
  background: rgba(255, 69, 12, 0.07);
  color: var(--ember-soft);
}

.site-footer__links .social-icon {
  width: 15px;
  height: 15px;
}

.site-footer__copyright {
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

/* ----------------------------------------------------------------- archive */

.archive-header {
  position: relative;
  padding-top: 64px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.archive-header__back,
.post-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 140ms ease, color 140ms ease;
  width: max-content;
}

.archive-header__back:hover,
.post-hero__back:hover {
  border-color: var(--ember);
  color: var(--ember-soft);
}

.archive-header__back .icon,
.post-hero__back .icon {
  width: 13px;
  height: 13px;
  transform: rotate(180deg);
}

.archive-header h1 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(52px, 7.5vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.archive-header > p:not(.eyebrow) {
  max-width: 580px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
}

.archive-header__count {
  position: absolute;
  right: 0;
  bottom: 48px;
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-content {
  padding-top: 36px;
  padding-bottom: 100px;
}

.post-grid--archive {
  margin-bottom: 15px;
}

/* -------------------------------------------------------------------- post */

.reading-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--ember-soft));
  box-shadow: 0 0 14px rgba(255, 69, 12, 0.5);
}

.post-hero {
  max-width: 1320px;
  padding-top: 56px;
  padding-bottom: 46px;
}

.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.post-hero h1 {
  max-width: 1000px;
  margin-top: 20px;
  font-family: var(--display);
  font-size: clamp(40px, 5.8vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.post-hero__dek {
  max-width: 700px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 28px;
}

.copy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.copy-link:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.copy-link .icon {
  width: 13px;
  height: 13px;
}

.post-feature {
  margin: 0 auto;
}

.post-feature img {
  width: 100%;
  max-height: 720px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.post-feature figcaption {
  max-width: 840px;
  margin: 12px auto 0;
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
}

.post-layout {
  display: block;
  max-width: 1320px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.post-page:not(:has(.post-feature)) .post-hero {
  padding-bottom: 20px;
}

.post-page:not(:has(.post-feature)) .post-layout {
  padding-top: 30px;
}

.post-sidebar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.post-sidebar__inner > p {
  flex: 0 0 auto;
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.post-toc {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.post-toc::-webkit-scrollbar {
  display: none;
}

.post-sidebar:has(.post-toc:empty) {
  display: none;
}

.post-toc a {
  color: var(--muted-deep);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.post-toc a:hover,
.post-toc a.is-active {
  color: var(--ember-soft);
}

.post-toc a[data-level="3"] {
  color: #565351;
}

/* ---------------------------------------------------------------- content */

.gh-content {
  width: min(880px, 100%);
  min-width: 0;
  color: #c7c3bf;
  font-size: 17px;
  line-height: 1.75;
}

.gh-content > * {
  max-width: 820px;
}

.post-content {
  width: 100%;
}

.post-content > * {
  max-width: none;
}

.gh-content > * + * {
  margin-top: 1.45em;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
  color: var(--text);
  font-family: var(--display);
  letter-spacing: -0.03em;
  scroll-margin-top: 120px;
  text-wrap: balance;
}

.gh-content h2 {
  margin-top: 2.1em;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.04;
}

.gh-content h3 {
  margin-top: 1.9em;
  font-size: 26px;
  line-height: 1.08;
}

.gh-content h4 {
  font-size: 21px;
}

.gh-content a {
  color: var(--ember-soft);
  text-decoration: underline;
  text-decoration-color: rgba(255, 177, 141, 0.35);
  text-underline-offset: 3px;
}

.gh-content strong {
  color: #efedea;
}

.gh-content ul,
.gh-content ol {
  padding-left: 1.25em;
}

.gh-content li {
  padding-left: 0.35em;
}

.gh-content li + li {
  margin-top: 0.5em;
}

.gh-content li::marker {
  color: var(--ember);
}

.gh-content blockquote {
  margin-inline: 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--ember);
  background: var(--panel);
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(21px, 2.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.gh-content pre,
.gh-content .kg-code-card {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #0b0b0b;
}

.gh-content pre {
  padding: 20px 22px;
  color: #efb49c;
  font-size: 13px;
  line-height: 1.6;
}

.gh-content code {
  padding: 0.15em 0.35em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #efb49c;
  font-size: 0.85em;
}

.gh-content pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.gh-content table {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: collapse;
  font-size: 14px;
}

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

.gh-content th {
  color: var(--muted);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.gh-content .kg-width-full {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
}

.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img {
  border: 1px solid var(--line);
}

.gh-content .kg-card figcaption {
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.gh-content .kg-callout-card {
  padding: 20px 22px;
  border: 1px solid rgba(255, 113, 66, 0.2);
  background: rgba(255, 69, 12, 0.065);
  color: #d7c2b8;
  font-size: 15px;
}

.gh-content .kg-button-card .kg-btn {
  border-radius: 0;
  background: var(--ember);
  font-size: 13px;
  font-weight: 700;
}

.gh-content .kg-bookmark-card,
.gh-content .kg-file-card,
.gh-content .kg-product-card-container,
.gh-content .kg-toggle-card {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
}

.gh-content iframe {
  max-width: 100%;
}

.gh-content .kg-embed-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--line);
  background: #000;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.post-tags span {
  margin-right: 5px;
  color: var(--muted-deep);
  font-family: var(--data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-tags a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--data);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.post-tags a:hover {
  border-color: var(--ember);
  color: var(--ember-soft);
}

.post-comments {
  max-width: 1120px;
  padding-block: 56px;
  color: var(--text);
}

.post-comments iframe[title="comments-frame"] {
  background: var(--ink);
  color-scheme: dark;
}

.related-posts {
  padding-top: 64px;
  padding-bottom: 100px;
}

.related-posts > header {
  margin-bottom: 18px;
}

.related-posts > header h2 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
}

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

.page-view {
  max-width: 1000px;
  padding-top: 80px;
  padding-bottom: 110px;
}

.page-header {
  margin-bottom: 54px;
}

.page-header h1 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.page-header > p:last-child {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
}

.page-content {
  max-width: 760px;
  margin: 60px auto 0;
}

/* ------------------------------------------------------------------- error */

.error-view {
  position: relative;
  display: flex;
  min-height: 70vh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: 100px;
}

.error-view__code {
  position: absolute;
  top: 50%;
  right: 2%;
  color: rgba(255, 255, 255, 0.03);
  font-family: var(--data);
  font-weight: 800;
  font-size: min(36vw, 440px);
  line-height: 1;
  transform: translateY(-50%);
}

.error-view h1 {
  position: relative;
  max-width: 700px;
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.error-view > p:not(.eyebrow) {
  position: relative;
  max-width: 520px;
  margin-top: 24px;
  color: var(--muted);
}

.error-view .button {
  position: relative;
  width: max-content;
  min-height: 42px;
  margin-top: 30px;
}

.market-orbit--error {
  right: -10%;
  left: auto;
  width: 52%;
}

/* ------------------------------------------------------------------ motion */

.reveal {
  animation: reveal-in 640ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-post.reveal {
  animation-delay: 80ms;
}

.journal-tools.reveal {
  animation-delay: 150ms;
}

.article-card.reveal:nth-child(2) {
  animation-delay: 70ms;
}

.article-card.reveal:nth-child(3) {
  animation-delay: 140ms;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-search,
  .header-launch {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    background: transparent;
  }

  .menu-toggle__line {
    width: 15px;
    height: 1px;
    background: #d6d3d0;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    z-index: 49;
    top: 112px;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    overflow-y: auto;
    padding: 35px 24px;
    background: rgba(7, 7, 7, 0.98);
    backdrop-filter: blur(20px);
  }

  .mobile-menu .nav {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    list-style: none;
  }

  .mobile-menu .nav a {
    display: flex;
    padding: 18px 2px;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 28px;
    letter-spacing: -0.035em;
  }

  .mobile-menu__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 28px;
  }

  .mobile-menu__actions .button {
    min-height: 44px;
  }

  .journal-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .journal-intro__aside {
    text-align: left;
  }

  .journal-intro__copy {
    justify-self: start;
  }

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

  .featured-post__data {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .featured-post__visual {
    aspect-ratio: 16 / 9;
    flex: none;
  }

  .journal-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .journal-search {
    width: 100%;
  }

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

  .subscribe-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 1320px);
  }

  .sumo-search {
    padding: 28px 12px;
  }

  .sumo-search__header {
    padding: 20px 18px 16px;
  }

  .sumo-search__form {
    height: 54px;
    margin-inline: 14px;
    padding-inline: 14px;
  }

  .sumo-search__form kbd {
    display: none;
  }

  .sumo-search__body {
    max-height: 65vh;
    padding-inline: 9px;
  }

  .sumo-search-result {
    padding: 15px 12px;
  }

  .sumo-search-result > strong {
    padding-right: 0;
    font-size: 19px;
  }

  .sumo-search-result__action {
    display: none;
  }

  .site-header__inner {
    min-height: 62px;
  }

  .mobile-menu {
    top: 100px;
  }

  .mobile-menu__actions {
    grid-template-columns: 1fr;
  }

  .journal {
    padding-bottom: 76px;
  }

  .journal-intro {
    padding: 42px 0 26px;
  }

  .journal-intro h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .featured-post__body {
    padding: 26px 22px;
  }

  .featured-post__foot {
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px 22px;
  }

  .journal-log-head {
    margin-top: 42px;
  }

  .filter-row {
    margin-right: -14px;
    padding-right: 14px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .journal-pagination {
    min-height: 100px;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding-top: 26px;
    flex-direction: column;
  }

  .subscribe-panel {
    gap: 26px;
    padding: 28px 22px;
  }

  .site-footer {
    padding-block: 8px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding-block: 14px;
  }

  .site-footer__links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .site-footer__copyright {
    grid-column: 2;
    grid-row: 1;
  }

  .archive-header {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .archive-header__back,
  .post-hero__back {
    margin-bottom: 34px;
  }

  .archive-header__count {
    position: static;
    display: block;
    margin-top: 24px;
  }

  .post-hero {
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .post-hero__meta {
    gap: 12px;
    margin-top: 34px;
  }

  .post-hero h1 {
    font-size: clamp(36px, 11vw, 58px);
  }

  .post-feature img {
    min-height: 220px;
  }

  .post-layout {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .post-page:not(:has(.post-feature)) .post-layout {
    padding-top: 26px;
  }

  .post-sidebar__inner {
    margin-bottom: 36px;
    padding-inline: 12px;
  }

  .post-toc {
    width: 100%;
    gap: 16px;
  }

  .gh-content {
    font-size: 16.5px;
  }

  .gh-content .kg-width-wide {
    width: calc(100vw - 28px);
  }

  .post-comments {
    padding-block: 42px;
  }

  .related-posts {
    padding-top: 50px;
    padding-bottom: 76px;
  }

  .page-view {
    padding-top: 60px;
    padding-bottom: 76px;
  }

  .page-header h1 {
    font-size: clamp(44px, 14vw, 68px);
  }
}

@media (max-width: 440px) {
  .sumo-search__header h2 {
    font-size: 30px;
  }

  .copy-link .icon {
    display: none;
  }

}

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

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

}
