/* =========================================================
   WithinGuide
   Common page styles
   ========================================================= */

:root {
  --ink: #24302e;
  --ink-soft: #596663;
  --paper: #f7f5f0;
  --paper-dark: #ece9e1;
  --white: #ffffff;
  --sage: #718b7e;
  --sage-dark: #49685c;
  --sage-light: #dce5df;
  --warm: #c7a77b;
  --line: rgba(36, 48, 46, 0.13);
  --shadow: 0 24px 60px rgba(36, 48, 46, 0.40);
  --radius: 20px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

/* ---------- Typography ---------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-dark);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
}

h1 em,
h2 em {
  color: var(--sage-dark);
  font-style: italic;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--paper);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

.logo > span:last-child > span {
  color: var(--sage-dark);
}

.logo-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sage);
  border-radius: 50%;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
}

.nav {
  display: flex;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--sage-dark);
}

.feedback {
  background: var(--sage-dark);
  color: var(--paper);
  border: var(--sage) 1px solid;
  border-radius: 14px;
  width: 600px;
  padding: 20px;
  box-shadow: var(--shadow);
  z-index: 3000;
}

.centered-div {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Offsets the div by its own half-width and half-height */
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid var(--sage-dark);
  border-radius: 999px;
  background: var(--sage-dark);
  color: white;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--ink);
}

.button-light {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
}

.button-light:hover {
  background: white;
  color: var(--sage-dark);
}


.section-heading {
  max-width: 650px;
  margin-bottom: 55px;
}

.section-heading h2 {
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
}

.section-heading > p:last-child {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}


.text-link {
  color: var(--sage-dark);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.text-link span,
.button span {
  transition: transform 0.2s ease;
  display: inline-block;
}

.text-link:hover span,
.button:hover span {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 70px 0 30px;
  background: #202b29;
  color: #d5ddd9;
}

.footer-main {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 100px;
  padding-bottom: 60px;
}

.footer-brand .logo {
  color: white;
}

.footer-brand .logo > span:last-child > span {
  color: #afc0b7;
}

.footer-brand p {
  margin-top: 15px;
  color: #9baaa5;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.footer-disclaimer {
  max-width: 760px;
}

.footer-disclaimer h3 {
  margin-bottom: 14px;
  color: white;
  font-size: 1.3rem;
}

.footer-disclaimer p {
  margin-bottom: 13px;
  color: #aebbb7;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #81908b;
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 850px) {
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .nav-wrap {
    min-height: 70px;
  }

  .nav {
    display: none;
  }

  .footer-main {
    padding-bottom: 45px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }

  .feedback {
    width: 100dvw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
