:root {
  color-scheme: light dark;
  --background: #f1edea;
  --text: #28282d;
  --muted: rgba(40, 40, 45, 0.68);
  --line: #dcd3d0;
  --accent: #6667ab;
  --width: 980px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--background);
}

.skip-link:focus {
  transform: translateY(0);
}

header,
main,
footer {
  width: min(var(--width), calc(100% - 40px));
  margin: 0 auto;
}

header {
  display: flex;
  min-height: 72px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

nav > a:first-child {
  margin-right: auto;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  color: var(--text);
}

.product {
  padding: 48px 0 52px;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  align-items: start;
  gap: 48px;
}

.product + .product {
  border-top: 1px solid var(--line);
}

#threadpd {
  scroll-margin-top: 24px;
}

.product-copy {
  min-width: 0;
}

.product-media {
  width: 100%;
  margin: 0;
  justify-self: end;
}

.product-screen {
  display: block;
  width: 100%;
  max-height: 660px;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(20, 18, 35, 0.18));
}

.label {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-size: clamp(52px, 9vw, 74px);
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.lead + .lead {
  margin-top: 14px;
}

.store-link {
  display: inline-flex;
  margin-top: 38px;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.store-link:hover,
.store-link:focus-visible {
  filter: brightness(0.92);
}

.contact {
  display: block;
  max-width: 760px;
}

.contact-methods {
  display: grid;
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.contact-methods a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-methods a span:last-child {
  color: var(--text);
  text-align: right;
}

.contact-methods a:hover,
.contact-methods a:focus-visible {
  color: var(--text);
}

.footer-apps {
  display: flex;
  gap: 12px;
}

.footer-apps a {
  display: block;
  border-radius: 16px;
}

.footer-apps a:hover,
.footer-apps a:focus-visible {
  transform: translateY(-2px);
}

.footer-apps img {
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(20, 18, 35, 0.14);
}

footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer span {
  margin-left: auto;
}

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

.not-found {
  display: flex;
  min-height: 100vh;
  justify-content: center;
  flex-direction: column;
}

.not-found h1 {
  font-size: clamp(38px, 8vw, 58px);
}

.policy-page {
  max-width: 760px;
  padding: 48px 0 72px;
}

.policy-toc {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
}

.policy-toc a:hover,
.policy-toc a:focus-visible {
  color: var(--text);
}

.policy-section {
  padding-top: 56px;
  scroll-margin-top: 24px;
}

.policy-section + .policy-section {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  font-size: clamp(34px, 6vw, 48px);
}

.policy-section h3 {
  margin: 34px 0 0;
  font-size: 18px;
  line-height: 1.4;
}

.policy-section p,
.policy-section li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.policy-section p {
  margin: 16px 0 0;
}

.policy-section ul,
.policy-section ol {
  margin: 14px 0 0;
  padding-left: 1.4em;
}

.policy-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.policy-updated {
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #28282d;
    --text: #dcd3d0;
    --muted: rgba(220, 211, 208, 0.68);
    --line: #3c3c41;
    --accent: #6667ab;
  }

  .product-screen {
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.38));
  }

  .footer-apps img {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }
}

::selection {
  background: rgba(102, 103, 171, 0.28);
}

@media (max-width: 760px) {
  .product-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-media {
    width: min(310px, 82%);
    justify-self: center;
  }

}

@media (max-width: 560px) {
  header,
  main,
  footer {
    width: min(var(--width), calc(100% - 32px));
  }

  header {
    min-height: 64px;
  }

  nav {
    gap: 16px;
    font-size: 12px;
  }

  .product {
    padding: 44px 0 48px;
  }

  .policy-page {
    padding: 44px 0 56px;
  }

  .lead {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.8;
  }

  .contact-methods a {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .contact-methods a span:last-child {
    text-align: left;
  }

  footer {
    min-height: 140px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 30px 0;
  }

  footer span {
    margin: 10px 0 0;
  }

  .footer-apps img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
}
