html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-y: auto;
}

.tone-green {
  --accent: #8fe3c2;
}

.tone-red {
  --accent: #ffb7a4;
}

.tone-blue {
  --accent: #9cc7ff;
}

.tone-violet {
  --accent: #c8aeff;
}

.tone-yellow {
  --accent: #f7d86a;
}

.tone-orange {
  --accent: #ffba82;
}

.marquee {
  transform: rotate(-0.45deg);
  transform-origin: center;
}

.marquee div {
  animation: drift 24s linear infinite;
  will-change: transform;
}

.marquee div > span {
  padding-left: 48px;
}

.featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.featured-card {
  min-width: 0;
}

.featured-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.text-action {
  align-self: flex-start;
  margin-top: auto;
}

.featured-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.featured-lead .project-art {
  height: 360px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-right: 1px solid var(--ink);
  border-bottom: 0;
}

.featured-lead .project-art .art-window {
  width: 100%;
  min-height: 0;
  flex: 1;
}

.featured-lead .featured-copy {
  padding: 36px;
}

.featured-lead .featured-copy h3 {
  font-size: clamp(2.6rem, 4vw, 4.3rem);
}

.featured-lead .featured-copy p {
  font-size: 1.03rem;
}

.featured-small {
  display: flex;
  flex-direction: column;
}

.featured-small .project-art {
  height: 320px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.featured-small .project-art .art-window {
  width: 100%;
  min-height: 0;
  flex: 1;
}

.project-art .art-topline {
  margin-bottom: 20px;
  font-size: 0.66rem;
}

.project-art .art-topline > span:first-child {
  width: 34px;
  height: 34px;
}

.project-art .art-topline strong {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.project-art .art-window {
  grid-template-columns: 22% 1fr;
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-0.65deg);
}

.project-conectflux .art-window {
  overflow: hidden;
  isolation: isolate;
}

.project-art .art-sidebar {
  padding: 14px 10px;
}

.project-art .art-sidebar b {
  width: 25px;
  height: 25px;
  margin-bottom: 17px;
}

.project-art .art-content {
  min-width: 0;
  padding: 18px;
}

.project-art .art-project-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.project-art .art-project-view > div {
  min-height: 60px;
  padding: 9px;
}

.project-art .art-project-view.view-timer-task {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-art .view-timer-task > div:first-child,
.featured-small .view-timer-task > div:first-child {
  grid-column: 1 / -1;
  min-height: 68px;
}

@media (max-width: 1000px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-lead {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }

  .featured-lead .project-art {
    height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
}

@media (max-width: 760px) {
  .featured-lead .project-art,
  .featured-small .project-art {
    height: 300px;
  }

  .featured-small .project-timer-task {
    height: 340px;
  }

  .project-timer-task .art-content {
    padding: 14px 12px;
  }

  .project-timer-task .art-content-head {
    gap: 8px;
    padding-bottom: 12px;
  }

  .project-timer-task .view-timer-task {
    gap: 6px;
    margin-top: 12px;
  }

  .project-timer-task .view-timer-task > div {
    min-height: 48px;
    padding: 7px;
  }

  .project-timer-task .view-timer-task > div:first-child {
    min-height: 62px;
  }

  .project-timer-task .view-timer-task > div:first-child span {
    font-size: clamp(1rem, 6vw, 1.4rem);
  }
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ink);
  background: var(--white);
  font: 700 .72rem/1 monospace;
  letter-spacing: .06em;
  flex: 0 0 auto;
}

.site-header nav {
  margin-left: auto;
}

.site-header {
  position: relative;
  z-index: 50;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 24px;
}

.menu-toggle {
  display: none;
}

.language-switcher a {
  min-width: 34px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  text-decoration: none;
}

.language-switcher-label {
  padding-inline: 8px 6px;
  color: var(--muted);
  font-size: .63rem;
  text-transform: uppercase;
}

.language-switcher a.current {
  color: var(--paper);
  background: var(--ink);
}

@media (max-width: 760px) {
  .site-header nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    border: 1px solid var(--ink);
    background: var(--paper);
    box-shadow: 8px 8px 0 rgba(22, 22, 22, .18);
  }

  .site-header.menu-open nav {
    display: flex;
  }

  .site-header nav a,
  .site-header nav a:not(:last-child) {
    display: block !important;
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-header nav a:last-child {
    border-bottom: 0;
  }

  .header-controls {
    margin-left: auto;
    gap: 7px;
  }

  .language-switcher-label {
    display: none;
  }

  .language-switcher {
    padding: 2px;
  }

  .language-switcher a {
    min-width: 30px;
    min-height: 30px;
    padding: 4px 5px;
  }

  .menu-toggle {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    border: 1px solid var(--ink);
    color: var(--paper);
    background: var(--ink);
    font: 700 .68rem/1 monospace;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu-toggle i,
  .menu-toggle i::before,
  .menu-toggle i::after {
    width: 14px;
    height: 1px;
    display: block;
    content: "";
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle i {
    position: relative;
  }

  .menu-toggle i::before,
  .menu-toggle i::after {
    position: absolute;
    left: 0;
  }

  .menu-toggle i::before {
    top: -4px;
  }

  .menu-toggle i::after {
    top: 4px;
  }

  .site-header.menu-open .menu-toggle i {
    background: transparent;
  }

  .site-header.menu-open .menu-toggle i::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-header.menu-open .menu-toggle i::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

@media (max-width: 430px) {
  .menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee div {
    animation: drift 24s linear infinite;
  }
}
