:root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: #111;
  background-color: #fdf8f2;
  line-height: 1.5;
}

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

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fefbf7 0%, #f8f2eb 100%);
  color: #1a1a1a;
}

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

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.site-header {
  padding: 2.5rem 0 1.5rem;
}

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

.brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 1rem;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -0.4rem;
  height: 2px;
  background: transparent;
  transition: background 180ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  background: #111;
}

.hero {
  padding: 3rem 0 4rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero-copy .eyebrow {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-copy .lead {
  font-size: 1.25rem;
  max-width: 24ch;
  color: rgba(17, 17, 17, 0.76);
}

.hero-portrait {
  display: flex;
  justify-content: center;
}

.portrait-ring {
  --size: clamp(220px, 25vw, 270px);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f6d6b3, #d1cdd4 70%);
  padding: 0.75rem;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.12);
}

.portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.apps {
  padding: 4rem 0 6rem;
}

.apps h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 3rem;
}

.app-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem 2rem;
  justify-items: center;
}

.app-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.5rem;
}

.device-link,
.app-icon-link {
  display: block;
  transition: transform 160ms ease, filter 160ms ease;
}

.device-link:hover,
.device-link:focus-visible,
.app-icon-link:hover,
.app-icon-link:focus-visible {
  transform: translateY(-4px);
  filter: brightness(1.03);
}

.device {
  width: clamp(190px, 22vw, 240px);
  aspect-ratio: 110 / 239;
  border-radius: 2.2rem;
  background: #020203;
  padding: 0.9rem;
  display: grid;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.device-notch {
  position: absolute;
  top: 0.25rem;
  left: 50%;
  translate: -50%;
  width: 34%;
  height: 0.7rem;
  background: #020203;
  border-radius: 0 0 0.6rem 0.6rem;
}

.screen {
  border-radius: 1.4rem;
  overflow: hidden;
  position: relative;
}

.screen::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  mix-blend-mode: soft-light;
}

.screen-task {
  background: linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%);
}

.screen-task::after {
  content: '';
  position: absolute;
  inset: 12% 18% 14%;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, #f2f4f8 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.screen-sudoku {
  background: url('assets/screenshots/sudoku_screenshot.png') center / cover no-repeat;
}

.screen-tiny-habits {
  background: url('assets/screenshots/tiny_habits_screenshot.png') center / cover no-repeat;
}

.screen-zipchat {
  background: url('assets/screenshots/zipchat_screenshot.png') center / cover no-repeat;
}

.app-meta {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.app-icon {
  width: 80px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(17, 17, 17, 0.12);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.site-footer {
  padding: 2rem 0 3rem;
  text-align: center;
  color: rgba(17, 17, 17, 0.65);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .site-header {
    padding: 1.5rem 0 1rem;
  }

  .main-nav ul {
    gap: 1.5rem;
  }

  .hero {
    padding-bottom: 2rem;
  }

  .apps {
    padding: 3rem 0 4rem;
  }
}
