:root {
  --ink: #15251f;
  --paper: #f7f3ec;
  --lime: #9ed8ff;
  --line: #d8d5ce;
  --muted: #474546;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Outfit", sans-serif;
}

main { max-width: 1120px; margin: auto; padding: 0 36px; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.logo, .nav-link { color: inherit; text-decoration: none; }

.logo { font: 500 0.8rem "DM Mono", monospace; letter-spacing: 0.06em; }

.nav-link { font-size: 0.95rem; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { min-height: 580px; padding: 124px 0 92px; }

.eyebrow, .card-number, .tag, footer {
  font: 500 0.75rem "DM Mono", monospace;
  letter-spacing: 0.06em;
}

.eyebrow { color: var(--muted); margin: 0 0 20px; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 740px;
  margin-bottom: 24px;
  font-size: clamp(3.6rem, 9vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 600;
}

h1 span { color: #9ed8ff; }

.intro { max-width: 530px; color: var(--muted); font-size: 1.28rem; line-height: 1.5; }

.button {
  display: inline-flex;
  background: transparent;
  font: inherit;
  cursor: pointer;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.button:hover { background: var(--ink); color: var(--paper); }
.about {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.about h2 {
  margin-bottom: 24px;
}

.about > p:last-child {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.55;
}
.projects { padding: 82px 0 112px; border-top: 1px solid var(--line); }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.section-heading .eyebrow { margin: 0; }

h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.06em; line-height: 0.9; }

.project-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 248px;
  margin-top: 12px;
  padding: 32px;
  border: 1px solid var(--ink);
}

.first-project { background: var(--lime); }
.task-project {
  background: #e7e2ff;
  border-color: var(--ink);
}

.card-number { margin-bottom: 38px; }
h3 { margin-bottom: 10px; font-size: 2rem; letter-spacing: -0.04em; }
.project-card div > p:not(.card-number) { max-width: 470px; margin: 0; line-height: 1.45; }
.tag { margin: 0; white-space: nowrap; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p { margin: 0; }

@media (max-width: 600px) {.task-form {
    flex-direction: column;
    align-items: stretch;
  }

  .task-form .button {
    justify-content: space-between;
  }
  main { padding: 0 20px; }
  .hero { min-height: 510px; padding: 92px 0 70px; }
  .project-card { min-height: 270px; padding: 24px; flex-direction: column; align-items: start; }
  .tag { margin-top: 24px; }
}
.tasks {
  padding: 0 0 112px;
}

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

#task-input {
  flex: 1;
  padding: 15px 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

#task-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

#task-list li {
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  font-size: 1.1rem;
}
#task-list li {
  cursor: pointer;
  transition: opacity 160ms ease, text-decoration 160ms ease;
}

#task-list li.completed {
  color: var(--muted);
  opacity: 0.55;
  text-decoration: line-through;
}
.task-form .button {
  margin-top: 0;
}
.task-count {
  margin-top: -8px;
  color: var(--muted);
  font: 500 0.8rem "DM Mono", monospace;
  letter-spacing: 0.05em;
}
