@import url("./token.css");
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "NimbusSanL", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.brand-link {
  display: block;
  width: 112px;
  flex-shrink: 0;
  line-height: 0;
}

.logo-icon {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.logo-wordmark,
.logo-mark {
  fill: var(--logo-fill);
  stroke: var(--logo-stroke);
  paint-order: stroke fill;
  stroke-linejoin: round;
}

.logo-wordmark {
  stroke-width: 10px;
}

.logo-mark {
  stroke-width: 5px;
}

.page-header nav,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.page-header nav a {
  font-size: 0.9375rem;
  text-decoration: none;
}

.page-header nav a:hover {
  text-decoration: underline;
}

.content,
.legal-page {
  flex: 1;
  margin-block: 32px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.04em;
}

.title-anchor {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.title-phrase {
  margin: 2px 0 0;
  color: var(--muted);
}

.about {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.info h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: 0.01em;
}

.info .title-anchor {
  font-size: 24px;
  color: var(--muted);
}

.about-block {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: stretch;
  gap: 18px;
}

.about-block:nth-child(even) {
  grid-template-columns: 1fr 1.6fr;
}

.about-block:nth-child(even) .about-media {
  order: -1;
}

.about-text p {
  margin: 0;
}

.about-media {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.about-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.about-block.about-block--text {
  grid-template-columns: 1fr;
}

.about-block--text .about-text {
  grid-column: 1 / -1;
}

.about-block--text .about-text p {
  max-width: none;
}

.social-media {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 24px;
  color: var(--muted);
}

.social-link {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
  transition: color 150ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--social-hover);
}

.social-icon {
  width: 50px;
  height: 50px;
  fill: currentColor;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer p {
  margin: 0;
}

.legal-card {
  width: 100%;
}

.legal-card h1 {
  font-size: 2rem;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.legal-card h2 {
  margin: 24px 0 8px;
  font-size: 1.375rem;
}

.legal-card h3 {
  margin-top: 28px;
  font-size: 1.125rem;
}

.legal-card p {
  overflow-wrap: anywhere;
}

.legal-note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.brand-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--hero-bg);
  color: var(--hero-text);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) brightness(0.55);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 32px;
  text-align: center;
}

.hero-logo {
  width: min(500px, 78vw, 38svh);
  margin: 0 0 24px;
}

.hero-intro {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: bold;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.hero-description {
  max-width: 48ch;
  margin: 16px 0 0;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.button {
  padding: 12px 32px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-weight: bold;
  text-decoration: none;
  background: var(--hero-bg);
}

.button:hover {
  background: var(--hero-text);
  color: var(--hero-bg);
}

.brand-page .social-media {
  color: var(--hero-text);
}

.brand-page .social-link:hover,
.brand-page .social-link:focus-visible {
  color: var(--hero-bg);
}

.hero-intro,
.hero-description,
.brand-page .footer {
  text-shadow:
    0 1px 2px var(--hero-bg),
    0 0 4px var(--hero-bg);
}

.brand-page .social-media {
  margin-top: 16px;
}

.brand-page .footer {
  margin-inline: clamp(24px, 5vw, 80px);
  color: var(--hero-text);
  border-color: var(--hero-line);
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 40px);
  }

  .page-header {
    align-items: flex-start;
    gap: 20px;
  }

  .brand-link {
    width: 88px;
  }

  .page-header nav {
    justify-content: flex-end;
    gap: 8px 16px;
  }

  .about-block,
  .about-block:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-media img {
    position: static;
    height: auto;
  }

  .about-block:nth-child(even) .about-media {
    order: 0;
  }

  .hero {
    padding-block: 24px 32px;
  }

  .hero-logo {
    margin-bottom: 28px;
  }
}
