:root {
  color-scheme: light;
  --page: #f8f9fc;
  --ink: #151a2c;
  --quiet: #4e586d;
  --accent: #4935bd;
  --accent-dark: #35238f;
  --line: #dfe3ec;
  --white: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure, dl, dd { margin: 0; }
p, dd { color: var(--quiet); line-height: 1.65; }
h1, h2 { letter-spacing: -.055em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[id] { scroll-margin-top: 22px; }
.shell { width: min(100% - 80px, 1240px); margin-inline: auto; }
.skip-link { position: absolute; left: 14px; top: 12px; z-index: 1; padding: 10px 14px; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand, .wordmark { font-size: 1.23rem; font-weight: 760; letter-spacing: -.055em; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--ink); color: var(--white); font-size: 1.2rem; }
nav { display: flex; gap: clamp(16px, 3vw, 38px); flex-wrap: wrap; }
nav a { color: var(--quiet); font-size: .94rem; font-weight: 590; text-decoration: none; }
nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .24em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  padding-block: clamp(52px, 8vw, 113px) clamp(47px, 7vw, 95px);
}
.hero h1 { font-size: clamp(3rem, 5.75vw, 5.2rem); font-weight: 770; line-height: .99; }
.hero h1 span { color: var(--accent); }
.hero p { margin-top: 24px; max-width: 37ch; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: .94rem;
  font-weight: 660;
  text-decoration: none;
}
.button:hover { background: var(--accent-dark); }
.hero .button { margin-top: 30px; }
.preview { min-width: 0; }
.screen { padding: 9px; border: 1px solid #343654; border-radius: 19px; background: #20233a; box-shadow: 0 20px 50px rgb(34 30 75 / 18%); }
.screen img { width: 100%; border-radius: 11px; }
.preview figcaption { margin-top: 16px; padding-inline: 3px; color: var(--quiet); font-size: .8rem; }

.project-section { background: var(--white); border-block: 1px solid var(--line); }
.project, .contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(26px, 8vw, 116px); padding-block: clamp(42px, 6vw, 80px); }
.project h2, .contact h2 { font-size: clamp(2rem, 4.4vw, 3.7rem); font-weight: 760; line-height: 1.1; }
.project h2 + p, .contact h2 + p { margin-top: 15px; max-width: 49ch; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--accent); font-weight: 680; text-underline-offset: .27em; }
.text-link:hover { color: var(--accent-dark); }
.email-link { color: var(--accent); overflow-wrap: anywhere; text-underline-offset: .23em; }
.project-details > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.project-details > div:first-child { border-top: 1px solid var(--line); }
.project-details dt { font-weight: 670; line-height: 1.65; }
.contact .button { justify-self: end; }
.button-secondary { background: transparent; color: var(--accent); border-color: #c8bee9; }
.button-secondary:hover { background: #eeeafb; }
.site-footer { border-top: 1px solid var(--line); }

.legal { width: min(100% - 80px, 730px); margin-inline: auto; padding-block: 60px 84px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.1; }
.legal h2 { margin: 31px 0 10px; font-size: 1.37rem; letter-spacing: -.025em; }
.legal p + p { margin-top: 12px; }
.legal address { font-style: normal; line-height: 1.65; color: var(--quiet); }
.legal address + p { margin-top: 12px; }
.legal p a { color: var(--accent); text-underline-offset: .22em; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 610px; }
  .hero p { max-width: 48ch; }
  .preview { max-width: 690px; }
  .project { column-gap: 36px; }
  .project-details > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 600px) {
  .shell, .legal { width: calc(100% - 36px); }
  .hero { padding-top: 47px; grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.55rem, 10vw, 3.55rem); }
  .hero p { margin-top: 18px; }
  .hero .button { margin-top: 22px; }
  .header-inner, .footer-inner { min-height: 67px; gap: 14px; }
  .header-inner nav, .footer-inner nav { gap: 14px; }
  .project, .contact { grid-template-columns: 1fr; }
  .project-details > div { grid-template-columns: 104px 1fr; gap: 9px; }
  .contact .button { justify-self: start; }
  .screen { border-radius: 13px; padding: 5px; }
  .screen img { border-radius: 8px; }
}
