@font-face {
  font-family: "Bricolage Display";
  src: url("fonts/bricolage-display.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Text";
  src: url("fonts/bricolage-text.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f7f5;
  --ink: #1e3a32;
  --ink-soft: #5a7169;
  --line: #cdd7d2;
  --sun: #e9a83a;
  --horizon: rgba(245, 247, 245, 0.45);
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --display: "Bricolage Display", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --text: "Bricolage Text", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(20rem, 2fr);
  min-height: 100vh;
  min-height: 100svh;
}

.content {
  display: flex;
  flex-direction: column;
  padding: min(var(--gutter), 7vh) var(--gutter);
  min-width: 0;
}

.top,
.bottom {
  flex: 0 0 auto;
}

.notice {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 7vh, 6rem) 0;
  max-width: 38rem;
}

.brand {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, min(4.2vw + 1rem, 9vh), 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 34rem;
  text-wrap: pretty;
}

.contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact a {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 160ms ease;
}

.contact a:hover {
  text-decoration-color: var(--ink);
}

.contact a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.dawn {
  background: var(--ink);
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.sky {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-bottom: 1.5px solid var(--horizon);
}

.sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 72%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--sun);
  transform: translate(-50%, 50%);
  animation: rise 1.8s cubic-bezier(0.22, 0.7, 0.2, 1) 0.25s both;
}

@keyframes rise {
  from {
    transform: translate(-50%, 102%);
  }
  to {
    transform: translate(-50%, 50%);
  }
}

@media (max-width: 52rem) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .dawn {
    order: -1;
    min-height: clamp(13rem, 34vh, 20rem);
    padding: clamp(1.25rem, 6vw, 2.5rem) var(--gutter);
  }

  .sky {
    width: min(100%, 15rem);
  }

  .notice {
    padding: clamp(2.5rem, 7vh, 4rem) 0;
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.125rem, 9vw, 3rem);
  }

  .lead,
  .contact a {
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sun {
    animation: none;
  }

  .contact a {
    transition: none;
  }
}
