/* ===== The Stuff Nobody Tells You — jakobdevilliers.com ===== */

:root {
  --orange: #E64022;
  --pink:   #F8C8B8;
  --cream:  #F5EDE0;
  --ink:    #1A1A1A;
  --green:  #0f2016; /* book cover green */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1080px;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---- Typography helpers ---- */
.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
}

.section__sub {
  font-size: 1.05rem;
  color: #4a4a4a;
  margin: 0 0 2.5rem;
  max-width: 46ch;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--orange);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn--light {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn--light:hover { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.btn--disabled,
.btn--disabled:hover {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
  cursor: default;
  transform: none;
  pointer-events: none;
}
/* On dark/orange sections the inert button needs light strokes */
.foot .btn--disabled { color: var(--cream); border-color: rgba(245, 237, 224, 0.5); background: transparent; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 237, 224, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}
.nav__brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand span { color: var(--orange); font-style: italic; }
.nav__links {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}
.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--orange); }
.nav .btn--small { margin-left: auto; }

@media (min-width: 820px) {
  .nav__links { display: flex; }
  .nav .btn--small { margin-left: 0; }
}

/* ===== Hero ===== */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.02;
  margin: 0 0 1.5rem;
}
.hero__lede { font-size: 1.1rem; max-width: 46ch; margin: 0 0 2rem; }
.hero__lede strong { font-weight: 600; }
.hero__cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.hero__formats { margin: 0; font-size: 0.95rem; color: #4a4a4a; font-weight: 500; }

.hero__cover {
  justify-self: center;
  max-width: 360px;
  width: 100%;
}
.hero__cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 60px -25px rgba(26, 26, 26, 0.55);
  transform: rotate(-1.5deg);
}

@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero__cover { order: 2; }
}

/* ===== Inside / sample cards ===== */
.inside {
  background: var(--green);
  color: var(--cream);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.inside .section__title { color: var(--cream); }
.inside .section__sub { color: var(--pink); }
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.card {
  border: 1px solid rgba(245, 237, 224, 0.18);
  border-radius: 8px;
  padding: 1.75rem;
  background: rgba(245, 237, 224, 0.03);
}
.card__img {
  aspect-ratio: 3 / 4;
  margin: -0.25rem 0 1.25rem;
  border-radius: 6px;
  overflow: hidden;
  background: #0b1712;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--orange);
}
.card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
  color: var(--pink);
}
.card p { margin: 0; color: rgba(245, 237, 224, 0.85); }

@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }

/* ===== The reveal: three movements ===== */
.reveal {
  background: var(--green);
  color: var(--cream);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.reveal .section__title { color: var(--cream); }
.reveal .section__sub { color: var(--pink); }
.reveal__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}
.reveal__img {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #0b1712;
  margin-bottom: 1.1rem;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
}
.reveal__img img { width: 100%; height: 100%; object-fit: cover; }
.reveal__label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange);
  margin: 0 0 0.3rem;
}
.reveal__step h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--cream);
}
.reveal__step p { margin: 0; color: rgba(245, 237, 224, 0.85); }
.reveal__redact { margin: 0.9rem 0 0.35rem !important; font-weight: 600; }
.redact {
  display: inline-block;
  position: relative;
  width: 6.5em;
  height: 1.05em;
  vertical-align: -0.16em;
  background: var(--cream);
  border-radius: 3px;
  cursor: help;
}
.redact::after {
  content: "nice try";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.redact:hover::after,
.redact:focus::after { opacity: 1; }
.redact:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.reveal__step .reveal__note {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(245, 237, 224, 0.55);
}
@media (min-width: 760px) {
  .reveal__steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

/* ===== About ===== */
.about { padding: clamp(3rem, 8vw, 6rem) 0; }
.about__inner { display: grid; gap: 2rem; }
.about__body p { margin: 0 0 1.25rem; max-width: 62ch; }
.about__note {
  font-style: italic;
  color: #5a5a5a;
  border-left: 3px solid var(--orange);
  padding-left: 1rem;
}
@media (min-width: 860px) {
  .about__inner { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
}

/* ===== Got one we missed? ===== */
.missed {
  background: var(--orange);
  color: var(--cream);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.missed .kicker { color: var(--ink); }
.missed .section__title { color: var(--cream); }
.missed__inner { display: grid; gap: 2.5rem; }
.missed__copy p { max-width: 50ch; color: rgba(245, 237, 224, 0.92); }

.signup { display: grid; gap: 1.1rem; align-content: start; }
.signup__field { display: grid; gap: 0.4rem; }
.signup__field span { font-size: 0.9rem; font-weight: 600; }
.signup__field em { font-weight: 400; opacity: 0.8; }
.signup input,
.signup textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--cream);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  width: 100%;
  resize: vertical;
}
.signup input:focus,
.signup textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; }
.signup .btn { justify-self: start; background: var(--ink); border-color: var(--ink); }
.signup .btn:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.signup__msg {
  margin: 0;
  font-weight: 600;
  background: var(--cream);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

@media (min-width: 860px) {
  .missed__inner { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
}

/* ===== More books ===== */
.more { padding: clamp(3rem, 8vw, 6rem) 0; }
.shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.shelf__cover {
  aspect-ratio: 2 / 3;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(26, 26, 26, 0.25);
  border-radius: 4px;
  color: #8a8a8a;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.shelf__item h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 0.4rem; }
.shelf__item p { margin: 0; color: #5a5a5a; }
.shelf__item--coming { opacity: 0.85; }

/* ===== Footer ===== */
.foot {
  background: var(--green);
  color: var(--cream);
  padding: clamp(3rem, 8vw, 5rem) 0 2.5rem;
}
.foot__cta { text-align: center; margin-bottom: 3rem; }
.foot__cta h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 0 0 0.5rem;
}
.foot__cta p { margin: 0 0 1.75rem; color: var(--pink); }
.foot__legal {
  text-align: center;
  margin: 0;
  font-size: 0.85rem;
  color: rgba(245, 237, 224, 0.6);
  border-top: 1px solid rgba(245, 237, 224, 0.12);
  padding-top: 2rem;
}
