:root {
  --cream: #f2eee5;
  --ink: #183038;
  --coral: #e46e51;
  --yellow: #e8ba57;
  --moss: #7e9072;
  --line: rgba(24, 48, 56, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 9px 13px;
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header,
main,
footer {
  width: min(1240px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.brand-mark {
  position: relative;
  width: 28px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i::before,
.brand-mark i::after {
  position: absolute;
  width: 5px;
  height: 2px;
  content: "";
  background: currentColor;
}

.brand-mark::before { left: -6px; }
.brand-mark::after { right: -6px; }
.brand-mark i::before { top: -5px; left: 9px; transform: rotate(90deg); }
.brand-mark i::after { bottom: -5px; left: 9px; transform: rotate(90deg); }

.header-email,
footer a {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}

.header-email {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

.header-email:hover,
footer a:hover {
  color: var(--coral);
}

.hero {
  min-height: calc(100vh - 220px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.15fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
  padding: 70px 0 80px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.5rem, 12vw, 10.5rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.72;
}

h1 em {
  color: var(--coral);
  font-weight: inherit;
}

.tagline {
  max-width: 440px;
  margin: 50px 0 0;
  color: #3e555d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.zero-field {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.zero {
  position: relative;
  z-index: 2;
  width: min(410px, 70vw);
  height: min(510px, 87vw);
  background: var(--ink);
  border-radius: 48%;
  box-shadow: 28px 30px 0 var(--coral);
  transform: rotate(6deg);
}

.zero-cutout {
  position: absolute;
  top: 19%;
  right: 25%;
  bottom: 19%;
  left: 25%;
  background: var(--cream);
  border-radius: 50%;
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-one {
  width: 540px;
  height: 430px;
  transform: rotate(-20deg);
}

.orbit-two {
  width: 610px;
  height: 270px;
  transform: rotate(24deg);
}

.note {
  position: absolute;
  z-index: 3;
  padding: 9px 14px;
  background: var(--yellow);
  box-shadow: 0 14px 28px rgba(24, 48, 56, 0.14);
  font-family: "Bradley Hand", "Segoe Print", cursive;
  transform: rotate(-6deg);
}

.note-one {
  top: 16%;
  left: 3%;
}

.note-two {
  right: 3%;
  bottom: 15%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--cream);
  background: var(--moss);
  border-radius: 50%;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  transform: rotate(9deg);
}

.spark {
  position: absolute;
  z-index: 3;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.spark-one { top: 8%; right: 18%; background: var(--coral); }
.spark-two { bottom: 7%; left: 18%; background: var(--yellow); }
.spark-three { top: 47%; left: 0; width: 8px; height: 8px; background: var(--moss); }

.hello {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 52px 0 58px;
  border-top: 1px solid var(--line);
}

.hello .eyebrow {
  margin-bottom: 8px;
}

.hello p:not(.eyebrow) {
  margin: 0;
  color: #52656b;
  font-size: 0.95rem;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: 2px solid currentColor;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 3.2rem);
  letter-spacing: -0.035em;
}

.email-link:hover {
  color: var(--coral);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 25px;
  align-items: center;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: #65767b;
  font-size: 0.72rem;
}

footer span:last-child {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .site-header,
  main,
  footer { width: min(100% - 38px, 680px); }
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .zero-field { min-height: 520px; }
  .hello { align-items: flex-start; flex-direction: column; }
  footer { grid-template-columns: 1fr auto; }
  footer span:last-child { display: none; }
}

@media (max-width: 560px) {
  .site-header { height: 76px; }
  .header-email { font-size: 0; }
  .header-email::after { content: "Email"; font-size: 0.8rem; }
  .hero { min-height: auto; padding: 70px 0 50px; }
  h1 { font-size: clamp(5rem, 27vw, 7.5rem); }
  .tagline { margin-top: 42px; }
  .zero-field { min-height: 390px; }
  .zero { width: 250px; height: 315px; box-shadow: 18px 20px 0 var(--coral); }
  .orbit-one { width: 340px; height: 280px; }
  .orbit-two { width: 380px; height: 185px; }
  .note-one { top: 11%; left: 0; }
  .hello { padding-block: 40px; }
  .email-link { font-size: clamp(1.35rem, 7vw, 2rem); }
}
