/* Go Home Already brand tokens. Colors, type and the first-screen photo rule. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces72pt-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --gha-paper: #F2ECDC;       /* pages, type on photos */
  --gha-carbon: #232821;      /* type, nav bar */
  --gha-willow: #4E5D37;      /* sections; paper type on it */
  --gha-sun-cap: #F2C443;     /* the one button per screen */
  --gha-porch-light: #FF965F; /* one small detail per screen */

  --gha-display: "Fraunces", Georgia, serif;
  --gha-text: Helvetica, Arial, sans-serif;
  --gha-label: Menlo, ui-monospace, "SF Mono", monospace;
}

/* First screen: a full-bleed graded photo with the cream wordmark on top.
   Behind the name the photo is darkened and softly out of focus, so the name reads on busy
   photos like the daisy meadow; a calm photo can hide the blur (::before). Bright or busy photos
   need more shade: set --gha-shade-center and --gha-shade-edge per photo, measuring the name's
   contrast (daisy meadow 0.55 and 0.2; sunset trees 0.72 and 0.08 for its bright sky). */
.gha-hero {
  position: relative;
  overflow: hidden;
  background: var(--gha-carbon) center / cover no-repeat;
  background-image: var(--gha-photo);
}
.gha-hero::before,
.gha-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gha-hero::before {
  inset: -12px;
  background: inherit;
  filter: blur(5px);
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 48%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 48%, #000 50%, transparent 100%);
}
.gha-hero::after {
  background: radial-gradient(ellipse 70% 65% at 50% 50%,
    rgb(35 40 33 / var(--gha-shade-center, 0.55)), rgb(35 40 33 / var(--gha-shade-edge, 0.2)) 100%);
}
.gha-hero > * { position: relative; z-index: 1; }
