/* The look of a link page: the public page at /@handle (src/links.mjs) and the same page as the
   editor's preview (links.js). Everything is under .lp, so it draws the same inside the app as on
   its own. The colours and the two fonts come from the customer's brand (or per-page theme) as six
   values the server writes (styleVars in link-page.js); the values below are the neutral page, for
   when none is given. No script: motion is CSS alone and stops for reduced motion. */
.lp-body { margin: 0; background: var(--lp-paper, #ffffff); }
.lp {
  --lp-muted: color-mix(in srgb, var(--lp-ink, #1a1a1a) 62%, var(--lp-paper, #ffffff));
  --lp-hair: color-mix(in srgb, var(--lp-ink, #1a1a1a) 14%, var(--lp-paper, #ffffff));
  --lp-wash: color-mix(in srgb, var(--lp-ink, #1a1a1a) 5%, var(--lp-paper, #ffffff));
  --lp-radius: 62rem;
  --lp-box-radius: 1.125rem;
  --lp-type: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box; display: grid; gap: 2rem; align-content: start; justify-items: stretch;
  width: 100%; max-width: 30rem; min-height: 100vh; min-height: 100svh; margin: 0 auto; padding: 3.5rem 1.25rem 2rem;
  background: var(--lp-paper, #ffffff); color: var(--lp-ink, #1a1a1a);
  font: 400 1rem/1.5 var(--lp-body, var(--lp-type));
  -webkit-font-smoothing: antialiased; text-align: center; overflow-wrap: anywhere;
}
.lp.is-btn-rounded { --lp-radius: 0.875rem; --lp-box-radius: 0.875rem; }
.lp.is-btn-square { --lp-radius: 0.25rem; --lp-box-radius: 0.375rem; }
.lp.is-surface-dark {
  --lp-muted: color-mix(in srgb, var(--lp-ink, #f7f6f2) 68%, var(--lp-paper, #141413));
  --lp-hair: color-mix(in srgb, var(--lp-ink, #f7f6f2) 18%, var(--lp-paper, #141413));
  --lp-wash: color-mix(in srgb, var(--lp-ink, #f7f6f2) 8%, var(--lp-paper, #141413));
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp h1, .lp h2, .lp p, .lp ul { margin: 0; padding: 0; }
.lp ul { list-style: none; }
.lp a { color: inherit; text-decoration: none; }
.lp a:focus-visible { outline: 2.5px solid var(--lp-ink, #1a1a1a); outline-offset: 3px; }

.lp-head { display: grid; gap: 0.625rem; justify-items: center; animation: lp-rise 0.8s var(--lp-ease) both; }
.lp-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; border-radius: var(--lp-box-radius); object-fit: cover; background: var(--lp-hair); margin-bottom: 0.5rem; }
.lp-head.has-cover .lp-logo:not(.is-wide) { margin-top: -3.25rem; border: 3px solid var(--lp-paper, #ffffff); }
.lp-logo { display: block; width: 6rem; height: 6rem; margin-bottom: 0.375rem; border-radius: 50%; object-fit: cover; background: var(--lp-hair); }
/* a wordmark: whole, at its own shape, on the page itself */
.lp-wordmark { margin: 0; }
.lp-logo.is-wide { width: auto; height: 3rem; max-width: min(15rem, 100%); border-radius: 0; object-fit: contain; background: none; }
.lp .lp-name { font: 700 clamp(1.75rem, 1.4rem + 1.8vw, 2.25rem)/1.08 var(--lp-display, var(--lp-type)); letter-spacing: -0.03em; text-wrap: balance; display: block; }
.lp .lp-bio { max-width: 24rem; color: var(--lp-muted); text-wrap: pretty; }
.lp .lp-hours { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.lp-dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lp-muted); }
.lp-dot.is-open { background: #2f8f4e; animation: lp-pulse 2.4s ease-in-out infinite; }
.lp .lp-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; margin-top: 0.375rem; }
.lp-social { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; transition: transform 0.35s var(--lp-spring), background-color 0.18s; }
.lp-social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.lp a.lp-social:hover { background: var(--lp-hair); transform: scale(1.08); }
.lp-vcard { display: inline-flex; align-items: center; justify-content: center; margin-top: 0.25rem; min-height: 2.375rem; padding: 0.375rem 1.125rem; border: 1.5px solid var(--lp-hair); border-radius: var(--lp-radius); background: var(--lp-wash); font-size: 0.875rem; font-weight: 600; transition: transform 0.35s var(--lp-spring), background-color 0.18s, border-color 0.18s, color 0.18s; }
.lp a.lp-vcard:hover { background: var(--lp-ink, #1a1a1a); border-color: var(--lp-ink, #1a1a1a); color: var(--lp-paper, #ffffff); transform: translateY(-1px); }
.lp a.lp-vcard:active { transform: scale(0.97); }

/* 2-column Bento grid: full-width by default, half-width items pair side-by-side */
.lp .lp-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.lp-links li { grid-column: 1 / -1; animation: lp-rise 0.8s var(--lp-ease) both; }
.lp-links li.lp-item-half { grid-column: span 1; display: grid; }
.lp-links li.lp-item-half > * { height: 100%; }
.lp-links li:nth-child(1) { animation-delay: 0.06s; }
.lp-links li:nth-child(2) { animation-delay: 0.11s; }
.lp-links li:nth-child(3) { animation-delay: 0.16s; }
.lp-links li:nth-child(4) { animation-delay: 0.21s; }
.lp-links li:nth-child(n + 5) { animation-delay: 0.26s; }
.lp-link { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0.75rem 1.25rem; border: 1.5px solid var(--lp-ink, #1a1a1a); border-radius: var(--lp-radius); font-weight: 600; line-height: 1.25; transition: transform 0.35s var(--lp-spring), background-color 0.18s, color 0.18s; }
.lp.is-fill-solid .lp-link:not(.is-top) { border-color: transparent; background: var(--lp-wash); }
.lp a.lp-link:hover { background: var(--lp-ink, #1a1a1a); color: var(--lp-paper, #ffffff); transform: translateY(-2px); }
.lp a.lp-link:active { transform: scale(0.97); }
.lp-link.is-top { min-height: 4rem; border-color: var(--lp-fill, #1a1a1a); background: var(--lp-fill, #1a1a1a); color: var(--lp-on-fill, #ffffff); font-size: 1.0625rem; }
.lp a.lp-link.is-top:hover { background: color-mix(in srgb, var(--lp-fill, #1a1a1a) 86%, var(--lp-paper, #ffffff)); color: var(--lp-on-fill, #ffffff); }

/* Section headings and custom boxes (announcements, promos, info cards, featured items) */
.lp-item-heading { padding-top: 0.75rem; }
.lp-item-heading:first-child { padding-top: 0; }
.lp .lp-heading { font: 700 0.75rem/1.3 var(--lp-body, var(--lp-type)); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp-muted); text-align: center; }

.lp-box { display: grid; gap: 0; overflow: hidden; border: 1.5px solid var(--lp-hair); border-radius: var(--lp-box-radius); background: var(--lp-wash); color: var(--lp-ink, #1a1a1a); text-align: left; align-content: start; transition: transform 0.35s var(--lp-spring), border-color 0.18s; }
.lp a.lp-box:hover { border-color: var(--lp-ink, #1a1a1a); transform: translateY(-2px); }
.lp a.lp-box:active { transform: scale(0.98); }
.lp-box-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--lp-hair); }
.lp-box-copy { display: grid; gap: 0.375rem; padding: 1.125rem 1.25rem; justify-items: start; }
.lp .lp-box-title { font: 700 1.0625rem/1.25 var(--lp-display, var(--lp-type)); letter-spacing: -0.015em; }
.lp .lp-box-body { font-size: 0.9375rem; line-height: 1.45; color: var(--lp-muted); white-space: pre-line; text-wrap: pretty; }
.lp-box-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 0.375rem; min-height: 2.375rem; padding: 0.375rem 1.125rem; border: 1.5px solid var(--lp-ink, #1a1a1a); border-radius: var(--lp-radius); font-size: 0.875rem; font-weight: 600; transition: background-color 0.18s, color 0.18s, transform 0.3s var(--lp-spring); }
.lp a.lp-box-cta:hover { background: var(--lp-ink, #1a1a1a); color: var(--lp-paper, #ffffff); }
/* Compact box: thumbnail sits beside copy */
.lp-box.is-compact.has-picture { grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; padding: 0.75rem; gap: 0.875rem; }
.lp-box.is-compact.has-picture .lp-box-img { width: 5.5rem; height: 5.5rem; aspect-ratio: 1; border-radius: calc(var(--lp-box-radius) * 0.65); }
.lp-box.is-compact.has-picture .lp-box-copy { padding: 0; }
.lp-box.is-compact:not(.has-picture) .lp-box-copy { padding: 0.875rem 1.125rem; }
.lp-item-half .lp-box-copy { padding: 0.875rem 1rem; }
.lp-item-half .lp-box-title { font-size: 0.9375rem; }
.lp-item-half .lp-box-body { font-size: 0.8125rem; }
.lp-box.is-top { border-color: var(--lp-fill, #1a1a1a); background: var(--lp-fill, #1a1a1a); color: var(--lp-on-fill, #ffffff); }
.lp-box.is-top .lp-box-body { color: color-mix(in srgb, var(--lp-on-fill, #ffffff) 82%, transparent); }
.lp-box.is-top .lp-box-cta { border-color: var(--lp-on-fill, #ffffff); color: var(--lp-on-fill, #ffffff); }
.lp-box.is-top a.lp-box-cta:hover { background: var(--lp-on-fill, #ffffff); color: var(--lp-fill, #1a1a1a); }

/* Native zero-JS inline lead capture form block */
.lp-form { padding: 1.25rem; display: grid; gap: 0.75rem; text-align: left; }
.lp-form-fields { display: grid; gap: 0.625rem; }
.lp-form-field { display: grid; gap: 0.25rem; }
.lp-form-field label { font-size: 0.8125rem; font-weight: 600; color: var(--lp-ink, #1a1a1a); }
.lp-form-field input, .lp-form-field textarea {
  width: 100%; font: inherit; font-size: 0.9375rem; padding: 0.625rem 0.75rem;
  border: 1.5px solid var(--lp-hair); border-radius: 0.625rem;
  background: var(--lp-paper, #ffffff); color: var(--lp-ink, #1a1a1a);
}
.lp-form-field input:focus-visible, .lp-form-field textarea:focus-visible { outline: 2px solid var(--lp-ink, #1a1a1a); outline-offset: 1px; }
.lp-form-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem; width: 100%;
  padding: 0.625rem 1.25rem; border: 1.5px solid var(--lp-fill, #1a1a1a); border-radius: var(--lp-radius);
  background: var(--lp-fill, #1a1a1a); color: var(--lp-on-fill, #ffffff); font: inherit; font-weight: 600; cursor: pointer;
}
.lp-form-submit:hover { opacity: 0.9; }
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.lp-posts { display: grid; gap: 0.25rem; text-align: left; animation: lp-rise 0.8s var(--lp-ease) 0.3s both; }
.lp .lp-posts h2 { display: block; padding-bottom: 0.625rem; font: 600 0.875rem/1.3 var(--lp-body, var(--lp-type)); letter-spacing: 0; color: var(--lp-muted); }
.lp-posts li { border-top: 1px solid var(--lp-hair); }
.lp-post { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.125rem 0.875rem; align-items: center; padding: 0.875rem 0; transition: translate 0.35s var(--lp-spring); }
.lp-post.has-picture { grid-template-columns: 4.5rem minmax(0, 1fr); }
.lp a.lp-post:hover { translate: 0.25rem 0; }
.lp-post-picture { grid-row: 1 / span 2; display: block; width: 4.5rem; height: 4.5rem; border-radius: 0.875rem; object-fit: cover; background: var(--lp-hair); }
.lp-post-text { align-self: end; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.35; }
.lp-post-when { align-self: start; font-size: 0.8125rem; color: var(--lp-muted); }
/* The blog's newest articles are drawn like the posts: a title, when it went out, and the way to all of them. */
.lp-articles { animation-delay: 0.36s; }
.lp-more .lp-post-text { font-weight: 600; }

.lp .lp-made { align-self: end; padding-top: 1rem; font-size: 0.8125rem; color: var(--lp-muted); }
.lp .lp-made a { text-decoration: underline; text-decoration-color: var(--lp-hair); text-underline-offset: 0.25em; }
.lp .lp-made a:hover { text-decoration-color: currentColor; }

@media (max-width: 21rem) {
  .lp-links li.lp-item-half { grid-column: 1 / -1; }
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@keyframes lp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(47 143 78 / 45%); } 50% { box-shadow: 0 0 0 0.375rem rgb(47 143 78 / 0%); } }
@media (prefers-reduced-motion: reduce) {
  .lp-head, .lp-links li, .lp-posts, .lp-dot.is-open { animation: none; }
  .lp-social, .lp-vcard, .lp-link, .lp-box, .lp-box-cta, .lp-post { transition: none; }
}
