@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --green: #173f32;
  --green-dark: #102e25;
  --green-mid: #386b53;
  --green-light: #eaf1eb;
  --gold: #c5a16a;
  --gold-light: #e7d4b2;
  --ink: #26352e;
  --muted: #77847c;
  --paper: #ffffff;
  --cream: #f7f8f4;
  --line: #e7ece7;
  --shadow: 0 18px 50px rgba(23, 63, 50, .09);
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

/* Header and navigation */

.site-header {
  position: relative;
  z-index: 10;
  min-height: 82px;
  padding: 0 max(calc((100% - var(--content)) / 2), 5.5%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.7px;
  white-space: nowrap;
}

.brand-mark {
  width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--green);
  border-radius: 5px 13px 5px 13px;
  font-size: 21px;
  font-weight: 500;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-header nav a {
  color: #536259;
  font-size: 13px;
  font-weight: 400;
  transition: color .2s ease;
}

.site-header nav a:hover {
  color: var(--green-mid);
}

.site-header nav .nav-cta {
  padding: 12px 20px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 3px;
  font-weight: 500;
  transition: background .2s ease, transform .2s ease;
}

.site-header nav .nav-cta:hover {
  color: #fff;
  background: var(--green-mid);
  transform: translateY(-1px);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 555px;
  padding: 70px max(calc((100% - var(--content)) / 2), 5.5%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 55px;
  background:
    radial-gradient(ellipse at 83% 48%, rgba(197, 161, 106, .13), transparent 38%),
    linear-gradient(115deg, #f6f8f3 0%, #eef3ed 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--green-mid);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  line-height: 1.6;
}

.hero h1 {
  max-width: 650px;
  margin: 0 0 24px;
  color: var(--green-dark);
  font-size: clamp(39px, 4.5vw, 61px);
  font-weight: 300;
  letter-spacing: -2.3px;
  line-height: 1.13;
}

.hero h1 em {
  color: var(--green-mid);
  font-style: normal;
  font-weight: 300;
}

.hero-text {
  max-width: 500px;
  margin: 0 0 29px;
  color: #65736a;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
}

.primary-button {
  min-height: 50px;
  padding: 13px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: #fff;
  background: var(--green);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s ease, transform .2s ease;
}

.primary-button:hover {
  color: #fff;
  background: var(--green-mid);
  transform: translateY(-2px);
}

.primary-button span {
  font-size: 18px;
}

.trust-note {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #758078;
  font-size: 11px;
  font-weight: 400;
}

.trust-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #759b76;
  border-radius: 50%;
}

/* Decorative book illustration */

.hero-art {
  position: relative;
  min-width: 0;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-orbit {
  position: absolute;
  border: 1px solid rgba(56, 107, 83, .14);
  border-radius: 50%;
}

.orbit-one {
  width: 345px;
  height: 345px;
}

.orbit-two {
  width: 265px;
  height: 265px;
}

.book-stack {
  position: relative;
  width: 310px;
  height: 315px;
}

.book {
  position: absolute;
  width: 160px;
  height: 255px;
  padding: 20px 15px;
  color: #fff;
  box-shadow: 12px 18px 35px rgba(16, 46, 37, .19);
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1.7;
}

.book-back {
  top: 32px;
  left: 135px;
  background: #c3a06b;
  transform: rotate(12deg);
}

.book-mid {
  top: 40px;
  left: 16px;
  background: #527b61;
  transform: rotate(-11deg);
}

.book-front {
  z-index: 2;
  top: 18px;
  left: 73px;
  width: 177px;
  height: 284px;
  padding: 23px 18px;
  background: var(--green);
  border-left: 6px solid var(--gold);
  transform: rotate(2deg);
}

.book-front span {
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
}

.book-front strong {
  margin-top: 48px;
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -.6px;
}

.book-front small {
  margin-top: 20px;
  display: block;
  color: var(--gold-light);
  font-size: 8px;
  letter-spacing: 1.4px;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 9px 15px;
  color: var(--green);
  background: #fff;
  border: 1px solid rgba(23, 63, 50, .08);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(23, 63, 50, .09);
  font-size: 11px;
  font-weight: 500;
}

.chip-one {
  top: 43px;
  right: 5px;
}

.chip-two {
  bottom: 54px;
  right: 1px;
}

.chip-three {
  bottom: 24px;
  left: 0;
}

/* Benefits */

.benefits {
  max-width: var(--content);
  margin: 0 auto;
  padding: 34px 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.benefits > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  column-gap: 13px;
}

.benefit-icon {
  width: 37px;
  height: 37px;
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-mid);
  background: var(--green-light);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 500;
}

.benefits strong {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
}

.benefits small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 300;
}

/* Catalogue */

.catalogue {
  max-width: var(--content);
  min-height: 320px;
  margin: 0 auto;
  padding: 76px 25px 85px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.section-heading h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.25;
}

.section-heading > p {
  max-width: 340px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
}

/* Empty catalogue state */

.empty-state {
  margin-top: 36px;
  padding: 43px 25px;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.empty-icon {
  width: 43px;
  height: 43px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: #fff;
  border: 1px solid #eee7d9;
  border-radius: 50%;
  font-size: 20px;
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 19px;
  font-weight: 400;
}

.empty-state p {
  max-width: 480px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
}

/* Product catalogue when real products are added */

.product-grid {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-cover {
  min-height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  background: var(--green);
  font-size: 13px;
  font-weight: 400;
}

.product-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-type {
  color: var(--green-mid);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 8px 0;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.product-info p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
}

.product-bottom {
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.product-bottom strong {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

.product-bottom a {
  color: var(--green-mid);
  font-size: 11px;
  font-weight: 600;
}

/* Footer */

footer {
  min-height: 175px;
  padding: 32px max(calc((100% - var(--content)) / 2), 5.5%);
  color: #dce8df;
  background: var(--green-dark);
}

footer .brand {
  color: #fff;
  font-size: 19px;
}

footer .brand-mark {
  color: var(--green-dark);
  background: var(--gold-light);
}

footer p {
  margin: 13px 0 8px;
  color: #c0d0c5;
  font-size: 12px;
  font-weight: 300;
}

footer > small {
  color: #9fb5a7;
  font-size: 10px;
  font-weight: 300;
}

/* Keyboard accessibility */

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Tablet */

@media (max-width: 900px) {
  .site-header {
    padding-right: 4%;
    padding-left: 4%;
  }

  .site-header nav {
    gap: 18px;
  }

  .hero {
    padding-right: 4%;
    padding-left: 4%;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(36px, 5vw, 50px);
  }

  .hero-art {
    transform: scale(.88);
  }

  .benefits {
    gap: 15px;
  }

  .benefits > div {
    column-gap: 9px;
  }

  .catalogue {
    padding-right: 4%;
    padding-left: 4%;
  }
}

/* Mobile */

@media (max-width: 650px) {
  html {
    scroll-padding-top: 20px;
  }

  .site-header {
    min-height: 70px;
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    font-size: 21px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 19px;
  }

  .site-header nav {
    width: 100%;
    padding: 5px 0 7px;
    justify-content: space-between;
    gap: 10px;
  }

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

  .site-header nav .nav-cta {
    padding: 9px 11px;
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    padding: 55px 23px 25px;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(37px, 10vw, 49px);
    letter-spacing: -1.7px;
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-art {
    height: 325px;
    margin-top: 5px;
    transform: scale(.9);
  }

  .benefits {
    padding: 25px 23px;
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .benefits > div {
    grid-template-columns: 38px 1fr;
  }

  .catalogue {
    padding: 55px 22px 60px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .empty-state {
    margin-top: 25px;
    padding: 35px 18px;
  }

  .empty-state h3 {
    font-size: 17px;
  }

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

  footer {
    padding: 30px 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* =========================================
   PageNest authentication and account pages
   ========================================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.auth-page .site-header {
  width: 100%;
  flex-shrink: 0;
}

.auth-main {
  width: 100%;
  flex: 1 0 auto;
  min-height: 620px;
  padding: 64px 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(197, 161, 106, .12), transparent 48%),
    linear-gradient(135deg, #f7f8f4 0%, #edf2ec 100%);
}

.auth-card {
  width: min(100%, 510px);
  margin: 0 auto;
  padding: 46px 48px;
  background: #fff;
  border: 1px solid rgba(23, 63, 50, .09);
  border-top: 3px solid var(--gold);
  border-radius: 5px;
  box-shadow: 0 20px 60px rgba(23, 63, 50, .10);
}

.auth-card .eyebrow {
  margin-bottom: 12px;
  color: var(--green-mid);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.4px;
}

.auth-card h1 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: clamp(29px, 4vw, 36px);
  font-weight: 300;
  letter-spacing: -1.1px;
  line-height: 1.25;
}

.auth-intro {
  margin: 0 0 30px;
  color: #718078;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
}

.auth-card form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-card form label {
  margin: 0 0 7px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 500;
}

.auth-card form input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  margin: 0 0 19px;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dce5dd;
  border-radius: 3px;
  outline: none;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 400;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-card form input:not([type="hidden"]):hover {
  border-color: #aabdaf;
}

.auth-card form input:not([type="hidden"]):focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(56, 107, 83, .10);
}

.auth-card form input::placeholder {
  color: #a2ada5;
}

.auth-help {
  margin: -12px 0 19px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 300;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 7px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.auth-alert,
.auth-success {
  margin: 0 0 23px;
  padding: 13px 15px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}

.auth-alert {
  color: #85443b;
  background: #fbf0ed;
  border: 1px solid #efd6d0;
}

.auth-success {
  color: var(--green);
  background: #edf5ed;
  border: 1px solid #d7e8d8;
}

.auth-switch {
  margin: 27px 0 0;
  padding-top: 20px;
  color: #758078;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  font-weight: 300;
}

.auth-switch a {
  color: var(--green-mid);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(56, 107, 83, .35);
  text-underline-offset: 3px;
}

.auth-switch a:hover {
  color: var(--green-dark);
}

.account-main {
  min-height: 580px;
}

.account-card {
  width: min(100%, 590px);
}

.account-card .primary-button {
  width: 100%;
  margin-top: 25px;
}

.account-details {
  margin-top: 25px;
  border-top: 1px solid var(--line);
}

.account-details > div {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.account-details span {
  color: var(--muted);
  font-weight: 300;
}

.account-details strong {
  color: var(--green-dark);
  font-weight: 500;
  text-align: right;
}

.site-header nav .nav-logout {
  margin: 0;
  padding: 0;
}

.site-header nav .nav-logout button {
  padding: 0;
  color: #536259;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.site-header nav .nav-logout button:hover {
  color: var(--green-mid);
}

.auth-page footer {
  width: 100%;
  flex-shrink: 0;
}

@media (max-width: 650px) {
  .auth-main {
    min-height: auto;
    padding: 38px 16px 45px;
  }

  .auth-card {
    padding: 34px 25px;
  }

  .auth-card h1 {
    font-size: 29px;
  }

  .auth-page .site-header {
    gap: 12px;
  }

  .auth-page .site-header nav {
    gap: 13px;
  }

  .auth-page .site-header nav a {
    font-size: 11px;
  }

  .auth-page .site-header nav .nav-cta {
    padding: 10px 12px;
  }

  .account-details > div {
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .auth-card {
    padding: 29px 19px;
  }

  .auth-page .brand {
    gap: 7px;
    font-size: 19px;
  }

  .auth-page .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

/* =========================================
   PageNest fixed and shrinking navigation
   ========================================= */

body {
  padding-top: 82px;
  transition: padding-top .25s ease;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 82px;
  min-height: 82px;
  padding-top: 0;
  padding-bottom: 0;
  z-index: 1000;
  box-shadow: 0 3px 18px rgba(23, 63, 50, .045);
  transition:
    height .25s ease,
    min-height .25s ease,
    box-shadow .25s ease,
    background-color .25s ease;
}

.site-header .brand,
.site-header .brand-mark {
  transition:
    font-size .25s ease,
    width .25s ease,
    height .25s ease;
}

body.has-scrolled {
  padding-top: 66px;
}

body.has-scrolled .site-header {
  height: 66px;
  min-height: 66px;
  box-shadow: 0 5px 22px rgba(23, 63, 50, .12);
}

body.has-scrolled .site-header .brand {
  font-size: 20px;
}

body.has-scrolled .site-header .brand-mark {
  width: 33px;
  height: 33px;
  font-size: 18px;
}

body.has-scrolled .site-header nav .nav-cta {
  padding-top: 9px;
  padding-bottom: 9px;
}

/* Keep in-page links clear of the fixed header. */
html {
  scroll-padding-top: 100px;
}

/* Mobile navigation remains on one compact row. */
@media (max-width: 650px) {
  body {
    padding-top: 70px;
  }

  body.has-scrolled {
    padding-top: 60px;
  }

  .site-header {
    height: 70px;
    min-height: 70px;
    padding: 0 16px;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .site-header .brand {
    gap: 8px;
    font-size: 19px;
  }

  .site-header .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 18px;
  }

  .site-header nav {
    width: auto;
    min-width: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
  }

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

  .site-header nav .nav-cta {
    padding: 8px 9px;
    font-size: 10px;
  }

  body.has-scrolled .site-header {
    height: 60px;
    min-height: 60px;
  }

  body.has-scrolled .site-header .brand {
    font-size: 18px;
  }

  body.has-scrolled .site-header .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  body.has-scrolled .site-header nav {
    gap: 8px;
  }

  html {
    scroll-padding-top: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .site-header,
  .site-header .brand,
  .site-header .brand-mark {
    transition: none !important;
  }
}
