/* Kenvero */

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #111111;
  --fg-2: #6e6e73;
  --fg-3: #707075;
  --line: #e8e8ea;
  --card: #f5f5f7;
  --card-hover: #efeff1;
  --chip: #ffffff;
  --btn-bg: #111111;
  --btn-fg: #ffffff;
  --btn2-bg: #f0f0f2;
  --btn2-hover: #e6e6e9;
  --header-bg: rgba(255, 255, 255, 0.72);
  --col: 640px;
  --gutter: 24px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #86868b;
  --line: #232326;
  --card: #131315;
  --card-hover: #19191c;
  --chip: #000000;
  --btn-bg: #f5f5f7;
  --btn-fg: #111111;
  --btn2-bg: #1c1c1f;
  --btn2-hover: #26262a;
  --header-bg: rgba(0, 0, 0, 0.72);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --fg: #f5f5f7;
    --fg-2: #a1a1a6;
    --fg-3: #86868b;
    --line: #232326;
    --card: #131315;
    --card-hover: #19191c;
    --chip: #000000;
    --btn-bg: #f5f5f7;
    --btn-fg: #111111;
    --btn2-bg: #1c1c1f;
    --btn2-hover: #26262a;
    --header-bg: rgba(0, 0, 0, 0.72);
  }
}

/* Base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

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

p {
  margin: 0 0 1em;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 8px;
  z-index: 10;
  padding: 0 8px;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  pointer-events: auto;
  border-radius: 999px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled .header-inner {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px var(--line), 0 6px 24px rgba(0, 0, 0, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--fg);
}

.brand-mark {
  width: 47px;
  height: 22px;
}

.brand-word {
  width: 71px;
  height: 17px;
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg-2);
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--fg);
}

.theme-toggle {
  appearance: none;
  border: 0;
  margin: 0 0 0 2px;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  background: var(--card);
  color: var(--fg);
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

/* Hero */

.hero {
  padding-top: 96px;
  padding-bottom: 64px;
}

.eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-2);
  margin: 0 0 22px;
}

.headline {
  text-wrap: balance;
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 0 0 24px;
}

.headline .muted {
  color: var(--fg-2);
}

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 32px;
  max-width: 46ch;
  text-wrap: balance;
}

.section p {
  text-wrap: pretty;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover {
  opacity: 0.86;
}

.btn-secondary {
  background: var(--btn2-bg);
  color: var(--fg);
}

.btn-secondary:hover {
  background: var(--btn2-hover);
}

.icon-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--fg-2);
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-link:hover {
  background: var(--card);
  color: var(--fg);
}

.icon-link svg {
  width: 20px;
  height: 20px;
}

/* Sections */

.section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.section p {
  color: var(--fg-2);
}

.section p a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.section p a:hover {
  text-decoration-color: var(--fg);
}

/* Projects */

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.project {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
}

.project-body {
  min-width: 0;
  flex: 1;
}

.project-body h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.project-desc {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.project-arrow {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--fg-2);
  transition: transform 0.15s ease, color 0.15s ease;
}

.project:is(:hover, :focus-visible) .project-arrow {
  color: var(--fg);
  transform: translate(2px, -2px);
}

.project:focus-visible {
  outline-offset: 5px;
}

.note {
  font-size: 14px;
  color: var(--fg-3);
  margin: 18px 0 0;
}

/* Principles */

.principles {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.principles > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.principles dt {
  font-weight: 600;
}

.principles dd {
  margin: 0;
  color: var(--fg-2);
}

/* Landscape */

.artwork {
  margin: 48px 0 0;
}

.artwork img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.artwork figcaption {
  font-size: 13px;
  color: var(--fg-3);
  text-align: center;
  margin-top: 12px;
}

/* Footer */

.contact-note {
  color: var(--fg-2);
  font-size: 14px;
}

.site-footer {
  margin-top: 48px;
  padding-top: 64px;
  padding-bottom: 56px;
  text-align: center;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.footer-logo {
  width: 104px;
  height: auto;
  margin: 0 auto 20px;
  color: var(--fg);
}

.site-footer p {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0;
}

/* Motion */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero > :nth-child(2) {
  animation-delay: 0.06s;
}

.hero > :nth-child(3) {
  animation-delay: 0.12s;
}

.hero > :nth-child(4) {
  animation-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Small screens */

@media (max-width: 480px) {
  :root {
    --gutter: 20px;
  }

  .header-inner {
    height: 56px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav {
    gap: 12px;
    font-size: 14px;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .lede {
    font-size: 17px;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .project {
    padding: 20px 0;
    gap: 14px;
  }

  .project-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .principles > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .brand-mark {
    display: none;
  }

  .nav {
    gap: 8px;
  }

}
