:root {
  color-scheme: light;
  --paper: #fffdf9;
  --ink: #242424;
  --soft-ink: rgba(36, 36, 36, 0.68);
  --blush: #ffd6d2;
  --blush-strong: #f7bebb;
  --line: rgba(36, 36, 36, 0.16);
  --ambient: rgba(255, 214, 210, 0.18);
  --button-border: rgba(36, 36, 36, 0.18);
  --toggle-bg: rgba(255, 253, 249, 0.76);
  --toggle-shadow: rgba(36, 36, 36, 0.1);
  --mark-shadow: none;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121512;
  --ink: #fff7ed;
  --soft-ink: rgba(255, 247, 237, 0.72);
  --blush: #d7a0a1;
  --blush-strong: #efc3bd;
  --line: rgba(255, 247, 237, 0.18);
  --ambient: rgba(216, 178, 114, 0.16);
  --button-border: rgba(255, 247, 237, 0.24);
  --toggle-bg: rgba(18, 21, 18, 0.72);
  --toggle-shadow: rgba(0, 0, 0, 0.36);
  --mark-shadow: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.34));
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--ambient), transparent 38%),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  transition: background-color 180ms ease, color 180ms ease;
}

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

.home {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.theme-toggle {
  position: fixed;
  z-index: 2;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--ink);
  box-shadow: 0 12px 30px var(--toggle-shadow);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
}

.theme-toggle:focus-visible,
.button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blush-strong) 70%, transparent);
  outline-offset: 4px;
}

.theme-icon {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: opacity 160ms ease, transform 160ms ease;
}

.theme-icon-sun {
  opacity: 0;
  transform: scale(0.72) rotate(-24deg);
}

.theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: scale(0.72) rotate(24deg);
}

.layout-card {
  position: relative;
  width: min(1040px, 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 9vh, 5.25rem) clamp(1rem, 5vw, 4.5rem);
}

.bird-mark {
  position: absolute;
  top: clamp(1.1rem, 3vw, 2rem);
  right: clamp(1rem, 5vw, 4rem);
  width: clamp(82px, 12vw, 138px);
  height: auto;
  filter: var(--mark-shadow);
}

.copy-block {
  max-width: min(760px, 100%);
}

h1,
p {
  margin: 0;
}

h1 {
  max-width: 9ch;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6.85rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 0.98;
  text-transform: uppercase;
}

.lede {
  margin-top: clamp(1rem, 2.4vh, 1.5rem);
  color: var(--ink);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
}

.body-copy {
  max-width: min(680px, 100%);
  margin-top: clamp(1rem, 2.3vh, 1.35rem);
  color: var(--soft-ink);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: clamp(1.4rem, 3vh, 2rem);
  border: 1px solid var(--button-border);
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  background: var(--blush);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--blush-strong);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .home {
    align-items: center;
    padding: 1rem;
  }

  .layout-card {
    padding: 5.75rem 0.1rem 3rem;
  }

  .bird-mark {
    top: 1.25rem;
    right: 3.4rem;
    width: clamp(70px, 24vw, 104px);
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 5.2rem);
    letter-spacing: 0.06em;
  }

  .body-copy {
    max-width: min(34rem, 100%);
  }
}

@media (max-width: 380px), (max-height: 700px) {
  .layout-card {
    padding-top: 4.8rem;
    padding-bottom: 2.2rem;
  }

  .bird-mark {
    width: 70px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .lede {
    font-size: 1.08rem;
  }

  .body-copy {
    font-size: 1rem;
  }

  .button {
    min-height: 42px;
    margin-top: 1.05rem;
    padding: 0.62rem 1rem;
  }
}
