:root {
  color-scheme: light;
  --ink: #211916;
  --soft-ink: #5f534e;
  --paper: #fbf4e8;
  --paper-deep: #efe0ca;
  --panel: #fffaf1;
  --line: #dccbb5;
  --line-strong: #b99a70;
  --burgundy: #7c2028;
  --clay: #a7623d;
  --gold: #c49243;
  --sage: #526b5c;
  --blue: #385a72;
  --blush: #e7c3b3;
  --shadow: rgba(51, 31, 20, 0.16);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(124, 32, 40, 0.045) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, rgba(56, 90, 114, 0.035) 0 1px, transparent 1px 32px),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: clamp(8px, 1.2vw, 18px);
  z-index: -1;
  background:
    linear-gradient(
      var(--burgundy) 0 22%,
      var(--gold) 22% 34%,
      var(--sage) 34% 58%,
      var(--blue) 58% 82%,
      var(--clay) 82% 100%
    );
}

a {
  color: var(--burgundy);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 244, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  display: block;
  height: 5px;
  background:
    linear-gradient(
      90deg,
      var(--burgundy) 0 18%,
      var(--gold) 18% 34%,
      var(--sage) 34% 56%,
      var(--blue) 56% 78%,
      var(--clay) 78% 100%
    );
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.3vw, 1.38rem);
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--burgundy);
  transition: transform 160ms ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 244, 232, 0.98) 0 42%, rgba(251, 244, 232, 0.88) 58%, rgba(33, 25, 22, 0.32) 100%),
    url("/assets/default-social-image-1200x630-px.png") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 16px;
  background:
    linear-gradient(
      90deg,
      var(--burgundy) 0 22%,
      transparent 22% 24%,
      var(--gold) 24% 46%,
      transparent 46% 48%,
      var(--sage) 48% 70%,
      transparent 70% 72%,
      var(--blue) 72% 100%
    );
}

.hero::after {
  content: "";
  position: absolute;
  top: 74px;
  right: max(28px, calc((100vw - 1160px) / 2));
  width: min(44vw, 470px);
  height: min(68vw, 520px);
  pointer-events: none;
  background:
    url("/assets/covers/3-ai.png") 0 22% / 29% auto no-repeat,
    url("/assets/covers/12-obsession.png") 28% 0 / 30% auto no-repeat,
    url("/assets/covers/21-flight.png") 62% 20% / 30% auto no-repeat,
    url("/assets/covers/16-clarity.png") 18% 76% / 30% auto no-repeat,
    url("/assets/covers/26-women-for-men.png") 54% 82% / 30% auto no-repeat;
  filter: drop-shadow(0 20px 26px rgba(35, 24, 16, 0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 36px));
  margin-right: auto;
  margin-left: max(18px, calc((100vw - 1160px) / 2));
  padding: 92px 0 110px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 10.8ch;
  font-size: clamp(2.85rem, 5.4vw, 5.15rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.16;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 18px;
}

.lead {
  max-width: 58ch;
  color: var(--soft-ink);
  font-size: clamp(1.1rem, 2vw, 1.34rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  background: var(--burgundy);
  color: #fffaf1;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 250, 241, 0.78);
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
  color: #fffaf1;
  box-shadow: 0 10px 24px rgba(124, 32, 40, 0.18);
}

.button.secondary:hover {
  color: var(--ink);
}

.section {
  position: relative;
  padding: 74px 0;
  background: var(--paper);
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(82, 107, 92, 0.08), rgba(196, 146, 67, 0.08)),
    var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  position: relative;
}

.content {
  max-width: 900px;
}

.content > div,
.content > p,
.content > ul,
.content > ol,
.content blockquote {
  max-width: 76ch;
}

.content h1 {
  max-width: 18ch;
  font-size: clamp(2.35rem, 4.6vw, 4.15rem);
}

.content h2 {
  max-width: 18ch;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.content h2 {
  margin-top: 38px;
}

.content h2:first-child,
.content .eyebrow + h1 + div h2:first-child {
  margin-top: 0;
}

.content a:not(.button) {
  font-weight: 750;
}

.content ul,
.content ol {
  padding-left: 1.25rem;
}

.content li {
  margin-bottom: 8px;
}

.content article {
  position: relative;
  margin: 14px 0;
  padding: 20px 22px 20px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 10px 24px rgba(51, 31, 20, 0.06);
}

.content article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--burgundy);
}

.content article:nth-of-type(3n + 2)::before {
  background: var(--gold);
}

.content article:nth-of-type(3n + 3)::before {
  background: var(--blue);
}

.content article a {
  color: var(--ink);
  text-decoration: none;
}

.content article a:hover h3 {
  color: var(--burgundy);
}

.content div > a:not(.brand):not(.cover) {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 8px 8px 8px 0;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.86);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.content .notice a:not(.button) {
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.content div > a:not(.brand):not(.cover):hover {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #fffaf1;
}

.content a:empty {
  display: none !important;
}

.content a[href^="https://www.amazon.com/dp/"]:empty,
.content a[href^="https://www.amazon.ca/dp/"]:empty,
.content a[href^="https://play.google.com/store"]:empty {
  display: none !important;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tile {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(51, 31, 20, 0.08);
}

.tile h3 {
  margin-bottom: 10px;
}

.section-inner > h2,
.section-inner > .eyebrow {
  position: relative;
}

.section-inner > h2 {
  max-width: 12ch;
}

.covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 5px 8px 8px 5px;
  background: #d8c7ae;
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 18px 26px rgba(51, 31, 20, 0.18),
    inset 7px 0 0 rgba(255, 255, 255, 0.28);
}

.cover:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.cover:hover img {
  transform: scale(1.035);
}

.book-feature-cover {
  width: min(250px, 72vw);
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 5px 8px 8px 5px;
  background: #d8c7ae;
  box-shadow:
    0 20px 30px rgba(51, 31, 20, 0.2),
    inset 7px 0 0 rgba(255, 255, 255, 0.26);
}

.book-feature-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

@media (min-width: 820px) {
  .book-feature-cover {
    float: right;
    width: 268px;
    margin: 4px 0 26px 34px;
  }
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.site-footer a {
  color: #f5d89f;
}

input,
textarea,
select {
  width: 100%;
  max-width: 560px;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

button.button {
  cursor: pointer;
  font: inherit;
}

.notice {
  max-width: 76ch;
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 8px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.86);
  box-shadow: 0 10px 24px rgba(51, 31, 20, 0.06);
}

.service-form {
  display: grid;
  gap: 22px;
  max-width: 840px;
  margin-top: 30px;
}

.compact-form {
  max-width: 560px;
}

.service-form fieldset {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
}

.service-form legend {
  padding: 0 8px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.service-form label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-weight: 750;
}

.service-form input,
.service-form textarea,
.service-form select {
  max-width: none;
  padding: 10px 12px;
}

.service-form textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-help {
  color: var(--soft-ink);
  font-size: 0.92rem;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--ink);
}

.check-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dashboard-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 18px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.status-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 244, 232, 0.78);
}

.status-grid dt {
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 14px 0;
    gap: 14px;
  }

  .nav {
    justify-content: flex-start;
    gap: 8px 16px;
  }

  .hero {
    min-height: 580px;
    background:
      linear-gradient(180deg, rgba(251, 244, 232, 0.98), rgba(251, 244, 232, 0.88)),
      url("/assets/default-social-image-1200x630-px.png") center / cover no-repeat;
  }

  .hero::after {
    opacity: 0.18;
    right: 14px;
    width: min(72vw, 420px);
  }

  .hero-content {
    padding: 70px 0 90px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .dashboard-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, 1160px);
  }

  .brand {
    font-size: 1rem;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .nav {
    gap: 8px 12px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    display: none;
  }

  h1,
  .content h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 15vw, 4.1rem);
  }

  .content h1 {
    font-size: clamp(2.05rem, 10.5vw, 3rem);
    line-height: 1.02;
  }

  .content h2 {
    font-size: clamp(1.45rem, 7.4vw, 2.15rem);
    line-height: 1.08;
  }

  .lead {
    font-size: 1.04rem;
  }

  .actions {
    flex-direction: column;
  }

  .button,
  .content div > a:not(.brand) {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .covers {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 14px;
  }
}
