/* patslo.com: dark ground, bone ink, hard shadows. One typeface, Archivo, set wide for the name. */

@font-face {
  font-family: "Archivo";
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/Archivo-latin.woff2") format("woff2");
}
/* Simply Golf's own face, used only inside its tile. */
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/BarlowCondensed-ExtraBold.woff2") format("woff2");
}

:root {
  --ground: #1A1917;
  --bone: #F3EEE3;
  --bone-dim: #B9B2A4;
  --black: #000000;
  --club: #1F6B45;      /* Simply Golf green */
  --lucid: #02E8FF;     /* Lucid Moments cyan */
  --border: 4px;
  --drop: 12px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 500;
  font-stretch: 100%;
  font-size: 1.125rem;
  line-height: 1.4;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: var(--border) solid var(--bone);
  outline-offset: 6px;
}

.skip {
  position: absolute; left: var(--gutter); top: -80px; z-index: 10;
  background: var(--bone); color: var(--black);
  padding: 10px 16px; font-weight: 800;
}
.skip:focus { top: var(--gutter); }

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) var(--gutter) 48px;
}

/* Masthead */

.masthead h1 {
  margin: 0;
  font-size: clamp(2.4rem, 12.5vw, 10rem);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.sur { display: block; }

.line {
  margin: 24px 0 0;
  max-width: 34ch;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--bone-dim);
}

/* Tiles */

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px calc(var(--drop) + 24px);
  margin-top: clamp(48px, 9vh, 96px);
  padding-right: var(--drop);
}

.tile {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 28px;
  border: var(--border) solid var(--bone);
  box-shadow: var(--drop) var(--drop) 0 var(--bone);
  text-decoration: none;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.tile:hover, .tile:focus-visible {
  transform: translate(6px, 6px);
  box-shadow: 6px 6px 0 var(--bone);
}
.tile:active {
  transform: translate(var(--drop), var(--drop));
  box-shadow: 0 0 0 var(--bone);
}

.art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 0 28px;
}

.blurb {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 30ch;
}

/* Simply Golf: green, the app icon beside its wordmark in the game's own face. */
.golf { background: var(--club); color: var(--bone); }
.golf img { width: 112px; height: 112px; flex: none; }
.golf-word {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 0.9;
  max-width: 4.2em;
  text-transform: uppercase;
}

/* schedata: the colour logo is drawn for a light ground, so the tile is bone. */
.sched { background: var(--bone); color: var(--black); border-color: var(--black); }
.sched img { width: min(100%, 300px); height: auto; }

/* Lucid Moments Media: its cyan, the black-and-white logo. */
.lucid { background: var(--lucid); color: var(--black); border-color: var(--black); }
.lucid img { width: min(100%, 320px); height: auto; }

@media (min-width: 720px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1040px) {
  .tiles { grid-template-columns: 1fr 1fr 1fr; }
  .tile { min-height: 380px; }
}

/* Footer */

.foot {
  margin-top: clamp(56px, 10vh, 112px);
  color: var(--bone-dim);
  font-size: 0.95rem;
}
.foot p { margin: 0; }

/* The one moment of motion: the name opens out from narrow to wide on load. */
@media (prefers-reduced-motion: no-preference) {
  .masthead h1 { animation: open-out 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes open-out {
    from { font-stretch: 62%; }
    to   { font-stretch: 125%; }
  }
}
