:root {
  --bg-canvas: rgb(20, 18, 11);
  --bg-surface: rgb(27, 25, 19);
  --bg-surface-alt: rgb(33, 31, 26);

  --fg: rgb(237, 236, 236);
  --fg-muted: rgba(237, 236, 236, 0.6);

  --accent-soft: rgb(154, 152, 149);
  --accent-soft-bg: rgba(237, 236, 236, 0.08);
  --accent-bright: rgb(255, 191, 0);
  --accent-text-dark: rgb(20, 18, 11);

  --font-sans: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Inter", sans-serif;

  --max-width: 1120px;
}

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

html,
body {
  height: 100%;
}

body {
  background-color: var(--bg-canvas);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 56px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(20, 18, 11, 0.96),
    rgba(20, 18, 11, 0.9),
    rgba(20, 18, 11, 0)
  );
}

.site-header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent-bright);
  background-color: var(--bg-surface);
}

.brand-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 14px;
  font-weight: 500;
}

.brand-sub {
  font-size: 12px;
  color: var(--fg-muted);
}

/* NAV */

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--fg-muted);
}

/* all nav links flex so text is vertically centered */
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  line-height: 1;
}

.nav a:hover {
  border-color: var(--accent-soft);
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  padding-bottom: 9px !important;
  border-radius: 999px;
  background-color: var(--accent-bright);
  color: var(--accent-text-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  border-bottom: none;
}

.nav-cta:hover {
  filter: brightness(1.05);
}

@media (max-width: 720px) {
  .nav-link-optional {
    display: none;
  }

  .nav {
    gap: 14px;
  }
}

/* SECTIONS / LAYOUT */

section {
  padding: clamp(100px, 20vh, 150px) 0;
}

.section-alt {
  background-color: var(--bg-surface);
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .grid-two {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* TYPOGRAPHY */

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

/* hero widened here */
.hero-title {
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 500;
  line-height: 1.15;
  max-width: 52rem; /* wider than before */
  margin-bottom: 22px;
}

.hero-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 52rem; /* wider for both pages */
  margin-bottom: 30px;
}

.hero-body strong {
  color: var(--fg);
  font-weight: 500;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--fg-muted);
}

.hero-tag {
  padding: 4px 11px;
  border-radius: 999px;
  background-color: var(--accent-soft-bg);
}

.hero-tag.highlight {
  border: 1px solid var(--accent-soft);
}

.hero-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 52rem;
}

/* SECTION TITLES */

.section-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-intro {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 40rem;
}

/* WORK LIST (index) */

.work-list {
  margin-top: 48px;
  display: grid;
  gap: 28px;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 40rem;
}

.work-label {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 2px;
}

.work-name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.work-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
}

.work-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent-bright);
}

/* PRINCIPLES (index) */

.principles {
  margin-top: 40px;
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 42rem;
  display: grid;
  gap: 18px;
}

.principle {
  position: relative;
  padding-left: 18px;
  line-height: 1.7;
}

.principle::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-soft);
}

/* STACK (marketing) */

.stack-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: flex-start;
  margin-top: 50px;
}

@media (max-width: 960px) {
  .stack-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.stack-list {
  display: grid;
  gap: 28px;
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 760px;
}

.stack-item {
  padding-left: 40px;
  position: relative;
  line-height: 1.7;
}

.stack-index {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  color: var(--accent-soft);
}

.stack-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--fg);
}

.aside {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 360px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.markers {
  margin-top: 16px; /* more air above the row */
  display: flex;
  flex-wrap: wrap;
  gap: 14px; /* more space between each pill */
  font-size: 12px;
  color: var(--fg-muted);
}

.marker-pill {
  padding: 6px 16px; /* more inner padding */
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background-color: var(--accent-soft-bg);
}

/* CONTACT (shared) */

.contact-strip {
  padding: clamp(70px, 16vh, 110px) 0 90px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--fg-muted);
}

.contact-strip strong {
  color: var(--fg);
  font-weight: 500;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background-color: var(--accent-bright);
  color: var(--accent-text-dark);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.contact-link:hover {
  filter: brightness(1.05);
}

.contact-note {
  font-size: 12px;
}
