@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&family=Unbounded:wght@500;700&display=swap");

:root {
  color-scheme: light;
  --ink: #17251f;
  --paper: #f2eee5;
  --yellow: #f5b82e;
  --orange: #ef6b36;
  --blue: #397a8d;
  --line: rgba(23, 37, 31, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 24%, rgba(245, 184, 46, 0.14), transparent 22rem),
    linear-gradient(rgba(23, 37, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 37, 31, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 44px 44px, 44px 44px, auto;
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
}

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

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

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-size: 10px;
  letter-spacing: -0.08em;
}

.status {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(239, 107, 54, 0.14);
  animation: pulse 2.4s ease-out infinite;
}

main {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(460px, 0.9fr) minmax(500px, 1.1fr);
  min-height: calc(100vh - 180px);
  align-items: center;
  gap: 5vw;
  padding: 64px 0 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 44px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(52px, 6vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

h1 em {
  color: var(--orange);
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 570px;
  margin: 36px 0 32px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
}

.github-link {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  padding: 15px 20px;
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.github-link:hover {
  transform: translate(3px, 3px);
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}

.github-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.duck-scene {
  position: relative;
  min-height: 570px;
  border: 1px solid var(--line);
  border-radius: 50% 50% 48% 52% / 46% 44% 56% 54%;
  background: rgba(255, 255, 255, 0.27);
  isolation: isolate;
}

.sun {
  position: absolute;
  top: 11%;
  right: 10%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 18px rgba(245, 184, 46, 0.12);
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px dashed rgba(23, 37, 31, 0.23);
  border-radius: 50%;
}

.orbit-one {
  inset: 8% 10% 16% 4%;
  transform: rotate(-9deg);
}

.orbit-two {
  inset: 18% 4% 5% 13%;
  transform: rotate(17deg);
}

.duck {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  left: 50%;
  width: min(92%, 620px);
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 0 rgba(23, 37, 31, 0.08));
  animation: float 5s ease-in-out infinite;
}

.duck-body,
.duck-neck,
.duck-head {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linejoin: round;
}

.duck-wing {
  fill: #eaa72a;
  stroke: var(--ink);
  stroke-width: 7;
}

.duck-beak {
  fill: var(--orange);
  stroke: var(--ink);
  stroke-width: 7;
}

.duck-eye {
  fill: var(--ink);
}

.duck-eye-glint {
  fill: white;
}

.duck-brow,
.duck-detail {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 7;
}

.duck-detail {
  opacity: 0.35;
  stroke-width: 5;
}

.duck-shadow {
  fill: var(--blue);
  opacity: 0.22;
}

.water-line {
  position: absolute;
  z-index: 3;
  height: 2px;
  border-radius: 50%;
  background: var(--blue);
  transform: rotate(-2deg);
}

.line-one {
  bottom: 14%;
  left: 7%;
  width: 35%;
}

.line-two {
  right: 5%;
  bottom: 20%;
  width: 25%;
}

.scene-note {
  position: absolute;
  top: 24%;
  left: 7%;
  margin: 0;
  transform: rotate(-9deg);
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.1;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 0 0 28px;
  color: rgba(23, 37, 31, 0.65);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, 0) rotate(-0.6deg); }
  50% { transform: translate(-50%, -10px) rotate(0.8deg); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 107, 54, 0.35); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(239, 107, 54, 0); }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .duck-scene {
    min-height: min(72vw, 620px);
  }
}

@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1400px);
  }

  .site-header {
    min-height: 80px;
  }

  .brand > span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 36px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .lead {
    margin-top: 26px;
  }

  .duck-scene {
    min-height: 390px;
  }

  .sun {
    width: 74px;
    height: 74px;
  }

  .scene-note {
    top: 20%;
    font-size: 15px;
  }

  footer {
    gap: 12px;
    padding-bottom: 20px;
  }

  footer span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
