

:root {
  --ground: #4b544e;
  --surface-mid: #3f4742;
  --surface-deep: #323835;
  --line: #5e6862;
  --line-strong: #78847d;
  --line-subtle: rgba(244, 246, 244, 0.12);
  --ink: #f4f6f4;
  --chalk-muted: #c5ccc6;
  --chalk-dim: #c5ccc6;
  --accent: #e8da7b;
  --accent-hover: #f2e79b;
  --accent-active: #d9cb68;
  --accent-focus: rgba(232, 218, 123, 0.45);
  --danger: #e07a5f;
  --danger-bg: rgba(224, 122, 95, 0.14);
  --success: #81b29a;
  --success-bg: rgba(129, 178, 154, 0.16);


  --miti-cdc: "Cinzel", Georgia, serif;
  --miti-5d3: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --miti-b64: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;


  --step--2: clamp(0.69rem, 0.67rem + 0.12vw, 0.78rem);
  --step--1: clamp(0.81rem, 0.78rem + 0.18vw, 0.94rem);
  --miti-92d: clamp(0.97rem, 0.92rem + 0.24vw, 1.13rem);
  --miti-c40: clamp(1.15rem, 1.07rem + 0.42vw, 1.42rem);
  --miti-9f5: clamp(1.36rem, 1.22rem + 0.71vw, 1.82rem);
  --miti-2dc: clamp(1.61rem, 1.38rem + 1.15vw, 2.34rem);
  --miti-27f: clamp(1.91rem, 1.55rem + 1.8vw, 3.01rem);
  --miti-441: clamp(2.26rem, 1.73rem + 2.65vw, 3.88rem);


  --space-2xs: clamp(0.25rem, 0.22rem + 0.15vw, 0.38rem);
  --space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.65rem + 0.5vw, 1.13rem);
  --space-md: clamp(1.15rem, 1rem + 0.75vw, 1.65rem);
  --space-lg: clamp(1.65rem, 1.4rem + 1.25vw, 2.5rem);
  --space-xl: clamp(2.4rem, 2rem + 2vw, 3.75rem);
  --space-2xl: clamp(3.5rem, 2.8rem + 3.5vw, 5.75rem);
  --space-3xl: clamp(4.75rem, 3.8rem + 4.75vw, 8rem);


  --rule-thin: 1px solid var(--line);
  --rule-mid: 2px solid var(--line);
  --rule-thick: 3px solid var(--line-strong);
  --rule-accent: 2px solid var(--accent);


  --trans-fast: 140ms cubic-bezier(0.2, 0, 0, 1);
  --trans-base: 220ms cubic-bezier(0.2, 0, 0, 1);
  --trans-slow: 420ms cubic-bezier(0.16, 1, 0.3, 1);


  --measure-narrow: 56ch;
  --measure-base: 68ch;
  --measure-wide: 84ch;
  --content-max: 1320px;
  --site-max: 1560px;
  --header-height: 4.5rem;
}


*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--miti-5d3);
  font-size: 100%;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}


body {
  background-color: var(--ground);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  border-left: var(--rule-thin);
  border-right: var(--rule-thin);
  max-width: 100%;
}


img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}


input, button, textarea, select {

  font: inherit;
  color: inherit;
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--miti-cdc);

  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--ink);
  word-wrap: break-word;
  overflow-wrap: break-word;
}


h1 {
  font-size: var(--miti-441);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.08;
}


h2 {
  font-size: var(--miti-27f);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}


h3 {
  font-size: var(--miti-9f5);
  font-weight: 700;
  letter-spacing: 0.025em;
}


h4 {
  font-size: var(--miti-c40);
  font-weight: 600;
  letter-spacing: 0.03em;
}


p {
  font-size: var(--miti-92d);
  line-height: 1.62;
  color: var(--ink);
  max-width: var(--measure-base);
}


p + p {
  margin-top: var(--space-sm);
}


strong, b {
  font-weight: 700;
  color: #ffffff;
}


em, i {
  font-style: italic;
  color: var(--chalk-muted);
}


small {
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--chalk-muted);
}


code, kbd, samp, pre {
  font-family: var(--miti-b64);
  font-size: var(--step--1);
}


a {
  color: var(--chalk-muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--trans-fast), text-decoration-color var(--trans-fast);
}


a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}


a:active {
  color: var(--accent-active);
}


a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


ul, ol {
  padding-left: 1.4rem;
  max-width: var(--measure-base);
}


li {
  font-size: var(--miti-92d);
  margin-bottom: var(--space-xs);
  line-height: 1.55;
}


li::marker {
  color: var(--accent);
  font-family: var(--miti-b64);
}


table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--miti-b64);
  font-size: var(--step--1);
  border: var(--rule-mid);
  background: var(--surface-deep);
}


th, td {
  padding: var(--space-xs) var(--space-sm);
  border: var(--rule-thin);
  vertical-align: top;
}


th {
  background: var(--surface-mid);
  color: var(--accent);
  text-transform: uppercase;
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  font-weight: 600;
}


td {
  color: var(--ink);
}


hr {
  border: none;
  border-top: var(--rule-mid);
  margin: var(--space-lg) 0;
}


blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-mid);
  font-style: italic;
  margin: var(--space-md) 0;
}


.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  background: var(--accent);
  color: var(--surface-deep);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--miti-b64);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  z-index: 10000;
  border: 2px solid var(--surface-deep);
  transition: top var(--trans-fast);
}


.skip-link:focus {
  top: var(--space-sm);
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}


.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


.site-wrap {
  width: 100%;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  border-left: var(--rule-thin);
  border-right: var(--rule-thin);
  background-color: var(--ground);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.content-row {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);

  padding-right: var(--space-md);
}


.flow > * + * {
  margin-top: var(--space-md);
}


.flow-tight > * + * {
  margin-top: var(--space-xs);
}


.flow-spacious > * + * {
  margin-top: var(--space-xl);
}


.tech-label {
  font-family: var(--miti-b64);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--chalk-muted);
}


.tech-val {
  font-family: var(--miti-b64);
  font-size: var(--step--1);
  color: var(--accent);
  font-weight: 500;
}


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


.text-muted {
  color: var(--chalk-muted);
}


.grid-ruled {
  display: grid;
  border: var(--rule-mid);
}


.grid-ruled > * {
  border: var(--rule-thin);
  padding: var(--space-md);
  background: var(--surface-mid);
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
