@font-face {
  font-family: "Malvides";
  src: url("../fonts/Malvides.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue Bold";
  src: url("../fonts/BebasNeueBold.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Sabon";
  src: url("../fonts/Sabon.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Sabon";
  src: url("../fonts/SabonItalic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter24ptSemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #1f476b;
  --forest: #1c2e1f;
  --cream: #f2debf;
  --background: #fcfbfa;
  --text: #07111a;
  --gold: #ecab38;

  --content-width: 1120px;
  --reading-width: 760px;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Sabon", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.site-header {
  color: white;
  background-color: var(--navy);
}

.hero-brand {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(220px, 32vw, 390px);
  padding: 32px 20px 42px;
  overflow: hidden;
  isolation: isolate;
}

.hero-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(31, 71, 107, 0.05), rgba(28, 46, 31, 0.15)),
    url("../images/header-background.svg") center / cover no-repeat;
}

.hero-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 65%, rgba(28, 46, 31, 0.12));
  pointer-events: none;
}

.brand-lockup {
  width: min(680px, 86vw);
  text-align: center;
}

.brand-logo {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  object-position: center;
}

.brand-tagline {
  margin: 4px 0 0;
  font-family: "Malvides", "Brush Script MT", cursive;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  color: white;
  text-shadow: 0 1px 8px rgba(0,0,0,0.16);
}

.site-nav {
  background: var(--forest);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-nav ul {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 16px 24px 14px;
  text-decoration: none;
  font-family: "Bebas Neue Bold", Impact, sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.07em;
  color: white;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255,255,255,0.08);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--cream);
}

main {
  min-height: 45vh;
}

.page-section {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 0;
}

.page-title,
.section-title,
.cta-label {
  margin: 0;
  font-family: "Bebas Neue Bold", Impact, sans-serif;
  font-weight: normal;
  letter-spacing: 0.035em;
  line-height: 0.98;
}

.page-title {
  font-size: clamp(40px, 6vw, 72px);
  color: var(--navy);
}

.section-title {
  font-size: clamp(34px, 4.5vw, 54px);
  color: var(--navy);
}

.body-copy p {
  margin: 0 0 1.35em;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: center;
}

.book-art {
  width: min(100%, 430px);
  justify-self: center;
}

.book-copy {
  max-width: 670px;
}

.book-copy .page-title {
  margin-bottom: 26px;
}

.callout {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid rgba(7, 17, 26, 0.15);
}

.cta-label {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.6vw, 31px);
  color: var(--forest);
}

.button {
  display: inline-block;
  appearance: none;
  border: 2px solid var(--background);
  border-radius: 0;
  padding: 15px 30px 13px;
  cursor: pointer;
  background: var(--navy);
  color: var(--background);
  font-family: "Bebas Neue Bold", Impact, sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.review-buttons {
  display: grid;
  gap: 24px;
  width: min(85%, 289px);
  margin: 30px 0;
}

.image-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: default;
}

.image-button img {
  width: 100%;
}

.newsletter-main {
  max-width: 840px;
}

.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: center;
}

.newsletter-art {
  width: min(100%, 380px);
  justify-self: center;
}

.newsletter-main .page-title {
  margin-bottom: 24px;
}

.large-cta {
  margin: 28px 0 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(7, 17, 26, 0.18);
}

.info-block + .info-block {
  margin-top: 44px;
}

.newsletter-main .info-block .section-title {
  font-size: clamp(29px, 3.7vw, 44px);
}


.info-block .section-title {
  margin-bottom: 12px;
}

.info-block ul {
  margin: 0;
  padding-left: 1.35em;
}

.info-block li + li {
  margin-top: 8px;
}

.about-layout {
  max-width: 900px;
}

.about-layout .page-title {
  margin-bottom: 28px;
}

.about-avatar {
  float: right;
  width: min(34vw, 280px);
  margin: 0 0 24px 38px;
}

.about-signature {
  width: min(330px, 72vw);
  margin: 34px auto 0;
}

.external-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.newsletter-banner {
  background: var(--navy);
  color: white;
}

.newsletter-banner-inner {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 68px) 0;
}

.newsletter-banner h2 {
  margin: 0 0 18px;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 720px;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: 13px 15px;
  background: white;
  color: var(--text);
  font: inherit;
}

.newsletter-form input::placeholder {
  color: #59636b;
}

.newsletter-form button {
  appearance: none;
  border: 2px solid var(--background);
  border-radius: 0;
  padding: 15px 27px 13px;
  background: var(--navy);
  color: var(--background);
  font-family: "Bebas Neue Bold", Impact, sans-serif;
  font-size: 23px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.newsletter-form button:disabled {
  cursor: wait;
}

.newsletter-success {
  max-width: 720px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}

.newsletter-success p {
  margin: 0;
}

.ml-form-embedSubmitLoad {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.ml-form-embedSubmitLoad::after {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  margin: 1px;
  border: 4px solid var(--background);
  border-right-color: transparent;
  border-radius: 50%;
  animation: ml-form-embedSubmitLoad 1.2s linear infinite;
}

@keyframes ml-form-embedSubmitLoad {
  to { transform: rotate(360deg); }
}

.newsletter-copy {
  max-width: 740px;
  margin-top: 22px;
}

.newsletter-copy p {
  margin: 0 0 1em;
}

.newsletter-copy p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.88);
  text-align: center;
  font-size: 14px;
}

.site-footer p {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 6px 0;
}

.site-footer p:first-child {
  padding-top: 18px;
}

.site-footer p:last-child {
  padding-bottom: 18px;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .hero-brand {
    min-height: 205px;
    padding: 26px 18px 32px;
  }

  .brand-lockup {
    width: min(520px, 92vw);
  }

  .brand-tagline {
    font-size: clamp(26px, 8vw, 38px);
  }

  .site-nav ul {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav a {
    padding: 13px 10px 12px;
    text-align: center;
    font-size: 18px;
  }

  .book-layout,
  .newsletter-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .book-art {
    width: min(76vw, 340px);
  }

  .book-copy {
    max-width: none;
  }

  .about-avatar {
    float: none;
    width: min(62vw, 240px);
    margin: 0 auto 30px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .page-section,
  .newsletter-banner-inner {
    width: min(100% - 30px, var(--content-width));
  }

  .site-nav a {
    font-size: 17px;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
