:root {
  /* Palette taken from lumimani.com: forest green, sage, mint, coral */
  --backdrop: #aec3b0;
  --surface: #f6f5ef;
  --card: #ffffff;
  --ink: #0d2b1d;
  --muted: #5f7065;
  --sage: #98a98d;
  --coral: #ee8160;
  --coral-deep: #d95f38;
  --shadow: 0 1px 2px rgba(13, 43, 29, 0.06), 0 4px 14px rgba(13, 43, 29, 0.06);
  /* scattered four-point sparkles, tiled */
  --sparkles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cdefs%3E%3Cpath id='s' d='M0-10C.8-2.5 2.5-.8 10 0 2.5.8.8 2.5 0 10-.8 2.5-2.5.8-10 0-2.5-.8-.8-2.5 0-10Z'/%3E%3C/defs%3E%3Cuse href='%23s' transform='translate(38 46)' fill='%23ff7f50' fill-opacity='.28'/%3E%3Cuse href='%23s' transform='translate(196 92) scale(.6)' fill='%236c836e' fill-opacity='.3'/%3E%3Cuse href='%23s' transform='translate(104 178) scale(.45)' fill='%23ff7f50' fill-opacity='.24'/%3E%3Cuse href='%23s' transform='translate(226 224) scale(.8)' fill='%236c836e' fill-opacity='.2'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 580px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
  background:
    radial-gradient(110% 420px at 0% 0%, rgba(173, 214, 177, 0.6), transparent 70%),
    radial-gradient(90% 380px at 100% 60px, rgba(255, 127, 80, 0.2), transparent 70%),
    radial-gradient(120% 360px at 50% 100%, rgba(174, 195, 176, 0.55), transparent 70%),
    var(--sparkles),
    var(--surface);
  display: flex;
  flex-direction: column;
}

/* Desktop: floating rounded panel on a darker backdrop */
@media (min-width: 640px) {
  body {
    /* Solid sage green (lumimani.com's palette) with a soft glow and faint sparkles */
    background:
      radial-gradient(900px 600px at 50% -10%, rgba(214, 232, 214, 0.28), transparent 70%),
      linear-gradient(rgba(108, 131, 110, 0.55), rgba(108, 131, 110, 0.55)),
      var(--sparkles),
      #6c836e;
    background-size: auto, auto, 380px 380px, auto;
    background-attachment: fixed;
    padding-top: 18px;
  }

  .page {
    min-height: calc(100vh - 18px);
    padding: 28px 28px 40px;
    border-radius: 36px 36px 0 0;
    box-shadow: 0 20px 60px rgba(13, 43, 29, 0.28);
  }
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__actions {
  display: flex;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.pill--icon {
  width: 40px;
  padding: 0;
}

.pill:hover {
  background: #f3f7f2;
}

.pill:active {
  transform: scale(0.96);
}

/* Profile */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 8px 0;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

h1 {
  margin: 14px 0 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Hero text: same type treatment as the intro */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.divider::before,
.divider::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 43, 29, 0.35));
}

.divider::after {
  transform: scaleX(-1);
}

.tagline {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 5.2vw, 20px);
  font-style: italic;
  line-height: 1.3;
  text-wrap: balance;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 460px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 5px 12px;
  border: 1px solid rgba(13, 43, 29, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  transition: transform 0.15s ease;
}

.socials a:hover {
  transform: scale(1.1);
}

.socials svg {
  width: 28px;
  height: 28px;
}

/* leave a little room above the sign-up box when linked to with #subscribe */
.subscribe {
  scroll-margin-top: 24px;
}

/* Link cards */
.links {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 14px 76px; /* room between the icon / arrow and the centred text */
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(13, 43, 29, 0.06), 0 10px 24px rgba(13, 43, 29, 0.1);
}

.card:active {
  transform: scale(0.99);
}

.card__thumb {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 8px;
  object-fit: cover;
}

.card__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

/* Stretch the link over the whole card */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card__meta {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.card__meta svg {
  display: inline-block;
  margin-right: 3px;
  vertical-align: -2px;
}

.card__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.25s ease;
}

/* flat, polish-coloured icons (fills set in the SVGs) */
.card__icon svg {
  width: 27px;
  height: 27px;
}

.card__icon--coral {
  background: #fdeee8;
  color: #dd6b47;
}

.card__icon--sage {
  background: #edf1e9;
  color: #6c8360;
}

.card:hover .card__icon {
  transform: rotate(-8deg) scale(1.08);
}

a:focus-visible,
button:focus-visible,
.card__link:focus-visible::after {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.card__link:focus-visible {
  outline: none;
}

/* Coral arrow on the right edge of every card */
.card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0693e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.card:hover::after {
  transform: translateX(4px);
}

/* Coral feedback on hover and press */
.card__title {
  transition: color 0.15s ease;
}

.card:hover,
.card:focus-within {
  box-shadow: 0 0 0 2px var(--coral), 0 10px 24px rgba(13, 43, 29, 0.1);
}

.card:hover .card__title {
  color: var(--coral-deep);
}

.socials a {
  transition: transform 0.15s ease, color 0.15s ease;
}

.socials a:hover {
  color: var(--coral-deep);
}

/* Featured card: solid forest green, the page's main call to action */
.card--featured {
  background: var(--ink);
  color: #fff;
  padding-block: 16px;
}

.card--featured .card__meta {
  color: rgba(255, 255, 255, 0.78);
}

.card--featured:hover .card__title {
  color: #ffb199;
}

.card--featured::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9d7a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.card__tag {
  margin-bottom: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ff9d7a;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Small phones: Share shows just its icon so the three top buttons fit on one row */
@media (max-width: 399px) {
  .pill--share {
    width: 40px;
    padding: 0;
  }

  .pill--share .pill__label {
    display: none;
  }
}

/* Narrow phones: give the text more room so titles stay on one line */
@media (max-width: 479px) {
  .pill {
    padding: 0 11px;
    font-size: 14px;
  }

  /* equal padding both sides keeps the text centred, with a clear gap from icon and arrow */
  .card {
    padding-inline: 60px;
  }

  .card__icon {
    left: 8px;
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .card__icon svg {
    width: 25px;
    height: 25px;
  }

  .card::after {
    right: 12px;
  }

  .card__title {
    font-size: 15px;
  }
}

/* Forms */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid rgba(13, 43, 29, 0.16);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming on focus */
}

.input::placeholder {
  color: #93a097;
}

.input:focus {
  outline: none;
  border-color: var(--ink);
}

textarea.input {
  resize: vertical;
}

.btn {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  background: #17422e;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.form__status {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.form__status:empty {
  display: none;
}

.form__status.is-error {
  color: #b3391b;
}

/* Email list sign-up */
.subscribe {
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(174, 195, 176, 0.38);
  text-align: center;
}

.subscribe h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-style: italic;
  font-weight: 400;
}

.subscribe > p {
  margin: 2px 0 14px;
  font-size: 14px;
  color: var(--muted);
}

.subscribe__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subscribe__form .input {
  flex: 1 1 180px;
  width: auto;
}

.subscribe__form .btn {
  flex: 0 0 auto;
}

.subscribe__form .form__status {
  flex-basis: 100%;
}

/* Phones: email field and button stacked, both full width */
@media (max-width: 479px) {
  .subscribe__form .input,
  .subscribe__form .btn {
    flex: 1 1 100%;
  }
}

/* Keep the page behind an open pop-up from scrolling (mainly phones) */
body:has(dialog[open]) {
  overflow: hidden;
}

/* Pop-up sheets (Message us, Join the list): same cream, glow and type as the page */
.modal {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto; /* short phones with the keyboard open can still scroll the form */
  overscroll-behavior: contain;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(90% 220px at 0% 0%, rgba(173, 214, 177, 0.55), transparent 70%),
    radial-gradient(80% 200px at 100% 0%, rgba(255, 127, 80, 0.18), transparent 70%),
    var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(13, 43, 29, 0.3);
}

.modal::backdrop {
  background: rgba(13, 43, 29, 0.45);
  backdrop-filter: blur(4px);
}

.modal[open] {
  animation: modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
}

.modal__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 24px 24px;
}

.modal__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
  text-align: center;
}

.modal__head .divider {
  margin: 0 0 10px;
}

.modal__head h2 {
  margin: 0;
  outline: none; /* focused on open so the close button isn't ringed */
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

.modal__head p {
  margin: 6px 0 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: balance;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.modal__close:hover {
  transform: rotate(90deg);
}

/* Field labels use the same spaced capitals as the hero pills */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  padding-left: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.modal .input {
  border-color: rgba(13, 43, 29, 0.1);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal .input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(238, 129, 96, 0.18);
}

.btn--block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border-radius: 14px;
}

.btn--block svg {
  transition: transform 0.2s ease;
}

.btn--block:hover svg {
  transform: translateX(3px);
}

.modal .form__status {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(174, 195, 176, 0.4);
  text-align: center;
}

.modal .form__status.is-error {
  background: rgba(238, 129, 96, 0.14);
}

/* Phones: slide up from the bottom as a sheet */
@media (max-width: 479px) {
  .modal {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 28px 28px 0 0;
  }

  .modal[open] {
    animation: sheet-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .modal__form {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

@keyframes sheet-in {
  from { transform: translateY(100%); }
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Intro splash: logo animates in, then the overlay fades away (pure CSS) */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--surface);
  pointer-events: none;
  animation: splash-out 0.5s ease 2.4s forwards;
}

.splash__logo {
  width: 120px;
  height: 120px;
  overflow: visible;
}

.splash__circle {
  transform-origin: 50px 50px;
  animation: splash-circle 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.splash__star {
  transform-origin: 50px 50px;
  animation: splash-star 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both,
    splash-twinkle 0.5s ease-in-out 1.05s;
}

.splash__name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: splash-name 0.5s ease 0.6s both;
}

.page {
  animation: page-in 0.6s ease 2.4s both;
}

/* Little stars that pop in around the logo, one after another */
.splash__spark {
  position: absolute;
  left: calc(50% + var(--x));
  top: calc(50% + var(--y));
  --box: calc(var(--size) * 1.5);
  width: var(--box);
  height: var(--box);
  margin: calc(var(--box) / -2) 0 0 calc(var(--box) / -2);
  background: center / contain no-repeat;
  animation: spark-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) var(--delay) both,
    spark-twinkle 0.9s ease-in-out calc(var(--delay) + 0.5s) infinite alternate;
}

.splash__spark--coral {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath fill='%23ee8160' d='M0-10C.8-2.5 2.5-.8 10 0 2.5.8.8 2.5 0 10-.8 2.5-2.5.8-10 0-2.5-.8-.8-2.5 0-10Z'/%3E%3C/svg%3E");
}

.splash__spark--sage {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath fill='%2398a98d' d='M0-10C.8-2.5 2.5-.8 10 0 2.5.8.8 2.5 0 10-.8 2.5-2.5.8-10 0-2.5-.8-.8-2.5 0-10Z'/%3E%3C/svg%3E");
}

@keyframes spark-in {
  from { transform: scale(0) rotate(-90deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes spark-twinkle {
  to { transform: scale(0.6); opacity: 0.55; }
}

/* Thin line, coral star, thin line */
.splash__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -6px 0 -4px;
  animation: splash-divider 0.6s ease 0.75s both;
}

.splash__divider::before,
.splash__divider::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 43, 29, 0.35));
}

.splash__divider::after {
  transform: scaleX(-1);
}

.splash__tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 16px;
  text-align: center;
}

.splash__line {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-style: italic;
  text-wrap: balance;
  line-height: 1.3;
  letter-spacing: 0.005em;
  animation: splash-name 0.6s ease 0.9s both;
}

.splash__sub {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--muted);
  animation: splash-name 0.6s ease 1.1s both;
}

@keyframes splash-divider {
  from { opacity: 0; transform: scaleX(0.3); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes splash-circle {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes splash-star {
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes splash-twinkle {
  50% { transform: scale(1.15); }
}

@keyframes splash-name {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes splash-out {
  to { opacity: 0; visibility: hidden; }
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

  * {
    transition: none !important;
  }

  .splash {
    display: none;
  }

  .page {
    animation: none;
  }
}
