/* samgodson.com while the real site is built: one screen in the Slab's world (round6-slab-v10, first.css and
   place.css). The same dark ground, faces and stone; its top layer, 2026, is still being laid down. No script. */

/* Archivo (v25) and IBM Plex Mono (v23), SIL Open Font License, the Slab's own files: latin only, as the page is. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-v25-normal-100-900-latin.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plexmono-v23-normal-400-latin.woff2) format("woff2");
}

:root {
  color-scheme: dark;
  --night: oklch(0.17 0.012 60);
  --wall: oklch(0.3 0.03 66);
  --wall-2: oklch(0.22 0.018 62);
  --name: oklch(0.965 0.014 82);
  --line: oklch(0.88 0.035 80);
  --ink: oklch(0.94 0.012 82);
  --dim: oklch(0.78 0.02 74);
  --rule: oklch(0.62 0.02 70 / 0.6);
  --glow: oklch(0.86 0.13 85);
  --rust: oklch(0.6 0.13 42);
  --pale: oklch(0.9 0.035 80);

  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(24px, 6vw, 96px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--night);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1,
p {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- The screen: the words on the left, the stone on the right, lit from above ---------- */
.wip {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(32px, 5vw, 96px);
  padding: 0 var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(38% 62% at 70% 30%, var(--wall) 0%, var(--wall-2) 55%, var(--night) 100%);
} /* the wall behind the stone, lit where the stone's dark side stands, so its edge reads */

.words {
  padding-left: clamp(0px, 4vw, 64px);
}
h1 {
  font-size: clamp(60px, 9vw, 132px);
  line-height: 0.86;
  font-weight: 800;
  font-variation-settings: "wdth" 78;
  font-stretch: 78%;
  letter-spacing: -0.03em;
  color: var(--name);
  text-wrap: balance;
}
.line {
  margin-top: clamp(18px, 2.2vw, 30px);
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--line);
  text-wrap: balance;
}
.sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 28px;
  margin-top: clamp(28px, 4vw, 56px);
}
.job {
  font-size: 16px;
  color: var(--dim);
}
.links {
  display: flex;
}
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-right: 24px;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  text-decoration: underline 1px var(--rule);
  text-underline-offset: 5px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.links a:last-child {
  padding-right: 0;
}
.links a:hover {
  color: var(--glow);
  text-decoration-color: currentColor;
}
.links a:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- The stone: the Slab's uncut still. Every place on it is a share of the picture, set per layout.
   --cx, --cy, --rx, --ry: the top face (an ellipse); --top, --foot: the middle of the 2026 and 2013 layers on
   the stone's left edge, --left: that edge. ---------- */
.core {
  position: relative;
  margin: 0;
  height: min(calc(100svh - 190px), 780px, 62vw);
  aspect-ratio: 1056 / 1458;
  margin-top: 96px; /* room above the top face for what is still falling */
  --cx: 49.5%;
  --cy: 7.8%;
  --rx: 25%;
  --ry: 2.3%;
  --top: 13.2%;
  --foot: 89.2%;
  --left: 21.6%;
  --fall: 150px;
}
.core img {
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 17%, #000 83%, transparent), linear-gradient(#000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 17%, #000 83%, transparent), linear-gradient(#000 95%, transparent);
  mask-composite: intersect;
} /* the render's floor light fades out before the picture's edge, so no box shows on the wall */

/* The years: one bracket down the stone's left side, closed at 2013, open above 2026. */
.years {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font: 400 15px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}
.years::before {
  content: "";
  position: absolute;
  right: calc(100% - var(--left) + 18px);
  top: var(--top);
  bottom: calc(100% - var(--foot));
  width: 8px;
  border: 1px solid var(--rule);
  border-left: 0;
  border-top-style: dotted;
} /* the line and its two ticks */
.years::after {
  content: "";
  position: absolute;
  right: calc(100% - var(--left) + 18px);
  bottom: calc(100% - var(--top));
  height: 64px;
  border-right: 1px dotted var(--rule);
  mask-image: linear-gradient(to top, #000, transparent);
} /* and on, above 2026 */
.years span {
  position: absolute;
  right: calc(100% - var(--left) + 36px);
  transform: translateY(-50%);
}
.years .y26 {
  top: var(--top);
  color: var(--ink);
}
.years .y13 {
  top: var(--foot);
}

/* What is still falling: a few grains of the top layer's rust and its pale veins, settling on the top face. */
.fall {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fall::before {
  content: "";
  position: absolute;
  left: calc(var(--cx) - var(--rx));
  width: calc(var(--rx) * 2);
  top: calc(var(--cy) - var(--fall) - 40px);
  height: calc(var(--fall) + 40px);
  background: linear-gradient(to bottom, transparent, oklch(0.9 0.05 80 / 0.1));
  mask-image: radial-gradient(50% 100% at 50% 100%, #000 10%, transparent 100%);
} /* the light the grains fall through */
.fall i {
  position: absolute;
  left: calc(var(--cx) + var(--u) * var(--rx));
  top: calc(var(--cy) + var(--v) * var(--ry));
  width: var(--s, 3px);
  height: var(--s, 3px);
  margin: calc(var(--s, 3px) / -2);
  border-radius: 40% 55% 45% 60%;
  background: var(--rust);
  opacity: 0;
  animation: settle var(--d, 9s) cubic-bezier(0.45, 0, 0.6, 1) var(--t, 0s) infinite both;
}
.fall i.p {
  background: var(--pale);
}
@keyframes settle {
  0% {
    transform: translate(var(--dx, 6px), calc(var(--fall) * -1)) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
  }
  80% {
    transform: translate(0, 0) rotate(160deg);
    opacity: 0.95;
  }
  100% {
    transform: translate(0, 0) rotate(160deg);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fall i {
    animation: none;
    opacity: 0;
  }
}

/* ---------- Phone, and a tablet held upright: the words on top, the slimmer stone under them, cut by the screen's
   foot when the screen is short ---------- */
@media (max-width: 759px), (max-width: 1023px) and (orientation: portrait) {
  .wip {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    height: 100svh;
    min-height: 560px;
    padding: 56px 24px 0;
    overflow: clip;
  }
  body::before {
    background: radial-gradient(90% 46% at 60% 64%, var(--wall) 0%, var(--wall-2) 55%, var(--night) 100%);
  }
  .words {
    padding-left: 0;
  }
  h1 {
    font-size: 64px;
  }
  .line {
    margin-top: 16px;
    font-size: 23px;
  }
  .sign {
    margin-top: 18px;
    column-gap: 22px;
  }
  .job {
    font-size: 15px;
  }
  .core {
    justify-self: center;
    align-self: start;
    height: clamp(360px, calc(100svh - 300px), 600px);
    width: auto;
    aspect-ratio: 609 / 1614;
    margin: 44px 0 0 64px;
    --cx: 48.4%;
    --cy: 6%;
    --rx: 25%;
    --ry: 1.4%;
    --top: 10.6%;
    --foot: 93.2%;
    --left: 20.4%;
    --fall: 72px;
  }
  .years span {
    right: calc(100% - var(--left) + 30px);
  }
  .years::before,
  .years::after {
    right: calc(100% - var(--left) + 14px);
  }
}
