/*
 * New Typography
 * An asymmetric information system built from type, rules, and signal colour.
 * Numbers remain only where they communicate sequence or reference data.
 */

body.theme-new-typography {
  background: var(--bg);
  font-family: var(--sans);
}

.theme-new-typography.layout-single .site {
  width: min(var(--style-site-width), calc(100vw - 48px));
  max-width: var(--style-site-width);
}

.theme-new-typography .topbar {
  border: 0;
  background: var(--line);
  color: var(--bg);
  backdrop-filter: none;
}

.theme-new-typography .topbar-inner {
  width: min(var(--style-site-width), calc(100vw - 48px));
  margin-inline: auto;
  padding: 10px 0;
  gap: clamp(16px, 3vw, 42px);
}

.theme-new-typography .brand {
  color: var(--bg);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.theme-new-typography nav {
  color: color-mix(in srgb, var(--bg), transparent 24%);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.theme-new-typography nav a.current,
.theme-new-typography nav a:hover,
.theme-new-typography nav a:focus-visible {
  color: var(--bg);
}

.theme-new-typography .topbar .button.language-switch {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 12px;
}

.theme-new-typography .hero {
  min-height: min(780px, calc(100vh - 44px));
  padding: clamp(72px, 10vw, 132px) 0 clamp(76px, 10vw, 124px);
  align-items: center;
}

.theme-new-typography .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.theme-new-typography .hero::before {
  top: clamp(42px, 7vw, 88px);
  right: 0;
  width: clamp(72px, 10vw, 132px);
  height: clamp(16px, 2vw, 24px);
  background: var(--accent);
}

.theme-new-typography .hero-grid {
  grid-template-columns: minmax(0, 8fr) minmax(220px, 3fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: end;
}

.theme-new-typography .hero-grid > :only-child {
  grid-column: 1 / -1;
}

.theme-new-typography .kicker {
  width: fit-content;
  margin: 0 0 clamp(28px, 4vw, 48px);
  padding: 5px 9px 4px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.theme-new-typography h1,
.theme-new-typography h2,
.theme-new-typography h3 {
  font-family: var(--sans);
  font-weight: 900;
  text-transform: none;
}

.theme-new-typography h1 {
  max-width: 960px;
  font-size: clamp(58px, 10.4vw, 132px);
  line-height: .78;
  letter-spacing: -.075em;
}

.theme-new-typography .hero-sub {
  max-width: 610px;
  margin: clamp(36px, 5vw, 56px) 0 0 clamp(72px, 10vw, 152px);
  padding: 0;
  border: 0;
  color: var(--fg);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.34;
}

.theme-new-typography .hero-actions {
  margin: 28px 0 0 clamp(72px, 10vw, 152px);
  gap: 10px;
}

.theme-new-typography .button {
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 10px 16px;
  background: var(--line);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.theme-new-typography .button.secondary {
  border-color: var(--line);
  background: var(--bg);
  color: var(--fg);
}

.theme-new-typography .button:hover,
.theme-new-typography .button:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.theme-new-typography .hero-card {
  border: 2px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: var(--card);
  padding: 0;
  box-shadow: none;
}

.theme-new-typography .stat-grid {
  gap: 0;
}

.theme-new-typography .stat {
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.theme-new-typography .stat:last-child {
  border-bottom: 0;
  padding-bottom: 18px;
}

.theme-new-typography .stat-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.theme-new-typography .stat-value {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.theme-new-typography main {
  padding-top: 0;
}

.theme-new-typography .section,
.theme-new-typography .complete-version {
  border-top: 2px solid var(--line);
  padding: clamp(72px, 9vw, 112px) 0;
}

.theme-new-typography .section-head,
.theme-new-typography .complete-version .complete-head {
  grid-template-columns: minmax(128px, 2fr) minmax(0, 8fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: clamp(42px, 7vw, 84px);
}

.theme-new-typography .section-head > :last-child,
.theme-new-typography .complete-version .complete-head > :last-child {
  grid-column: 2 / -1;
}

.theme-new-typography .section-index {
  align-self: start;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.3;
}

.theme-new-typography h2 {
  max-width: 880px;
  font-size: clamp(48px, 8.5vw, 108px);
  line-height: .82;
  letter-spacing: -.06em;
}

.theme-new-typography .section-lead {
  max-width: 660px;
  margin: 28px 0 0 clamp(0px, 6vw, 96px);
  color: var(--fg);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.52;
}

.theme-new-typography .cards,
.theme-new-typography .principles,
.theme-new-typography .timeline {
  gap: clamp(18px, 2.4vw, 28px);
}

.theme-new-typography :is(.card, .principle, .timeline-item) {
  border: 2px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: linear-gradient(90deg, var(--accent) 0 8px, var(--card) 8px 100%);
  padding: clamp(24px, 3.5vw, 42px) clamp(24px, 4vw, 48px);
  box-shadow: none;
}

.theme-new-typography .card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.theme-new-typography h3 {
  max-width: 760px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: .98;
  letter-spacing: -.045em;
}

.theme-new-typography .stack,
.theme-new-typography .generated-desc-meta,
.theme-new-typography .time-label {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 800;
}

.theme-new-typography .stack {
  margin: 12px 0 0;
  font-size: 11px;
}

.theme-new-typography .generated-desc-meta,
.theme-new-typography .time-label {
  font-size: 10px;
  letter-spacing: .06em;
}

.theme-new-typography .generated-description {
  max-width: 780px;
  margin-top: 12px;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
}

.theme-new-typography .tag {
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  padding: 7px 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.theme-new-typography .principles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-new-typography .principle {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 750;
  line-height: 1.25;
}

.theme-new-typography .principle p {
  max-width: 440px;
}

.theme-new-typography .timeline-item {
  grid-template-columns: minmax(128px, 2fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 72px);
}

.theme-new-typography .skill-cloud {
  gap: 8px;
}

.theme-new-typography .skill-pill {
  border: 0;
  border-radius: 0;
  background: var(--line);
  color: var(--bg);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.theme-new-typography .contact-panel {
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr);
  align-items: end;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: var(--accent);
  color: #fff;
  padding: clamp(32px, 6vw, 72px);
  box-shadow: none;
}

.theme-new-typography .contact-panel .section-lead {
  margin-left: 0;
  color: #fff;
}

.theme-new-typography .contact-panel .button {
  border-color: var(--line);
  background: var(--line);
  color: var(--bg);
}

.theme-new-typography .contact-panel .button.secondary {
  border-color: #fff;
  background: #fff;
  color: var(--fg);
}

.theme-new-typography .reveal {
  margin: clamp(72px, 9vw, 112px) 0 56px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: var(--line);
  color: var(--bg);
  padding: clamp(32px, 6vw, 72px);
  box-shadow: none;
  overflow: visible;
}

.theme-new-typography .reveal::before {
  content: "";
  position: absolute;
  top: 0;
  right: clamp(24px, 5vw, 64px);
  width: clamp(64px, 10vw, 120px);
  height: 12px;
  background: var(--accent);
}

.theme-new-typography .reveal .kicker {
  background: var(--accent);
  color: #fff;
}

.theme-new-typography .reveal h2 {
  max-width: 880px;
}

.theme-new-typography .reveal p {
  color: var(--bg);
}

.theme-new-typography .reveal-stat {
  border: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  padding: 22px;
}

.theme-new-typography .reveal-stat-section + .reveal-stat-section {
  border-top: 2px solid var(--line);
}

.theme-new-typography .style-period,
.theme-new-typography .style-introduction {
  color: var(--muted);
}

.theme-new-typography .reveal .button {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--fg);
}

.theme-new-typography .reveal .button.secondary {
  border-color: var(--bg);
  background: transparent;
  color: var(--bg);
}

.theme-new-typography .complete-project .intro-list p {
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--card-strong);
}

.theme-new-typography .tiny-footer {
  align-items: flex-start;
  border-top: 2px solid var(--line);
  padding-top: 18px;
  color: var(--fg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.theme-new-typography .regenerating {
  background: var(--line);
  color: var(--fg);
  padding: clamp(14px, 4vw, 48px);
}

.theme-new-typography .regenerating::before,
.theme-new-typography .regenerating::after {
  content: none;
}

.theme-new-typography .regen-box {
  width: min(var(--style-site-width), 100%);
  border: 0;
  background: var(--bg);
  padding: 0;
  color: var(--fg);
  box-shadow: none;
  font-family: var(--sans);
  font-size: clamp(22px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.theme-new-typography .regen-line {
  min-height: clamp(82px, 12vh, 126px);
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  border-bottom: 2px solid var(--line);
  padding: clamp(18px, 3vw, 36px) clamp(20px, 4vw, 52px);
  opacity: .24;
  transform: none;
  transition: opacity .16s ease, background-color .16s ease, color .16s ease;
}

.theme-new-typography .regen-line:last-child {
  border-bottom: 0;
}

.theme-new-typography .regen-line.active {
  background: var(--accent);
  color: #fff;
  opacity: 1;
  transform: none;
}

.theme-new-typography .regen-line::before {
  position: static;
  width: 14px;
  height: 14px;
  border: 0;
  background: currentColor;
}

.theme-new-typography .regen-line.active::before {
  background: #fff;
}

@media (max-width: 900px) {
  .theme-new-typography .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(190px, .38fr);
    gap: 40px;
  }

  .theme-new-typography .section-head,
  .theme-new-typography .complete-version .complete-head {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .theme-new-typography .section-head > :last-child,
  .theme-new-typography .complete-version .complete-head > :last-child {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .theme-new-typography.layout-single .site,
  .theme-new-typography .topbar-inner {
    width: min(100vw - 28px, var(--style-site-width));
  }

  .theme-new-typography .hero {
    min-height: auto;
    padding-block: 80px;
  }

  .theme-new-typography .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .theme-new-typography .hero-card {
    width: min(100%, 420px);
  }

  .theme-new-typography .hero-sub,
  .theme-new-typography .hero-actions,
  .theme-new-typography .section-lead {
    margin-left: 0;
  }

  .theme-new-typography .section-head,
  .theme-new-typography .complete-version .complete-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .theme-new-typography .section-head > :last-child,
  .theme-new-typography .complete-version .complete-head > :last-child {
    grid-column: 1;
  }

  .theme-new-typography .principles,
  .theme-new-typography .timeline-item,
  .theme-new-typography .contact-panel {
    grid-template-columns: 1fr;
  }

  .theme-new-typography .card-title-row {
    grid-template-columns: 1fr;
  }

  .theme-new-typography .card-title-row .tag {
    justify-self: start;
  }

  .theme-new-typography .principle {
    min-height: 180px;
  }
}

@media (max-width: 520px) {
  .theme-new-typography h1 {
    font-size: clamp(48px, 16vw, 74px);
    line-height: .82;
  }

  .theme-new-typography h2 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .theme-new-typography :is(.card, .hero-card, .principle, .timeline-item, .contact-panel) {
    padding: 24px;
  }

  .theme-new-typography .hero-card {
    padding: 0;
  }

  .theme-new-typography .reveal {
    padding: 32px 24px;
  }

  .theme-new-typography .reveal .active-style-heading {
    display: grid;
    gap: 4px;
  }

  .theme-new-typography .tiny-footer {
    display: grid;
  }

  .theme-new-typography .regenerating {
    padding: 14px;
  }

  .theme-new-typography .regen-box {
    font-size: clamp(19px, 6.5vw, 28px);
    letter-spacing: -.035em;
  }

  .theme-new-typography .regen-line {
    min-height: 92px;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .theme-new-typography .regen-line::before {
    width: 10px;
    height: 10px;
  }
}
