:root {
  color-scheme: light;
  font-family:
    Inter,
    'Inter Fallback',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #17151c;
  background: #f5f3ee;
  font-synthesis: none;

  --ink: #17151c;
  --muted: #66616b;
  --line: #ded9e2;
  --accent: #7659ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

header,
main,
footer {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: 24px;
}

header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  background: url('/logo-mark.svg') center / contain no-repeat;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  text-decoration: underline;
}

nav a[href='/login'] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 16px;
  background: #fff;
}

main {
  flex: 1;
  max-width: 860px;
  padding-block: 48px 72px;
  line-height: 1.7;
}

main h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

main h2 {
  margin: 36px 0 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
}

main p,
main ul {
  margin-block: 0 18px;
}

main li + li {
  margin-top: 10px;
}

p,
li {
  overflow-wrap: anywhere;
}

main > p:first-of-type {
  color: var(--muted);
}

main a {
  color: #5b42d4;
  text-underline-offset: 3px;
}

.home-page main {
  max-width: 1100px;
  padding-top: 52px;
}

.home-page main h1 {
  margin: 0;
  color: #5b42d4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-page main h2 {
  max-width: 760px;
  margin: 14px 0 24px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-page main p {
  max-width: 750px;
}

.home-page main p:first-of-type {
  color: #17151c;
  font-size: 18px;
}

.home-page main p:nth-last-of-type(2) {
  margin-top: 32px;
}

.home-page main p:nth-last-of-type(2) a:first-child {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

footer a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid #7659ff;
  outline-offset: 4px;
}

@media (width <= 620px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 20px;
  }

  nav {
    gap: 12px 18px;
  }

  nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  main {
    padding-block: 36px 54px;
  }

  .home-page main {
    padding-top: 38px;
  }
}

.brand {
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', Inter, 'Inter Fallback', sans-serif;
  letter-spacing: -0.06em;
  font-size: 24px;
}

main h1,
main h2 {
  font-family: 'Space Grotesk', 'Space Grotesk Fallback', Inter, 'Inter Fallback', sans-serif;
}

main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-block: 35px;
  padding-inline: clamp(24px, 5vw, 65px);
}

nav a[href='/login'] {
  background: #ff784b;
  border-color: #ff784b;
  color: var(--ink);
}

@media (width <= 620px) {
  main {
    margin-block: 15px;
  }
}
