@font-face {
  font-family: Inter;
  src: url("./inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./inter-cyrillic.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Tenor Sans";
  src: url("./tenor-sans-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Tenor Sans";
  src: url("./tenor-sans-cyrillic.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --background: #0c0c0c;
  --foreground: #f7f2e9;
  --muted: #c9c1b7;
  --gold-light: #f4dca6;
  --gold-border: #7d6541;
  --line: #392e22;
  --gold-metal: linear-gradient(108deg, #ba912c, #d4af37 28%, #f8e5a5 52%, #d4af37 76%, #bd942d);
  --headline: "Tenor Sans", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font: 400 1rem/1.6 Inter, sans-serif;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--headline); font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1.06; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #e9bc6d; outline-offset: 4px; }
.shell { width: min(100% - 5rem, 73rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 5;
  padding: .65rem 1rem;
  color: #0c0c0c;
  background: var(--gold-light);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.racion-header-actions { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.5rem); }
.brand { display: block; padding: .12rem 0; }
.brand img { display: block; width: 8.25rem; height: auto; }
.racion-header-actions > nav, .racion-footer-nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2rem); }
.nav-link { color: var(--muted); font-size: .875rem; text-decoration: none; }
.nav-link:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: .25em; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 3.15rem;
  padding: .68rem 1rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  font-size: .91rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.button-small { min-height: 2.75rem; padding: .58rem .75rem; font-size: .8rem; }
.button-outline { border-color: var(--gold-border); }
.button-outline:hover { border-color: var(--gold-light); background: #241c14; }
.button-gold {
  border-color: #e7c78b;
  background: var(--gold-metal);
  color: #21160b;
  box-shadow: 0 9px 24px -10px #d4af378f;
}
.button-gold:hover { background: #f4dca6; }
.button-forward { flex: 0 0 auto; color: inherit; font-size: 1.15em; line-height: 1; }

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  overflow: hidden;
  margin-block: clamp(1.5rem, 4vw, 4rem);
  border: 1px solid #51472e;
  border-radius: 16px;
  background: #161510;
}
.hero-copy { padding: clamp(1.5rem, 5vw, 3.6rem); }
.hero h1 { font-size: clamp(2.5rem, 4.75vw, 4.35rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-copy p {
  margin-top: 1.65rem;
  color: var(--muted);
  max-width: 30rem;
  font-size: clamp(1rem, 1.45vw, 1.125rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.hero-actions .button-gold { background: linear-gradient(120deg, #f1da91, #d4af37); }
.hero-actions .button-gold:hover { background: #f1da91; }
.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 24rem;
  overflow: hidden;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #161510, transparent 26%);
  pointer-events: none;
}

.how {
  color: var(--foreground);
  background: radial-gradient(ellipse at 22% 0%, #261d12, #151515 65%);
  border-block: 1px solid #d4af3742;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.25rem, 4vw, 3rem);
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}
.steps li { counter-increment: step; border-top: 1px solid #d4af3766; padding-top: .9rem; }
.steps li::before { content: counter(step, decimal-leading-zero); color: var(--gold-light); font-size: .8rem; font-weight: 600; }
.steps h3 { margin-block: .48rem .35rem; font-size: clamp(1.3rem, 2.25vw, 1.78rem); }
.steps p { color: var(--muted); }
.training { background: #1a1510; border-bottom: 1px solid var(--line); }
.training-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2rem, 4vw, 3rem); }
.training h2 { font-size: clamp(1.65rem, 3.4vw, 2.8rem); }
.training p { max-width: 40rem; color: var(--muted); margin-top: .65rem; }
.training .button { flex-shrink: 0; }
.together {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.together p { max-width: 29rem; margin-top: 1.25rem; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; margin-top: .85rem; color: var(--gold-light); text-underline-offset: .25em; }
.text-link:hover { color: var(--foreground); }
.family-link { max-width: 100%; }
.family-link-arrow { width: 1rem; height: 1rem; flex: none; color: #d4af37; }
.portion-preview {
  background: radial-gradient(ellipse at top right, #2b2117, #171411 67%);
  border: 1px solid var(--gold-border);
  border-radius: .85rem;
  padding: clamp(1rem, 3vw, 2rem);
}
.portion-title { display: grid; gap: .35rem; margin-bottom: 1.25rem; }
.portion-title > span { color: var(--gold-light); font-size: .78rem; }
.portion-title > strong { font-family: var(--headline); font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 400; line-height: 1.14; }
.portion-weight, .portion-row { display: flex; justify-content: space-between; gap: .75rem; font-size: .83rem; }
.portion-weight { color: var(--muted); padding: .7rem; border: 1px solid #634f35; border-radius: .4rem; margin-bottom: .7rem; }
.portion-row { border-bottom: 1px solid var(--line); padding: .65rem 0; }
.portion-row:last-child { border-bottom: 0; padding-bottom: 0; }
.portion-row strong { color: var(--gold-light); font-weight: 600; text-align: right; }
.last-call { background: #1d1712; border-block: 1px solid var(--line); }
.last-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 2.5rem; }
.last-inner h2 { font-size: clamp(1.65rem, 3.4vw, 2.8rem); }
.last-inner p { margin-top: .65rem; color: var(--muted); }
.last-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; padding-block: 1.25rem; color: var(--muted); font-size: .8rem; }
.site-footer { align-items: baseline; }
.site-footer .kp-footer-projects { flex-basis: 100%; }
.racion-footer-nav { flex-wrap: wrap; gap: .6rem 1rem; }
.racion-footer-nav a { text-underline-offset: 3px; }
.install-guide { max-width: 26rem; }
.install-guide summary { color: var(--gold-light); cursor: pointer; min-height: 44px; line-height: 44px; }
.install-guide p { margin: 0 0 .75rem; line-height: 1.5; }
.install-guide a { text-decoration: underline; text-underline-offset: 3px; }
.hero-details { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; margin-top: .8rem; }
.hero-example-link { display: flex; width: fit-content; max-width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-image { animation: photo-in 1s ease-out both; }
  .hero-copy > * { animation: cover-in .65s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > h1 { animation-delay: .1s; }
  .hero-copy > p { animation-delay: .22s; }
  .hero-actions { animation-delay: .34s; }
  .hero-example-link, .hero-details { animation-delay: .44s; }
  @keyframes cover-in {
    from { opacity: .65; transform: translateY(10px); }
  }
  @keyframes photo-in {
    from { opacity: .25; transform: scale(1.045); }
  }
}

@media (max-width: 60rem) {
  .shell { width: min(100% - 3rem, 73rem); }
  .hero h1 { font-size: clamp(2.65rem, 6.55vw, 4.35rem); }
}
@media (max-width: 47rem) {
  .nav-link { display: none; }
  .hero, .together { grid-template-columns: 1fr; }
  .hero-visual { grid-row: 1; min-height: 0; height: clamp(15rem, 69vw, 25rem); }
  .hero-visual::after { background: linear-gradient(0deg, #161510, transparent 28%); }
  .hero h1 { max-width: 32rem; font-size: clamp(2.45rem, 9.25vw, 4.4rem); }
  .hero-copy p { margin-top: 1rem; }
  .hero-actions { margin-top: 1.25rem; }
  .steps { grid-template-columns: 1fr; gap: 1.35rem; }
  .training-inner { align-items: flex-start; flex-direction: column; }
  .last-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 25rem) {
  .shell { width: calc(100% - 2rem); }
  .hero-actions { display: grid; }
  .brand img { width: 7rem; }
  .button-small { font-size: .74rem; }
  .portion-row { font-size: .72rem; }
}
@media (max-width: 22rem) {
  .header-inner { gap: .5rem; }
  .header-inner .brand img { width: 5.5rem; }
  .racion-header-actions .button-small { max-width: 6.5rem; }
}
