:root {
  color-scheme: light dark;
  --guide-bg: #f3f5f7;
  --guide-surface: #fbfcfd;
  --guide-surface-strong: #ffffff;
  --guide-surface-soft: #e9eef4;
  --guide-ink: #171a1f;
  --guide-text: #30363d;
  --guide-muted: #65707c;
  --guide-line: rgba(23, 26, 31, 0.12);
  --guide-line-strong: rgba(23, 26, 31, 0.2);
  --guide-accent: #4866bd;
  --guide-accent-soft: rgba(72, 102, 189, 0.12);
  --guide-shadow: 0 20px 55px rgba(36, 46, 61, 0.1);
  --guide-radius: 24px;
  --guide-radius-small: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--guide-text);
  background:
    radial-gradient(circle at 14% 0%, rgba(122, 156, 211, 0.2), transparent 34rem),
    radial-gradient(circle at 92% 15%, rgba(161, 181, 210, 0.18), transparent 28rem),
    var(--guide-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.17;
  background-image: radial-gradient(rgba(23, 26, 31, 0.22) 0.65px, transparent 0.65px);
  background-size: 14px 14px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

img {
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(72, 102, 189, 0.42);
  outline-offset: 3px;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(243, 245, 247, 0.78);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

.site-header .nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--guide-ink);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  background: var(--guide-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 24px rgba(23, 26, 31, 0.14);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 7px;
  height: 16px;
  border-radius: 99px;
  background: #f7f9fb;
}

.brand-mark::before {
  left: 8px;
  transform: rotate(-16deg);
}

.brand-mark::after {
  right: 8px;
  transform: rotate(16deg);
  opacity: 0.72;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--guide-muted);
  font-size: 0;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link::after {
  font-size: 14px;
  font-weight: 690;
}

.nav-link--generator::after {
  content: "Prompt Generator";
}

.nav-link--guides::after {
  content: "Guides";
}

.nav-link--pricing::after {
  content: "Pricing";
}

.nav-link--history::after {
  content: "History";
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--guide-ink);
  background: rgba(255, 255, 255, 0.72);
}

.auth-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.credit-pill,
.auth-button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.credit-pill {
  color: #385394;
  border: 1px solid rgba(72, 102, 189, 0.18);
  background: var(--guide-accent-soft);
}

.credit-pill[hidden],
.auth-button[hidden],
.auth-menu[hidden] {
  display: none;
}

.auth-button {
  border: 1px solid var(--guide-ink);
  color: var(--guide-surface-strong);
  background: var(--guide-ink);
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.auth-button:hover {
  opacity: 0.88;
}

.auth-button:active {
  transform: scale(0.98);
}

.user-menu {
  position: relative;
  display: none;
}

.user-menu.is-visible {
  display: block;
}

.avatar-button {
  width: 42px;
  height: 42px;
  padding: 2px;
  display: grid;
  place-items: center;
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  background: var(--guide-surface-strong);
  cursor: pointer;
}

.auth-avatar {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 999px;
  object-fit: cover;
  background: var(--guide-surface-soft);
}

.auth-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 218px;
  padding: 8px;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius-small);
  background: var(--guide-surface-strong);
  box-shadow: var(--guide-shadow);
}

.auth-menu-user {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--guide-line);
  color: var(--guide-muted);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.auth-menu-user strong {
  display: block;
  margin-bottom: 2px;
  color: var(--guide-ink);
  font-size: 13px;
}

.auth-menu-item {
  width: 100%;
  min-height: 40px;
  margin-top: 7px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--guide-ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.auth-menu-item:hover {
  background: var(--guide-accent-soft);
}

.guide-home-hero {
  min-height: min(690px, calc(100dvh - 72px));
  padding: clamp(72px, 10vw, 128px) 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: end;
}

.guide-home-hero h1,
.article-hero h1 {
  margin: 0;
  color: var(--guide-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: clamp(50px, 7vw, 84px);
  font-weight: 760;
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.guide-home-hero h1 {
  max-width: 800px;
}

.guide-home-hero p {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--guide-muted);
  font-size: 19px;
  line-height: 1.65;
}

.guide-home-note {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--guide-radius);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--guide-shadow);
}

.guide-home-note strong {
  display: block;
  color: var(--guide-accent);
  font-size: 14px;
}

.guide-home-note p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  color: var(--guide-ink);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--guide-muted);
  font-size: 17px;
}

.featured-guides {
  padding: 40px 0 104px;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
}

.featured-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--guide-radius);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--guide-shadow);
  transition: transform 180ms ease;
}

.featured-card:hover {
  transform: translateY(-3px);
}

.featured-card:active {
  transform: scale(0.99);
}

.featured-card:first-child {
  min-height: 610px;
}

.featured-card:last-child {
  min-height: 540px;
  margin-top: 70px;
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
}

.featured-card-copy {
  padding: 28px;
}

.guide-category {
  color: var(--guide-accent);
  font-size: 13px;
  font-weight: 780;
}

.featured-card h3 {
  max-width: 560px;
  margin: 12px 0 12px;
  color: var(--guide-ink);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.featured-card p {
  max-width: 520px;
  margin: 0;
  color: var(--guide-muted);
  font-size: 16px;
}

.featured-card-link,
.library-link strong {
  display: inline-block;
  margin-top: 22px;
  color: var(--guide-ink);
  font-size: 14px;
  font-weight: 760;
}

.guide-library {
  padding: 96px 0 112px;
  border-top: 1px solid var(--guide-line);
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 104px);
  align-items: start;
}

.library-layout > .section-heading {
  position: sticky;
  top: 120px;
}

.library-groups {
  display: grid;
  gap: 56px;
}

.library-group h3 {
  margin: 0 0 16px;
  color: var(--guide-ink);
  font-size: 18px;
}

.library-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.library-link {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius-small);
  background: rgba(255, 255, 255, 0.52);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.library-link:hover {
  transform: translateY(-2px);
  border-color: var(--guide-line-strong);
  background: var(--guide-surface-strong);
}

.library-link:active {
  transform: scale(0.99);
}

.library-link h4 {
  margin: 0;
  color: var(--guide-ink);
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.library-link p {
  margin: 12px 0 0;
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.55;
}

.tool-callout {
  margin: 0 auto 112px;
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-radius: var(--guide-radius);
  color: #f5f7fa;
  background: #1a1e24;
  box-shadow: var(--guide-shadow);
}

.tool-callout h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.tool-callout p {
  max-width: 580px;
  margin: 14px 0 0;
  color: #bac3ce;
}

.primary-action {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #171a1f;
  background: #f5f7fa;
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
  transition: transform 160ms ease, opacity 160ms ease;
}

.primary-action:hover {
  opacity: 0.9;
}

.primary-action:active {
  transform: scale(0.98);
}

.breadcrumb {
  padding-top: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--guide-muted);
  font-size: 13px;
}

.breadcrumb a:hover {
  color: var(--guide-ink);
}

.article-hero {
  min-height: min(560px, calc(100dvh - 106px));
  padding: clamp(58px, 8vw, 92px) 0 68px;
  display: grid;
  align-content: center;
}

.article-hero h1 {
  max-width: 960px;
  font-size: clamp(46px, 6.7vw, 78px);
}

.article-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--guide-muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
}

.article-figure {
  margin: 0 auto 90px;
}

.article-figure img {
  width: 100%;
  max-height: 680px;
  display: block;
  object-fit: cover;
  border-radius: var(--guide-radius);
  box-shadow: var(--guide-shadow);
}

.article-figure figcaption {
  max-width: 760px;
  margin-top: 15px;
  color: var(--guide-muted);
  font-size: 13px;
  line-height: 1.55;
}

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  justify-content: center;
  gap: clamp(44px, 8vw, 100px);
  padding-bottom: 110px;
}

.article-toc {
  position: sticky;
  top: 112px;
  align-self: start;
  padding-top: 4px;
}

.article-toc strong {
  display: block;
  margin-bottom: 14px;
  color: var(--guide-ink);
  font-size: 13px;
}

.article-toc a {
  display: block;
  margin: 10px 0;
  color: var(--guide-muted);
  font-size: 13px;
  line-height: 1.45;
}

.article-toc a:hover {
  color: var(--guide-accent);
}

.article-content {
  min-width: 0;
}

.article-content section {
  scroll-margin-top: 110px;
}

.article-content section + section {
  margin-top: 86px;
}

.article-content h2 {
  margin: 0 0 20px;
  color: var(--guide-ink);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.article-content h3 {
  margin: 32px 0 10px;
  color: var(--guide-ink);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.article-content p,
.article-content li {
  color: var(--guide-text);
  font-size: 17px;
  line-height: 1.78;
}

.article-content p {
  margin: 0 0 20px;
}

.article-content ul,
.article-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.article-content li + li {
  margin-top: 12px;
}

.article-content strong {
  color: var(--guide-ink);
}

.principle {
  margin: 32px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--guide-accent);
  border-radius: 0 var(--guide-radius-small) var(--guide-radius-small) 0;
  background: var(--guide-accent-soft);
}

.principle p:last-child {
  margin-bottom: 0;
}

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.anatomy-item {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius-small);
  background: rgba(255, 255, 255, 0.56);
}

.anatomy-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.anatomy-item p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.65;
}

.prompt-block {
  margin: 30px 0;
  padding: 26px;
  overflow-x: auto;
  border-radius: var(--guide-radius-small);
  color: #edf1f5;
  background: #1a1e24;
  box-shadow: var(--guide-shadow);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.75;
}

.prompt-block strong {
  color: #a9bce8;
}

.sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.sequence > div {
  padding: 24px;
  border-radius: var(--guide-radius-small);
  background: var(--guide-surface-soft);
}

.sequence h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.sequence p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.65;
}

.style-formula {
  margin: 26px 0 32px;
  padding: 22px 24px;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius-small);
  color: var(--guide-ink);
  background: var(--guide-surface-strong);
  font-size: 17px;
  font-weight: 720;
}

.style-families {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.style-family {
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius-small);
  background: rgba(255, 255, 255, 0.56);
}

.style-family summary {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--guide-ink);
  font-size: 18px;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

.style-family summary::-webkit-details-marker {
  display: none;
}

.style-family summary::after {
  content: "+";
  color: var(--guide-accent);
  font-size: 24px;
  font-weight: 500;
}

.style-family[open] summary::after {
  content: "-";
}

.style-family-content {
  padding: 0 22px 24px;
}

.style-family-content p,
.style-family-content li {
  font-size: 15px;
}

.style-family-content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: var(--guide-radius-small);
}

.gallery-grid figcaption {
  margin-top: 10px;
  color: var(--guide-muted);
  font-size: 13px;
}

.article-related {
  padding: 80px 0 112px;
  border-top: 1px solid var(--guide-line);
}

.article-related h2 {
  margin: 0 0 26px;
  color: var(--guide-ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.article-related a {
  min-height: 180px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius);
  background: rgba(255, 255, 255, 0.56);
  transition: transform 160ms ease, background 160ms ease;
}

.article-related a:hover {
  transform: translateY(-2px);
  background: var(--guide-surface-strong);
}

.article-related a:active {
  transform: scale(0.99);
}

.article-related strong {
  max-width: 390px;
  color: var(--guide-ink);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.article-related span {
  margin-top: 28px;
  color: var(--guide-muted);
  font-size: 14px;
}

.site-footer {
  padding: 64px 0 76px;
  border-top: 1px solid var(--guide-line);
  background: rgba(255, 255, 255, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr 0.95fr;
  gap: 30px;
}

.footer-brand {
  margin: 0;
  color: var(--guide-ink);
  font-size: 20px;
  font-weight: 780;
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a {
  color: var(--guide-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0;
}

.footer-heading::after {
  color: var(--guide-ink);
  font-size: 14px;
  font-weight: 780;
}

.footer-heading--product::after {
  content: "Product";
}

.footer-heading--legal::after {
  content: "Legal";
}

.footer-heading--contact::after {
  content: "Contact";
}

.footer-link {
  display: block;
  margin: 8px 0;
  font-size: 0 !important;
}

.footer-link::after {
  display: block;
  color: var(--guide-muted);
  font-size: 14px;
}

.footer-link--generator::after {
  content: "Prompt Generator";
}

.footer-link--guides::after {
  content: "Guides";
}

.footer-link--pricing::after {
  content: "Pricing";
}

.footer-link--terms::after {
  content: "Terms of Service";
}

.footer-link--privacy::after {
  content: "Privacy Policy";
}

.footer-grid a:hover {
  color: var(--guide-ink);
}

.mobile-bottom-nav {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --guide-bg: #111418;
    --guide-surface: #171b20;
    --guide-surface-strong: #1d2228;
    --guide-surface-soft: #222933;
    --guide-ink: #f0f3f6;
    --guide-text: #d5dbe2;
    --guide-muted: #aab3bd;
    --guide-line: rgba(235, 240, 245, 0.13);
    --guide-line-strong: rgba(235, 240, 245, 0.24);
    --guide-accent: #91a9ef;
    --guide-accent-soft: rgba(145, 169, 239, 0.14);
    --guide-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  }

  body {
    background:
      radial-gradient(circle at 14% 0%, rgba(72, 102, 189, 0.18), transparent 34rem),
      radial-gradient(circle at 92% 15%, rgba(68, 79, 96, 0.2), transparent 28rem),
      var(--guide-bg);
  }

  .site-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(17, 20, 24, 0.82);
  }

  .nav-link:hover,
  .nav-link[aria-current="page"],
  .guide-home-note,
  .featured-card,
  .library-link,
  .anatomy-item,
  .style-family,
  .article-related a {
    background: rgba(29, 34, 40, 0.88);
    border-color: var(--guide-line);
  }

  .brand-mark,
  .auth-button {
    color: #171a1f;
    background: #f0f3f6;
    border-color: #f0f3f6;
  }

  .brand-mark::before,
  .brand-mark::after {
    background: #171a1f;
  }

  .auth-button {
    color: #171a1f;
  }

  .credit-pill {
    color: #c2cff4;
  }

  .avatar-button,
  .auth-menu {
    background: var(--guide-surface-strong);
  }

  .site-footer {
    background: rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .guide-home-hero,
  .library-layout {
    grid-template-columns: 1fr;
  }

  .guide-home-hero {
    min-height: 0;
    align-items: start;
  }

  .guide-home-note {
    max-width: 560px;
  }

  .library-layout > .section-heading {
    position: static;
  }

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

  .article-toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--guide-line);
    border-radius: var(--guide-radius-small);
    background: var(--guide-surface);
  }

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

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 28px, 640px);
  }

  .site-header,
  .site-header .nav {
    min-height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 10px;
  }

  .brand-mark::before,
  .brand-mark::after {
    top: 8px;
    width: 6px;
    height: 14px;
  }

  .brand-mark::before {
    left: 7px;
  }

  .brand-mark::after {
    right: 7px;
  }

  .credit-pill {
    display: none;
  }

  .guide-home-hero {
    padding: 56px 0 60px;
  }

  .guide-home-hero h1,
  .article-hero h1 {
    font-size: clamp(43px, 13vw, 60px);
    line-height: 0.98;
  }

  .guide-home-hero p {
    font-size: 17px;
  }

  .featured-grid,
  .library-links,
  .anatomy-grid,
  .sequence,
  .style-family-content ul,
  .gallery-grid,
  .article-related-grid,
  .tool-callout {
    grid-template-columns: 1fr;
  }

  .featured-card:first-child,
  .featured-card:last-child {
    min-height: 0;
    margin-top: 0;
  }

  .featured-card img {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .featured-guides,
  .guide-library {
    padding: 64px 0 76px;
  }

  .library-groups {
    gap: 42px;
  }

  .library-link {
    min-height: 0;
  }

  .tool-callout {
    margin-bottom: 80px;
  }

  .primary-action {
    justify-self: start;
  }

  .article-hero {
    min-height: 0;
    padding: 54px 0 56px;
  }

  .article-figure {
    margin-bottom: 62px;
  }

  .article-figure img {
    min-height: 280px;
  }

  .article-layout {
    gap: 48px;
    padding-bottom: 78px;
  }

  .article-content section + section {
    margin-top: 66px;
  }

  .anatomy-item {
    min-height: 0;
  }

  .article-related {
    padding: 64px 0 86px;
  }

  .site-footer {
    padding: 48px 0 88px;
  }

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

  .mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    min-height: 58px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--guide-line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--guide-surface-strong) 90%, transparent);
    box-shadow: var(--guide-shadow);
    backdrop-filter: blur(20px);
  }

  .mobile-bottom-nav__link {
    display: grid;
    place-items: center;
    color: var(--guide-muted);
    font-size: 11px;
    font-weight: 760;
  }

  .mobile-bottom-nav__link::after {
    content: attr(data-label);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
