@font-face {
  font-family: "Coffee Alata";
  src: url("assets/alata-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bean: #3F1C14;
  --foam: #FCF7E3;
  --sun: #FC4F38;
  --gutter: clamp(28px, 5.2vw, 100px);
  --heading: clamp(72px, 7.1vw, 116px);
  font-family: "Coffee Alata", Arial, sans-serif;
  font-synthesis: none;
  color: var(--bean);
  background: var(--foam);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; height: auto; max-width: 100%; }
::selection { color: var(--foam); background: var(--bean); }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 60% 40%;
  grid-template-rows: auto 1fr auto;
}
.masthead {
  grid-area: 1 / 1;
  padding: clamp(36px, 6vh, 70px) var(--gutter) 0;
}
.logo { width: clamp(165px, 15vw, 212px); }
.invitation {
  grid-area: 2 / 1;
  align-self: center;
  padding: 60px var(--gutter) 70px;
}
h1 {
  margin: 0;
  font-size: var(--heading);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
h1 > span { display: block; }
.intro {
  margin: 34px 0 0;
  font-size: 18px;
  line-height: 1.65;
}
.intro span { display: block; }
.illustration {
  grid-area: 1 / 2 / 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--sun);
  padding: 80px 40px 125px;
}
.objects {
  position: relative;
  width: min(100%, 415px);
  height: 495px;
}
.moka {
  width: 210px;
  position: absolute;
  top: 0;
  left: 12%;
  transform: rotate(-7deg);
}
.portafilter {
  width: 245px;
  position: absolute;
  right: 0;
  bottom: 0;
  transform: rotate(8deg);
}
.art-caption {
  position: absolute;
  bottom: 48px;
  margin: 0 24px;
  text-align: center;
  font-size: 20px;
  line-height: 1.65;
  text-transform: uppercase;
}
.script-word {
  width: 5.4em;
  display: inline-block;
  vertical-align: -.70em;
}
.script-word img { width: 100%; }
.footer {
  grid-area: 3 / 1;
  padding: 0 var(--gutter) 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer p {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-squares { display: flex; gap: 5px; }
.brand-squares i { display: block; width: 8px; height: 8px; background: var(--bean); }
.brand-squares i:last-child { background: var(--sun); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.not-found { min-height: 100svh; display: grid; place-items: center; padding: 32px; }
.not-found h1 { margin-block: 40px 20px; font-size: 30px; text-transform: none; }
.not-found a { display: inline-block; color: inherit; padding-block: 14px; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
@media (min-width: 1800px) {
  .invitation { width: 100%; max-width: 950px; justify-self: center; }
  .objects { transform: scale(1.08); }
}
@media (max-width: 1000px) and (min-width: 701px) {
  :root { --heading: clamp(55px, 7.1vw, 72px); --gutter: 32px; }
  .illustration { padding-inline: 25px; }
  .objects { height: 420px; }
  .moka { width: 168px; left: 0; }
  .portafilter { width: 205px; }
}
@media (max-width: 700px) {
  :root { --gutter: 28px; --heading: clamp(40px, 16.5vw, 105px); }
  .page { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; }
  .masthead { padding-top: 32px; }
  .logo { width: 168px; }
  .invitation { padding-block: 40px; }
  .intro { margin-top: 24px; font-size: 17px; }
  .illustration { grid-area: 3 / 1; padding: 26px 28px 22px; }
  .objects { width: min(100%, 345px); height: 140px; }
  .moka { width: 96px; top: 0; left: 8%; }
  .portafilter { width: 140px; bottom: 8px; right: 4%; }
  .art-caption { position: static; margin-top: 20px; font-size: 16px; line-height: 1.5; }
  .footer { grid-area: 4 / 1; background: var(--sun); padding-block: 0 25px; }
  .brand-squares i:last-child { background: var(--foam); }
}
@media (max-width: 359px) {
  :root { --gutter: 24px; --heading: 16.5vw; }
  .masthead { padding-top: 24px; }
  .logo { width: 158px; }
  .invitation { padding-block: 28px; }
  .objects { height: 115px; }
  .moka { width: 84px; }
  .portafilter { width: 120px; }
  .art-caption { margin-top: 14px; }
}
@media (max-height: 650px) and (min-width: 701px) {
  .masthead { padding-top: 28px; }
  .logo { width: 155px; }
  .invitation { padding-block: 34px; }
  .intro { margin-top: 24px; }
  .illustration { padding-top: 38px; padding-bottom: 100px; }
  .objects { height: 320px; }
  .moka { width: 135px; }
  .portafilter { width: 170px; }
  .footer { padding-bottom: 25px; }
  .art-caption { bottom: 28px; font-size: 16px; }
}
@media (max-width: 700px) and (max-height: 740px) {
  .masthead { padding-top: 22px; }
  .logo { width: 145px; }
  .invitation { padding-block: 24px; }
  .intro { margin-top: 20px; font-size: 16px; line-height: 1.55; }
  .illustration { padding: 18px 24px 16px; }
  .objects { height: 100px; }
  .moka { width: 74px; }
  .portafilter { width: 108px; }
  .art-caption { margin-top: 10px; font-size: 14px; }
  .footer { padding-bottom: 20px; }
}
