/* in between spaces — coming soon page */

/* fonts are self-hosted (SIL OFL, see assets/fonts/) — no third-party requests */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/caveat-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/lora-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/lora-italic-latin.woff2) format('woff2');
}

:root {
  --ink: #1F1E1A;
  --ink-muted: #5E594F;
  --linen: #F5F0E6; /* light warm beige */
  --gold: #B8955D;
  --yard: 215px; /* the part of Thor's yard you actually see (the strip itself is 360px, mostly transparent) */
}
@media (max-width: 640px) { :root { --yard: 165px; } }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--linen);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: calc(100vh - var(--yard));
  min-height: calc(100svh - var(--yard));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px 0;
}

.logo { width: 320px; max-width: 78vw; height: auto; display: block; margin-bottom: 9vh; }

h1 {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: clamp(46px, 11vw, 116px);
  line-height: .95;
  margin: 0;
  transform: rotate(-1.5deg);
}
/* the full stop is the gold dot from the logo */
h1 .dot {
  display: inline-block;
  width: .16em; height: .16em;
  margin-left: .06em;
  border-radius: 50%;
  background: var(--gold);
}

p.sub {
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-muted);
  margin: 22px 0 0;
}

/* sign-up: space is reserved so nothing jumps when it fades in */
.cta {
  min-height: 64px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity .7s ease, transform .7s ease, visibility 0s .7s;
}
.cta.show { opacity: 1; transform: none; visibility: visible; transition: opacity .7s ease, transform .7s ease; }

.btn {
  font: 600 24px/1 'Caveat', cursive;
  color: #F1F0EB;
  background: #4E5B49;
  border: 0;
  border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px;
  padding: 12px 26px 13px;
  cursor: pointer;
  transform: rotate(-1deg);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #3f4a3b; transform: rotate(0); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:focus-visible, .cta input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.cta form { display: none; align-items: flex-end; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta.open .btn-open { display: none; }
.cta.open form { display: flex; }
.cta input {
  font: 400 18px 'Lora', Georgia, serif;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  padding: 8px 2px;
  width: 260px;
  max-width: 70vw;
}
.cta input::placeholder { color: #8b8579; font-style: italic; }
.cta small { margin-top: 10px; font-size: 14px; font-style: italic; color: var(--ink-muted); }
.cta .thanks { font: 600 26px/1.2 'Caveat', cursive; margin: 0; }

/* honeypot: hidden from people, bots fill it in and Formspree drops them */
.hp { display: none; }

.note {
  position: relative;
  margin-top: 4vh;
  margin-right: 18vw;
  font-family: 'Caveat', cursive;
  font-size: 23px;
  color: var(--ink-muted);
  transform: rotate(-4deg);
}
.note svg { position: absolute; left: -54px; top: 18px; width: 58px; height: 74px; overflow: visible; }

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

@media (max-width: 640px) {
  .logo { margin-bottom: 6vh; }
  /* on phones Thor sleeps right of centre, so the arrow points down-right */
  .note { margin: 4vh 70px 0 0; font-size: 21px; transform: rotate(3deg); }
  .note svg { left: auto; right: -56px; transform: scaleX(-1); }
}
