@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --tx-bg: #0b1220;
  --tx-surface: #151f33;
  --tx-surface-2: #1c2740;
  --tx-text: #f1f5f9;
  --tx-muted: #94a3b8;
  --tx-border: rgba(255, 255, 255, 0.1);
  --tx-accent: #f97316;
  --tx-accent-2: #fb923c;
  --tx-accent-soft: rgba(249, 115, 22, 0.16);
  --tx-dark: #0b1220;
  --tx-dark-2: #111827;
  --tx-radius: 16px;
  --tx-radius-sm: 10px;
  --tx-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --tx-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.45);
  --tx-font: 'DM Sans', system-ui, sans-serif;
  --tx-display: 'Space Grotesk', system-ui, sans-serif;
  --tx-max: 1280px;
}

* { box-sizing: border-box; }

body.threeaxis-modern {
  margin: 0;
  font-family: var(--tx-font);
  color: var(--tx-text);
  background: var(--tx-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

body.threeaxis-modern a { color: inherit; }

.threeaxis-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.threeaxis-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tx-border);
}

.threeaxis-header__inner {
  max-width: var(--tx-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.threeaxis-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--tx-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.threeaxis-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tx-accent), #fb923c);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.threeaxis-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.threeaxis-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.threeaxis-nav a:hover,
.threeaxis-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.threeaxis-nav__cta {
  background: var(--tx-accent) !important;
  color: #fff !important;
}

.threeaxis-nav__cta:hover {
  background: var(--tx-accent-2) !important;
}

.threeaxis-menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Main */
.threeaxis-main {
  flex: 1;
  background: var(--tx-bg);
}

.threeaxis-container {
  max-width: var(--tx-max);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* Hero */
.threeaxis-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.25), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.18), transparent 30%),
    linear-gradient(180deg, var(--tx-dark) 0%, var(--tx-dark-2) 100%);
  color: #fff;
  padding: 72px 24px 88px;
}

.threeaxis-hero__inner {
  max-width: var(--tx-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.threeaxis-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.threeaxis-hero h1 {
  font-family: var(--tx-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.threeaxis-hero p {
  margin: 0 0 28px;
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 56ch;
}

.threeaxis-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.threeaxis-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.threeaxis-btn:hover { transform: translateY(-1px); }

.threeaxis-btn--primary {
  background: var(--tx-accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
}

.threeaxis-btn--primary:hover { background: var(--tx-accent-2); }

.threeaxis-btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
}

.threeaxis-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.threeaxis-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--tx-radius);
  padding: 20px;
}

.threeaxis-stat strong {
  display: block;
  font-family: var(--tx-display);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 6px;
}

.threeaxis-stat span {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* Section headers */
.threeaxis-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.threeaxis-section-head h2 {
  font-family: var(--tx-display);
  font-size: 1.8rem;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.threeaxis-section-head p {
  margin: 0;
  color: var(--tx-muted);
}

/* Filters */
.threeaxis-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.threeaxis-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  color: var(--tx-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.threeaxis-filter-chip:hover,
.threeaxis-filter-chip.is-active {
  background: var(--tx-accent-soft);
  border-color: rgba(249, 115, 22, 0.45);
  color: var(--tx-accent-2);
}

.threeaxis-search {
  width: 100%;
  max-width: 360px;
  margin-bottom: 20px;
}

.threeaxis-search input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border-radius: 12px;
  border: 1px solid var(--tx-border);
  background: var(--tx-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.106a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 14px center no-repeat;
  color: var(--tx-text);
  font: inherit;
  box-shadow: var(--tx-shadow);
}

.threeaxis-search input::placeholder {
  color: var(--tx-muted);
}

.threeaxis-search input:focus {
  outline: 2px solid rgba(249, 115, 22, 0.3);
  border-color: rgba(249, 115, 22, 0.5);
}

/* Grid */
.threeaxis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.threeaxis-card {
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  overflow: hidden;
  box-shadow: var(--tx-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.threeaxis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tx-shadow-hover);
}

.threeaxis-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.threeaxis-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--tx-surface-2);
}

.threeaxis-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.threeaxis-card:hover .threeaxis-card__image img {
  transform: scale(1.04);
}

.threeaxis-card__body { padding: 16px 18px 18px; }

.threeaxis-card__title {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
}

.threeaxis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.threeaxis-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--tx-surface-2);
  color: var(--tx-muted);
}

.threeaxis-tag--accent {
  background: var(--tx-accent-soft);
  color: #fdba74;
}

/* Single design */
.threeaxis-single-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.threeaxis-gallery {
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 16px;
  box-shadow: var(--tx-shadow);
}

.threeaxis-gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.threeaxis-panel {
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 24px;
  box-shadow: var(--tx-shadow);
}

.threeaxis-panel h1 {
  font-family: var(--tx-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.threeaxis-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--tx-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.threeaxis-breadcrumb a {
  color: var(--tx-muted);
  text-decoration: none;
}

.threeaxis-breadcrumb a:hover { color: var(--tx-accent); }

.threeaxis-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.threeaxis-meta-pill {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--tx-surface-2);
  font-size: 0.88rem;
}

.threeaxis-download-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.14), var(--tx-surface-2));
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.threeaxis-download-box .threeaxis-btn--primary {
  width: 100%;
  margin-top: 8px;
  font-size: 1rem;
}

.threeaxis-file-list {
  margin-top: 16px;
}

.threeaxis-file-list summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 10px;
}

.threeaxis-file-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--tx-muted);
}

.threeaxis-entry-content {
  color: var(--tx-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-line;
}

.threeaxis-entry-content p { margin: 0 0 12px; }

/* Archive header */
.threeaxis-page-head {
  margin-bottom: 28px;
}

.threeaxis-page-head h1 {
  font-family: var(--tx-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.threeaxis-page-head p {
  margin: 0;
  color: var(--tx-muted);
  max-width: 60ch;
}

/* Pagination */
.threeaxis-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.threeaxis-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--tx-surface);
  border: 1px solid var(--tx-border);
  text-decoration: none;
  color: var(--tx-text);
  font-weight: 500;
}

.threeaxis-pagination .page-numbers.current,
.threeaxis-pagination .page-numbers:hover {
  background: var(--tx-accent);
  border-color: var(--tx-accent);
  color: #fff;
}

/* Footer */
.threeaxis-footer {
  background: var(--tx-dark);
  color: rgba(255,255,255,0.72);
  padding: 40px 24px;
  margin-top: auto;
}

.threeaxis-footer__inner {
  max-width: var(--tx-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.threeaxis-footer strong {
  color: #fff;
  font-family: var(--tx-display);
}

.threeaxis-footer a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
}

.threeaxis-footer a:hover { color: #fff; }

/* Hide default theme clutter on our pages */
body.threeaxis-modern #header,
body.threeaxis-modern #footer,
body.threeaxis-modern .site-header,
body.threeaxis-modern .site-footer,
body.threeaxis-modern #site-header,
body.threeaxis-modern #site-footer {
  display: none !important;
}

body.threeaxis-modern #page,
body.threeaxis-modern #content,
body.threeaxis-modern .site-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  background: var(--tx-bg) !important;
}

body.threeaxis-modern,
body.threeaxis-modern #page {
  background: var(--tx-bg) !important;
}

/* Responsive */
@media (max-width: 900px) {
  .threeaxis-hero__inner,
  .threeaxis-single-layout {
    grid-template-columns: 1fr;
  }

  .threeaxis-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--tx-dark);
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

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

  .threeaxis-header__inner { position: relative; }

  .threeaxis-menu-toggle { display: inline-flex; }
}

@media (max-width: 600px) {
  .threeaxis-container { padding: 24px 16px 48px; }
  .threeaxis-hero { padding: 56px 16px 64px; }
  .threeaxis-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}