/* Notes from the kiosk — shared by the blog index and its posts */
:root {
    --blue: #0015b5;
    --label: #182c9e;
    --ink: #111111;
    /* Site colors: the color tool (bottom left) changes these live,
       and SITE_COLORS in index.html sets them for everyone */
    --site-bg: #ffffff;
    --site-muted: #555555;
    --site-clock: #999999;
    --site-sending: #bfeccb;
    --site-dream-bar: #7a0f14;
    --site-dream-text: #ffffff;
    --site-dream-box: #ffffff;
}
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
}
body {
    overflow-x: clip;
    background: var(--site-bg);
    color: var(--ink);
    font-family: "Times New Roman", Times, serif;
    font-size: 1.2rem;
    line-height: 1.35;
}
::selection {
    background: var(--blue);
    color: white;
}
a { color: var(--blue); }
.wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* Pinned to the top-left corner of the window, not the column */
.back {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.1rem;
    text-decoration: none;
}
.back:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

h1 {
    display: flex;
    align-items: center;
    gap: 0.35em;
    margin: 0.9em 0 0.2em;
    font-size: clamp(2rem, 5vw, 2.6rem);
    line-height: 1.1;
}
h1 img {
    height: 1.1em;
    width: auto;
}
.intro {
    margin: 0 0 1.6em;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: var(--site-muted);
}

/* Index and post pages: boxes run the full width of the browser (20px gutters) */
.wrap { max-width: none; }
/* Post pages: title, description and RSS link sit in the reading column */
.wrap > h1,
.wrap > .intro {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
/* ...the date line spans the whole box, but the post itself stays in a
   centered, normal reading-width (680px) column.
   (Percentages here are of the box's width; ".wrap" so this beats the
   plain .entry-body padding further down.) */
.wrap .entry-body {
    padding-top: 36px;
    padding-bottom: 44px;
    padding-left: max(14px, calc((100% - 680px) / 2));
    padding-right: max(14px, calc((100% - 680px) / 2));
}

/* Blog index title: much bigger, and as wide as the browser */
.masthead {
    width: 100vw;
    margin: 70px 0 80px calc(50% - 50vw);
    /* No max width; indented a touch from the post boxes' edge so the
       big letters' side bearing lines up visually with the date text */
    padding: 0 30px;
    text-align: center;
}
.masthead h1 {
    gap: 0.25em;
    margin: 0 0 0.3em;
    font-size: clamp(3rem, 9vw, 7.5rem);
    font-weight: normal;
    line-height: 1;
}
/* The bell drawing stands in for the word "bell" in the title */
.masthead h1 { display: block; }
.masthead h1 img {
    display: inline-block;
    height: 0.9em;
    margin: 0 0.05em;
    vertical-align: -0.1em;
}
/* Mission statement, a box like the posts with narrow centered text */
.mission .entry-body p {
    max-width: 32em;
    margin: 1.4em auto 0.6em;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.4;
}
/* Header logo: small, pinned to the top left corner, with the name beside it */
/* Logo: square beside the name, centered at the bottom of the page */
.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--logo-name);
    text-decoration: none;
}
/* Logo colors; the logo color tool (bottom left) changes these live */
:root {
    --logo-square: #b1008b;
    --logo-hand: #ffffff;
    --logo-name: #b1008b;
}
.brand-mark {
    flex: none;
    /* size comes from LOGO_SIZE in index.html; smaller on phones */
    width: min(var(--logo-size, 64px), 14vw);
    height: min(var(--logo-size, 64px), 14vw);
}
.brand-name {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    text-transform: lowercase; /* "hold my hand climbing company" */
    /* size and spacing come from LOGO_TEXT in index.html (per font); never wider than the phone allows */
    font-size: min(var(--name-size, 20px), 5vw);
    letter-spacing: var(--name-spacing, 0);
    line-height: 1.1;
    text-align: left;
}
/* Post boxes stay a contained width, centered on the page */
details.entry {
    --label: var(--ink); /* black outlines */
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
/* The first mission statement reads left aligned, like a post */
.mission-left .entry-body p {
    margin-left: 0;
    text-align: left;
}
/* Shop footer: link columns, then a copyright row */
.shop-footer {
    margin: 40px -20px 0;
    padding: 40px 20px 24px;
    border-top: 1px solid var(--ink);
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    color: var(--ink);
}
.shop-footer-cols {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto 40px;
}
.shop-footer .shop-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b1008b;
    font-weight: bold;
    text-decoration: none;
}
.shop-footer-brand img { width: 32px; height: 32px; }
.shop-footer-about p {
    max-width: 22em;
    margin: 1em 0 0;
    line-height: 1.5;
    color: var(--site-muted);
}
.shop-footer h3,
.shop-footer .shop-footer-brand {
    font-family: Arial, Helvetica, sans-serif;
}
.shop-footer h3 {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin: 0 0 0.8em;
    font-size: 0.9rem;
}
.shop-footer h3 img {
    height: 1.3em;
    width: auto;
}
.shop-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.shop-footer li { margin-bottom: 0.5em; }
.shop-footer a { color: var(--ink); text-decoration: none; }
.shop-footer nav a:hover,
.shop-footer-bottom a:hover { text-decoration: underline; }
.shop-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 16px;
    border-top: 1px solid #ddd;
    font-size: 0.8rem;
    color: var(--site-muted);
}
.shop-footer-bottom a { color: var(--site-muted); }
@media (max-width: 700px) {
    .shop-footer-cols { grid-template-columns: 1fr 1fr; }
    .shop-footer-about { grid-column: 1 / -1; }
}
/* Email sign up, a centered form inside a post box (only its header bar is yellow) */
.signup form {
    max-width: 32em;
    margin: 0 auto;
    text-align: center;
}
/* Sending box: tighter space above and below the form than the other post boxes */
.wrap .signup .entry-body {
    padding-top: 32px;
    padding-bottom: 32px;
}
.signup label {
    display: block;
    margin-bottom: 0.8em;
    font-size: 1.2rem;
}
.signup-row {
    display: flex;
    gap: 8px;
}
.signup input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font: inherit;
    color: var(--ink); /* typed email follows the text color */
    border: 1px solid var(--label);
    background: #ffffff; /* white email field */
}
/* Hidden field that only bots fill in */
.signup-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.entry-body .signup-status { margin: 0.6em 0 0; font-style: italic; }
/* After a successful sign-up only the thank-you line shows */
.signup-form.is-done > :not(.signup-status) { display: none; }
.signup-form.is-done .signup-status { margin: 0; font-size: 1.2rem; }
.entry-body .signup-note {
    margin: 1em 0 0;
    font-size: 1.2rem; /* same as the line above the form */
}
.signup input::placeholder {
    color: var(--ink);
    opacity: 0.55;
}
.signup button {
    padding: 8px 18px;
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    color: #ffffff; /* white text */
    background: #1f6b2e; /* forest green sign up button */
    border: 1px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
}
/* Shop items in a journal post: one product at a time, sliding at an even
   speed to the next, cropped by the post box. Arrows step through by hand. */
.shop-entry { overflow: hidden; }
.wrap .shop-entry .entry-body { padding: 36px 0; }
.product-carousel {
    position: relative;
    overflow: hidden;
}
/* Each product is 340px wide, so neighbours are only ~40px apart. The current one
   sits in the middle; the others run off the sides and are cropped by the box. */
.product-window {
    width: min(340px, 100% - 120px);
    margin: 0 auto;
}
.product-track {
    display: flex;
    transition: transform 1.6s linear;
}
@media (prefers-reduced-motion: reduce) {
    .product-track { transition: none; }
}
.slide-arrow {
    position: absolute;
    top: 50%; /* halfway down the whole carousel */
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
}
.slide-prev { left: 24px; }
.slide-next { right: 24px; }
.product-card {
    flex: none;
    width: 100%;
    text-align: center;
}
.product-card > * {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}
.product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 1px solid var(--ink);
}
.product-card-image img {
    max-width: 75%;
    max-height: 75%;
}
.product-card-logo img { width: 45%; }
/* A full product photo (background cut out) fills its square,
   on a dark background so the white shirt stands out */
.product-card-photo { background: var(--photo-bg, #2b2b2b); } /* each shirt sets its own color */
.product-card-photo img { max-width: 100%; max-height: 100%; }
.product-card h3 {
    margin: 0.9em auto 0.2em;
    font-size: 1.2rem;
    font-weight: normal;
}
.entry-body .product-price { margin: 0 auto 0.8em; }
.entry-body a.buy-button {
    display: inline-block;
    padding: 7px 28px;
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 999px;
    text-decoration: none;
}
.entry-body a.buy-button:hover { background: rgba(0, 0, 0, 0.06); }
/* Video in a post */
.entry-body .post-video {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 1.4em;
    background: #000;
}
/* A video-only post: the video runs edge to edge inside the box */
.wrap .video-entry .entry-body { padding: 0; }
.video-entry .post-video { margin: 0; }
/* Captioned photo in a post */
.entry-body figure { margin: 0; }
.entry-body figure img.photo.preview { margin-bottom: 0.5em; }
/* Slideshow: photos stacked in one spot (box sized to the largest), one shown at a time */
.slideshow { display: grid; place-items: center; cursor: pointer; }
.slideshow img { grid-area: 1 / 1; visibility: hidden; }
.slideshow img.is-current { visibility: visible; }
/* Slideshow box: black, photos centred and all the same height, almost touching top and bottom */
.wrap .slideshow-entry .entry-body { padding: 12px 14px; }
.entry-body .slideshow img.photo.preview {
    height: min(440px, 70vh);
    max-height: none;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0;
}
.entry-body figcaption {
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    color: var(--site-muted);
}
/* Small word label under each title picture */
.masthead h1 .labeled {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: -0.1em;
}
.masthead h1 .labeled img { vertical-align: 0; }
.masthead h1 .labeled span {
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    line-height: 1;
    margin-top: 1.4em;
}
/* Post pages use the same title style, a step smaller for long titles */
.masthead.post { margin: 80px 0 60px calc(50% - 50vw); }
.masthead.post h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.masthead .intro {
    max-width: 40em;
    margin: 0 auto;
    font-family: "Times New Roman", Times, serif;
    color: var(--blue);
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    line-height: 1.4;
}

/* ===== One box per entry, like a log ===== */
.entry {
    margin: 0 0 24px;
    border: 1px solid var(--label);
}
/* The date bar: a toggle on the index (summary), fixed on post pages (.entry-head) */
details.entry summary,
.entry-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: var(--label);
    list-style: none;
}
details.entry summary { cursor: pointer; }
.entry-head { border-bottom: 1px solid var(--label); }
details.entry summary::-webkit-details-marker { display: none; }
details.entry summary::before {
    content: "▸";
    transition: transform 0.15s ease;
}
details.entry[open] summary::before { transform: rotate(90deg); }
details.entry[open] summary { border-bottom: 1px solid var(--label); }
details.entry summary img,
.entry-head img {
    height: 22px;
    width: auto;
    margin-left: auto;
}
details.entry summary:hover { background: #efefff; }

.entry-body {
    padding: 4px 14px 18px;
}
.entry-body h2 {
    margin: 0 0 0.5em;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: normal;
    line-height: 1.15;
}
.entry-body h2 a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.entry-body p {
    margin: 0 0 1.1em;
    line-height: 1.55;
}
.entry-body img.photo {
    display: block;
    width: 100%;
    height: auto;
    margin: 3.2em 0;
}
.entry-body ol {
    margin: 0 0 0.8em;
    padding-left: 1.6em;
}

/* Same blue label as the section headings on the homepage */
.more {
    display: inline-block;
    border: 0;
    cursor: pointer;
    margin-top: 0.4em;
    padding: 8px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1;
    background: var(--label);
    color: white;
    text-decoration: none;
}
.more:hover {
    background: white;
    color: var(--label);
    box-shadow: inset 0 0 0 1px var(--label);
}

.feed-link {
    margin: 2em 0 0;
    font-family: Arial, sans-serif;
    font-size: 1rem;
}
.shelf-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    margin-top: 60px;
}
.shelf-row img {
    height: 36px;
    width: auto;
}
.shelf-row img.short { height: 24px; }

/* Smaller photos in the post previews on the index */
.entry-body img.photo.preview {
    width: auto;
    max-width: 100%;
    max-height: 320px;
    margin: 1.2em 0 1.4em;
}

/* Photo at the end of the index */
/* Full-width blue that fades in from the white page and runs to the
   bottom. Content inside can be up to 1240px wide (wider than the column). */
/* The blue stretches to fill the window when the page is short */
.wrap:has(.footer-band) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
}
.wrap:has(.footer-band) > .back { align-self: flex-start; }
.footer-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    /* Side padding: at least 20px on phones, up to 60px, more once the
       content hits its 1240px max */
    padding: 300px max(clamp(20px, 5vw, 60px), calc(50vw - 620px)) 120px;
    background: linear-gradient(to bottom, white 0, var(--blue) 240px);
    color: white;
    flex-grow: 1;
}
.footer-band a { color: white; }
.footer-band ::selection {
    background: white;
    color: var(--blue);
}
.footer-band .weather { color: white; }
/* Roomier gaps between the parts of the blue footer */
.footer-band .feed-link { margin-top: 80px; }
.footer-band .shelf-row { margin-top: 90px; }
.footer-band .weather { margin-top: 80px; }
/* The homepage menu, repeated at the very bottom: centred white outlines
   with each item's shelf object, filled white on hover */
.footer-band .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 80px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
}
.footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    color: white;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px white;
}
.footer-nav a::before {
    content: "";
    width: 20px;
    height: 18px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
    background: white;
    color: var(--blue);
}
.footer-nav a[href="/#services"]     { --icon: url(images/objects/stone.svg); }
.footer-nav a[href="/#portfolio"]    { --icon: url(images/objects/star.svg); }
.footer-nav a[href="/#testimonials"] { --icon: url(images/objects/human.svg); }
.footer-nav a[href="/#process"]      { --icon: url(images/objects/tree.svg); }
.footer-nav a[href="/#faqs"]         { --icon: url(images/objects/shell.svg); }
.footer-nav a[href="/blog/"]         { --icon: url(images/objects/vase.svg); }

/* Bigger, all-white shelf drawings on the blue */
.footer-band .shelf-row img {
    height: 56px;
    filter: brightness(0) invert(1);
}
.footer-band .shelf-row img.short { height: 36px; }
@media (max-width: 600px) {
    .footer-band .shelf-row img { height: 40px; }
    .footer-band .shelf-row img.short { height: 26px; }
}
.sign-off {
    display: flex;
    align-items: flex-start;
    gap: 44px;
}
.sign-off figure {
    flex: 0 1 auto;
    margin: 0;
}
.sign-off-text {
    flex: 1;
}
.sign-off-text p {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.3;
}
.sign-off-text h2 {
    margin: 0 0 0.4em;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.15;
}
@media (max-width: 600px) {
    .sign-off { flex-direction: column; gap: 14px; }
}
.sign-off img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border: 1px solid white;
}

/* Live weather from the barn, big at the very bottom of the index */
.weather {
    margin: 50px 0 0;
    text-align: center;
    color: var(--blue);
}
.weather p { margin: 0; }
.weather-now {
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 1.1;
}
/* Desktop: one unbroken line, as wide as the window allows */
@media (min-width: 700px) {
    .weather-now {
        width: 100vw;
        margin-left: calc(50% - 50vw) !important;
        padding: 0 clamp(20px, 5vw, 60px);
        white-space: nowrap;
        /* Grows with the window, but stops at about 1240px wide */
        font-size: min(3.2vw, 2.8rem);
    }
}

/* ===== Post pages ===== */
.entry-body a.fn-ref {
    font-size: 0.6em;
    vertical-align: super;
    line-height: 0;
    margin-left: 0.15em;
    text-decoration: none;
}
ol.notes {
    margin: 1.6em 0 1em;
    padding: 0.8em 0 0 1.4em;
    border-top: 1px dotted var(--label);
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--site-muted);
}
ol.notes .fn-back {
    margin-left: 0.4em;
    text-decoration: none;
}
/* Bottom bar of a post's box, mirroring the date bar at the top */
.entry-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 12px 14px;
    border-top: 1px solid var(--label);
    font-family: Arial, sans-serif;
    font-size: 1rem;
}
/* A button that looks like the links next to it */
.link-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--blue);
    text-decoration: underline;
    cursor: pointer;
}

/* RSS link under a post lines up with the text in the bars */
.wrap > .feed-link { padding-left: 15px; }

@media (max-width: 600px) {
    body { font-size: 1.1rem; }
    .entry-body { padding: 4px 12px 14px; }
    .shelf-row { gap: 14px; }
    .shelf-row img { height: 28px; }
    .shelf-row img.short { height: 18px; }
}



/* Each post's header bar (the toggle) gets its own hold color, repeating down
   the page. The 3rd is the sign up box, so its bar stays yellow to match. */
details.entry:nth-of-type(6n+1) > summary { background: #ffc8dd; } /* pink */
details.entry:nth-of-type(6n+2) > summary { background: var(--site-sending); } /* green */
details.entry:nth-of-type(6n+3) > summary { background: #ffee00; } /* yellow */
details.entry:nth-of-type(6n+4) > summary { background: #c5dcff; } /* blue */
details.entry:nth-of-type(6n+5) > summary { background: #ffd3a8; } /* orange */
details.entry:nth-of-type(6n+6) > summary { background: #e3ccff; } /* purple */
details.entry > summary:hover { filter: brightness(0.95); }

/* Now and then the logo names switch to Times New Roman: regular weight */
.brand-name.is-serif,
.shop-footer-brand span.is-serif {
    font-family: "Times New Roman", Times, serif;
    font-weight: normal;
}
/* ...or to Comic Mono, regular weight */
.brand-name.is-comic {
    font-family: "Comic Mono", monospace;
    font-weight: normal;
}
.shop-footer-brand span.is-serif { font-size: 1.15em; }
/* "Things you can buy" header bar is grey, a step darker than its grey box */
details.entry.shop-entry > summary { background: #dcdcdc; }
/* "dream" header bar is dark red, with white text so it reads */
details.entry.dream-entry > summary { background: var(--site-dream-bar); color: var(--site-dream-text); }

/* Pause/play toggle, right aligned in the "Things you can buy" header bar */
.product-play {
    margin-left: auto;
    padding: 2px 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 6px;
    cursor: pointer;
}
.product-play:hover { background: rgba(0, 0, 0, 0.06); }

/* A product with a back view shows it on hover or tap */
.product-card-photo { position: relative; }
.product-card-image { cursor: zoom-in; }
.product-card-photo .product-back {
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
}
.product-card-photo:hover .product-back { opacity: 1; }
/* only swap when there is a back view to show */
.product-card-photo:has(.product-back):hover img:not(.product-back) { opacity: 0; }

/* Bigger shop products */
.shop-entry .product-window { width: min(470px, 100% - 120px); }
.shop-entry .product-card > * { max-width: 420px; }
.shop-entry .product-card h3 { font-size: 1.5rem; }
.shop-entry .entry-body .product-price { font-size: 1.2rem; }

/* Lightbox: a product shown large over a dimmed page */
.lightbox {
    width: 96vw;
    max-width: 96vw;
    max-height: 96vh;
    box-sizing: border-box;
    padding: 20px 24px 28px;
    border: 1px solid var(--ink);
    background: #f2f2f2;
    text-align: center;
    font-family: "Times New Roman", Times, serif;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox-close {
    display: block;
    margin: 0 0 16px auto;
    padding: 2px 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 6px;
    cursor: pointer;
}
.lightbox-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}
.lightbox-image {
    display: flex;
    align-items: center;
    justify-content: center;
    /* as big as fits: two pictures share the width, all leave room for the text */
    width: min(45vw, 96vh - 230px);
    aspect-ratio: 1;
    border: 1px solid var(--ink);
}
.lightbox-image img { max-width: 85%; max-height: 85%; }
.lightbox-photo img { max-width: 100%; max-height: 100%; }
.lightbox-image:only-child { width: min(90vw, 96vh - 230px); }
.lightbox h3 {
    margin: 0.8em 0 0.2em;
    font-size: 1.6rem;
    font-weight: normal;
}
.lightbox .product-price { margin: 0 0 0.9em; font-size: 1.2rem; }
.lightbox a.buy-button {
    display: inline-block;
    padding: 7px 28px;
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 999px;
    text-decoration: none;
}

/* Each whole box takes the same color as its header bar */
details.entry:nth-of-type(6n+1) { background: #ffc8dd; } /* pink */
details.entry:nth-of-type(6n+2) { background: var(--site-sending); } /* green */
details.entry:nth-of-type(6n+3) { background: #ffee00; } /* yellow */
details.entry:nth-of-type(6n+4) { background: #c5dcff; } /* blue */
details.entry:nth-of-type(6n+5) { background: #ffd3a8; } /* orange */
details.entry:nth-of-type(6n+6) { background: #e3ccff; } /* purple */
details.entry.shop-entry { background: #dcdcdc; }
/* dream: white box under its dark red header bar */
details.entry.dream-entry { background: var(--site-dream-box); }
details.entry.slideshow-entry { background: #000; }
/* Mission statement: white box, pink header bar only */
details.entry.mission-left { background: #fff; }

/* Things you can buy: first on the page, no box, larger products in a row that
   runs off both page edges and scrolls sideways (snapping to each product) */
.shop-strip-wrap {
    /* product size follows the window: never wider than the screen allows, and short
       enough that picture, name, price and Buy all fit in the window's height */
    --card: max(240px, min(620px, 86vw, 100vh - 450px));
    --card: max(240px, min(620px, 86vw, 100svh - 450px));
    position: relative;
    width: 100vw;
    margin: 0 0 60px calc(50% - 50vw);
}
/* Arrows stay put over the row, level with the middle of the pictures */
.shop-strip-wrap .slide-arrow { top: calc(var(--card) / 2); }
.shop-strip-wrap .slide-prev { left: 20px; }
.shop-strip-wrap .slide-next { right: 20px; }
.shop-strip {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.shop-strip-track {
    display: flex;
    gap: 32px;
    width: max-content;
    padding: 0 max(20px, calc(50vw - var(--card) / 2)) 20px;
}
.shop-strip .product-card {
    width: var(--card);
    scroll-snap-align: center;
}
.shop-strip .product-card > * { max-width: none; }
/* No boxes around the products: pictures sit on the page (shirts keep their colors) */
.shop-strip .product-card-image { border: 0; }
.shop-strip .product-card h3 { font-size: 1.6rem; }
.shop-strip .product-price { font-size: 1.25rem; margin: 0 0 0.8em; }
.shop-strip a.buy-button {
    display: inline-block;
    padding: 7px 28px;
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 999px;
    text-decoration: none;
}
.shop-strip a.buy-button:hover { background: rgba(0, 0, 0, 0.06); }
/* Shirts sit straight on the page too, no colored square behind them */
.shop-strip .product-card-photo { background: none; }
/* Wide bumper stickers fill most of the square's width */
.product-card-wide img { max-width: 92%; }
/* Mission statement: red outline (box border and the line under its header bar) */
details.entry.mission-left { --label: #e3000f; }
details.entry.mission-left > summary { color: var(--ink); } /* text and arrow stay black */

/* Current time, pinned top right across from the logo */
/* Top right corner, pinned: time of day */
.corner {
    position: absolute; /* stays at the top of the page and scrolls away */
    z-index: 10;
    top: 17px; /* with right: 25px the text sits ~24px from both edges */
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
/* Title letters picked at random get a logo color with a black outline */
.title-letter.is-colored {
    -webkit-text-stroke: 0.025em var(--ink);
    paint-order: stroke fill;
}
/* "entered my consciousness in 2025", under the logo at the bottom of the page */
.established {
    margin: 48px 0 0;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.1rem;
    color: var(--ink); /* black, follows the text color */
}
/* Email address under "Established in 2025" */
.footer-email {
    margin: 8px 0 0;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.1rem;
}
.footer-email a { color: var(--ink); }
.clock {
    font-family: "Times New Roman", Times, serif;
    font-weight: normal;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--site-clock);
}
/* No date and time on phones, where it would crowd the logo */
@media (max-width: 600px) {
    .corner { display: none; }
}
/* Intention: no pink, the header bar is white like its box */
details.entry.mission-left > summary { background: #fff; }

/* Logo color tool: small button pinned bottom left, opens a panel above it */
.logo-tool {
    position: fixed;
    z-index: 20;
    left: 16px;
    bottom: 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
}
.logo-tool button {
    font: inherit;
    padding: 6px 12px;
    background: #fff;
    color: #111;
    border: 1px solid #111;
    cursor: pointer;
}
.logo-tool button:hover { background: #f0f0f0; }
.logo-tool button:disabled { opacity: 0.3; cursor: default; }
.logo-tool-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    display: grid;
    gap: 10px;
    width: min(300px, calc(100vw - 32px));
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 14px;
    background: #fff;
    border: 1px solid #111;
}
.logo-tool-panel[hidden] { display: none; }
.logo-tool[hidden] { display: none; }
/* One row per color in the cycle: number, square, hand, name, remove */
.logo-tool-head,
.logo-tool-rows li {
    display: grid;
    grid-template-columns: 28px 1fr 1fr 1fr 28px;
    align-items: center;
    gap: 6px;
}
.logo-tool-head { color: #555; font-size: 0.75rem; text-align: center; }
.logo-tool-rows {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.logo-tool .logo-tool-show,
.logo-tool .logo-tool-remove {
    padding: 0;
    height: 28px;
    border-color: transparent;
}
.logo-tool-rows li.is-showing .logo-tool-show { border-color: #111; } /* the one on the logo now */
.logo-tool-rows input[type=color] {
    width: 100%;
    height: 28px;
    padding: 0;
    border: 1px solid #111;
    background: none;
    cursor: pointer;
}
.logo-tool-check { display: flex; align-items: center; gap: 8px; }
.logo-tool-label { margin: 4px 0 -4px; color: #555; font-size: 0.75rem; }
/* The color list to send back, ready to copy */
.logo-tool-code {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-family: "Comic Mono", monospace;
    font-size: 0.65rem;
    line-height: 1.4;
    color: #333;
    border: 1px solid #ccc;
    resize: vertical;
    white-space: pre; /* one color set per line; scroll sideways if needed */
    overflow-x: auto;
}
.logo-tool-actions { display: flex; gap: 8px; }
/* Site colors: label on the left, picker on the right */
.logo-tool-site { display: grid; gap: 6px; }
.logo-tool-site label {
    display: grid;
    grid-template-columns: 1fr 72px;
    align-items: center;
    gap: 8px;
}
.logo-tool-site input[type=color] {
    width: 100%;
    height: 26px;
    padding: 0;
    border: 1px solid #111;
    background: none;
    cursor: pointer;
}
.logo-tool-size {
    display: grid;
    grid-template-columns: auto 1fr 42px;
    align-items: center;
    gap: 8px;
}
.logo-tool-size input { width: 100%; margin: 0; accent-color: #111; }
.logo-tool-size output { font-size: 0.7rem; color: #555; text-align: right; }
/* Name text rows: font (click to show), size slider, spacing slider */
.logo-tool-text-head,
.logo-tool-text-row {
    display: grid;
    grid-template-columns: 74px 1fr 1fr;
    align-items: center;
    gap: 6px;
}
.logo-tool-text-head { color: #555; font-size: 0.75rem; text-align: center; }
.logo-tool-text { display: grid; gap: 6px; }
.logo-tool .logo-tool-font {
    padding: 4px 2px;
    font-size: 0.7rem;
    line-height: 1.1;
    border-color: transparent;
}
.logo-tool .logo-tool-font.is-showing { border-color: #111; } /* the font on the logo now */
.logo-tool-text-row label { display: grid; gap: 2px; }
.logo-tool-text-row input[type=range] { width: 100%; margin: 0; accent-color: #111; }
.logo-tool-text-row output { font-size: 0.65rem; color: #555; text-align: center; }
.logo-tool-actions button { flex: 1; }

/* Phones: the big title fills the width ("company", the widest word, is ~3.7em) */
@media (max-width: 600px) {
    header.masthead {
        margin-top: 40px;
        padding: 0 16px;
    }
    header.masthead h1 { font-size: calc((100vw - 32px) / 3.8); }
}
/* Phones: the bottom logo's name stays on one line, shrinking to fit beside the square */
@media (max-width: 600px) {
    footer.site-footer { padding: 0 16px; }
    .brand-name {
        white-space: nowrap;
        font-size: min(var(--name-size, 20px), 4.4vw);
    }
}
/* "Contact Climber Online!" at the very bottom; "Climber Online!" slowly fades in and out */
.contact-online {
    margin: 40px 0 0;
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.2;
}
.contact-online a { color: var(--ink); text-decoration: none; }
.contact-online .online {
    color: #0000ff;
    animation: online-fade 3.2s ease-in-out infinite;
}
.contact-online a:hover .online { text-decoration: underline; text-underline-offset: 4px; }
@keyframes online-fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.12; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-online .online { animation: none; }
}
/* Climb names box near the bottom of the homepage: light gray, dashed outline, the hueco / font
   switch top right, the name big in the middle, "another climb" under it */
.climb-namer {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* name (or the start button) sits in the middle */
    min-height: clamp(420px, 55vw, 680px);
    margin: 48px 0 0;
    padding: 64px 16px;
    background: #f1f1f1;
    border: 1px dashed var(--label);
}
/* pinned to the top right so it doesn't push the name off center */
.climb-namer-bar {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 1em;
    font-size: 1.1rem;
}
.climb-namer-scale { display: flex; gap: 0.4em; }
.climb-namer-scale[hidden] { display: none; } /* shown after the first climb */
/* No focus ring after a mouse click (keyboard users still get one) */
.climb-namer-bar button:focus:not(:focus-visible),
.climb-namer-next:focus:not(:focus-visible) { outline: none; }
.climb-namer-bar button,
.climb-namer-next {
    font: inherit;
    border: 0;
    background: none;
    padding: 0.1em 0.2em;
    color: var(--ink);
    cursor: pointer;
}
.climb-namer .climb-namer-next { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
/* hueco / font: both blue, only the one in use is underlined */
.climb-namer-scale button { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
.climb-namer-scale button[aria-pressed="true"] { text-decoration: underline; }
.climb-namer-name {
    margin: 0;
    text-align: center;
    font-size: clamp(2.8rem, 9vw, 7rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}
/* The climb's grade, right after the name */
.climb-namer-name .name-grade {
    font-weight: bold;
    margin-left: 0.25em;
    font-size: 0.5em;
    color: var(--blue);
    white-space: nowrap;
}
/* Before the first climb: a plain, default-looking browser button in the middle */
.climb-namer-start {
    font-family: Helvetica, Arial, sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
    padding: 0.25em 0.6em;
    color: var(--ink);
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 8px;
    cursor: pointer;
    vertical-align: middle;
}
.climb-namer-start:hover { background: #f6f6f6; }
.climb-namer-start:active { background: #e9e9e9; }
/* "another climb", centered under the name; keeps its space while hidden */
.climb-namer-again { margin: 2em 0 0; text-align: center; font-size: 1.1rem; }
/* before the first climb there's no "another climb", so nothing below the button */
.climb-namer-again:has(> [hidden]) { display: none; }
/* Top left of the homepage: a small plain button that jumps down to the climb box */
.jump-to-climb {
    position: absolute;
    z-index: 10;
    top: 17px;
    left: 20px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    padding: 0.25em 0.6em;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    text-decoration: none;
}
.jump-to-climb:hover { background: #f6f6f6; }
.jump-to-climb:active { background: #e9e9e9; }
/* The title's hold and hand pictures swap every few seconds and come in different
   widths. Each gets a fixed-width spot (sized for the widest one) so the title's
   line length never changes and it only rewraps when the browser width does. */
#title-hold { width: 1.13em; object-fit: contain; } /* widest hold is 1.25 × its height (0.9em) */
#title-hand { width: 0.68em; object-fit: contain; } /* widest hand is 0.75 × its height */
/* Jumping to the climb box leaves some space above it instead of stopping flush at the top */
#name-my-climb { scroll-margin-top: 20px; } /* same as the page's side margins */
/* Top left of the climb box: "download" saves the climb as a story image.
   Looks like the hueco / font links; shown after the first climb */
.climb-namer-corner {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 1.1rem;
}
.climb-namer-corner[hidden] { display: none; }
.climb-namer-download {
    font: inherit;
    border: 0;
    background: none;
    padding: 0.1em 0.2em;
    color: var(--blue);
    cursor: pointer;
    text-underline-offset: 3px;
}
.climb-namer-download:hover { text-decoration: underline; }
.climb-namer-download:focus:not(:focus-visible) { outline: none; }
/* Phones: bigger tap areas for the climb box's links, and less empty height */
@media (max-width: 600px) {
    .climb-namer { min-height: 380px; padding: 64px 12px 56px; }
    .climb-namer-corner { top: 8px; left: 6px; }
    .climb-namer-bar { top: 8px; right: 6px; }
    .climb-namer-bar button,
    .climb-namer-download { padding: 0.45em 0.5em; }
    .climb-namer-again { font-size: 1.25rem; }
    .climb-namer-next { padding: 0.4em 0.6em; }
}
