:root {
  color-scheme: light;
  --paper: #f5f6f0;
  --white: #fff;
  --ink: #191d19;
  --muted: #52594f;
  --soft: #edf0e7;
  --line: #dce0d6;
  --lime: #d7f65a;
  --olive: #4a652b;
  --dark: #151c22;
  --radius: 18px;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "Consolas", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid #577720; outline-offset: 5px; }
[id] { scroll-margin-top: 28px; }

.wrap { width: min(100% - 96px, 1224px); margin-inline: auto; }
.skip-link {
  background: var(--white);
  position: fixed;
  inset: 12px auto auto 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  z-index: 3;
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.brand-accent { color: var(--olive); }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--dark);
}
.brand-mark > span {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--lime);
  border-radius: 3px;
  transform: rotate(30deg) skewX(-15deg);
  position: relative;
}
.brand-mark > span::before, .brand-mark > span::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--lime);
  border-radius: 1px;
}
.brand-mark > span::before { inset: 2px auto auto 2px; }
.brand-mark > span::after { inset: auto -3px -3px auto; background: var(--dark); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.site-nav a { font-size: 14px; font-weight: 650; color: var(--muted); }
.site-nav a, .text-link { text-decoration: none; }
.site-nav a:hover, .text-link:hover { color: var(--olive); text-decoration: underline; text-underline-offset: .28em; }

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.button:hover { background: #323b30; border-color: #323b30; }
.button-small { min-height: 43px; padding-inline: 15px; }
.button-primary { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.button-primary:hover { background: #e2ff7f; border-color: #9eaf55; }
.arrow-down, .arrow-right, .arrow-out {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  position: relative;
}
.arrow-down::before, .arrow-right::before, .arrow-out::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  position: absolute;
  top: 3px;
  left: 3px;
  transform: rotate(-45deg);
}
.arrow-down { transform: rotate(90deg); }
.arrow-out { transform: rotate(-45deg); }
.arrow-right::after, .arrow-down::after, .arrow-out::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 12px;
  border-top: 1.5px solid;
}

.hero {
  padding-block: 64px 68px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  column-gap: clamp(26px, 4.5vw, 68px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--olive);
  font: 650 12px/1.4 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.accent-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px #829640;
}
h1 {
  margin-top: 21px;
  font-size: clamp(48px, 5.35vw, 82px);
  line-height: 1.02;
  letter-spacing: -.08em;
  font-weight: 780;
}
h1 em { font-style: normal; color: var(--olive); white-space: nowrap; }
.hero-description {
  margin-top: 25px;
  max-width: 43ch;
  color: var(--muted);
  font-size: clamp(16px, 1.44vw, 20px);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 23px; margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.hero-figure {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid #28312e;
  border-radius: var(--radius);
  background: var(--dark);
  position: relative;
}
.hero-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.figure-label {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #77837c80;
  border-radius: 4px;
  background: #151c22eb;
  color: #dbe3d6;
  font: 500 10px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.figure-label > span {
  width: 8px;
  height: 8px;
  border: 1px solid #95a28e;
  background: linear-gradient(90deg, transparent 41%, #95a28e 42% 58%, transparent 59%),
              linear-gradient(transparent 41%, #95a28e 42% 58%, transparent 59%);
}
.hero-figure figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 20px;
  border-top: 1px solid #37413e;
  color: #cdd5ca;
  font-size: 12px;
}
.figure-dot { width: 6px; height: 6px; flex: 0 0 6px; background: var(--lime); border-radius: 50%; }

.section { padding-block: 64px; }
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
h2 { font-size: clamp(31px, 4vw, 53px); line-height: 1.08; letter-spacing: -.067em; font-weight: 760; }
.section-intro > p { max-width: 40ch; color: var(--muted); }
.skills-background { background: var(--soft); border-block: 1px solid var(--line); }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.skill-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 27px;
}
.skill-card h3 { font-size: 23px; line-height: 1.16; letter-spacing: -.05em; font-weight: 730; text-wrap: pretty; }
.skill-card p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.skill-icon {
  height: 42px;
  width: 42px;
  position: relative;
  display: grid;
  place-items: center;
  color: #3f5624;
  border: 1px solid #d9e2c6;
  background: #ecf2df;
  border-radius: 9px;
  margin-bottom: 24px;
}
.skill-icon::before, .skill-icon::after { content: ""; position: absolute; }
.skill-icon::before { border: 1.5px solid currentColor; width: 17px; height: 17px; border-radius: 4px; }
.skill-icon::after { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.skill-icon-light::before { width: 10px; height: 10px; border-radius: 50%; }
.skill-icon-light::after {
  width: 22px;
  height: 22px;
  background: repeating-conic-gradient(from -5deg, currentColor 0deg 9deg, transparent 9deg 45deg);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
}
.skill-icon-switch::before { width: 22px; height: 12px; border-radius: 8px; }
.skill-icon-switch::after { transform: translateX(4px); }
.skill-icon-panel::before { border-radius: 2px; width: 16px; height: 21px; }
.skill-icon-panel::after {
  width: 8px;
  height: 7px;
  border-radius: 0;
  background: transparent;
  border-block: 1px solid currentColor;
}

.workflow-flow {
  --flow-gap: clamp(30px, 4vw, 56px);
  list-style: none;
  margin: 0;
  padding: clamp(20px, 3.2vw, 44px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--flow-gap);
  border: 1px solid #d9e2d1;
  border-radius: var(--radius);
  background: radial-gradient(circle, #b7c6aa85 1px, transparent 1.2px) center / 19px 19px, #edf2e8;
}
.workflow-flow li {
  position: relative;
  min-width: 0;
}
.flow-art {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: 17px;
  background: url("./workflow-process.webp") var(--art-position) center / 300% 100% no-repeat;
}
.flow-art-request { --art-position: 0%; }
.flow-art-server { --art-position: 50%; }
.flow-art-result { --art-position: 100%; }
.flow-place { color: var(--olive); font: 650 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.workflow-flow h3 { margin-top: 7px; font-size: 21px; letter-spacing: -.04em; line-height: 1.2; font-weight: 740; text-wrap: pretty; }
.flow-copy { color: var(--muted); margin-top: 9px; font-size: 15px; }
.flow-arrow {
  position: absolute;
  top: 50%;
  right: calc(-1 * (var(--flow-gap) + 22px) / 2);
  width: 22px;
  color: var(--olive);
  transform: translateY(-50%);
}
.flow-arrow::before { left: auto; right: 2px; }
.flow-arrow::after { width: 20px; }
.workflow-note { margin-top: 19px; padding-left: 13px; border-left: 2px solid #93a96b; color: var(--muted); font-size: 14px; }

.downloads { padding-top: 16px; }
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: 30px 50px;
  align-items: start;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at left top, #273326, transparent 62%), var(--dark);
  color: var(--white);
  padding: clamp(30px, 5vw, 59px);
}
.download-copy h2 { margin-top: 15px; }
.download-copy p:not(.eyebrow) { margin-top: 14px; max-width: 36ch; }
.download-panel p, .download-panel .release-detail { color: #cbd5ca; }
.download-panel .eyebrow { color: var(--lime); }
.download-panel :focus-visible { outline-color: var(--lime); }
.release-list { display: grid; gap: 10px; min-width: 0; }
.release {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 18px;
  border: 1px solid #4e5a51;
  background: #ffffff0a;
  border-radius: 11px;
}
.release h3 { line-height: 1.25; font-size: 18px; font-weight: 720; }
.release-detail { font-size: 13px; margin-top: 4px; }
.release-status { color: #e4efcd; border: 1px solid #617450; border-radius: 40px; padding: 5px 9px; font-size: 12px; text-align: center; }
.release-status-unavailable { color: #cbd5ca; border-color: #4e5a51; }
.release-checksum { grid-column: 1 / -1; border-top: 1px solid #4e5a51; padding-top: 10px; color: #cbd5ca; font-size: 13px; }
.release-checksum summary { width: fit-content; cursor: pointer; }
.release-checksum code { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.release .button { min-height: 42px; white-space: nowrap; }

.feedback {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px 40px;
  padding-top: 2px;
  padding-bottom: 64px;
}
.feedback h2 { max-width: 24ch; font-size: clamp(30px, 3.45vw, 46px); text-wrap: pretty; }
.feedback p { max-width: 68ch; color: var(--muted); margin-top: 12px; }
.feedback p + p { font-size: 14px; }
.support { padding-top: 0; }
.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 48px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid #d7dfc7;
  border-radius: var(--radius);
  background: #ecf1e1;
}
.support-copy p { max-width: 66ch; margin-top: 12px; color: var(--muted); }
.support-copy p:last-child { color: var(--ink); font-weight: 650; }
.support-status { max-width: 23ch; color: var(--olive); font-size: 14px; }
.site-footer { background: var(--soft); border-top: 1px solid var(--line); }
.footer-inner { min-height: 85px; display: flex; align-items: center; gap: 15px 26px; flex-wrap: wrap; }
.footer-inner p { font-size: 13px; color: var(--muted); }
.error-page p { margin: 18px 0; }

@media (max-width: 1020px) {
  .wrap { width: min(100% - 56px, 1224px); }
  .hero { padding-block: 48px 54px; }
  .skill-card { padding: 21px; }
  .skill-card h3 { font-size: 21px; }
}

@media (max-width: 790px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { padding-top: 2px; }
  .hero-description { max-width: 51ch; }
  .hero-figure img { max-height: 450px; }
  .section { padding-block: 46px; }
  .section-intro { align-items: start; flex-direction: column; gap: 12px; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-panel { grid-template-columns: 1fr; }
  .downloads, .feedback { padding-top: 4px; }
  .support { padding-top: 0; }
  .feedback, .support-panel { grid-template-columns: 1fr; }
  .support-status { max-width: none; }
}

@media (max-width: 680px) {
  .workflow-flow { grid-template-columns: 1fr; gap: 46px; }
  .flow-art { position: static; max-width: 240px; margin: 0 auto 12px; }
  .flow-arrow { top: auto; right: auto; bottom: -31px; left: 50%; transform: translateX(-50%) rotate(90deg); }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 38px); }
  .header-inner { flex-wrap: wrap; min-height: auto; padding-block: 12px 10px; gap: 10px 14px; }
  .site-nav { width: 100%; order: 3; gap: 8px 17px; flex-wrap: wrap; }
  .site-nav a { font-size: 12px; padding-block: 4px; }
  .brand { font-size: 18px; }
  .header-inner .button { font-size: 12px; min-height: 36px; gap: 8px; padding: 7px 10px; }
  .hero { padding-block: 36px 41px; }
  h1 { margin-top: 16px; font-size: clamp(35px, 11.5vw, 59px); letter-spacing: -.075em; }
  .hero-description { margin-top: 15px; }
  .hero-actions { gap: 12px 15px; margin-top: 24px; }
  .hero-actions .button, .hero-actions .text-link { font-size: 13px; }
  .hero-actions .button { padding-inline: 13px; min-height: 45px; gap: 7px; }
  .hero-note { margin-top: 9px; }
  .figure-label { top: 11px; left: 11px; }
  .hero-figure figcaption { min-height: 37px; padding-inline: 12px; font-size: 11px; }
  .skill-grid { grid-template-columns: 1fr; gap: 12px; }
  .skill-icon { margin-bottom: 16px; }
  .download-panel { padding: 24px 17px; }
  .release { padding: 12px; }
  .release h3 { font-size: 15px; }
  .release .button { font-size: 12px; gap: 7px; padding: 8px; }
  .release-detail, .release-status { font-size: 11px; }
  .footer-inner { min-height: 0; padding-block: 20px; gap: 10px 18px; }
}

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