/* Bonnet Wall (lib/wall.php): a person's one page of links, in their site's theme. The theme's
   background fills the whole window; on it, near the top, a card with a fine border in the theme's
   own colors holds everything: their photo in a circle, their name in the heading font, their line,
   full-width buttons in the theme's button style (each with an icon), their social links as
   smaller buttons under a little "Follow me", and their form at the bottom. */
/* The page never scrolls: it's exactly the window, the card sits in it with the same space all round,
   and everything scrolls inside the card, like a little website of its own. Themes paint their
   background (glows, patterns) on the page's main area, so that fills the window too. */
html:has(.bn-wall), body:has(.bn-wall) { height: 100%; overflow: hidden; background: var(--bg); }
body:has(.bn-wall) main { height: 100svh; height: 100dvh; }
main > .bn-section.bn-wall { --wall-gap: clamp(1rem, 5vw, 3rem); height: 100%; padding: var(--wall-gap); box-sizing: border-box; display: flex; flex-direction: column; }
.bn-wall__off { flex: none; width: fit-content; margin: 0 auto .75rem; padding: .35rem .85rem; border-radius: 999px; font-size: .8rem; background: color-mix(in oklch, var(--accent) 16%, transparent); }
.bn-wall__card { position: relative; flex: 1; min-height: 0; display: flex; overflow: hidden;
  width: min(100%, 32rem); margin: 0 auto;
  border: 1px solid color-mix(in oklch, var(--accent) 38%, transparent); border-radius: var(--radius, 14px);
  background: var(--surface, var(--bg)); box-shadow: 0 24px 60px -30px color-mix(in oklch, var(--bg), black 55%); } /* a deeper shade of the page under it: a shadow on light themes, deep navy on Midnight, never a pale glow */
/* Montmartre in its Midnight colors: the card framed in its full gold. */
.bn-theme-midnight:not(.bn-palette-cream) .bn-wall__card { border-color: var(--accent); }
.bn-wall__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  padding: clamp(2rem, 6vw, 2.75rem) clamp(1.25rem, 5vw, 2.5rem) clamp(3rem, 8vw, 3.75rem);
  scrollbar-width: thin; scrollbar-color: color-mix(in oklch, var(--accent) 45%, transparent) transparent; }
/* While there's more to scroll, the card's contents fade gently toward its foot, never quite away, so it's
   clear there's more below (whatever the card's background: a color, a pattern, a picture). Gone at the end
   (lib/wall.php checks). A style can shape its own (Botanica's also fades at the top). */
.bn-wall__scroll { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 11rem), rgba(0, 0, 0, .22) calc(100% - 1rem));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 11rem), rgba(0, 0, 0, .22) calc(100% - 1rem)); }
.bn-wall__card.is-end .bn-wall__scroll { -webkit-mask-image: none; mask-image: none; }
.bn-wall__inner { display: flex; flex-direction: column; align-items: center; gap: .85rem; text-align: center; }

.bn-wall__photo { width: clamp(7rem, 28vw, 8.5rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 4px var(--surface, var(--bg)), 0 0 0 5px color-mix(in oklch, var(--accent) 45%, transparent); }
.bn-wall__photo :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.bn-wall__name { margin: .5rem 0 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-style: var(--display-style, normal);
  letter-spacing: var(--display-tracking, 0); text-transform: var(--display-case, none); font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.1; }
.bn-wall__tagline { margin: 0; max-width: 24rem; opacity: .75; }
/* Use my logo: the header's logo in place of the name; below the photo, or beside it (a smaller photo, the logo at its side). */
.bn-wall__logo { margin: .5rem 0 0; max-width: 100%; font-size: clamp(2.6rem, 11vw, 3.4rem); line-height: 1.05; }
.bn-wall__logo img { display: block; max-width: min(100%, 18rem); max-height: 6rem; width: auto; height: auto; margin-inline: auto; }
.bn-wall__head { display: flex; align-items: center; justify-content: center; gap: 1rem; max-width: 100%; }
.bn-wall__head .bn-wall__photo { width: clamp(5rem, 20vw, 6rem); flex: none; }
.bn-wall__head .bn-wall__logo { margin: 0; min-width: 0; font-size: clamp(2.1rem, 8.5vw, 2.8rem); text-align: left; }
.bn-wall__head .bn-wall__logo img { max-width: 12rem; max-height: 5rem; margin: 0; }
.bn-wall__logo .bn-logo__text { font-size: 1em; } /* (the logo's own 2rem gives way to the sizes above) */

/* The big buttons: the theme's own, full width, each with a little icon */
.bn-wall__links { display: grid; gap: .75rem; width: 100%; margin-top: .75rem; }
.bn-wall .bn-wall__link { display: flex; align-items: center; justify-content: center; gap: .6em; width: 100%; margin: 0; text-align: center; }
.bn-wall__ico { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Social links: a small heading, then a smaller button for each, with its logo and name */
.bn-wall__follow { width: 100%; margin-top: 1rem; }
.bn-wall__follow-head { display: flex; align-items: center; gap: .9rem; margin: 0 0 .8rem; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.bn-wall__follow-head::before, .bn-wall__follow-head::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .25; }
.bn-wall__socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .55rem; }
.bn-wall__social { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .7rem .9rem; font-size: .9rem; line-height: 1.2; text-decoration: none; color: var(--text);
  border: 1px solid color-mix(in oklch, var(--accent) 45%, transparent); border-radius: var(--radius, 999px);
  background: color-mix(in oklch, var(--accent) 7%, transparent); transition: background-color .2s, border-color .2s; }
.bn-wall__social:hover { background: color-mix(in oklch, var(--accent) 16%, transparent); border-color: var(--accent); }
.bn-wall__social svg { flex: none; width: 1.05rem; height: 1.05rem; fill: var(--accent); }
.bn-wall__social .bn-wall__ico { fill: none; stroke: var(--accent); } /* the blog's pen: a line drawing, not a filled logo */
.bn-wall__social--x svg { width: .85rem; height: .85rem; } /* X's logo fills its box more than the others: a touch smaller looks the same size */
.bn-wall__social--onlyfans svg { width: 1.25rem; height: 1.25rem; } /* (its mark is wide and short) */
/* Logo above the name: a row of little tiles, wrapping */
.bn-wall__socials--above, .bn-wall__socials--icons { display: flex; flex-wrap: wrap; justify-content: center; }
.bn-wall__socials--above .bn-wall__social { flex: 1 1 5.5rem; max-width: 8rem; flex-direction: column; gap: .45rem; padding: .85rem .5rem .75rem; font-size: .78rem; }
.bn-wall__socials--above .bn-wall__social svg { width: 1.35rem; height: 1.35rem; }
.bn-wall__socials--above .bn-wall__social--x svg { width: 1.2rem; height: 1.2rem; }
/* Just the logos: small square boxes in a row; the names stay for screen readers */
.bn-wall__socials--icons .bn-wall__social { width: 3.85rem; height: 3.85rem; padding: 0; }
.bn-wall__socials--icons .bn-wall__social svg { width: 1.65rem; height: 1.65rem; }
.bn-wall__socials--icons .bn-wall__social--x svg { width: 1.55rem; height: 1.55rem; }
.bn-wall__socials--icons .bn-wall__social--onlyfans svg { width: 1.95rem; height: 1.95rem; }
.bn-wall__socials--icons .bn-wall__social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Their form, inside the card, under a fine line */
.bn-wall__form { margin-top: 2rem; padding-top: .5rem; border-top: 1px solid color-mix(in oklch, var(--accent) 25%, transparent); }
.bn-wall__form > .bn-section { padding: 1.5rem 0 0; margin: 0; background: none; border: 0; box-shadow: none; }
.bn-wall__form .bn-wrap { width: 100%; max-width: none; padding-inline: 0; }
/* The card already frames everything, so the form's own box (some themes draw one) goes, giving its fields the room. */
.bn-wall__form .bn-formbox { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }

/* A few photos (up to 4): the theme's own gallery (its frames, corners and lightbox), without the room
   a section on a page takes; a small heading above, like Follow me, and "View more photos" below. */
.bn-wall__photos { width: 100%; margin-top: 1.25rem; }
/* Their latest blog posts: a picture beside each title and date, in a short list. */
.bn-wall__posts { width: 100%; margin-top: 1.25rem; }
.bn-wall__post-list { display: grid; gap: .6rem; }
.bn-wall__post { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: .5rem; border: 1px solid color-mix(in oklch, var(--text) 12%, transparent);
  border-radius: calc(var(--radius, 14px) * .6); color: inherit; text-decoration: none; text-align: left; transition: border-color .2s, background-color .2s; }
.bn-wall__post:hover { border-color: var(--accent); background: color-mix(in oklch, var(--accent) 7%, transparent); }
.bn-wall__post-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--radius, 14px) * .4); background: color-mix(in oklch, var(--accent) 18%, var(--surface, var(--bg))); }
.bn-wall__post-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bn-wall__post-text { display: grid; gap: .2rem; min-width: 0; }
.bn-wall__post time { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.bn-wall__post strong { font-weight: 600; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn-wall__gallery > .bn-section { padding: 0; margin: 0; background: none; border: 0; box-shadow: none; }
.bn-wall__gallery .bn-wrap { width: 100%; max-width: none; padding-inline: 0; }
.bn-wall__gallery .bn-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bn-wall__gallery .bn-gallery__item img { object-position: 50% 0; } /* cropped from the top: portraits keep their heads */
.bn-wall__gallery--1 .bn-gallery__grid { grid-template-columns: 1fr; }
.bn-wall__gallery--3 .bn-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bn-wall__photos .bn-wall__links { margin-top: .75rem; }
.bn-wall__link--throne svg { flex: none; width: 1.15em; height: 1.15em; fill: currentColor; }
.bn-wall .bn-wall__ico--brand { fill: currentColor; stroke: none; }
/* Gifts under their own small heading: two buttons side by side */
.bn-wall__links--pair { grid-template-columns: 1fr 1fr; margin-top: 0; }
.bn-wall__links--pair .bn-wall__link { padding-inline: .75rem; }
.bn-wall__links--pair > :last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd one out (a third button) takes the whole row */
/* Contact me (and a sent form's return) scroll the card to the form, with a little room above it. */
.bn-wall__scroll [id] { scroll-margin-top: 1.5rem; }

/* Bonnet's own look (Look › Bonnet), on Honey: madewithbonnet.com's cream, white, ink and honey gold,
   Young Serif for the name and its buttons (assets/landing.css). */
body:has(.bn-wall--bonnet) {
  --bg: #FAF6F0; --surface: #FFFFFF; --text: #241B14; --muted: #6A5D52; --line: #ECE4D9;
  --accent: #C98A2E; --accent-ink: #9E6A1C; --on-accent: #FFFFFF;
  --font-display: "Young Serif", Georgia, serif; --font-body: "DM Sans", system-ui, sans-serif;
  --display-weight: 400; --display-tracking: -0.01em; --display-case: none; --display-style: normal; --radius: 22px; --radius-img: 14px;
}
.bn-wall--bonnet .bn-wall__card { border-color: #ECE4D9; }
/* Its buttons: soft butter rounds with a fine honey-brown line, the words in Young Serif (gentler than solid ink). */
.bn-wall--bonnet .bn-wall__link.bn-btn { border: 1px solid #C9A779; border-radius: 999px; background: #FBF3E3; color: #241B14; font: 400 1rem/1.2 var(--font-display); letter-spacing: 0; text-transform: none; box-shadow: none; }
.bn-wall--bonnet .bn-wall__link.bn-btn:hover { border-color: #9E6A1C; background: #F7EAD0; box-shadow: 0 12px 24px -16px rgba(158, 106, 28, .55); }
.bn-wall--bonnet .bn-wall__link.bn-btn .bn-wall__ico { stroke: #9E6A1C; }
.bn-wall--bonnet .bn-wall__social { border-radius: 999px; border-color: #ECE4D9; background: #FBF3E3; }
.bn-wall--bonnet .bn-wall__social:hover { border-color: #C98A2E; background: #F7EAD0; }
.bn-wall--bonnet .bn-wall__social svg { fill: #9E6A1C; }
.bn-wall--bonnet .bn-wall__social .bn-wall__ico { fill: none; stroke: #9E6A1C; }
.bn-wall--bonnet .bn-wall__follow-head { color: #9E6A1C; opacity: 1; }
/* The newsletter sign-up in the card: its heading smaller than a page section's, the box and button on one line. */
.bn-wall__join .bn-section-head, .bn-wall__join .bn-head { margin-bottom: 1rem; }
.bn-wall__join :is(h2, .bn-heading) { font-size: clamp(1.4rem, 5vw, 1.8rem); }
.bn-wall__join .bn-formbox { max-width: none; }

/* "Made with Bonnet", small in the bottom corner of every wall (lib/wall.php), in the gap under the card, in the
   look's own colors (its theme's here; a Bonnet Wall style dresses its own, site/wall-styles/). */
main > .bn-section.bn-wall { padding-bottom: calc(var(--wall-gap) + 2.4rem); }
.bn-wall__badge { position: fixed; right: .9rem; bottom: .6rem; z-index: 100; display: inline-flex; align-items: center; gap: .35em;
  padding: .5rem .55rem .5rem 1rem; border-radius: 999px; font: 500 .84rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em;
  color: var(--text); background: var(--surface, var(--bg)); border: 1px solid var(--line, rgba(0,0,0,.12)); text-decoration: none; opacity: .85; transition: opacity .2s; }
.bn-wall__badge:hover { opacity: 1; }
.bn-wall__badge-logo { height: 2em; width: auto; margin: -.45em 0 -.3em .1em; } /* Bonnet Wall's logo, just "wall" */
.bn-wall__badge-logo [fill="#5d3d20"] { fill: currentColor; } /* (its lettering in the badge's own ink, so it reads on any look, light or dark; the bee keeps its colors) */
.bn-wall__badge-go { margin-left: .45em; padding: .4em .8em; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-weight: 600; letter-spacing: .03em; }
/* The theme's own pattern behind the card (a theme with img/pattern-1.svg), faint, in its accent. */
.bn-wall.has-pattern::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--accent);
  -webkit-mask: var(--wall-pattern) repeat 0 0 / 1100px auto; mask: var(--wall-pattern) repeat 0 0 / 1100px auto; opacity: .14; }
.bn-palette-mono .bn-wall.has-pattern::before { background: #E6E6E6; opacity: 1; } /* (Postcard's Black & white: solid, never see-through) */

.bn-wall__drift { display: none; }
/* A style's own drawings behind the card (bn_wall_styles › 'art'), for its stylesheet to place and animate. */
.bn-wall__art { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bn-wall:has(.bn-wall__art) .bn-wall__card, .bn-wall:has(.bn-wall__art) .bn-wall__off { position: relative; z-index: 1; }
/* Bonnet's bee buzzing about behind the card (lib/wall.php: its flight), its dashed trail drawn on the canvas under it. */
.bn-wall__buzz { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bn-wall__buzz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bn-wall__bee { position: absolute; left: 0; top: 0; width: 96px; transform-origin: 50% 50%; will-change: transform; }
.bn-wall__bee .bee { display: block; width: 100%; }
.bn-wall__bee .bee__svg { display: block; width: 100%; height: auto; overflow: visible; }
.bn-wall__bee .bee__wing { transform-box: view-box; animation: bn-bee-flap .12s ease-in-out infinite alternate; }
.bn-wall__bee .bee__wing--back { transform-origin: 1950px 2110px; }
.bn-wall__bee .bee__wing--front { transform-origin: 1690px 2010px; animation-delay: -.06s; }
@keyframes bn-bee-flap { from { rotate: -12deg; } to { rotate: 9deg; } }
.bn-wall:has(.bn-wall__buzz) .bn-wall__card, .bn-wall:has(.bn-wall__buzz) .bn-wall__off { position: relative; z-index: 1; } /* things drifting by behind the card: a style that wants them shows and draws them */
/* A video behind the whole wall (bg_video), looping, softly over white. */
.bn-wall.has-video { background: #FFFFFF; }
.bn-wall .bn-wall__video { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .5; pointer-events: none; }
/* Their own photo behind the card (bg_image), filling the window over the look's own background, and softened
   as they chose: where it's cropped, a blur, its color and a tint over it. Blurred, it reaches a little past the
   window, so its edges never fade in. */
.bn-wall__backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bn-wall__backdrop :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.bn-wall__backdrop.is-top img { object-position: 50% 0; }
.bn-wall__backdrop.is-upper img { object-position: 50% 25%; }
.bn-wall__backdrop.is-lower img { object-position: 50% 75%; }
.bn-wall__backdrop.is-bottom img { object-position: 50% 100%; }
.bn-wall__backdrop > :is(picture, img) { filter: blur(var(--bd-blur, 0)) var(--bd-color, ); }
.bn-wall__backdrop:not(.is-blur-none) > :is(picture, img) { margin: -3rem; width: calc(100% + 6rem); height: calc(100% + 6rem); }
.bn-wall__backdrop.is-blur-soft { --bd-blur: 3px; }
.bn-wall__backdrop.is-blur-medium { --bd-blur: 8px; }
.bn-wall__backdrop.is-blur-strong { --bd-blur: 18px; }
.bn-wall__backdrop.is-muted { --bd-color: saturate(.45); }
.bn-wall__backdrop.is-bw { --bd-color: grayscale(1); }
.bn-wall__backdrop.is-warm { --bd-color: sepia(.6) saturate(.85); }
.bn-wall__backdrop::after { content: ""; position: absolute; inset: 0; background: var(--bd-tint, transparent); }
.bn-wall__backdrop.is-tint-dark-1 { --bd-tint: rgba(0, 0, 0, .3); }
.bn-wall__backdrop.is-tint-dark-2 { --bd-tint: rgba(0, 0, 0, .55); }
.bn-wall__backdrop.is-tint-dark-3 { --bd-tint: rgba(0, 0, 0, .78); }
.bn-wall__backdrop.is-tint-light-1 { --bd-tint: rgba(255, 255, 255, .3); }
.bn-wall__backdrop.is-tint-light-2 { --bd-tint: rgba(255, 255, 255, .55); }
.bn-wall__backdrop.is-tint-light-3 { --bd-tint: rgba(255, 255, 255, .78); }
.bn-wall:has(.bn-wall__backdrop) :is(.bn-wall__card, .bn-wall__off, .bn-wall__stage) { position: relative; z-index: 1; }
/* The back of the card (their bio): shown in place of the front once it's turned round (lib/wall.php's script),
   its logo or name at the top, the bio, and Back. It scrolls on its own, without the fade at its foot. */
.bn-wall__back { display: none; }
.bn-wall__card.is-flipped > .bn-wall__scroll { display: none; }
.bn-wall__card.is-flipped > .bn-wall__back { display: flex; flex: 1; min-width: 0; min-height: 0; }
.bn-wall__back > .bn-wall__scroll { -webkit-mask-image: none; mask-image: none; }
.bn-wall__back .bn-wall__inner { min-height: 100%; justify-content: center; }
.bn-wall__back .bn-wall__inner > :first-child { margin-bottom: .6rem; } /* (their logo or name, a little apart from the bio) */
.bn-wall__bio { max-width: 26rem; font-size: 1rem; line-height: 1.7; text-align: center; text-wrap: pretty; }
.bn-wall__bio p { margin: 0 0 .9em; }
.bn-wall__bio p:last-child { margin-bottom: 0; }
.bn-wall__back .bn-wall__links { margin-top: 1.1rem; }
/* The card's drawn frame: hidden unless a style draws it in (Lumière). */
.bn-wall__frame { display: none; }
