:root {
  color-scheme: dark;
  --bg: #0f1113;
  --bg-soft: #171b20;
  --panel: #1d2329;
  --panel-soft: #252d35;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ecf1f7;
  --muted: #b1bcc9;
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.12);
  --accent-2: #ffd074;
  --success: #6fd6a5;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --max-width: 1180px;
  --header-height: 79px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.25rem);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-height);
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 106, 61, 0.12),
      transparent 26%
    ),
    radial-gradient(
      circle at left center,
      rgba(255, 208, 116, 0.08),
      transparent 24%
    ),
    linear-gradient(180deg, #101215 0%, #0f1113 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.7;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p,
li,
td,
th {
  overflow-wrap: anywhere;
}

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

p,
li,
td,
th,
label,
input,
textarea,
select,
button {
  font-size: 1rem;
}

select {
  background-color: #1f2328;
  color: var(--text);
  color-scheme: dark;
}

select option,
select optgroup {
  background-color: #1d2329 !important;
  color: var(--text) !important;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 300;
  isolation: isolate;
  background: rgba(15, 17, 19, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 2rem;
  min-width: 0;
}

.site-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-brand span {
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 301;
}

.site-nav a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.site-nav a[href="https://gympedia.in/app/"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255, 208, 116, 0.35);
  box-shadow: 0 14px 30px rgba(255, 106, 61, 0.2);
  color: #111315;
  font-weight: 700;
  text-align: center;
}

.site-nav a[href="https://gympedia.in/app/"]:hover,
.site-nav a[href="https://gympedia.in/app/"]:focus-visible {
  background: linear-gradient(135deg, #ff7a52, #ffe09b);
  box-shadow: 0 18px 34px rgba(255, 106, 61, 0.28);
  color: #0f1113;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero--article {
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0.2rem 0 1rem;
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-meta span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--accent-2);
}

.review-banner,
.sidebar-card,
.info-card,
.exercise-card,
.timeline-card,
.dual-card,
.tool-card,
.author-card,
.video-card,
.profile-strip {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
}

.tool-card {
  align-self: start;
}

.review-banner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  margin-top: 1.4rem;
  border-radius: var(--radius-sm);
}

.review-banner strong {
  color: var(--accent-2);
}

.content-shell {
  padding: 1rem 0 4.5rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.content-main--wide {
  display: grid;
  gap: 1.6rem;
  min-width: 0;
}

.content-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.sidebar-card,
.tool-card,
.info-card,
.timeline-card,
.dual-card {
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.sidebar-card h2,
.info-card h3,
.tool-card h3,
.timeline-card h3,
.dual-card h3,
.exercise-card h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.7rem;
}

.content-main {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.content-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}

.content-section h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0.3rem 0 0.8rem;
}

.content-section h4 {
  margin: 0.4rem 0 0.7rem;
  font-size: 1rem;
}

.section-heading {
  margin-bottom: 0.8rem;
}

.section-lead,
.muted-note {
  color: var(--muted);
}

.card-grid,
.timeline-grid,
.dual-card-grid,
.tool-grid,
.video-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline-grid,
.dual-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tool-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: start;
}

.video-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 1rem;
}

.info-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.text-link {
  color: var(--accent-2);
}

.text-link:hover {
  color: var(--accent);
}

.button,
.button--ghost,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.88rem 1.25rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.button,
button {
  background: linear-gradient(135deg, var(--accent), #ff8d3f);
  color: #15181c;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.stack-grid {
  display: grid;
  gap: 1.2rem;
}

.exercise-card {
  border-radius: var(--radius);
  padding: 1.4rem;
}

.exercise-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.exercise-columns {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.rep-chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pill--soft {
  background: rgba(255, 208, 116, 0.12);
}

.exercise-video {
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050607;
}

.video-card {
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.video-card figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.author-card,
.profile-strip {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.3rem;
  padding: 1.4rem;
  border-radius: var(--radius);
}

.author-card img,
.profile-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
}

.check-list,
.footer-links,
.number-list {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
}

.check-list li,
.number-list li,
.footer-links li {
  margin-bottom: 0.45rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 100%;
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.premium-table th,
.premium-table td {
  text-align: left;
  padding: 0.95rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.premium-table th {
  color: var(--accent-2);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tool-form,
.contact-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.tool-form label,
.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.tool-form input,
.tool-form select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.88rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
}

.tool-form select,
.contact-form select {
  color-scheme: dark;
  appearance: auto;
  background-color: #1f2328;
}

.tool-form select option,
.contact-form select option,
.tool-form select optgroup,
.contact-form select optgroup {
  background: #1d2329;
  color: var(--text);
}

.tool-result {
  margin-top: 1rem;
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.tool-result strong {
  color: var(--accent-2);
}

.reference-list {
  padding-left: 1.2rem;
  margin: 0;
}

.reference-list li {
  margin-bottom: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
}

.site-footer__bottom {
  margin-top: 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.site-header__inner > *,
.hero-grid > *,
.content-layout > *,
.footer-grid > * {
  min-width: 0;
}

code {
  font-family: "Space Grotesk", sans-serif;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.15rem 0.45rem;
}

@media (max-width: 1100px) {
  .content-layout,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }

  .hero-media {
    order: -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(22, 27, 32, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
  }

  .exercise-columns,
  .author-card,
  .profile-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .timeline-grid,
  .dual-card-grid,
  .tool-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .content-section h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .hero h1 {
    line-height: 1.02;
  }

  .content-layout {
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 71px;
  }

  .container {
    width: min(100% - 1rem, var(--max-width));
  }

  .site-header__inner {
    min-height: 70px;
    gap: 0.75rem;
  }

  .site-brand {
    gap: 0.6rem;
    font-size: 2rem;
    max-width: calc(100% - 110px);
  }

  .site-brand img {
    width: 40px;
    height: 40px;
  }

  .site-nav {
    top: 70px;
    left: 0.5rem;
    right: 0.5rem;
    border-radius: 18px;
  }

  .site-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero,
  .hero--article {
    padding: 2.6rem 0 1.8rem;
  }

  .content-section,
  .exercise-card,
  .tool-card,
  .info-card,
  .author-card,
  .profile-strip,
  .sidebar-card,
  .timeline-card,
  .dual-card,
  .video-card,
  .review-banner {
    padding: 1.1rem;
  }

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

  .hero-meta span {
    width: 100%;
    min-width: 0;
    border-radius: 16px;
  }

  .hero-actions .button,
  .hero-actions .button--ghost,
  .tool-form button,
  .contact-form button {
    width: 100%;
  }

  .hero-lead,
  .section-lead {
    font-size: 0.98rem;
  }

  .content-shell {
    padding: 0.8rem 0 3rem;
  }

  .content-section {
    border-radius: 18px;
    padding: 1rem;
  }

  .section-heading {
    margin-bottom: 0.65rem;
  }

  .content-layout,
  .content-main,
  .content-main--wide,
  .content-sidebar {
    width: 100%;
  }

  .exercise-card__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .rep-chip,
  .pill {
    width: fit-content;
    max-width: 100%;
  }

  .exercise-video {
    aspect-ratio: 4 / 3;
  }

  .video-card figcaption {
    font-size: 0.9rem;
  }

  .premium-table {
    min-width: 520px;
  }

  .premium-table th,
  .premium-table td {
    padding: 0.75rem;
    font-size: 0.94rem;
  }

  .tool-form,
  .contact-form {
    gap: 0.8rem;
  }

  .tool-form input,
  .tool-form select,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 0.82rem 0.9rem;
  }

  .hero-media img {
    min-height: 240px;
    border-radius: 20px;
  }

  .info-card img {
    height: 170px;
    border-radius: 16px;
  }

  .site-footer {
    padding: 2.4rem 0 1.5rem;
  }

  .footer-grid {
    gap: 1rem;
  }

  .site-footer__bottom {
    margin-top: 1.2rem;
    padding-top: 1rem;
  }
}

@media (max-width: 400px) {
  .site-brand span {
    display: none;
  }

  .site-brand {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 12vw, 2.6rem);
    line-height: 1.03;
  }

  .content-section h2 {
    font-size: clamp(1.5rem, 8vw, 1.9rem);
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .nav-toggle,
  .button,
  .button--ghost,
  button {
    padding: 0.8rem 1rem;
  }

  .premium-table {
    min-width: 460px;
  }
}
