/* Steak, LLC — Shared design system */

:root {
  --bg: #000000;
  --bg-elevated: #151515;
  --fg: #d2cdc0;
  --fg-75: rgba(210, 205, 192, 0.75);
  --fg-50: rgba(210, 205, 192, 0.5);
  --line: rgba(210, 205, 192, 0.25);
  --line-strong: rgba(210, 205, 192, 0.55);
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.39, 0.575, 0.565, 1);
  --margin: 16px;
  --frame-max: 1920px;
  --reading-max: 680px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2efe9;
    --bg-elevated: #e8e4dc;
    --fg: #151515;
    --fg-75: rgba(21, 21, 21, 0.72);
    --fg-50: rgba(21, 21, 21, 0.48);
    --line: rgba(21, 21, 21, 0.22);
    --line-strong: rgba(21, 21, 21, 0.55);
  }
}

@media (min-width: 768px) {
  :root {
    --margin: 24px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ── Shared link underline ── */

.link {
  position: relative;
  display: inline-block;
  color: var(--fg);
  transition: color 0.4s var(--ease);
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(1);
}

.link:focus-visible {
  outline: 1px solid var(--line-strong);
  outline-offset: 4px;
}

/* ── Mono / label utilities ── */

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  line-height: 1.4;
}

.mono-sm {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.mono-md {
  font-size: 12px;
  letter-spacing: 0.05em;
}

.sep {
  color: var(--fg-50);
  margin: 0 0.55em;
}

/* ── Frame shell ── */

.frame {
  position: relative;
  width: 100%;
  max-width: var(--frame-max);
  min-height: 100dvh;
  margin: 0 auto;
  padding: var(--margin);
  display: flex;
  flex-direction: column;
}

/* ── Header ── */

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  z-index: 2;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
  position: relative;
  transition: color 0.4s var(--ease);
}

.wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.wordmark:hover::after,
.wordmark:focus-visible::after {
  transform: scaleX(1);
}

.wordmark:focus-visible {
  outline: 1px solid var(--line-strong);
  outline-offset: 4px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-75);
  position: relative;
  transition: color 0.4s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--fg);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:focus-visible {
  outline: none;
}

.site-nav a[aria-current="page"] {
  color: var(--fg);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ── Footer ── */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-shrink: 0;
  z-index: 2;
  padding-top: 16px;
}

.site-footer .foot-left,
.site-footer .foot-right {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-50);
}

.site-footer .foot-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.site-footer .foot-right a {
  color: var(--fg-75);
  position: relative;
  transition: color 0.4s var(--ease);
}

.site-footer .foot-right a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.site-footer .foot-right a:hover,
.site-footer .foot-right a:focus-visible {
  color: var(--fg);
}

.site-footer .foot-right a:hover::after,
.site-footer .foot-right a:focus-visible::after {
  transform: scaleX(1);
}

/* ── Hairline ── */

.hairline {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.hairline-inline {
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ── Homepage layout ── */

.page-home {
  overflow-x: clip;
}

.page-home .frame {
  min-height: 100dvh;
}

.relief-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  min-height: 0;
  padding-bottom: 20px;
}

.home-lower {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: end;
  padding-bottom: 20px;
}

.home-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  max-width: 36ch;
}

.meta-cell {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-75);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .home-lower {
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
  }

  .home-statement {
    font-size: 16px;
    max-width: 42ch;
  }

  .meta-cell {
    justify-content: flex-end;
    text-align: right;
  }

  .home-main {
    padding-bottom: 28px;
  }

  .home-lower {
    padding-bottom: 24px;
  }
}

/* ── Editorial pages (support / privacy / 404) ── */

.page-editorial .frame {
  min-height: 100dvh;
}

.editorial-main {
  flex: 1;
  width: 100%;
  max-width: var(--reading-max);
  padding: 56px 0 64px;
  position: relative;
  z-index: 1;
}

.editorial-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 8px;
}

.editorial-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-50);
  margin-bottom: 40px;
}

.editorial-lead {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-75);
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .editorial-lead {
    font-size: 16px;
  }

  .editorial-main {
    padding: 72px 0 80px;
  }
}

.section {
  padding: 32px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-marker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-50);
  margin-bottom: 16px;
}

.section p {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
  margin-bottom: 1em;
}

.section p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .section p {
    font-size: 16px;
  }
}

.section ul {
  margin: 0.75em 0 0;
  padding: 0;
}

.section li {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
  padding-left: 1.1em;
  position: relative;
  margin-bottom: 0.45em;
}

.section li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--fg-50);
  font-size: 0.9em;
}

@media (min-width: 768px) {
  .section li {
    font-size: 16px;
  }
}

.action-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
  display: inline-block;
  margin: 4px 0 8px;
}

.action-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(1);
  transform-origin: left center;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.action-link:hover::after,
.action-link:focus-visible::after {
  background: var(--fg);
}

.path-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--fg-75);
}

/* ── 404 ── */

.page-404 .editorial-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding-top: 80px;
  padding-bottom: 80px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-50);
  margin-bottom: 16px;
}

.error-message {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  max-width: 36ch;
  line-height: 1.5;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .error-message {
    font-size: 16px;
  }
}

/* ── Reduced motion ── */

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