/* =========================================================
   ROBLOX ГИД
   Modern editorial / knowledge base design
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-2: #eeeeec;

  --text: #151515;
  --text-2: #656565;
  --text-3: #969696;

  --red: #e63737;
  --red-dark: #c92525;
  --red-soft: #fff0f0;

  --black: #111111;
  --border: #ddddda;
  --border-dark: #c7c7c3;

  --white: #ffffff;

  --container: 1200px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow:
    0 20px 60px rgba(0, 0, 0, 0.08);

  --transition:
    180ms cubic-bezier(.2, .8, .2, 1);
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing: antialiased;
}


body.no-scroll {
  overflow: hidden;
}


a {
  color: inherit;
  text-decoration: none;
}


button,
input {
  font: inherit;
}


button {
  cursor: pointer;
}


img,
svg {
  display: block;
}


svg {
  width: 20px;
  height: 20px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.7;

  stroke-linecap: round;
  stroke-linejoin: round;
}


.container {
  width: min(
    calc(100% - 48px),
    var(--container)
  );

  margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;

  background:
    rgba(255, 255, 255, .88);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(18px);
}


.header__inner {
  min-height: 78px;

  display: flex;
  align-items: center;

  gap: 36px;
}


/* BRAND */

.brand {
  display: inline-flex;
  align-items: center;

  gap: 11px;

  flex-shrink: 0;
}


.brand__logo {
  position: relative;

  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  background: var(--red);

  border-radius: 10px;

  transform: rotate(-3deg);

  box-shadow:
    4px 4px 0 rgba(0, 0, 0, .08);
}


.brand__logo::before {
  content: "";

  width: 14px;
  height: 14px;

  background: var(--white);

  clip-path:
    polygon(
      0 0,
      100% 0,
      100% 100%,
      0 100%
    );
}


.brand__logo span {
  position: absolute;

  width: 5px;
  height: 5px;

  background: var(--red);

  left: 12px;
  top: 12px;
}


.brand__text {
  display: flex;
  flex-direction: column;

  line-height: 1;
}


.brand__text strong {
  font-size: 15px;
  font-weight: 900;

  letter-spacing: -.04em;
}


.brand__text span {
  margin-top: 4px;

  color: var(--red);

  font-size: 13px;
  font-weight: 700;
}


/* DESKTOP NAV */

.desktop-nav {
  display: flex;
  align-items: center;

  gap: 30px;

  margin-left: auto;
}


.desktop-nav a {
  position: relative;

  color: var(--text-2);

  font-size: 14px;
  font-weight: 600;

  transition: color var(--transition);
}


.desktop-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -29px;

  height: 2px;

  background: var(--red);

  transform: scaleX(0);

  transition: transform var(--transition);
}


.desktop-nav a:hover {
  color: var(--text);
}


.desktop-nav a:hover::after {
  transform: scaleX(1);
}


/* HEADER ACTIONS */

.header__actions {
  display: flex;
  align-items: center;

  gap: 7px;
}


.header-search {
  height: 42px;

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 0 11px 0 13px;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-sm);

  color: var(--text-2);

  transition:
    border-color var(--transition),
    color var(--transition);
}


.header-search:hover {
  color: var(--text);
  border-color: var(--border-dark);
}


.header-search svg {
  width: 17px;
  height: 17px;
}


.header-search kbd {
  margin-left: 12px;

  padding: 3px 6px;

  border: 1px solid var(--border);

  border-radius: 5px;

  background: var(--surface-2);

  font-size: 10px;
  color: var(--text-3);
}


.header-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  padding: 0;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-sm);

  color: var(--text-2);

  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);
}


.header-icon:hover {
  color: var(--text);
  border-color: var(--border-dark);
}


.header-icon svg {
  width: 18px;
  height: 18px;
}


.mobile-toggle,
.mobile-search {
  display: none;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
  position: fixed;

  inset: 0;
  z-index: 100;

  display: none;

  flex-direction: column;

  padding: 24px;

  background: var(--surface);
}


.mobile-menu.is-open {
  display: flex;
}


.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.mobile-nav {
  display: flex;
  flex-direction: column;

  margin-top: 70px;
}


.mobile-nav a {
  padding: 18px 0;

  border-bottom: 1px solid var(--border);

  font-size: 20px;
  font-weight: 700;
}


.mobile-nav a:hover {
  color: var(--red);
}


.mobile-menu__bottom {
  display: flex;
  flex-direction: column;

  gap: 15px;

  margin-top: auto;

  padding-top: 25px;

  border-top: 1px solid var(--border);

  color: var(--text-2);

  font-size: 14px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  overflow: hidden;

  min-height: 650px;

  display: flex;
  align-items: center;

  background: var(--black);

  color: var(--white);
}


.hero__noise {
  position: absolute;

  inset: 0;

  opacity: .06;

  background-image:
    radial-gradient(
      rgba(255,255,255,.8) .7px,
      transparent .7px
    );

  background-size: 6px 6px;

  pointer-events: none;
}


.hero::before {
  content: "";

  position: absolute;

  width: 600px;
  height: 600px;

  right: -220px;
  top: -200px;

  background:
    radial-gradient(
      circle,
      rgba(230,55,55,.3),
      transparent 65%
    );
}


.hero__shape {
  position: absolute;

  border: 1px solid rgba(255,255,255,.12);

  transform: rotate(45deg);
}


.hero__shape--one {
  width: 300px;
  height: 300px;

  right: 9%;
  bottom: -170px;
}


.hero__shape--two {
  width: 170px;
  height: 170px;

  right: 22%;
  top: 70px;

  border-color: rgba(230,55,55,.45);
}


.hero__inner {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    380px;

  align-items: center;

  gap: 80px;
}


.hero__content {
  max-width: 800px;
}


.hero__label {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  margin-bottom: 28px;

  color: #bdbdbd;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: .13em;
}


.hero__label-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--red);

  box-shadow:
    0 0 0 5px rgba(230,55,55,.15);
}


.hero__title {
  max-width: 760px;

  margin: 0;

  font-size:
    clamp(52px, 7vw, 92px);

  line-height: .94;

  font-weight: 900;

  letter-spacing: -.065em;
}


.hero__title span {
  display: block;

  color: var(--red);
}


.hero__description {
  max-width: 650px;

  margin: 30px 0 40px;

  color: #a9a9a9;

  font-size: 17px;
  line-height: 1.65;
}


/* SEARCH */

.search-form {
  display: flex;

  max-width: 700px;

  gap: 8px;
}


.search-form__input {
  flex: 1;

  min-height: 58px;

  display: flex;
  align-items: center;

  padding: 0 15px;

  border: 1px solid #3b3b3b;

  border-radius: 12px;

  background: #202020;

  transition:
    border-color var(--transition),
    background var(--transition);
}


.search-form__input:focus-within {
  border-color: var(--red);
  background: #242424;
}


.search-form__input svg {
  flex-shrink: 0;

  width: 19px;
  height: 19px;

  color: #777;
}


.search-form__input input {
  width: 100%;

  min-width: 0;

  padding: 0 12px;

  outline: 0;
  border: 0;

  background: transparent;

  color: white;

  font-size: 14px;
}


.search-form__input input::placeholder {
  color: #777;
}


.search-form__shortcut {
  display: grid;
  place-items: center;

  width: 25px;
  height: 25px;

  border: 1px solid #444;
  border-radius: 6px;

  color: #777;

  font-size: 12px;
}


.search-form > button {
  min-width: 100px;

  border: 0;

  border-radius: 12px;

  background: var(--red);

  color: white;

  font-size: 14px;
  font-weight: 800;

  transition:
    background var(--transition),
    transform var(--transition);
}


.search-form > button:hover {
  background: var(--red-dark);

  transform: translateY(-1px);
}


.hero__links {
  display: flex;
  flex-wrap: wrap;

  gap: 8px 14px;

  margin-top: 17px;

  color: #696969;

  font-size: 11px;
}


.hero__links a {
  color: #929292;

  border-bottom: 1px solid #414141;
}


.hero__links a:hover {
  color: white;
  border-color: white;
}


/* HERO VISUAL */

.hero__visual {
  position: relative;

  width: 380px;
  height: 380px;

  display: grid;
  place-items: center;
}


.roblox-cube {
  position: relative;

  width: 210px;
  height: 210px;

  transform:
    rotate(-12deg)
    skewY(5deg);

  filter:
    drop-shadow(
      35px 35px 0 rgba(0,0,0,.3)
    );
}


.cube-face {
  position: absolute;

  width: 150px;
  height: 150px;

  border: 1px solid rgba(255,255,255,.18);
}


.cube-face--front {
  left: 30px;
  top: 30px;

  background: var(--red);
}


.cube-face--back {
  left: 0;
  top: 0;

  background: #262626;
}


.cube-face--left {
  left: 0;
  top: 0;

  transform:
    translate(-30px, 30px)
    skewY(-45deg);

  width: 30px;

  background: #a92020;
}


.cube-face--right {
  left: 180px;
  top: 0;

  transform:
    translate(0, 30px)
    skewY(45deg);

  width: 30px;

  background: #7d1818;
}


.cube-face--top {
  left: 30px;
  top: 0;

  transform:
    skewX(-45deg)
    translateX(-15px);

  height: 30px;

  background: #f04a4a;
}


.cube-face--bottom {
  left: 30px;
  top: 180px;

  transform:
    skewX(-45deg)
    translateX(-15px);

  height: 30px;

  background: #801919;
}


.visual-tag {
  position: absolute;

  display: flex;
  flex-direction: column;

  padding: 12px 15px;

  background: #1c1c1c;

  border: 1px solid #363636;

  border-radius: 10px;

  box-shadow: var(--shadow);
}


.visual-tag strong {
  font-size: 18px;
}


.visual-tag span {
  color: #777;

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}


.visual-tag--one {
  left: 0;
  bottom: 40px;
}


.visual-tag--two {
  right: 5px;
  top: 50px;

  flex-direction: row;
  align-items: center;

  gap: 20px;

  color: var(--red);
}


.visual-tag--two strong {
  color: white;
}


/* =========================================================
   COMMON SECTIONS
========================================================= */

.section {
  padding: 110px 0;
}


.section-kicker {
  display: block;

  margin-bottom: 16px;

  color: var(--red);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: .15em;
}


.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;

  gap: 40px;

  margin-bottom: 44px;
}


.section-title {
  margin: 0;

  font-size: 44px;
  line-height: 1;

  font-weight: 850;

  letter-spacing: -.045em;
}


.section-description {
  max-width: 300px;

  margin: 0;

  color: var(--text-2);

  font-size: 14px;
  line-height: 1.6;
}


.text-link {
  display: inline-flex;
  align-items: center;

  gap: 12px;

  color: var(--text);

  font-size: 13px;
  font-weight: 700;

  border-bottom: 1px solid var(--border-dark);

  padding-bottom: 6px;

  transition:
    color var(--transition),
    border-color var(--transition);
}


.text-link:hover {
  color: var(--red);
  border-color: var(--red);
}


/* =========================================================
   CATEGORIES
========================================================= */

.categories {
  background: var(--bg);
}


.category-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}


.category-card {
  min-height: 390px;

  display: flex;
  flex-direction: column;

  padding: 27px;

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  background: var(--surface);

  overflow: hidden;

  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}


.category-card:hover {
  transform: translateY(-7px);

  border-color: var(--border-dark);

  box-shadow: var(--shadow);
}


.category-card--accent {
  background: var(--red);

  color: white;

  border-color: var(--red);
}


.category-card--accent:hover {
  border-color: var(--red);
}


.category-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.category-card__number {
  color: var(--text-3);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: .08em;
}


.category-card--accent .category-card__number {
  color: rgba(255,255,255,.65);
}


.category-card__arrow {
  font-size: 23px;

  transition: transform var(--transition);
}


.category-card:hover .category-card__arrow {
  transform: translate(3px, -3px);
}


.category-card__icon {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  margin-top: 38px;

  border-radius: 13px;

  background: var(--surface-2);

  color: var(--red);
}


.category-card--accent .category-card__icon {
  background: rgba(255,255,255,.14);
  color: white;
}


.category-card__icon svg {
  width: 24px;
  height: 24px;
}


.category-card__body {
  margin-top: auto;
}


.category-card h3 {
  max-width: 240px;

  margin: 0 0 13px;

  font-size: 21px;
  line-height: 1.17;

  letter-spacing: -.035em;
}


.category-card p {
  margin: 0;

  color: var(--text-2);

  font-size: 12px;
  line-height: 1.55;
}


.category-card--accent p {
  color: rgba(255,255,255,.75);
}


.category-card__footer {
  display: flex;
  justify-content: space-between;

  gap: 10px;

  margin-top: 25px;
  padding-top: 17px;

  border-top: 1px solid var(--border);

  color: var(--text-3);

  font-size: 10px;
  font-weight: 600;
}


.category-card--accent .category-card__footer {
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.75);
}


/* =========================================================
   LATEST ARTICLES
========================================================= */

.latest {
  background: var(--surface);
}


.section-head--latest {
  margin-bottom: 32px;
}


.article-list {
  border-top: 1px solid var(--border);
}


.article-row {
  display: grid;

  grid-template-columns:
    60px
    minmax(0, 1fr)
    100px
    35px;

  align-items: center;

  gap: 25px;

  min-height: 125px;

  border-bottom: 1px solid var(--border);

  transition:
    padding var(--transition),
    background var(--transition);
}


.article-row:hover {
  padding-inline: 14px;

  background: var(--bg);
}


.article-row__index {
  color: var(--text-3);

  font-size: 11px;
  font-weight: 800;
}


.article-row__category {
  margin-bottom: 8px;

  color: var(--red);

  font-size: 9px;
  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: .09em;
}


.article-row h3 {
  margin: 0;

  font-size: 18px;
  line-height: 1.35;

  letter-spacing: -.025em;
}


.article-row h3 a:hover {
  color: var(--red);
}


.article-row time {
  color: var(--text-3);

  font-size: 11px;
}


.article-row__arrow {
  font-size: 21px;

  transition:
    color var(--transition),
    transform var(--transition);
}


.article-row:hover .article-row__arrow {
  color: var(--red);

  transform: translate(3px, -3px);
}


/* =========================================================
   FEATURE BOX
========================================================= */

.feature-section {
  padding-top: 30px;

  background: var(--surface);
}


.feature-box {
  position: relative;

  min-height: 430px;

  display: grid;

  grid-template-columns:
    1.2fr
    .8fr;

  overflow: hidden;

  border-radius: var(--radius-xl);

  background: var(--red);

  color: white;
}


.feature-box__content {
  position: relative;
  z-index: 2;

  padding: 65px;
}


.feature-box .section-kicker {
  color: rgba(255,255,255,.7);
}


.feature-box h2 {
  max-width: 580px;

  margin: 0 0 24px;

  font-size: clamp(42px, 5vw, 67px);

  line-height: .98;

  letter-spacing: -.06em;
}


.feature-box h2 span {
  display: block;

  color: rgba(255,255,255,.5);
}


.feature-box p {
  max-width: 450px;

  margin: 0 0 35px;

  color: rgba(255,255,255,.78);

  font-size: 15px;
  line-height: 1.65;
}


.button {
  min-height: 48px;

  display: inline-flex;
  align-items: center;

  gap: 20px;

  padding: 0 18px;

  border-radius: 10px;

  font-size: 12px;
  font-weight: 800;
}


.button--light {
  background: white;
  color: var(--black);
}


.button--light span {
  font-size: 17px;
}


.button--light:hover {
  background: var(--black);
  color: white;
}


/* FEATURE VISUAL */

.feature-box__visual {
  position: relative;

  overflow: hidden;
}


.feature-box__visual::before {
  content: "";

  position: absolute;

  width: 360px;
  height: 360px;

  right: 40px;
  top: 30px;

  border: 1px solid rgba(255,255,255,.3);

  transform: rotate(45deg);
}


.feature-box__visual::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  right: 110px;
  top: 100px;

  border: 1px solid rgba(255,255,255,.25);

  transform: rotate(45deg);
}


.feature-box__number {
  position: absolute;

  right: 120px;
  top: 75px;

  font-size: 270px;

  line-height: 1;

  font-weight: 900;

  color: rgba(0,0,0,.12);

  transform: rotate(12deg);
}


.feature-box__number-text {
  position: absolute;

  z-index: 3;

  right: 80px;
  bottom: 65px;

  display: flex;
  flex-direction: column;

  font-size: 40px;
  font-weight: 900;
}


.feature-box__number-text small {
  margin-top: 2px;

  color: rgba(255,255,255,.6);

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: .12em;
}


.pixel {
  position: absolute;

  width: 45px;
  height: 45px;

  background: rgba(255,255,255,.13);

  transform: rotate(45deg);
}


.pixel--one {
  right: 45px;
  top: 45px;
}


.pixel--two {
  right: 270px;
  bottom: 40px;

  width: 24px;
  height: 24px;
}


.pixel--three {
  right: 310px;
  top: 90px;

  width: 16px;
  height: 16px;
}


/* =========================================================
   QUICK LINKS
========================================================= */

.quick-links {
  padding-top: 30px;

  background: var(--surface);
}


.quick-links__grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 14px;
}


.quick-link {
  display: grid;

  grid-template-columns: 52px 1fr auto;

  align-items: center;

  gap: 18px;

  padding: 22px 24px;

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  background: var(--bg);

  transition:
    border-color var(--transition),
    transform var(--transition);
}


.quick-link:hover {
  border-color: var(--red);

  transform: translateY(-3px);
}


.quick-link__icon {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: var(--surface);

  color: var(--red);

  font-size: 21px;
}


.quick-link strong {
  display: block;

  margin-bottom: 5px;

  font-size: 14px;
}


.quick-link span {
  color: var(--text-3);

  font-size: 11px;
}


.quick-link b {
  color: var(--text-3);

  font-size: 20px;

  transition:
    color var(--transition),
    transform var(--transition);
}


.quick-link:hover b {
  color: var(--red);

  transform: translateX(3px);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
  padding: 75px 0 25px;

  background: var(--black);

  color: white;
}


.footer__main {
  display: grid;

  grid-template-columns:
    1.7fr
    1fr
    1fr
    .8fr;

  gap: 50px;

  padding-bottom: 70px;
}


.brand--footer .brand__logo {
  background: var(--red);
}


.footer__brand p {
  max-width: 280px;

  margin: 22px 0 0;

  color: #777;

  font-size: 13px;
  line-height: 1.7;
}


.footer__column {
  display: flex;
  flex-direction: column;

  gap: 11px;
}


.footer__column h4 {
  margin: 0 0 13px;

  color: white;

  font-size: 12px;
}


.footer__column a {
  color: #777;

  font-size: 12px;
  line-height: 1.4;

  transition: color var(--transition);
}


.footer__column a:hover {
  color: white;
}


.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding-top: 24px;

  border-top: 1px solid #2e2e2e;

  color: #5e5e5e;

  font-size: 10px;
}


/* =========================================================
   SEARCH MODAL
========================================================= */

.search-modal {
  position: fixed;

  inset: 0;

  z-index: 200;

  display: none;

  align-items: flex-start;
  justify-content: center;

  padding-top: 15vh;
}


.search-modal.is-open {
  display: flex;
}


.search-modal__overlay {
  position: absolute;

  inset: 0;

  background: rgba(0,0,0,.62);

  backdrop-filter: blur(7px);
}


.search-modal__window {
  position: relative;
  z-index: 2;

  width: min(
    calc(100% - 32px),
    680px
  );

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 18px;

  background: white;

  box-shadow:
    0 40px 100px rgba(0,0,0,.3);
}


.search-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 20px;

  border-bottom: 1px solid var(--border);

  color: var(--text-2);

  font-size: 12px;
  font-weight: 700;
}


.search-modal__header button {
  padding: 5px 8px;

  border: 1px solid var(--border);

  border-radius: 5px;

  background: var(--bg);

  color: var(--text-3);

  font-size: 9px;
}


.search-modal__input {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 25px;
}


.search-modal__input svg {
  color: var(--red);
}


.search-modal__input input {
  width: 100%;

  border: 0;
  outline: 0;

  font-size: 20px;
}


.search-modal__hint {
  padding: 0 25px 25px;

  color: var(--text-3);

  font-size: 11px;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1050px) {

  .container {
    width: min(
      calc(100% - 40px),
      var(--container)
    );
  }


  .desktop-nav {
    gap: 18px;
  }


  .hero__inner {
    grid-template-columns: 1fr 280px;

    gap: 40px;
  }


  .hero__visual {
    width: 280px;
    height: 280px;
  }


  .roblox-cube {
    transform: scale(.8) rotate(-12deg);
  }


  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .footer__main {
    grid-template-columns:
      1.5fr
      1fr
      1fr;
  }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 720px) {

  .container {
    width: calc(100% - 28px);
  }


  .header__inner {
    min-height: 68px;
  }


  .desktop-nav,
  .header-search {
    display: none;
  }


  .header__actions {
    margin-left: auto;
  }


  .mobile-toggle,
  .mobile-search {
    display: grid;
  }


  .hero {
    min-height: auto;

    padding:
      75px 0
      90px;
  }


  .hero__inner {
    display: block;
  }


  .hero__title {
    font-size:
      clamp(50px, 15vw, 75px);
  }


  .hero__description {
    font-size: 15px;
  }


  .hero__visual {
    display: none;
  }


  .hero__links {
    line-height: 1.7;
  }


  .section {
    padding: 75px 0;
  }


  .section-head {
    display: block;

    margin-bottom: 30px;
  }


  .section-description {
    margin-top: 15px;
  }


  .section-title {
    font-size: 35px;
  }


  .category-grid {
    grid-template-columns: 1fr;
  }


  .category-card {
    min-height: 330px;
  }


  .article-row {
    grid-template-columns:
      35px
      minmax(0, 1fr)
      25px;

    gap: 10px;

    min-height: 120px;
  }


  .article-row time {
    display: none;
  }


  .article-row h3 {
    font-size: 16px;
  }


  .article-row__category {
    max-width: 200px;

    line-height: 1.4;
  }


  .article-row:hover {
    padding-inline: 5px;
  }


  .feature-box {
    display: block;

    min-height: auto;
  }


  .feature-box__content {
    padding: 45px 30px 50px;
  }


  .feature-box h2 {
    font-size: 48px;
  }


  .feature-box__visual {
    height: 220px;
  }


  .feature-box__number {
    top: -40px;
    right: 60px;

    font-size: 230px;
  }


  .feature-box__number-text {
    right: 30px;
    bottom: 30px;
  }


  .quick-links__grid {
    grid-template-columns: 1fr;
  }


  .footer {
    padding-top: 60px;
  }


  .footer__main {
    grid-template-columns: 1fr;

    gap: 40px;

    padding-bottom: 45px;
  }


  .footer__bottom {
    align-items: flex-start;

    flex-direction: column;
  }

}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

  .search-form {
    display: block;
  }


  .search-form__input {
    width: 100%;
  }


  .search-form > button {
    width: 100%;

    min-height: 54px;

    margin-top: 8px;
  }


  .category-card {
    padding: 23px;
  }


  .category-card h3 {
    font-size: 20px;
  }


  .article-row__index {
    font-size: 9px;
  }


  .feature-box h2 {
    font-size: 42px;
  }


  .quick-link {
    grid-template-columns:
      45px
      1fr
      20px;

    padding: 17px;
  }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
  outline: 3px solid rgba(230,55,55,.4);
  outline-offset: 3px;
}


::selection {
  background: var(--red);
  color: white;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}



/* =========================================================
   CMS EXTENSIONS & COMPATIBILITY STYLES
   (Breadcrumbs, Article view, Pagination, Search Modal list,
    Favorites/History list, Code copy, TOC, Cookies)
========================================================= */

/* BREADCRUMBS */
.breadcrumbs-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 12px;
}
.breadcrumbs-bar ol.BreadcrumbList {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-2);
}
.breadcrumbs-bar li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs-bar li:not(:last-child)::after {
  content: "›";
  color: var(--text-3);
  font-weight: 700;
}
.breadcrumbs-bar a {
  color: var(--text-2);
  transition: color var(--transition);
}
.breadcrumbs-bar a:hover {
  color: var(--red);
}
.breadcrumbs-bar li:last-child {
  color: var(--text);
  font-weight: 600;
}

/* PAGE HEADER (FOR SECTION & ARTICLE PAGES) */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 45px;
}
.page-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.05em;
}
.page-meta {
  color: var(--text-2);
  font-size: 14px;
}

/* ARTICLE CONTAINER & VIEW */
.article-container {
  max-width: 820px;
}
.article-view {
  background: var(--surface);
  padding: 50px 0 80px;
  border-bottom: 1px solid var(--border);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
}
.article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.article-meta__item svg {
  width: 16px;
  height: 16px;
  color: var(--red);
}
.article-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.article-info img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.article-info__name {
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
}
.article-info__bio {
  color: var(--text-3);
  font-size: 11px;
}

/* ARTICLE CONTENT / TYPOGRAPHY */
.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: #222222;
}
.article-body p {
  margin: 0 0 1.5em;
}
.article-body h2 {
  margin: 2em 0 0.8em;
  font-size: 30px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.04em;
  color: var(--black);
}
.article-body h3 {
  margin: 1.8em 0 0.6em;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.03em;
  color: var(--black);
}
.article-body h4 {
  margin: 1.5em 0 0.5em;
  font-size: 18px;
  font-weight: 700;
}
.article-body a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color var(--transition);
}
.article-body a:hover {
  color: var(--red-dark);
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 24px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.article-body ul, .article-body ol {
  margin: 0 0 1.5em;
  padding-left: 28px;
}
.article-body li {
  margin-bottom: 0.5em;
}
.article-body blockquote {
  margin: 2em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--red);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}
.article-body .table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
}
.article-body .table-wrapper table {
  margin: 0;
  min-width: 500px;
}
.article-body th, .article-body td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-body th {
  background: var(--surface-2);
  font-weight: 700;
}
.article-body pre {
  background: #181818;
  color: #efefef;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  margin: 2em 0;
  -webkit-overflow-scrolling: touch;
}
.article-body pre code {
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}
.article-body code:not(pre code) {
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  color: var(--red-dark);
  word-break: break-word;
  overflow-wrap: break-word;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* SIMILAR SECTION */
.section--similar {
  background: var(--bg);
}

/* SECTION LISTING */
.section--listing {
  background: var(--surface);
  padding-top: 40px;
}

/* PAGINATION */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
}
.pagination__link {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.pagination__link:hover {
  border-color: var(--red);
  color: var(--red);
}
.pagination__current {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.pagination__current:hover {
  color: white;
}
.pagination__gap {
  padding: 0 4px;
  color: var(--text-3);
}

/* SEARCH MODAL RESULTS & HINT */
.search-modal__results {
  max-height: 50vh;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.search-modal__results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 25px;
  border-bottom: 1px solid var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.search-modal__results a:hover {
  background: var(--bg);
  color: var(--red);
}
.search-modal__results a small {
  color: var(--text-3);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  margin-left: 12px;
}
.search-modal__empty {
  padding: 24px 25px;
  color: var(--text-3);
  font-size: 14px;
}

/* GENERIC MODALS (FAVORITES & HISTORY) */
.s-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(7px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.s-overlay.open {
  display: flex;
}
.s-modal {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 32px), 680px);
  max-height: 70vh;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}
.s-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 800;
}
.s-modal__clear {
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  margin-right: 12px;
}
.s-modal__clear:hover {
  color: var(--red);
}
.s-modal__close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
}
.s-modal__close:hover {
  color: var(--black);
}
.s-modal__list {
  overflow-y: auto;
}
.s-modal__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.s-modal__list a:hover {
  background: var(--bg);
  color: var(--red);
}
.s-modal__list a small {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 400;
}
.s-modal__list button {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}
.s-modal__list button:hover {
  color: var(--red);
}
.s-modal__empty {
  padding: 30px 24px;
  color: var(--text-3);
  font-size: 14px;
  text-align: center;
}

/* LIKE BUTTON ON ARTICLE PAGE */
.like-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.like-button:hover {
  border-color: var(--red);
  color: var(--red);
}
.like-button.liked {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}
.like-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.like-button.liked svg {
  fill: var(--red);
  stroke: var(--red);
}

/* CODE COPY BUTTON */
.code-container {
  position: relative;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* TOC ACCORDION */
.toc-wrapper {
  position: relative;
  max-height: 180px;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin: 1.5em 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.toc-wrapper.expanded {
  max-height: 4000px;
}
.toc-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(rgba(238, 238, 236, 0), var(--surface-2));
  pointer-events: none;
}
.toc-wrapper.expanded .toc-overlay {
  opacity: 0;
}
.toc-toggle {
  display: inline-block;
  margin: 0 0 1.5em;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: border-color var(--transition), color var(--transition);
}
.toc-toggle:hover {
  border-color: var(--red);
  color: var(--red);
}

/* COOKIE NOTICE */
.cookie-note {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 580px;
  margin: 0 auto;
  background: var(--black);
  color: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  z-index: 9999;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.cookie-note a {
  color: #f87171;
  text-decoration: underline;
}
.cookie-note button {
  margin-left: auto;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-note button:hover {
  background: var(--red-dark);
}

