@font-face {
  font-family: Barlow;
  src: url(/assets/barlow-condensed.ttf);
}
@font-face {
  font-family: DM;
  src: url(/assets/dm-sans.ttf);
}
/* Vibe City: saturated Californian sunset over ink shadows. */
:root {
  --ink: #1c1233;
  --sub: #4b3e5e;
  --paper: #fff5ea;
  --edge: #ecd6c4;
  --sun: #ff8a3d;
  --pink: #ef4b84;
  --violet: #5b2bb5;
  --hot: #b3145a;
  --link: #4d23a0;
  --sunset: linear-gradient(115deg, #ffb347 0%, #ff7a3d 30%, #ef4b84 62%, #6b33c4 100%);
  font-family: DM, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--link);
  text-underline-offset: 0.22em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}
body > header {
  background: var(--ink);
  border-bottom: 4px solid transparent;
  border-image: var(--sunset) 1;
}
.nav,
nav,
footer {
  display: flex;
  align-items: center;
}
.nav {
  height: 62px;
  justify-content: space-between;
}
.brand,
nav a,
.btn {
  text-decoration: none;
}
.brand {
  color: #fff;
  font:
    700 26px/1 Barlow,
    "Arial Narrow",
    Arial,
    sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand span {
  color: #ffc58f;
  font-weight: 400;
}
nav {
  gap: 22px;
}
nav a {
  color: #fff;
  font-size: 0.95rem;
}
nav a:hover {
  text-decoration: underline;
}
.navlogin {
  border: 1px solid #8f7fb0;
  border-radius: 100px;
  padding: 7px 16px;
}
.skip {
  position: absolute;
  left: -100vw;
}
.skip:focus {
  z-index: 10;
  top: 6px;
  left: 12px;
  background: white;
  padding: 8px;
}
h1,
h2,
h3 {
  font-family: Barlow, "Arial Narrow", Arial, sans-serif;
  line-height: 1;
  margin: 0;
}
h1 {
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(30px, 3.5vw, 43px);
}
p,
li {
  line-height: 1.55;
}
small,
.back,
.hint,
footer {
  color: var(--sub);
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--sub);
}
main {
  min-height: 65vh;
}

/* Squeeze homepage */
.home {
  padding: clamp(18px, 3vw, 40px) 0 48px;
}
.squeeze {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.art {
  margin: 0;
  border: 4px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--pink);
  background: var(--ink);
}
.art img {
  display: block;
  width: 100%;
  height: auto;
}
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  background: var(--ink);
  color: #ffc58f;
  font:
    700 15px Barlow,
    Arial,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.offer .lede {
  margin: 12px 0 8px;
}

/* Forms */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: var(--hot);
  color: white;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 12px 20px;
  font:
    700 1rem DM,
    Arial,
    sans-serif;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: #8f0f48;
}
.btn:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}
.btn:disabled {
  opacity: 0.65;
}
.signup label:not(.check) {
  font-weight: 600;
}
.field {
  display: flex;
  gap: 10px;
}
.field input {
  flex: 1;
  min-width: 0;
}
.sent {
  margin: 0 0 4px;
  padding: 12px 14px;
  background: #ffe2cc;
  border-left: 4px solid var(--sun);
}
label {
  display: block;
  margin: 14px 0 6px;
}
input[type="email"],
input[type="text"] {
  font: inherit;
  padding: 11px 12px;
  width: 100%;
  border-radius: 5px;
  border: 2px solid var(--ink);
  background: #fff;
}
.check {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.check input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.hint {
  font-size: 0.9rem;
  margin: 6px 0 0;
}
.consent {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--ink);
}
.returning {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--sub);
}
footer .youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
footer .youtube:hover span {
  text-decoration: underline;
}
footer .yt {
  width: auto;
  height: 28px;
}
.plain {
  display: block;
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin: 14px 0;
}
#status {
  min-height: 1.5em;
}

/* Reading and account pages */
.back {
  display: inline-block;
  margin: 0 0 18px;
}
blockquote {
  margin: 18px 0;
  background: #ffe2cc;
  border-left: 4px solid var(--sun);
  padding: 17px 20px;
  line-height: 1.65;
}
.auth,
.reading {
  max-width: 630px;
  min-height: 56vh;
  margin: 42px auto 65px;
}
.auth h1,
.reading h1 {
  font-size: clamp(46px, 6vw, 68px);
  margin-bottom: 8px;
}
.auth .btn,
.reading .btn {
  margin-top: 8px;
}
footer {
  gap: 22px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--edge);
  font-size: 0.9rem;
}
@media (max-width: 860px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .squeeze {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  /* Keep the offer and form in the first screen: the art becomes a banner. */
  .art {
    box-shadow: 6px 6px 0 var(--pink);
    border-width: 3px;
  }
  .art img {
    aspect-ratio: 16 / 7;
    object-fit: cover;
  }
  h1 {
    font-size: clamp(40px, 11vw, 56px);
  }
  .auth,
  .reading {
    margin-top: 28px;
  }
}
@media (max-width: 480px) {
  .nav {
    height: 56px;
  }
  .brand {
    font-size: 21px;
  }
  .brand span {
    display: none;
  }
  nav {
    gap: 12px;
  }
  .field {
    flex-direction: column;
  }
  footer {
    flex-wrap: wrap;
  }
}
/* Join box under the public kit page, for readers who aren't signed in. */
.kitjoin {
  max-width: 640px;
  margin: 40px auto 56px;
  padding: 24px clamp(18px, 4vw, 32px);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--sun);
}
.kitjoin h2 {
  font-size: clamp(28px, 4vw, 38px);
}
@media (max-width: 860px) {
  .kitjoin {
    width: calc(100% - 32px);
  }
}
.kitjoin .signup { margin-bottom: 0; }
.kitjoin #status:empty { display: none; }
