/*
Theme Name: Craig Kopel Splash
Theme URI: https://craigkopel.com/
Author: Craig Kopel
Description: A restrained, single-screen author landing page for the pre-query period.
Version: 1.0.0
Text Domain: craigkopel-splash
*/

:root {
  --navy: #071522;
  --ivory: #f4eee3;
  --gold: #c8a165;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--navy);
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.site-shell::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("assets/trieste-piazza.webp");
  background-position: center center;
  background-size: cover;
  content: "";
}

.site-shell::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 14, 24, 0.94) 0%, rgba(3, 14, 24, 0.79) 29%, rgba(3, 14, 24, 0.30) 55%, rgba(3, 14, 24, 0.16) 100%),
    linear-gradient(180deg, rgba(3, 14, 24, 0.42) 0%, transparent 38%, rgba(3, 14, 24, 0.18) 100%);
  content: "";
}

.identity {
  align-self: start;
  width: min(45rem, calc(100% - 3rem));
  margin: clamp(3rem, 10vh, 7.5rem) 0 3rem clamp(1.5rem, 5.25vw, 5.5rem);
}

.identity h1 {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(3rem, 6vw, 6.25rem);
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.rule {
  width: clamp(8rem, 11vw, 11rem);
  height: 2px;
  margin: clamp(1.75rem, 4vh, 2.75rem) 0 clamp(1.4rem, 3vh, 2rem);
  border: 0;
  background: var(--gold);
}

.identity p {
  max-width: 38rem;
  margin: 0;
  color: var(--ivory);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1.42;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

@media (max-width: 760px) {
  .site-shell::before {
    background-position: 58% center;
  }

  .site-shell::after {
    background:
      linear-gradient(180deg, rgba(3, 14, 24, 0.94) 0%, rgba(3, 14, 24, 0.75) 38%, rgba(3, 14, 24, 0.26) 72%, rgba(3, 14, 24, 0.36) 100%);
  }

  .identity {
    width: calc(100% - 3rem);
    margin: clamp(3rem, 9vh, 5rem) 1.5rem 2.5rem;
  }

  .identity h1 {
    max-width: 11ch;
    font-size: clamp(2.8rem, 15vw, 4.8rem);
    letter-spacing: 0.065em;
  }

  .identity p {
    max-width: 27rem;
    font-size: clamp(1.2rem, 5.4vw, 1.55rem);
    text-wrap: pretty;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

