:root {
  --bg-soft: #f8f5f2;
  --bg-soft-alt: #f5f7f6;
  --bg-deep: #233730;
  --accent: #6b8f7c;
  --accent-soft: #d7e3dd;
  --text-main: #243036;
  --text-muted: #5f6b73;
  --card-bg: #ffffff;
  --border-soft: #e4e0da;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.07);
}

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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* prevents sideways overflow causing “shifted left” layouts */
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: var(--bg-soft);
  line-height: 1.6;
}

/* Media defaults (prevents images/SVGs from overflowing containers) */
img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout helpers */

.container {
  width: min(1100px, calc(100% - 3rem));
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
  min-width: 0;
}

.grid {
  display: grid;
  gap: 1.75rem;
  min-width: 0;
}

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

.centered {
  text-align: center;
  margin-top: 2rem;
}

/* Typography */

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.9rem, 2.3vw, 2.3rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
}

.section-overline {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(248, 245, 242, 0.96),
    rgba(248, 245, 242, 0.92)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  min-width: 0;
}

.logo {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  min-width: 0;
}

.main-nav a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--text-main);
}

.main-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
  background-color: #faf9f7; /* fallback */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/winding-path.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  opacity: 0.18;          /* main control knob */
  pointer-events: none;
}


.hero-inner {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.hero-inner,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero-image {
  width: 100%;
  max-width: 360px; /* main control knob */
  height: auto;
  display: block;
  margin: 1.5rem auto 0;
}

.hero-overline {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.hero-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.2rem;
  min-width: 0;
}

.hero-option {
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  padding: 1.6rem 1rem;
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.hero-option span {
  white-space: pre-line;
}

.hero-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-soft);
}
/* Hero option links (override anchor defaults) */
.hero-option {
  display: block;              /* make entire card clickable */
  text-decoration: none;       /* remove underline */
  color: var(--text-main);     /* remove blue link color */
}

.hero-option:visited {
  color: var(--text-main);     /* prevent purple visited state */
}

.hero-option:hover {
  text-decoration: none;       /* keep underline off on hover */
}

.hero-option:focus-visible {
  outline: 2px solid rgba(107, 143, 124, 0.6);
  outline-offset: 4px;
}
/* Mobile: keep it centered and controlled */
@media (max-width: 700px) {
  .hero::before {
    background-position: center 60%;
    background-size: 90vw auto; /* scales with screen width */
    opacity: 0.14;             /* optional: calmer on mobile */
  }
}

/* Very wide screens: prevent it from getting comically large */
@media (min-width: 1200px) {
  .hero::before {
    background-position: right center;
    background-size: 520px auto; /* cap size on big displays */
  }
}






/* Cards */

.card,
.tool-card,
.reach-form-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.card-image {
  width: 100%;
  height: 150px;            /* keep a consistent frame */
  object-fit: contain;      /* prevents awkward cropping */
  object-position: center;  /* centers the artwork */
  background: #ffffff;      /* clean fill behind transparent PNGs */
  border-radius: 14px;
  display: block;
  margin: 0 auto 1.1rem;    /* centers the frame and keeps spacing */
}
/* Tool card images */
.tool-card-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-radius: 14px;
  display: block;
  margin: 0 0 1.1rem;
}

/* Tools section polish (match Stories behavior) */
.tools-section .card-link .card-link-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tools-section .card-cta {
  margin-top: auto;
  padding-top: 0.8rem;
}



.tool-card {
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.88),
      rgba(255, 255, 255, 0.96)
    ),
    radial-gradient(
      circle at top,
      rgba(173, 204, 192, 0.35),
      transparent 65%
    );
  background-blend-mode: soft-light, normal;
}
/* Clickable story cards */
/* Remove default link styling from ALL text inside clickable cards */
.card-link .card-link-inner,
.card-link .card-link-inner * {
  color: inherit;
  text-decoration: none;
}

.card-link .card-link-inner {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-link .card-link-inner:visited {
  color: inherit;
}

.card-link .card-link-inner:focus-visible {
  outline: 2px solid rgba(107, 143, 124, 0.6);
  outline-offset: 4px;
}

/* Keep the CTA visually consistent */
.card-cta {
  display: inline-block;
  margin-top: 0.25rem;
}
/* =========================
   Stories polish
   ========================= */

/* Make story cards equal-height and nicely spaced inside */
.stories-section .card-link .card-link-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Keep image + heading spacing consistent */
.stories-section .card-image {
  margin-bottom: 1.1rem; /* keep your current rhythm */
}

/* Give cards a clear hover affordance */
.stories-section .card-link {
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.stories-section .card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.09);
  border-color: rgba(107, 143, 124, 0.35);
}

/* Keyboard users: match the hover vibe */
.stories-section .card-link .card-link-inner:focus-visible {
  outline: 2px solid rgba(107, 143, 124, 0.6);
  outline-offset: 6px;
  border-radius: var(--radius-lg);
}

/* Push the CTA ("Read") to the bottom */
.stories-section .card-cta {
  margin-top: auto;
  padding-top: 0.8rem;
}


/* About */

.about-section {
  background: var(--bg-soft);
}

.about-illustration .illus-card {
  height: 260px;
  border-radius: 26px;
  background: linear-gradient(
    150deg,
    rgba(175, 204, 201, 0.6),
    rgba(243, 210, 188, 0.7)
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.5rem;
  color: #ffffff;
  font-size: 0.9rem;
}

/* Stories */

.stories-section {
  background: var(--bg-soft-alt);
}

/* Tools */

.tools-section {
  background: #fdfcf9;
}

/* Blog */

.blog-section {
  background: var(--bg-soft);
}

/* Reach / Contact */

.reach-section {
  background: linear-gradient(to top, #e3ebe4, #f6f3ee);
}

.bullet-list {
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
}

.bullet-list li {
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.reach-form-card h3 {
  margin-bottom: 1rem;
}

/* Form styles */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.field span,
legend {
  font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.92rem;
  background: #fbfbfa;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(107, 143, 124, 0.25);
}

fieldset {
  border: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.radio,
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.radio input,
.checkbox input {
  margin-top: 0.2rem;
}

.button-primary {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--bg-deep);
  color: #ffffff;
  cursor: pointer;
  margin-top: 0.45rem;
}

.button-primary:hover {
  opacity: 0.95;
}

.button-outline {
  display: inline-block;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
}

.text-link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  background: var(--bg-deep);
  color: #f5f5f3;
  padding-top: 3.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  min-width: 0;
}

.footer-block h4 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-text {
  font-size: 0.9rem;
  color: #d5ded8;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: #e4ece6;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Newsletter form polish */
.newsletter-row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
}

.newsletter-row input[type="email"] {
  flex: 1 1 280px;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font: inherit;
  background: #fff;
}

.newsletter-row button {
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.newsletter-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-soft);
}

.newsletter-row button:focus-visible {
  outline: 2px solid rgba(107, 143, 124, 0.6);
  outline-offset: 4px;
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding: 0.9rem 0 1.4rem;
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #c6d1cb;
  min-width: 0;
}

.footer-small-links a {
  color: #c6d1cb;
  text-decoration: none;
}

.footer-small-links a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }

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

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

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
  }
}
/* ===== Header restore (brand + menu) ===== */
.site-header {
  width: 100%;
}

.site-header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Brand (clickable, not “link-styled”) */
.site-header .brand,
.site-header .brand:visited {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
  font-weight: 700;
  line-height: 1;
}

/* Menu */
.site-header .top-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-header .top-nav a,
.site-header .top-nav a:visited {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
  opacity: 0.9;
}

.site-header .top-nav a:hover {
  opacity: 1;
}

/* Mobile */
@media (max-width: 720px) {
  .site-header .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ===== Newsletter submit button ===== */
.submit-btn {
  background-color: #1f2937;   /* dark, readable */
  color: #ffffff;              /* force visible text */
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

/* Hover / focus */
.submit-btn:hover,
.submit-btn:focus {
  background-color: #111827;
}
