/* Rockvane Studios.
   Headings: Big Shoulders, condensed, with squared rounds like the logo's O; narrow, so it
   doesn't compete with the wide wordmark. Text: Libre Franklin. Both SIL OFL, self-hosted. */

@font-face {
  font-family: "Big Shoulders";
  src: url("/fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("/fonts/libre-franklin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #181711;     /* page: the olive-black of the key art's shadows */
  --stone: #efeae1;     /* the logo's stone: text */
  --stone-dim: #b3ab9c; /* secondary text */
  --ink: #1d1b14;       /* text on the ember button */
  --ember: #e75007;     /* the logo's chip: the one accent */
  --error: #ff8a5b;
  --rule: rgb(239 234 225 / 0.16);

  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-text: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--stone);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
}

@media (min-width: 48em) {
  body { font-size: 1.125rem; }
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-color: var(--ember); }

:focus-visible {
  outline: 2px solid var(--stone);
  outline-offset: 3px;
}

::selection { background: var(--ember); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Masthead: on top of the key art on the home page. */

.masthead {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding-block: clamp(0.75rem, 2.2vw, 1.75rem);
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img { width: clamp(9rem, 5.5rem + 8vw, 13.5rem); }

.social { display: flex; margin-inline-end: -0.625rem; }

.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--stone);
}
.social a:hover { color: var(--ember); }
.social svg { width: 1.375rem; height: 1.375rem; }

/* Hero: the whole panorama on wide screens, a square crop on phones. */

.hero-art {
  position: relative;
  display: block;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0 0 -2px; /* past the image's edge, so no seam shows at fractional pixel sizes */
  background:
    linear-gradient(to bottom, rgb(24 23 17 / 0.72), rgb(24 23 17 / 0) 30%),
    linear-gradient(to top, var(--night) 2%, rgb(24 23 17 / 0.82) 22%, rgb(24 23 17 / 0) 58%);
}

@media (min-width: 40em) {
  .hero-art img {
    aspect-ratio: 2;
    object-position: 66% 50%;
  }
}

@media (min-width: 75em) {
  .hero-art img {
    aspect-ratio: 3;
    max-height: 48rem;
  }
}

.hero-copy {
  position: relative;
  margin-top: -5.5rem;
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

@media (min-width: 40em) { .hero-copy { margin-top: -8rem; } }
@media (min-width: 75em) { .hero-copy { margin-top: -10rem; } }

.hero h1 {
  font-size: clamp(3.25rem, 1.5rem + 6.6vw, 8.25rem);
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-shadow: 0 2px 28px rgb(0 0 0 / 0.45);
}
.hero h1 span { display: block; }

.lede {
  max-width: 34rem;
  margin-top: 1.5rem;
}

/* Subscribe form. */

.subscribe {
  max-width: 34rem;
  margin-top: 1.75rem;
}

.subscribe-row {
  display: flex;
  gap: 0.5rem;
}

.subscribe input[type="email"] {
  flex: 1 1 10rem;
  min-width: 0;
  height: 3.25rem;
  padding: 0 1rem;
  color: var(--stone);
  font: inherit;
  background: rgb(239 234 225 / 0.07);
  border: 1px solid rgb(239 234 225 / 0.4);
  border-radius: 2px;
}
.subscribe input[type="email"]::placeholder { color: var(--stone-dim); opacity: 1; }
.subscribe input[type="email"]:focus-visible {
  outline-offset: 2px;
  border-color: var(--stone);
}

.subscribe button {
  flex: 0 0 auto;
  height: 3.25rem;
  padding: 0 1.375rem;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  background: var(--ember);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.subscribe button:hover { background: #f55f12; }
.subscribe button:disabled { cursor: progress; opacity: 0.75; }

.subscribe-note {
  margin-top: 0.75rem;
  color: var(--stone-dim);
  font-size: 0.875rem;
}

.subscribe-status {
  margin-top: 0.75rem;
  font-weight: 600;
}
.subscribe-status:empty { display: none; }
.subscribe-status:focus { outline: none; }
.subscribe.is-error .subscribe-status { color: var(--error); }
.subscribe.is-done .subscribe-row,
.subscribe.is-done .subscribe-note { display: none; }
.subscribe.is-done .subscribe-status { margin-top: 0; font-size: 1.125rem; }

/* Honeypot: off-screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The studio. */

.studio-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 4rem;
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.studio-row::before {
  content: "";
  grid-column: 1 / -1;
  margin-bottom: clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}

.studio h2 {
  max-width: 22ch;
  font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.02;
}

.handles {
  display: grid;
  gap: 0.875rem;
  align-content: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.handles a {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  text-decoration: none;
}
.handles .site {
  min-width: 5.5rem;
  color: var(--stone-dim);
  font-size: 0.9375rem;
}
.handles .handle {
  font-size: 1.1875rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.handles a:hover .handle { text-decoration-color: var(--ember); }

@media (min-width: 56em) {
  .studio-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: end;
  }
}

/* Footer. */

.site-footer {
  padding-block: 2.5rem;
  color: var(--stone-dim);
  font-size: 0.9375rem;
  border-top: 1px solid rgb(239 234 225 / 0.1);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}

.footer-row img { width: 8.5rem; opacity: 0.85; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.copyright { margin-inline-start: auto; }

@media (max-width: 47.99em) {
  .footer-row { flex-direction: column; align-items: flex-start; }
  .copyright { margin-inline-start: 0; }
}

/* Inner pages (privacy, subscribed, 404): no art behind the masthead. */

.page .masthead { position: static; }

.prose {
  max-width: 40rem;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.prose h1 {
  font-size: clamp(2.75rem, 1.6rem + 4vw, 4.5rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.75rem;
  line-height: 1.1;
}

.prose p, .prose ul { margin: 1rem 0 0; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.375rem; }
.prose .meta { margin-top: 2.5rem; color: var(--stone-dim); font-size: 0.9375rem; }
