:root {
  color-scheme: light;
  --navy: #172d4a;
  --navy-soft: #2f4f72;
  --coral-text: #b82f1a;
  --turquoise-light: #f0fbfa;
  --paper: #fffdf9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--turquoise-light);
  color: var(--navy);
  font-family: "Geist Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #fbc5b9;
  color: var(--navy);
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  background: var(--paper);
}

.site-header__inner,
.site-main,
.site-footer {
  width: min(100% - 3rem, 1200px);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  min-height: 112px;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 214px;
  height: auto;
}

.site-main {
  display: flex;
  flex: 1;
  align-items: center;
  padding-block: 7rem;
}

.notice {
  max-width: 880px;
  padding-bottom: 2rem;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.25rem, 7.1vw, 6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 span {
  color: var(--coral-text);
}

.notice__return {
  margin: 2.75rem 0 0;
  color: var(--coral-text);
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  font-weight: 750;
  line-height: 1.2;
}

.notice__detail {
  max-width: 55ch;
  margin: 1.25rem 0 0;
  color: var(--navy-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

.site-footer {
  padding-block: 1.5rem 2rem;
  color: var(--navy-soft);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-main,
  .site-footer {
    width: min(100% - 2.5rem, 1200px);
  }

  .site-header__inner {
    min-height: 88px;
  }

  .brand-logo {
    width: 172px;
  }

  .site-main {
    padding-block: 4.5rem;
  }

  h1 {
    font-size: clamp(2.75rem, 12vw, 4.5rem);
  }

  .notice__return {
    margin-top: 2rem;
  }

  .notice__detail {
    font-size: 1rem;
  }
}
