/* ==========================================================================
   EthioRoot Naturals, single-page site styles
   Palette: warm ivory ground, deep natural green type, restrained amber accents.
   Type: Fraunces (serif, headlines) + Inter (sans, body), self-hosted.
   ========================================================================== */

:root {
  --ivory: #FBF6EB;
  --parchment: #F2EAD6;
  --ink: #2A3B2E;
  --green: #2E4A33;
  --green-deep: #223A28;
  --forest: #24402C;
  --footer-green: #1B3021;
  --amber: #8E600D;
  --amber-bright: #D9AC5C;
  --hairline: #E2D6BB;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ----- reset ----- */

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

body, h1, h2, p, ul, figure {
  margin: 0;
  padding: 0;
}

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

ul { list-style: none; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ----- base ----- */

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--green);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.7rem);
  letter-spacing: -0.01em;
}

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

a {
  color: var(--green);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.container.narrow {
  max-width: 46rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}

.rule {
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--amber-bright);
  margin: 0 auto 1.75rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--green);
  color: var(--ivory);
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 0;
}

/* ----- buttons and links ----- */

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--green);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-outline {
  border: 1px solid var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--ivory);
}

.text-link {
  font-weight: 500;
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--amber-bright);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 160ms ease;
}

.text-link:hover {
  text-decoration-color: var(--green);
}

.btn-hero {
  background: var(--ivory);
  color: var(--green-deep);
}

.btn-hero:hover {
  background: var(--parchment);
}

.text-link-light {
  color: var(--ivory);
}

.text-link-light:hover {
  text-decoration-color: var(--ivory);
}

/* ----- header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  position: relative;
}

.wordmark,
.footer-wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.005em;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span,
.footer-wordmark span {
  font-weight: 400;
  font-style: italic;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2rem);
}

.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 140ms ease, color 140ms ease;
}

.site-nav a:not(.btn):hover {
  color: var(--green);
  border-bottom-color: var(--amber-bright);
}

.nav-cta .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  font: 500 0.9rem var(--sans);
  color: var(--green);
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

/* ----- hero ----- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(34rem, 88vh, 50rem);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  z-index: -2;
}

/* Quiet scrim, bottom left only, so the headline reads without dimming the landscape */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(24, 36, 26, 0.58) 0%, rgba(24, 36, 26, 0.26) 36%, rgba(24, 36, 26, 0) 62%),
    linear-gradient(to right, rgba(24, 36, 26, 0.28) 0%, rgba(24, 36, 26, 0) 52%);
}

.hero-content {
  width: 100%;
  padding-block: clamp(3.5rem, 8vh, 5.5rem);
}

.hero .eyebrow {
  color: var(--amber-bright);
  text-shadow: 0 1px 10px rgba(24, 36, 26, 0.5);
}

.hero h1 {
  max-width: 21ch;
  color: var(--ivory);
  text-shadow: 0 2px 18px rgba(24, 36, 26, 0.35);
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--ivory);
  text-shadow: 0 1px 10px rgba(24, 36, 26, 0.45);
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.hero :focus-visible {
  outline-color: var(--amber-bright);
}

/* ----- brand ----- */

.brand {
  background: var(--parchment);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.brand-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

/* copy is first in the DOM for reading order; the visual sits left on desktop */
.brand-copy { order: 2; }
.brand-visual { order: 1; }

.brand-logo {
  display: block;
  margin: 0 auto 2rem;
  width: 92px;
  height: auto;
}

/* The pouch cutouts expect a light warm ground; keep this on parchment. */
.pouch-trio {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pouch {
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(38, 56, 43, 0.22));
}

.pouch-side {
  width: 31%;
}

.pouch-center {
  width: 37%;
  margin-inline: -3.5%;
  position: relative;
  z-index: 2;
  transform: translateY(0.75rem) scale(1.04);
  transform-origin: bottom center;
}

.brand-copy p + p {
  margin-top: 1.1rem;
}

.brand-copy h2 {
  margin-bottom: 1.25rem;
}

.brand-action {
  padding-top: 1.6rem;
}

/* ----- purpose and founder ----- */

.purpose {
  padding-block: clamp(5.5rem, 11vw, 9rem);
}

.purpose h2,
.founder h2 {
  margin-bottom: 1.5rem;
}

.serif-lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--green);
}

.purpose .serif-lead + p {
  margin-top: 1.25rem;
}

.founder {
  background: var(--parchment);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.founder-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 5.5rem);
}

.founder-portrait {
  justify-self: end;
  max-width: 24rem;
  width: 100%;
}

.founder-portrait img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--hairline);
}

.founder-copy h2 {
  margin-bottom: 1.5rem;
}

.founder p + p {
  margin-top: 1.1rem;
}

/* ----- contact ----- */

.contact {
  background: var(--forest);
  padding-block: clamp(5.5rem, 11vw, 9rem);
  color: var(--ivory);
}

.contact .eyebrow {
  color: var(--amber-bright);
}

.contact h2 {
  color: var(--ivory);
  margin-bottom: 1.25rem;
}

.contact-email {
  margin-top: 1.75rem;
}

.contact-email a {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--amber-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  overflow-wrap: anywhere;
  transition: color 140ms ease;
}

.contact-email a:hover {
  color: var(--ivory);
}

.contact :focus-visible {
  outline-color: var(--amber-bright);
}

/* ----- footer ----- */

.site-footer {
  background: var(--footer-green);
  padding-block: 3rem;
  text-align: center;
  color: #C8C2AC;
  font-size: 0.9rem;
}

.footer-wordmark {
  font-size: 1.15rem;
  color: var(--ivory);
}

.footer-tagline {
  margin-top: 0.6rem;
}

.footer-legal {
  margin-top: 1.5rem;
  font-size: 0.8rem;
}

/* ----- anchor offset for sticky header ----- */

section[id] {
  scroll-margin-top: 5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 880px) {

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--hairline);
    padding: 0.75rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
  }

  .site-header.nav-open .site-nav {
    display: block;
  }

  /* Without JavaScript the menu button is hidden and links render inline. */
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav {
    display: block;
    position: static;
    border-bottom: 0;
    padding: 0 0 1rem;
  }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .site-nav ul { flex-flow: row wrap; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li + li {
    border-top: 1px solid var(--hairline);
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 0;
  }

  .nav-cta {
    padding-top: 1rem;
  }

  .nav-cta .btn {
    display: block;
    text-align: center;
    padding: 0.75rem 1.1rem;
  }

  .hero {
    min-height: clamp(30rem, 82vh, 44rem);
  }

  .hero-bg {
    object-position: 56% 45%;
  }

  /* narrow screens put text higher on the image, so carry the scrim further up */
  .hero-scrim {
    background:
      linear-gradient(to top, rgba(24, 36, 26, 0.64) 0%, rgba(24, 36, 26, 0.34) 44%, rgba(24, 36, 26, 0.10) 74%, rgba(24, 36, 26, 0) 90%);
  }

  .brand-inner,
  .founder-inner {
    grid-template-columns: 1fr;
  }

  /* stacked order: copy first, pouches after */
  .brand-copy { order: 1; }
  .brand-visual { order: 2; }

  .pouch-trio {
    max-width: 30rem;
    margin-inline: auto;
  }

  .brand-logo {
    margin-bottom: 1.6rem;
  }

  /* portrait above the copy, kept at a modest editorial size */
  .founder-portrait {
    justify-self: start;
    max-width: 20rem;
  }
}

@media (max-width: 480px) {

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero-actions {
    gap: 1.4rem;
  }

  .hero-actions .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hero-actions .text-link {
    margin-inline: auto;
  }

  .pouch-trio {
    max-width: 22rem;
  }

  .founder-portrait {
    max-width: 17rem;
  }
}
