:root {
  color-scheme: light dark;
  --background: #ffffff;
  --text: #111111;
  --muted: #666666;
  --max-width: 960px;
  --page-gutter: clamp(20px, 6vw, 72px);
  --flow: clamp(48px, 9vw, 112px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f0f0f;
    --text: #f1f1f1;
    --muted: #a6a6a6;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #ffffff;
  --text: #111111;
  --muted: #666666;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0f0f0f;
  --text: #f1f1f1;
  --muted: #a6a6a6;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  width: min(1040px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(20px, 4vw, 48px);
  text-align: center;
}

.theme-toggle {
  justify-self: end;
  min-width: 76px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
}

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

.logo-link {
  display: block;
  align-self: center;
  color: inherit;
}

.logo {
  width: min(100%, 900px);
  height: auto;
  margin: 0 auto;
}

.scroll-down {
  justify-self: center;
  display: inline-grid;
  gap: 10px;
  justify-items: center;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-down::after {
  width: 11px;
  height: 11px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.scroll-down:hover {
  color: var(--text);
}

.portfolio {
  width: min(var(--max-width), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  padding-bottom: clamp(56px, 9vw, 128px);
}

.portfolio-item {
  margin: 0 0 var(--flow);
}

.portfolio-image {
  width: 100%;
  height: auto;
}

.portfolio-text {
  margin-top: clamp(14px, 2vw, 22px);
}

.portfolio-title {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0;
}

.portfolio-caption {
  max-width: 66ch;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}

.status {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
