/* ==========================================================================
   4 Elements® Life — 4elementslife.com
   Design tokens, layout and components.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --ink: #171917;
  --cream: #f5f1e8;
  --paper: #fbfaf7;
  --sage: #829682;
  --sage-dark: #3f5144;
  --sand: #d8c9b5;
  --rust: #b66d4e;
  --gold: #b89b61;
  --navy: #1c2e4f;             /* from the brand seal */
  --muted: #5d625d;
  --muted-soft: #6d716d;
  --line: rgba(23, 25, 23, .12);
  --max: 1240px;
  --font-display: "Marcellus", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-lift: 0 18px 30px rgba(0, 0, 0, .10);
  --shadow-modal: 0 30px 80px rgba(0, 0, 0, .3);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }

/* Visible keyboard focus everywhere, without a mouse-click ring. */
:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 3px;
  font-size: 13px;
  transition: top .18s ease;
}
.skip-link:focus { top: 16px; }

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

/* --- Announcement + navigation ------------------------------------------ */
.announcement {
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: auto;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { width: 64px; height: 64px; object-fit: contain; display: block; }
.brand strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: .025em;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: -2px;
}

.navlinks { display: flex; gap: 26px; font-size: 13px; }
.navlinks a { padding: 4px 0; border-bottom: 1px solid transparent; }
.navlinks a:hover { border-bottom-color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.pill {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  background: transparent;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.pill:hover { background: var(--ink); color: #fff; }
.pill.fill { background: var(--ink); color: #fff; }
.pill.fill:hover { background: var(--sage-dark); border-color: var(--sage-dark); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 54px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 700;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 5.8vw, 82px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 16px 0 22px;
}
.hero h1 em { font-style: italic; color: var(--sage-dark); }
.hero p { font-size: 17px; max-width: 600px; color: #4f534f; }

.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.cta {
  padding: 14px 22px;
  border-radius: 3px;
  border: 1px solid var(--ink);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: .02em;
  display: inline-block;
  transition: background .2s ease, color .2s ease;
}
.cta:hover { background: var(--ink); color: #fff; }
.cta.primary { background: var(--ink); color: #fff; }
.cta.primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); }

.hero-art {
  aspect-ratio: 4 / 5;
  border-radius: 180px 180px 18px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(27, 35, 28, .12);
  background: #e7e4dc;
}
.hero-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Vertical "live your element" rule, kept inside the clipped frame. */
.hero-art .vertical-label {
  position: absolute;
  right: 14px;
  bottom: 120px;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
  z-index: 3;
}

.hero-seal {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 104px;
  height: 104px;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .15);
  z-index: 3;
}
.hero-seal img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

/* --- Manifesto strip ---------------------------------------------------- */
.manifesto {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto-inner {
  max-width: var(--max);
  margin: auto;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.manifesto div { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.manifesto b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  display: block;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 2px;
}

/* --- Generic section ---------------------------------------------------- */
.section { max-width: var(--max); margin: auto; padding: 86px 28px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 32px;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 43px;
  letter-spacing: -.01em;
  margin: 0;
}
.section-head p { max-width: 480px; color: #666b66; font-size: 14px; margin: 0; }

/* --- Category tiles ----------------------------------------------------- */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category {
  min-height: 390px;
  padding: 24px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: #e9e6df;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .25s ease, box-shadow .25s ease;
  color: #fff;
}
.category:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.category img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.category:hover img { transform: scale(1.035); }
.category::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 19, 16, .02) 25%, rgba(15, 19, 16, .78) 100%);
}
.category .num, .category h3, .category p { position: relative; z-index: 2; }
.category .num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  letter-spacing: .16em;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  padding: 5px 8px;
}
.category h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.08;
  margin: 0 0 8px;
}
.category p { font-size: 12px; margin: 0; color: rgba(255, 255, 255, .84); }

/* --- Shop grid ---------------------------------------------------------- */
.shop { background: #fff; max-width: none; }
.shop > .shop-inner { max-width: var(--max); margin: auto; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.filter {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 18px; }

.product-card { display: block; cursor: pointer; }
.product-img {
  aspect-ratio: 1 / 1;
  background: #eee9df;
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  display: block;
}
.product-img img.packshot { object-fit: contain; padding: 24px; background: #fff; }
.product-card:hover .product-img img { transform: scale(1.025); }

.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #fff;
  padding: 6px 9px;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 2;
}

.meta { padding: 14px 2px; }
.meta-row { display: flex; justify-content: space-between; gap: 20px; }
.meta h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  margin: 0;
}
.price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.meta p { font-size: 12px; color: var(--muted-soft); margin: 6px 0 0; }
/* Real <button> so the card is reachable and operable by keyboard. */
.link {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  border: 0;
  border-bottom: 1px solid;
  border-radius: 0;
  padding: 0 0 2px;
  display: inline-block;
  background: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}
.product-card:hover .link { color: var(--sage-dark); }

/* --- Story -------------------------------------------------------------- */
.story { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.story-art {
  aspect-ratio: 1 / 1;
  background: var(--sage-dark);
  color: #fff;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.story-art .big { font-family: var(--font-display); font-size: 70px; line-height: .95; }
.story-art small { letter-spacing: .14em; text-transform: uppercase; }
.story-copy h2 { margin-bottom: 20px; }
.story-copy p { color: #555b55; }
.scholar { border-left: 3px solid var(--gold); padding-left: 18px; margin-top: 26px; }
.scholar strong { font-family: var(--font-display); font-weight: 400; font-size: 21px; }

/* --- Pull quote --------------------------------------------------------- */
.quote { padding: 90px 28px; background: var(--ink); color: #fff; text-align: center; }
.quote blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.12;
  max-width: 980px;
  margin: 0 auto;
}
.quote span {
  display: block;
  margin-top: 28px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #c8cec8;
}

/* --- Visit -------------------------------------------------------------- */
.visit {
  max-width: var(--max);
  margin: auto;
  padding: 80px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.visit h2 { font-family: var(--font-display); font-weight: 400; font-size: 44px; margin: 0 0 16px; }
.visit p { color: var(--muted); }
.visit-card { background: var(--cream); padding: 30px; }
.visit-card b { font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.visit-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.visit-card div { font-size: 13px; }

/* --- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 46px 28px; }
.footer-inner {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 30px;
}
.footer .brand-logo { width: 86px; height: 86px; }
.footer h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 10px;
}
.footer a, .footer p { font-size: 12px; color: #666b66; margin: 7px 0; display: block; }
.footer a:hover { color: var(--ink); }
.footer nav a { width: fit-content; }
.footer button.policy-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  color: #666b66;
  display: block;
  margin: 7px 0;
  text-align: left;
}
.footer button.policy-link:hover { color: var(--ink); }
.copyright {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #777;
}

/* --- Modals (product + policy) ------------------------------------------ */
.modal, .policy-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 18, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal { z-index: 99; }
.policy-modal { z-index: 120; }
.modal.open, .policy-modal.open { display: flex; }

.modal-card {
  background: var(--paper);
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-modal);
}
.modal-media { background: #ece8df; min-height: 520px; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-media img.packshot { object-fit: contain; padding: 32px; background: #fff; }
.modal-copy { padding: 42px; position: relative; }
.modal-copy h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.08;
  margin: 8px 0 12px;
}
.modal-copy .mprice { font-weight: 700; margin: 0 0 20px; }
.modal-copy p { color: #555b55; }
.modal-copy ul { padding-left: 18px; color: #555b55; font-size: 13px; }
.modal-copy li { margin: 8px 0; }
.modal-copy .ing-head {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 22px 0 6px;
  font-weight: 700;
}

.close {
  position: absolute;
  right: 20px;
  top: 18px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.close:hover { background: rgba(0, 0, 0, .06); }
.smallnote { font-size: 11px; color: #777; margin-top: 24px; }

.policy-card {
  background: #fff;
  width: min(900px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 48px 54px;
  position: relative;
  box-shadow: var(--shadow-modal);
}
.policy-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 38px; margin: 0 0 8px; }
.policy-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  margin: 26px 0 8px;
}
.policy-card p { font-size: 13px; line-height: 1.75; color: #555b55; }
.policy-card .close { position: absolute; right: 18px; top: 14px; }
.policy-kicker {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 8px;
}

/* --- 404 ---------------------------------------------------------------- */
.notfound {
  max-width: 620px;
  margin: auto;
  padding: 120px 28px 140px;
  text-align: center;
}
.notfound h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 72px);
  margin: 14px 0 16px;
}
.notfound p { color: var(--muted); }
.notfound .cta-row { justify-content: center; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .navlinks { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-art { max-height: 620px; }
  .manifesto-inner { grid-template-columns: 1fr 1fr; }
  .categories { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .story, .visit { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .modal-card { grid-template-columns: 1fr; }
  .modal-media { min-height: 320px; }
  .modal-copy { padding: 28px; }
}

@media (max-width: 600px) {
  .policy-card { padding: 34px 24px; }
  .policy-card h2 { font-size: 30px; }
}

@media (max-width: 560px) {
  .nav-actions .pill:first-child { display: none; }
  .hero h1 { font-size: 52px; }
  .manifesto-inner, .categories, .grid, .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .nav { padding: 0 20px; }
  .story-art .big { font-size: 54px; }
}

/* --- Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .announcement, .nav-actions, .filters, .modal, .policy-modal, .skip-link { display: none !important; }
  body { background: #fff; }
  .hero { padding-top: 20px; }
}
