/* Vendly site. Colors mirror the app's Theme asset colors (AccentColor, Theme/Canvas, Energy, Protein, Fat, Carb). */
:root {
  --canvas: #F6F4EE;
  --surface: #FCFBF8;
  --text: #1B201C;
  --muted: #55605A;
  --rule: #DAD6CA;
  --tint: #1F6E4F;
  --on-tint: #F6F4EE;
  --energy: #2D4A3E;
  --protein: #B5543A;
  --fat: #6E4A7E;
  --carb: #A0741F;
  --radius: 12px;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #111412;
    --surface: #1A1F1B;
    --text: #E9EDE9;
    --muted: #A8B3AC;
    --rule: #2D352F;
    --tint: #5DBB8F;
    --on-tint: #111412;
    --energy: #B9D3C6;
    --protein: #E58D72;
    --fat: #B99AC9;
    --carb: #E3BC6A;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font: 1.0625rem/1.6 var(--body);
}
a { color: var(--tint); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--tint); color: var(--on-tint); padding: .6rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.prose { max-width: 42rem; }

header.site { border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.25rem; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.35rem/1 var(--display); color: var(--text); text-decoration: none; min-height: 44px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
nav li { margin: 0; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 500; }
nav a:hover { text-decoration: underline; }
nav a[aria-current="page"] { color: var(--tint); text-decoration: underline; text-decoration-thickness: 2px; }

main { padding: 2.5rem 0 4rem; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 650; margin-top: 3rem; }
h3 { font-size: 1.15rem; font-weight: 650; margin-top: 1.75rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .4rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.meta { color: var(--muted); font-size: .95rem; }
.todo { border: 1px dashed var(--muted); border-radius: var(--radius); padding: .1rem .5rem; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.4rem; border-radius: 999px; background: var(--tint); color: var(--on-tint); font-weight: 650; text-decoration: none; border: 2px solid var(--tint); }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--tint); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin: 1.5rem 0 .5rem; }

.hero { padding: 1rem 0 2rem; display: grid; gap: 2rem; align-items: center; }
.macros { display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.macros li { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font: 600 .95rem var(--display); color: var(--text); }
.macros i { width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.macros .e i { color: var(--energy); } .macros .p i { color: var(--protein); } .macros .f i { color: var(--fat); } .macros .c i { color: var(--carb); }

.features { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); margin-top: 1.25rem; }
.features li { margin: 0; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.features h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.features p { margin: 0; color: var(--muted); font-size: .98rem; }

.shots { list-style: none; padding: 0 0 1rem; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; margin: 1.25rem 0 0; }
.shots li { flex: 0 0 min(15rem, 68vw); scroll-snap-align: start; margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--rule); }
.placeholder { border: 2px dashed var(--rule); border-radius: var(--radius); padding: 2rem 1rem; text-align: center; color: var(--muted); }

.note { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--tint); border-radius: var(--radius); padding: 1rem 1.25rem; }
.note p:last-child { margin-bottom: 0; }

details { border-top: 1px solid var(--rule); padding: .25rem 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; padding: .6rem 0; min-height: 44px; }
details > :not(summary) { margin-left: .25rem; }

footer.site { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--muted); font-size: .95rem; }
footer.site ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
footer.site li { margin: 0; }
footer.site a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
footer.site p { margin: 0 0 .5rem; max-width: 46rem; }

@media (min-width: 52rem) {
  .hero { grid-template-columns: 1.3fr 1fr; padding-top: 2rem; }
  .shots { overflow: visible; display: grid; grid-template-columns: repeat(5, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, a { transition: filter .2s ease-out, color .2s ease-out; }
}
@media (forced-colors: active) { .btn { border: 2px solid ButtonText; } }
