/* Clive Hays personal landing page. Navy + blue ballpoint, mobile first. */
:root {
  --navy: #07182e;
  --navy2: #0b2342;
  --ink: #14253d;
  --quiet: #5b6b7c;
  --faint: #66788b;
  --blue: #1789f6;
  --blue-ink: #1a6fd4;
  --blue2: #67bdff;
  --paper: #f7f9fc;
  --paper2: #eef3f8;
  --white: #ffffff;
  --line: #d7e2ee;
  --hair: #c9d7e5;
  --display: Manrope, system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 12px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid #f7bf39;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 20;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #ffffff1f;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}
.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.nav-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid #ffffff33;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle:hover { background: #ffffff14; }

.nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 16px;
}
.nav a {
  color: #c5d5e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 0;
}
.nav a:hover { color: #fff; }

#nav-toggle { display: none; }
#nav-toggle:checked ~ .nav { display: flex; }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .site-header .bar { min-height: 80px; }
  .site-header .logo img { height: 36px; }
  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
  }
  .nav a { padding: 0; }
}

/* Hero */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 36px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* faint ruled-paper lines, navy on navy */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 31px,
    #ffffff08 31px 32px
  );
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  font-size: clamp(32px, 9vw, 64px);
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero h1 .line2 { display: block; }
.scribble {
  display: block;
  width: min(280px, 80%);
  height: 10px;
  margin: 8px 0 0;
}
.hero .sub {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.45;
  color: #d5e3f2;
  margin: 0 0 28px;
  max-width: 36ch;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-family: var(--body);
  border-radius: 10px;
  line-height: 1.25;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  max-width: 36ch;
  box-shadow: 0 8px 24px #00000040;
}
.btn-primary:hover { background: #2b97ff; color: #fff; }
.btn-navy {
  background: var(--navy);
  color: #fff;
  padding: 14px 22px;
}
.btn-navy:hover { background: var(--navy2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 14px 22px;
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn .arrow { font-size: 1.1em; line-height: 1; }

.portrait {
  position: relative;
  width: min(280px, 70vw);
  margin-inline: auto;
}
.portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: #fff;
}
.portrait svg.ring {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
}

@media (min-width: 860px) {
  .hero { padding: 64px 0 80px; }
  .hero .wrap {
    grid-template-columns: 1fr min(340px, 34%);
    gap: 56px;
  }
  .portrait { width: 100%; margin: 0; }
}

/* Sections */
section { padding: 56px 0; }
@media (min-width: 860px) { section { padding: 80px 0; } }

.eyebrow {
  font-family: var(--body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin: 0 0 10px;
}
h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 16px;
  color: var(--navy);
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
  margin: 0;
}

.believe {
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, #d7e2ee 31px 32px),
    var(--paper);
}
.believe .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px #07182e0d;
  position: relative;
}
.believe .card::before {
  /* red notebook margin */
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  bottom: 16px;
  width: 1.5px;
  background: #e38a8a66;
  border-radius: 1px;
}
.believe .card .inner { padding-left: 18px; }
@media (min-width: 700px) {
  .believe .card { padding: 40px 48px; }
  .believe .card::before { left: 32px; }
  .believe .card .inner { padding-left: 28px; }
}

/* Books */
.books { background: #fff; }
.book-grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}
@media (min-width: 760px) {
  .book-grid {
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 28px;
    align-items: stretch;
  }
}
.book {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}
.cover {
  background: var(--paper2);
  border-radius: 6px;
  box-shadow:
    0 1px 1px #07182e14,
    0 12px 28px #07182e18;
  overflow: hidden;
  width: min(220px, 58%);
}
.cover img { width: 100%; height: auto; }
.book h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--navy);
  line-height: 1.2;
}
.book p { margin: 0 0 12px; color: var(--quiet); }
.book .btn { align-self: flex-start; padding: 12px 18px; }

.next-book {
  background: var(--paper);
  border: 1px dashed var(--blue-ink);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.next-book .mark {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}
.next-book p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--navy);
  margin: 0;
}

/* Watch */
.watch { background: var(--paper); }
.video-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 700px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.video-ph {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(to bottom, transparent 0 23px, #d7e2ee 23px 24px),
    #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.video-ph:hover { border-color: var(--blue); color: var(--navy); }
.video-ph .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
}
.video-ph p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--quiet);
  position: relative;
  z-index: 1;
  background: linear-gradient(transparent, #fff 30%);
  padding-top: 12px;
}

/* Newsletter */
.newsletter { background: var(--navy); color: #fff; }
.newsletter h2 { color: #fff; }
.newsletter .lead { color: #d5e3f2; margin-bottom: 28px; }
.newsletter .btn-primary { box-shadow: 0 8px 24px #00000050; }

/* RRIDA */
.built { background: #fff; }
.built-card {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}
@media (min-width: 760px) {
  .built-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
  }
}

/* Footer */
.site-footer {
  background: var(--navy2);
  color: #c5d5e8;
  padding: 36px 0 28px;
  font-size: 15px;
}
.site-footer .wrap {
  display: grid;
  gap: 20px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.site-footer .logo img { height: 28px; }
.site-footer strong {
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.social a {
  color: #c5d5e8;
  text-decoration: none;
  font-weight: 600;
}
.social a:hover { color: #fff; }

@media (min-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .site-footer .logo img { height: 32px; }
  .social { justify-content: flex-end; }
}

.book h3 + .btn { margin-top: 12px; }

.cta-stack{display:flex;flex-direction:column;align-items:center;gap:.5rem;flex-shrink:0}
.cta-note{margin:0;font-size:.8rem;opacity:.75}
.believe-back{color:var(--blue);font-weight:700;margin-top:.75rem}
