/* Ellie Legal Pages & Home — scoped to .ewlh-legal and .ewlh-home */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }

/* ---------- legal pages (inside the theme) ---------- */
.ewlh-legal { max-width: 760px; line-height: 1.7; }
.ewlh-legal h2 { margin-top: 2em; margin-bottom: .5em; font-size: 1.35em; line-height: 1.3; }
.ewlh-legal p, .ewlh-legal ul, .ewlh-legal ol { margin-top: 0; margin-bottom: 1em; }
.ewlh-legal ul, .ewlh-legal ol { padding-left: 1.4em; }
.ewlh-legal li { margin-bottom: .4em; }
.ewlh-legal a { text-decoration: underline; }

/* ---------- home page ---------- */
body.ewlh-body { margin: 0; }
.ewlh-home {
  --ewlh-primary: #455B4D; --ewlh-accent: #C9826F; --ewlh-ink: #211A17; --ewlh-cream: #F7F1E8;
  --ewlh-primary-d: color-mix(in srgb, var(--ewlh-primary) 78%, #000);
  --ewlh-dark: color-mix(in srgb, var(--ewlh-ink) 90%, #000);
  --ewlh-soft: color-mix(in srgb, var(--ewlh-ink) 70%, transparent);
  --ewlh-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ewlh-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-family: var(--ewlh-sans); color: var(--ewlh-ink); background: var(--ewlh-cream); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
.ewlh-home *, .ewlh-home *::before, .ewlh-home *::after { box-sizing: border-box; }
.ewlh-home :where(h1, h2, p, ul) { margin: 0; padding: 0; }
.ewlh-home :where(ul) { list-style: none; }
.ewlh-home a { color: inherit; text-decoration: none; }
.ewlh-home img { display: block; max-width: 100%; height: auto; }
.ewlh-home :focus-visible { outline: 2px solid var(--ewlh-accent); outline-offset: 3px; }
html:has(.ewlh-home) { scroll-behavior: smooth; }
.ewlh-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 44px); }

.ewlh-header { background: color-mix(in srgb, var(--ewlh-cream) 94%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ewlh-ink) 8%, transparent); }
.ewlh-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.ewlh-logo { font-family: var(--ewlh-serif); font-size: 1.5rem; letter-spacing: .26em; line-height: 1; }
.ewlh-logo--light { color: var(--ewlh-cream); }
.ewlh-nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.ewlh-nav a { padding: 10px 0; color: var(--ewlh-soft); }
.ewlh-nav a:hover { color: var(--ewlh-ink); }

.ewlh-hero { padding-block: clamp(64px, 10vw, 128px); text-align: center; background: linear-gradient(180deg, var(--ewlh-cream) 0%, color-mix(in srgb, var(--ewlh-accent) 14%, var(--ewlh-cream)) 100%); }
.ewlh-hero__in { max-width: 980px; }
.ewlh-hero h1, .ewlh-head h2 { text-wrap: balance; }
.ewlh-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--ewlh-primary) 70%, var(--ewlh-cream)); margin-bottom: 20px; }
.ewlh-hero h1 { font-family: var(--ewlh-serif); font-weight: 400; font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -.02em; }
.ewlh-hero h1 em { font-style: italic; color: var(--ewlh-accent); }
.ewlh-lead { margin: 26px auto 34px; max-width: 34em; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ewlh-soft); }
.ewlh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 16px 38px; border-radius: 999px; background: var(--ewlh-primary); color: #fff !important; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s, background-color .2s, box-shadow .2s; }
.ewlh-btn:hover { background: var(--ewlh-primary-d); transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--ewlh-primary) 30%, transparent); }
.ewlh-micro { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 22px; font-size: 13px; color: color-mix(in srgb, var(--ewlh-primary) 60%, var(--ewlh-cream)); }

.ewlh-kits { padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: 20px; }
.ewlh-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.ewlh-head h2 { font-family: var(--ewlh-serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1; letter-spacing: -.01em; }
.ewlh-head p { margin-top: 12px; color: var(--ewlh-soft); font-size: 1.05rem; }
.ewlh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.ewlh-card { --ewlh-card: var(--ewlh-primary); display: flex; flex-direction: column; background: color-mix(in srgb, var(--ewlh-cream) 40%, #fff); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 28px rgba(33, 26, 23, .07); transition: transform .25s, box-shadow .25s; }
.ewlh-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(33, 26, 23, .13); }
.ewlh-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ewlh-card); }
.ewlh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ewlh-card:hover .ewlh-card__media img { transform: scale(1.04); }
.ewlh-card__plain { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; color: #fff; font-family: var(--ewlh-serif); font-size: 2rem; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(150deg, color-mix(in srgb, var(--ewlh-card) 80%, #fff), var(--ewlh-card)); }
.ewlh-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.ewlh-card__label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ewlh-card); }
.ewlh-card__title { font-family: var(--ewlh-serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.ewlh-card__desc { color: var(--ewlh-soft); font-size: .98rem; }
.ewlh-card__cta { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 14px; color: var(--ewlh-card); }

.ewlh-points { background: color-mix(in srgb, var(--ewlh-cream) 30%, #fff); border-block: 1px solid color-mix(in srgb, var(--ewlh-ink) 6%, transparent); padding-block: clamp(40px, 6vw, 72px); }
.ewlh-points__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 40px; text-align: center; }
.ewlh-points__grid strong { display: block; font-family: var(--ewlh-serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 6px; }
.ewlh-points__grid span { display: block; color: var(--ewlh-soft); font-size: .98rem; max-width: 22em; margin-inline: auto; }

.ewlh-footer { background: var(--ewlh-dark); color: color-mix(in srgb, var(--ewlh-cream) 75%, transparent); padding-block: clamp(44px, 6vw, 72px) 28px; }
.ewlh-footer__top { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; padding-bottom: 34px; border-bottom: 1px solid color-mix(in srgb, var(--ewlh-cream) 12%, transparent); }
.ewlh-footer__tag { margin-top: 12px; font-family: var(--ewlh-serif); font-style: italic; font-size: 1.2rem; color: color-mix(in srgb, var(--ewlh-cream) 70%, transparent); }
.ewlh-footer__links { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 14px; align-items: flex-start; }
.ewlh-footer__links a { padding: 10px 0; }
.ewlh-footer__links a:hover { color: #fff; }
.ewlh-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: 13px; color: color-mix(in srgb, var(--ewlh-cream) 55%, transparent); }

@media (max-width: 820px) {
  .ewlh-nav { gap: 18px; }
  .ewlh-btn { width: 100%; }
  .ewlh-header__in { min-height: 58px; }
  .ewlh-logo { font-size: 1.25rem; letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) { .ewlh-home * { transition: none !important; } html:has(.ewlh-home) { scroll-behavior: auto; } }
