:root {
  --paper: #f4f1ea;
  --surface: #fffdf8;
  --ink: #17201c;
  --muted: #65706a;
  --line: rgba(23, 32, 28, 0.14);
  --teal: #177d75;
  --teal-soft: #e1f0ec;
  --coral: #d85b4d;
  --amber: #d79b35;
  --blue: #426f8f;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.74), transparent 18rem),
    var(--paper);
  font-family:
    "Space Grotesk", "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

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

a:hover,
a:focus-visible {
  color: var(--teal);
}

:focus-visible {
  outline: 3px solid rgba(23, 125, 117, 0.32);
  outline-offset: 4px;
}

.page {
  width: min(1080px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 36px 0 40px;
}

.site-header,
.nav-links,
.intro,
.quick-links,
.app-item,
.app-main {
  display: flex;
}

.site-header {
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: 64px;
}

.nav-links {
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.intro {
  align-items: center;
  gap: 52px;
  padding-bottom: 66px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  flex: 0 0 220px;
  margin: 0;
}

.avatar img {
  display: block;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(23, 32, 28, 0.12);
  border-radius: 50%;
  background: var(--surface);
  object-fit: cover;
  object-position: 50% 26%;
  box-shadow: 0 20px 58px rgba(23, 32, 28, 0.11);
}

.intro-copy {
  max-width: 720px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 2.65rem;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
}

.intro-copy > p {
  max-width: 34rem;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1.06rem;
}

.quick-links {
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  padding: 0.62rem 0.86rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.quick-links a:first-child {
  border-color: transparent;
  background: var(--ink);
  color: var(--surface);
}

.quick-links a:hover,
.quick-links a:focus-visible {
  border-color: rgba(23, 125, 117, 0.35);
  color: var(--teal);
}

.quick-links a:first-child:hover,
.quick-links a:first-child:focus-visible {
  background: var(--teal);
  color: #ffffff;
}

.apps,
.about {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.about {
  border-bottom: 0;
}

.section-heading {
  margin-bottom: 18px;
}

h2 {
  max-width: none;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
}

.app-list {
  display: grid;
  gap: 12px;
}

.app-item {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.64);
  padding: 18px;
}

.app-main {
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.app-icon {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(23, 32, 28, 0.08);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(23, 32, 28, 0.08);
  object-fit: cover;
}

h3 {
  margin-bottom: 3px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0;
}

.app-item p,
.about-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.app-action {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.app-action::after {
  content: " ->";
  color: var(--coral);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.about-grid p {
  font-size: 1.04rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .page {
    width: min(100% - 32px, 1080px);
    padding-top: 24px;
  }

  .site-header {
    margin-bottom: 46px;
  }

  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 34px;
    padding-bottom: 52px;
  }

  .avatar {
    flex-basis: auto;
    width: 148px;
  }

  .avatar img {
    width: 148px;
    height: 148px;
  }

  h1 {
    font-size: 2.32rem;
  }

  .intro-copy > p {
    font-size: 1.06rem;
  }

  .section-heading,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .apps,
  .about {
    padding: 56px 0;
  }

  .app-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .nav-links {
    gap: 14px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: 2.08rem;
  }

  h2 {
    font-size: 1rem;
  }

  .app-main {
    align-items: flex-start;
  }
}
