/* Homepage: one-screen layout, falling leaves and small-screen adjustments. */

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
body {
  background: var(--sand);
  color: var(--sea);
  font:
    16px Arial,
    sans-serif;
}
body:after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.075;
  pointer-events: none;
  z-index: 6;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.55' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
button,
a {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 6px;
}
header {
  height: 90px;
  position: fixed;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  z-index: 8;
}
.logo {
  font:
    43px Georgia,
    serif;
  letter-spacing: -9px;
  padding-right: 10px;
}
nav {
  display: flex;
  gap: 34px;
}
nav a {
  font-size: 14px;
  position: relative;
  padding: 10px 0;
}
nav a:after {
  content: "";
  height: 1px;
  background: var(--terra);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
nav a:hover:after,
nav a[aria-current]:after {
  transform: scaleX(1);
}
nav a[aria-current] {
  color: var(--terra);
}
.art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.painting {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/mango-artwork.png") left bottom/auto 100% no-repeat;
  mask-image: linear-gradient(90deg, #000 34%, transparent 57%);
}
main {
  height: 100svh;
  position: relative;
}
.page {
  position: absolute;
  inset: 90px 4% 85px 59%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--olive);
  margin: 0 0 22px;
}
h1 {
  font:
    normal clamp(60px, 8.9vw, 150px)/0.88 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.065em;
  margin: 0 0 28px;
}
h1 span {
  display: block;
}
.rule {
  width: 87px;
  height: 2px;
  background: linear-gradient(90deg, var(--olive) 70%, #c28b36 70%);
  margin: 0 0 23px;
}
.intro {
  font-size: clamp(13px, 1.5vw, 23px);
  line-height: 1.5;
  margin: 0 0 21px;
  max-width: 420px;
}
.resume {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 1px solid var(--sea);
  border-radius: 40px;
  padding: 12px 22px;
  font-size: 14px;
}
.resume[aria-disabled],
.socials button[aria-disabled] {
  cursor: default;
}
.socials {
  display: flex;
  gap: 22px;
  margin-top: 22px;
}
.socials button,
.socials a {
  padding: 3px;
  background: none;
  border: 0;
}
.socials svg,
.resume svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.socials button:hover,
.socials a:hover {
  color: var(--terra);
}
footer {
  position: fixed;
  right: 4%;
  bottom: 30px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}
.motto {
  font:
    18px Georgia,
    serif;
  color: var(--olive);
}
.copyright {
  font-size: 8px;
  letter-spacing: 3px;
}
.motion {
  position: fixed;
  bottom: 23px;
  left: 25px;
  background: #eee2c9b8;
  border: 0;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 10px;
  z-index: 9;
}
.leaves {
  position: absolute;
  left: 0;
  top: 10%;
  width: 52%;
  height: 90%;
  overflow: hidden;
  pointer-events: none;
}
.leaf {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 16px;
  height: 36px;
  opacity: 0;
  animation: fall var(--duration) linear infinite;
  animation-delay: var(--delay);
}
.leaf:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--olive);
  border-radius: 100% 0 100% 0;
  box-shadow: inset 1px 0 #e4d5a999;
}
.leaf:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  width: 1px;
  height: 80%;
  background: #d0bd8c;
  transform: rotate(18deg);
}
.paused .leaf {
  animation-play-state: paused;
}
.wipe {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #b35e3b;
  transform: translateY(100%);
  pointer-events: none;
}
.wipe.go {
  animation: wipe 0.8s cubic-bezier(0.7, 0, 0.25, 1);
}
.page.arrive {
  animation: arrive 0.7s both;
}
.secondary h1 {
  font-size: clamp(50px, 7vw, 105px);
  line-height: 1.05;
}
.secondary .intro {
  font-size: 16px;
  max-width: 400px;
}
.back {
  margin-top: 20px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--terra);
  padding: 8px 0;
  font-size: 13px;
}
.notice {
  font-size: 11px;
  color: var(--olive);
  margin-top: 12px;
  min-height: 16px;
}
@keyframes fall {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-25deg);
  }
  8% {
    opacity: 0.65;
  }
  35% {
    transform: translate(55px, 25vh) rotate(75deg);
  }
  70% {
    opacity: 0.65;
    transform: translate(-25px, 50vh) rotate(200deg);
  }
  100% {
    opacity: 0;
    transform: translate(65px, 85vh) rotate(330deg);
  }
}
@keyframes wipe {
  0% {
    transform: translateY(100%);
  }
  45%,
  55% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  header {
    height: 70px;
    padding: 0 6%;
  }
  .logo {
    font-size: 35px;
  }
  nav {
    gap: 17px;
  }
  nav a {
    font-size: 12px;
  }
  .painting {
    background-size: auto 42%;
    background-position: left bottom;
    mask-image:
      linear-gradient(90deg, #000, transparent 74%),
      linear-gradient(180deg, transparent 58%, #000 76%);
    mask-composite: intersect;
    opacity: 0.5;
  }
  .page {
    inset: 100px 7% 100px 18%;
    justify-content: flex-start;
    padding-top: 7vh;
  }
  h1 {
    font-size: clamp(64px, 16vw, 110px);
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 3px;
  }
  .intro {
    font-size: 15px;
    max-width: 310px;
  }
  .leaves {
    width: 65%;
    top: 45%;
    height: 55%;
    opacity: 0.5;
  }
  footer {
    right: 6%;
    bottom: 24px;
    gap: 15px;
  }
  .motto {
    font-size: 13px;
  }
  .copyright {
    font-size: 7px;
  }
  .motion {
    left: 10px;
    bottom: 17px;
    font-size: 9px;
  }
  .secondary .intro {
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  nav a {
    min-height: 44px;
    padding: 15px 0;
  }
  .socials {
    gap: 8px;
    margin-left: -10px;
  }
  .socials button,
  .socials a {
    min-width: 44px;
    min-height: 44px;
  }
  .resume {
    min-height: 44px;
  }
  .motion {
    min-height: 36px;
  }
}
@media (max-height: 650px) and (min-width: 701px) {
  header {
    height: 60px;
  }
  .page {
    top: 70px;
    bottom: 60px;
  }
  h1 {
    font-size: clamp(65px, 9vw, 105px);
    margin-bottom: 18px;
  }
  .eyebrow {
    margin-bottom: 15px;
  }
  .intro {
    font-size: 16px;
  }
  .rule {
    margin-bottom: 16px;
  }
  .resume {
    padding: 9px 18px;
  }
  .socials {
    margin-top: 13px;
  }
  footer {
    bottom: 18px;
    gap: 12px;
  }
}
@media (max-height: 650px) and (max-width: 700px) {
  .page {
    top: 65px;
    padding-top: 12px;
    bottom: 55px;
  }
  h1 {
    font-size: 58px;
    margin-bottom: 16px;
  }
  .eyebrow {
    margin-bottom: 15px;
  }
  .intro {
    font-size: 13px;
    margin-bottom: 13px;
  }
  .rule {
    margin-bottom: 12px;
  }
  .socials {
    margin-top: 12px;
  }
  .resume {
    padding: 8px 16px;
  }
  .motto {
    display: none;
  }
}
@media (max-height: 500px) and (min-width: 701px) {
  header {
    height: 54px;
  }
  .page {
    inset: 62px 5% 38px 55%;
  }
  h1 {
    font-size: clamp(38px, 7vw, 62px);
    margin-bottom: 12px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 10px;
    letter-spacing: 2px;
  }
  .rule {
    margin-bottom: 10px;
  }
  .intro {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .resume {
    font-size: 12px;
    padding: 7px 14px;
  }
  .socials {
    margin-top: 10px;
    gap: 18px;
  }
  .socials svg,
  .resume svg {
    width: 18px;
    height: 18px;
  }
  .notice {
    margin-top: 4px;
    font-size: 9px;
    min-height: 12px;
  }
  footer {
    bottom: 15px;
    gap: 8px;
  }
  .motto {
    font-size: 12px;
  }
  .copyright {
    font-size: 6px;
  }
  .motion {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .leaf {
    display: none;
  }
}

/* Keep future social links the same size as the current placeholder buttons. */
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 700px) {
  .socials a {
    min-width: 44px;
    min-height: 44px;
  }
}
