:root {
  --green: #113a27;
  --green-deep: #0a261a;
  --cream: #f7f2e7;
  --paper: #fffcf4;
  --ink: #17130e;
  --muted: #5e5547;
  --gold: #caa652;
  --gold-dark: #8f6d2e;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 58, 39, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1100px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  grid-column: 2;
  color: #c9aa62;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  justify-self: end;
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: #fff9eb;
  font-size: 13px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff9eb;
  background:
    radial-gradient(circle at 78% 76%, rgba(216, 174, 76, 0.78) 0 17%, transparent 17.2%),
    radial-gradient(circle at 80% 88%, rgba(143, 109, 46, 0.9) 0 19%, transparent 19.2%),
    linear-gradient(135deg, var(--green-deep), #16452e 64%, #0d2d20);
}

.hero-inner {
  width: min(1100px, calc(100% - 32px));
  min-height: 470px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.94fr);
  align-items: center;
  gap: 54px;
  padding: 54px 0 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 500;
  line-height: 0.96;
}

.hero p {
  margin: 16px 0 26px;
  max-width: 620px;
  color: #fff8e9;
  font-size: 18px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(20, 17, 10, 0.18);
  border-radius: 6px;
  color: #15110a;
  background: #fffaf0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: linear-gradient(180deg, #dfc576, var(--gold));
}

.hero-art {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: end center;
  perspective: 1200px;
}

.book-tilt {
  position: relative;
  z-index: 2;
  transform: rotateY(-11deg) rotateZ(1deg);
  transform-style: preserve-3d;
}

.book-object {
  position: relative;
  width: min(320px, 78vw);
  border-radius: 2px 10px 10px 2px;
  box-shadow:
    22px 22px 34px rgba(0, 0, 0, 0.34),
    2px 0 0 rgba(255, 255, 255, 0.18) inset,
    -10px 0 18px rgba(0, 0, 0, 0.28) inset;
  transform-style: preserve-3d;
}

.book-object::before {
  content: "";
  position: absolute;
  top: 2.5%;
  bottom: 2.5%;
  left: -15px;
  width: 22px;
  border-radius: 8px 0 0 8px;
  background:
    linear-gradient(90deg, #130c08, #4a2415 42%, #8d4325 72%, #1a0d08),
    linear-gradient(#000, #000);
  box-shadow:
    inset -4px 0 8px rgba(255, 214, 142, 0.22),
    inset 5px 0 9px rgba(0, 0, 0, 0.44);
  transform: translateZ(-13px) rotateY(-82deg);
  transform-origin: right center;
}

.book-object::after {
  content: "";
  position: absolute;
  top: 3%;
  right: -18px;
  bottom: 3%;
  width: 22px;
  border-radius: 0 7px 7px 0;
  background:
    repeating-linear-gradient(
      to bottom,
      #f6efe1 0,
      #f6efe1 3px,
      #d7c8aa 4px,
      #f4ead8 6px
    );
  box-shadow: 8px 5px 15px rgba(0, 0, 0, 0.28);
  transform: translateZ(-14px) rotateY(78deg);
  transform-origin: left center;
}

.book {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 2px 8px 8px 2px;
  outline: 1px solid rgba(255, 230, 178, 0.36);
  box-shadow:
    inset 14px 0 18px rgba(0, 0, 0, 0.24),
    inset -3px 0 8px rgba(255, 255, 255, 0.16);
}

.plinth {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(410px, 92%);
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #dfc77e, #a57b35);
  box-shadow: 0 22px 28px rgba(0, 0, 0, 0.2);
}

.section {
  padding: 42px 0 56px;
}

.section.alt {
  background: var(--cream);
}

.section-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 7px;
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
}

.section-link {
  margin-top: 78px;
  text-align: center;
}

.text-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-bottom: 2px solid var(--gold);
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 26px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-width: 0;
}

.card img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card img.blog-preview-image {
  aspect-ratio: 4 / 3 !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 10px;
  background:
    radial-gradient(circle at 18% 12%, rgba(202, 166, 82, 0.22), transparent 34%),
    linear-gradient(135deg, #fffaf0, #ead9c8);
}

.card h3 {
  margin: 14px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.08;
}

.card h3 a {
  text-decoration: none;
}

.card p {
  margin: 0;
  color: #251f17;
  font-size: 15px;
  line-height: 1.34;
}

.product img {
  aspect-ratio: 1.05 / 1;
  background: var(--green);
}

.price {
  display: block;
  margin-top: 10px;
  font-weight: 700;
}

.newsletter {
  color: #fff9eb;
  background: linear-gradient(135deg, #0d2d20, #16452e);
}

.newsletter-row {
  width: min(950px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.newsletter h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.newsletter p {
  margin: 0;
  color: #f7ecd2;
  line-height: 1.5;
}

.newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 15px;
}

.site-footer {
  padding: 32px 0 26px;
  color: #f9f0dc;
  background: var(--green-deep);
}

.footer-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  color: #c9aa62;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 18px 0;
}

.socials a {
  color: #fff9eb;
  font-weight: 700;
  text-decoration: none;
}

.copyright {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #d8cdb9;
  font-size: 12px;
}

.post-main {
  background: var(--paper);
}

.archive-main {
  background: var(--paper);
}

.archive-hero {
  padding: 58px 0 44px;
  color: #fff9eb;
  background: linear-gradient(135deg, var(--green-deep), #17472f);
}

.archive-hero-inner {
  width: min(850px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.archive-hero .section-kicker,
.archive-hero h1,
.archive-hero p {
  text-align: center;
}

.archive-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 500;
  line-height: 1;
}

.archive-hero p:last-child {
  max-width: 660px;
  margin: 16px auto 0;
  color: #f6ead2;
  font-size: 18px;
  line-height: 1.5;
}

.archive-grid {
  align-items: start;
}

.post-hero {
  padding: 56px 0 34px;
  color: #fff9eb;
  background: linear-gradient(135deg, var(--green-deep), #17472f);
}

.post-hero-inner,
.post-body {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.post-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 500;
  line-height: 1;
}

.post-date {
  margin: 0 0 13px;
  color: #d7bd73;
  text-transform: uppercase;
}

.post-image {
  width: min(760px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-body {
  padding: 48px 0 72px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.62;
}

.post-body p {
  margin: 0 0 24px;
}

.post-body h1,
.post-body h2,
.post-body h3 {
  margin: 48px 0 16px;
  color: var(--green-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
}

.post-body h1 {
  font-size: 38px;
}

.post-body h2 {
  position: relative;
  padding-top: 22px;
  font-size: 32px;
}

.post-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(202, 166, 82, 0));
}

.post-body h3 {
  font-size: 25px;
}

.post-body ul {
  margin: -6px 0 30px;
  padding: 20px 24px 20px 44px;
  border-left: 4px solid rgba(202, 166, 82, 0.8);
  border-radius: 0 8px 8px 0;
  background: #fbf6ea;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.58;
}

.post-body li {
  margin: 8px 0;
  padding-left: 4px;
}

.post-body li::marker {
  color: var(--gold-dark);
}

.post-body strong {
  color: var(--green-deep);
}

.post-callout {
  margin: 30px 0 14px;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  color: var(--green-deep);
  background: linear-gradient(90deg, rgba(202, 166, 82, 0.18), rgba(202, 166, 82, 0.04));
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-body hr {
  width: 90px;
  height: 2px;
  margin: 42px 0;
  border: 0;
  background: var(--gold);
}

.table-wrap {
  max-width: 100%;
  margin: 20px 0 38px;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(17, 58, 39, 0.12);
  background: #fffaf0;
  box-shadow: 0 16px 36px rgba(17, 58, 39, 0.1);
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.post-body th,
.post-body td {
  padding: 15px 17px;
  border-bottom: 1px solid rgba(17, 58, 39, 0.12);
  text-align: left;
  vertical-align: top;
}

.post-body th {
  color: #fff9eb;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-body td:first-child {
  width: 34%;
  color: var(--green-deep);
  background: rgba(202, 166, 82, 0.1);
  font-weight: 700;
}

.post-body tbody tr:nth-child(even) td {
  background-color: rgba(17, 58, 39, 0.035);
}

.post-body tbody tr:nth-child(even) td:first-child {
  background: rgba(202, 166, 82, 0.15);
}

.post-body tbody tr:hover td {
  background-color: rgba(202, 166, 82, 0.18);
}

.post-body tr:last-child td {
  border-bottom: 0;
}

.post-inline-image {
  width: 100%;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-footer-promo {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.post-promo-panel {
  min-width: 0;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(17, 58, 39, 0.12);
}

.post-promo-book {
  color: #fff9eb;
  border-color: rgba(215, 189, 115, 0.4);
  background:
    linear-gradient(135deg, rgba(17, 58, 39, 0.97), rgba(54, 96, 64, 0.95)),
    url("/images/book-cover.jpg") center/cover;
}

.post-promo-newsletter {
  color: #3b2518;
  border-color: rgba(128, 67, 46, 0.22);
  background: linear-gradient(135deg, #f6e6c8, #fff8e9);
}

.post-promo-panel .eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-promo-book .eyebrow {
  color: var(--gold);
}

.post-promo-panel h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
  max-width: 420px;
}

.post-promo-panel p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  max-width: 390px;
}

.post-promo-newsletter form {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.post-promo-newsletter input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(17, 58, 39, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

@media (max-width: 820px) {
  .nav {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 14px 0;
  }

  .brand {
    grid-column: auto;
    font-size: 28px;
  }

  .nav-links {
    justify-self: center;
    gap: 20px;
  }

  .hero-inner,
  .newsletter-row {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    gap: 28px;
    padding-top: 42px;
  }

  .hero-art {
    min-height: 280px;
  }

  .book-object {
    width: min(270px, 72vw);
  }

  .grid.three,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-footer-promo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 40px;
  }

  .post-body {
    font-size: 19px;
  }

  .post-body h2 {
    font-size: 28px;
  }

  .post-body h3 {
    font-size: 23px;
  }

  .post-body ul {
    padding: 18px 18px 18px 34px;
    font-size: 16px;
  }

  .post-body th,
  .post-body td {
    min-width: 170px;
    padding: 13px 14px;
  }

  .post-footer-promo {
    margin-bottom: 60px;
  }

  .post-promo-panel {
    padding: 22px;
  }

  .post-promo-panel h2 {
    font-size: 26px;
  }

  .post-promo-newsletter form {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.four,
  .newsletter form {
    grid-template-columns: 1fr;
  }

  .actions .button,
  .newsletter .button {
    width: 100%;
  }
}
