@font-face {
  font-family: Sarpanch;
  src: url('../fonts/Sarpanch-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #e9e9e5;
  --ink: #171717;
  --muted: #62625d;
  --line: #444;
  --page-line: #bdbdb7;
  --panel: #111;
  --panel-ink: #e9e9e5;
  --panel-muted: #a4a49f;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #141414;
    --ink: #e9e9e5;
    --muted: #858580;
    --line: #555;
    --page-line: #41413d;
    --panel: #e0e0dc;
    --panel-ink: #171717;
    --panel-muted: #5c5c58;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

p,
h1 {
  margin: 0;
}

.shell {
  display: flex;
  flex-direction: column;
  width: min(100%, 1600px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 6vw, 6rem);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1;
  padding: 0.75rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 6rem;
  border-bottom: 1px solid var(--page-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: Sarpanch, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 37px;
  object-fit: contain;
}

@media (prefers-color-scheme: dark) {
  .brand-mark {
    filter: invert(1);
  }
}

.header-status,
.eyebrow,
.hero-index,
.aside-label,
.hero-note,
.site-footer {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status-block {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--ink);
}

main {
  display: flex;
  flex: 1;
  align-items: center;
}

.hero {
  width: 100%;
  margin: clamp(2rem, 5vw, 5rem) 0;
  padding: clamp(1.5rem, 5vw, 5rem);
  background: var(--panel);
  color: var(--panel-ink);
}

.hero-top,
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-top {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.hero-index,
.aside-label,
.hero-note {
  color: var(--panel-muted);
}

.eyebrow span {
  padding: 0 0.35rem;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.33fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 9vw, 8rem) 0;
}

h1 {
  max-width: 13ch;
  font-family: Sarpanch, Arial, sans-serif;
  font-size: clamp(3.2rem, 8.5vw, 8.5rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-aside {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.aside-label {
  margin-bottom: 1.25rem;
}

.signal-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.signal-list li::before {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  background: var(--panel-ink);
  content: '';
}

.hero-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-note {
  max-width: 24rem;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--panel-ink);
  background: var(--panel-ink);
  color: var(--panel);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 120ms,
    color 120ms;
}

.button:hover {
  background: var(--panel);
  color: var(--panel-ink);
}

.button-arrow {
  font-size: 1.45rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  border-top: 1px solid var(--page-line);
  color: var(--muted);
}

.site-footer a {
  padding: 0.5rem 0;
}

@media (max-width: 700px) {
  .shell {
    padding: 0 1rem;
  }

  .site-header {
    min-height: 5rem;
  }

  .brand {
    gap: 0.55rem;
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 44px;
    height: 29px;
  }

  .hero {
    margin: 1.5rem 0;
    padding: 1.4rem;
  }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  h1 {
    font-size: clamp(3rem, 12vw, 5.5rem);
  }

  .hero-aside {
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .aside-label {
    margin-bottom: 0.8rem;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .button {
    width: 100%;
    gap: 1rem;
    font-size: 0.72rem;
  }

  .site-footer {
    justify-content: flex-start;
    column-gap: 1.5rem;
    padding: 0.75rem 0;
  }

  .footer-note {
    display: none;
  }
}

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