:root {
  color-scheme: light;
  --background: #f7f5f0;
  --text: #171513;
  --muted: #686159;
  --line: #d9d2c7;
  --link-background: #ffffff;
  --link-hover: #f0ebe2;
  --accent: #1d6b55;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  background: var(--background);
  color: var(--text);
}

body {
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: rgba(247, 245, 240, 0.92);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("background.png") center center / min(56vw, 560px) auto no-repeat;
  filter: saturate(0.72) contrast(0.88);
  opacity: 0.14;
  pointer-events: none;
}

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

.page {
  position: relative;
  width: min(100% - 32px, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.intro {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 16vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.summary {
  max-width: 34rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.projects {
  display: grid;
  gap: 12px;
}

.projects a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--link-background) 86%, transparent);
  backdrop-filter: blur(8px);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.projects a:hover,
.projects a:focus-visible {
  border-color: var(--accent);
  background: var(--link-hover);
  transform: translateY(-1px);
}

.projects a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

.projects span {
  font-weight: 700;
}

.projects small {
  flex: 0 0 auto;
  color: var(--muted);
}

@media (max-width: 520px) {
  body::before {
    background: linear-gradient(rgba(247, 245, 240, 0.9), rgba(247, 245, 240, 0.96));
  }

  body::after {
    background: url("background.png") center 24px / min(86vw, 380px) auto no-repeat;
    opacity: 0.1;
  }

  .page {
    width: min(100% - 24px, 720px);
    padding: 52px 0;
    justify-content: flex-start;
  }

  .summary {
    font-size: 1.05rem;
  }

  .projects a {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
