@font-face {
  font-family: "Sniglet";
  src: url("assets/sniglet-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("assets/roboto-mono-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("assets/roboto-mono-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --background: #faf5ec;
  --black: #000000;
  --white: #ffffff;
  --grey-1: #989695;
  --grey-2: #ede8e0;
  --primary: #f88972;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--black);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 36px;
  left: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.brand__logo {
  display: block;
  width: 83.2px;
  height: 78.4px;
}

.brand__name {
  font: 400 40px/0.6 "Sniglet", sans-serif;
  white-space: nowrap;
}

.poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1044px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: max(76px, calc((100svh - 853px) / 2)) 0 56px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.title-lockup {
  position: relative;
  width: 100%;
  height: 366px;
}

.title-lockup__beach {
  position: absolute;
  top: 0;
  left: calc(50% + 136.5px);
  width: 449px;
  height: auto;
  aspect-ratio: 448.98 / 243;
  transform: translateX(-50%);
}

h1 {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 994px;
  margin: 0;
  transform: translateX(-50%);
  font: 400 240px/0.785 "Sniglet", sans-serif;
  letter-spacing: -7px;
  white-space: nowrap;
}

.intro {
  width: 720px;
  margin: 0;
  font: 400 24px/1.25 "Roboto Mono", monospace;
  text-align: center;
}

.funding {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}

.funding p {
  margin: 0;
}

.funding__amount {
  height: 75px;
  font: 400 80px/0.94 "Sniglet", sans-serif;
}

.funding__target {
  font: 400 24px/1.2 "Roboto Mono", monospace;
}

.funding__target span {
  color: var(--primary);
}

.progress-section {
  width: 100%;
  margin-top: 24px;
}

.progress {
  position: relative;
  width: 750px;
  height: 76px;
  margin: 0 auto;
}

.progress__track {
  position: absolute;
  top: 43.5px;
  left: 0;
  width: 100%;
  height: 24px;
  overflow: hidden;
  border-radius: 100px;
  background: var(--grey-2);
}

.progress__fill {
  display: block;
  width: 64px;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.progress__tooltip {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 44.4px;
  width: 39.5px;
  height: 36px;
}

.progress__tooltip img {
  display: block;
  width: 100%;
  height: 100%;
}

.progress__tooltip span {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  color: var(--white);
  font: 400 14px/1 "Roboto Mono", monospace;
  text-align: center;
}

.progress__note {
  position: absolute;
  top: 15px;
  left: 755px;
  width: 104px;
  font: 400 16px/1.05 "Sniglet", sans-serif;
}

.progress__note img {
  display: block;
  width: 47px;
  height: 8px;
  margin-bottom: 6px;
}

.progress__note span {
  display: block;
  margin-left: 25px;
  white-space: nowrap;
}

.donations {
  display: grid;
  grid-template-columns: 1.03fr 1.29fr 1.42fr 0.78fr;
  gap: 14px;
  width: 100%;
  margin-top: 32px;
}

.donation {
  display: flex;
  min-height: 117px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 20px;
  border: 1px solid var(--grey-1);
  border-radius: 16px;
  background: var(--background);
  color: var(--black);
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.donation--primary {
  border-color: var(--primary);
  background: var(--primary);
}

.donation__amount {
  font: 400 32px/1 "Sniglet", sans-serif;
  white-space: nowrap;
}

.donation__caption {
  font: 600 16px/1.2 "Roboto Mono", monospace;
  text-align: center;
  white-space: nowrap;
}

.donation:hover,
.donation:focus-visible {
  transform: translateY(-4px);
  outline: none;
  background: var(--white);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08);
}

.donation--primary:hover,
.donation--primary:focus-visible {
  background: #ff9a84;
}

.donation:active {
  transform: translateY(0);
  box-shadow: none;
}

.about {
  width: min(520px, calc(100% - 32px));
  padding: 40px;
  border: 1px solid var(--grey-1);
  border-radius: 18px;
  background: var(--background);
  color: var(--black);
  box-shadow: 12px 12px 0 var(--primary);
}

.about::backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
}

.about h2 {
  margin: 0 32px 24px 0;
  font: 400 42px/1 "Sniglet", sans-serif;
}

.about p {
  margin: 0 0 16px;
  font: 400 16px/1.5 "Roboto Mono", monospace;
}

.about p:last-child {
  margin-bottom: 0;
}

.about__close {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  font: 400 32px/1 "Sniglet", sans-serif;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .site-header {
    top: 24px;
    left: 24px;
  }

  .brand__logo {
    width: 72px;
    height: 68px;
  }

  .brand__name {
    font-size: 30px;
  }

  .poster {
    width: min(900px, calc(100% - 48px));
    padding-top: 130px;
  }

  .title-lockup {
    height: 310px;
  }

  .title-lockup__beach {
    left: calc(50% + 105px);
    width: 365px;
    height: auto;
  }

  h1 {
    width: auto;
    font-size: clamp(132px, 19vw, 200px);
    letter-spacing: -5px;
  }

  .progress {
    width: min(750px, calc(100% - 110px));
  }

  .progress__note {
    left: calc(100% + 5px);
  }

  .donation {
    padding-inline: 12px;
  }

  .donation__caption {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    top: 18px;
    left: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand__logo {
    width: 54px;
    height: 51px;
  }

  .brand__name {
    font-size: 24px;
  }

  .poster {
    width: min(100% - 32px, 540px);
    padding: 104px 0 36px;
  }

  .title-lockup {
    height: clamp(174px, 49vw, 245px);
  }

  .title-lockup__beach {
    top: 0;
    left: calc(50% + 50px);
    width: clamp(180px, 48vw, 260px);
  }

  h1 {
    bottom: 0;
    font-size: clamp(72px, 21vw, 116px);
    line-height: 0.82;
    letter-spacing: -2px;
  }

  .intro {
    width: min(100%, 500px);
    font-size: clamp(14px, 3.7vw, 18px);
  }

  .desktop-break {
    display: none;
  }

  .funding {
    margin-top: 30px;
  }

  .funding__amount {
    height: auto;
    font-size: 64px;
    line-height: 1;
  }

  .funding__target {
    font-size: 17px;
  }

  .progress-section {
    margin-top: 24px;
  }

  .progress {
    width: calc(100% - 60px);
    height: 88px;
    margin-left: 0;
  }

  .progress__tooltip {
    left: 25px;
  }

  .progress__note {
    top: 13px;
    left: calc(100% + 7px);
    font-size: 13px;
  }

  .progress__note span {
    margin-left: 8px;
  }

  .donations {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .donation {
    min-height: 100px;
    padding: 16px 8px;
  }

  .donation__amount {
    font-size: 27px;
  }

  .donation__caption {
    font-size: clamp(10px, 2.8vw, 13px);
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .donations {
    grid-template-columns: 1fr;
  }

  .donation {
    min-height: 84px;
  }

  .about {
    padding: 34px 24px 28px;
  }

  .about h2 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .donation {
    transition: none;
  }
}
