@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/fraunces-latin-600.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --paper: #fff8e7;
  --ink: #000000;
  --accent: #c9302c;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 240px;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(100%, 1440px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: max(40px, env(safe-area-inset-top))
    max(7.222vw, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(7.222vw, env(safe-area-inset-left));
}

.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 32px;
}

.accent {
  width: 28px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--accent);
}

.domain {
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

main {
  display: flex;
  flex: 1;
  align-items: center;
  padding-block: 80px 100px;
}

.intro {
  width: 100%;
}

h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.75rem, 12.8vw, 7.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.description {
  max-width: 52ch;
  margin: 28px 0 0;
  font-size: 20px;
  line-height: 1.65;
  text-wrap: pretty;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  border-top: 1px solid currentColor;
  padding-top: 24px;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.parent-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  text-decoration: none;
}

.parent-mark {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 2px;
  border-radius: 50%;
  background: #000000;
}

.parent-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.company-mark {
  width: 56px;
  height: 56px;
  padding: 3px;
  margin-bottom: 16px;
}

.brand-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 24px;
  max-width: 620px;
  margin-top: 24px;
  font-size: 16px;
}

.brand-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  user-select: text;
}

.admin {
  overflow-wrap: anywhere;
}

.parent-link:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 1px;
}

.support {
  user-select: text;
  -webkit-user-select: text;
  overflow-wrap: anywhere;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --ink: #fff8e7;
  }
}

@media (min-width: 601px) {
  body {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
  }

  .page {
    min-height: min(100vh, 760px);
    min-height: min(100svh, 760px);
  }

  main {
    padding-block: 56px 64px;
  }

  .description {
    max-width: 48ch;
    margin-top: 20px;
    font-size: 24px;
    line-height: 1.55;
  }
}

@media (max-width: 600px) {
  .brand-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .page {
    padding: max(28px, env(safe-area-inset-top))
      max(28px, env(safe-area-inset-right))
      max(28px, env(safe-area-inset-bottom))
      max(28px, env(safe-area-inset-left));
  }

  main {
    padding-block: 64px 80px;
  }

  .description {
    max-width: 34ch;
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.65;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 18px;
  }
}

/* The page is intentionally still: no animation, transition or scrolling effect. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
