/* =====================================================================
   MASTER CONTROLS: spacing, margins and layout. Change a number, save, reload.
   (Paper-look controls are in the next block. Colors are further down.)
   ===================================================================== */
:root {
  /* ---- Whole page ---- */
  --maxw: 1200px;             /* widest the page gets on big screens */
  --page-pad-top: 40px;       /* space above the banner */
  --page-pad-side: 12px;      /* space at the left and right screen edges (phones mostly) */
  --page-pad-bottom: 40px;    /* space below the footer */
  --text-size: 1rem;          /* body text size */
  --line-height: 1.75;         /* space between lines of text */
  --font: 'Inter', Helvetica, Arial, sans-serif;   /* the site's typeface (headings, text, buttons). Inter loads from Google Fonts; offline it falls back to Helvetica */
  --paragraph-gap: 1em;       /* space between paragraphs */
  --supporting-text-align: center;   /* alignment of the text and headings that aren't about a specific piece: left, center or right (the numbered steps stay left) */

  /* ---- Banner (the MILES TILMANN image) ---- */
  --banner-width: calc(100% - 2 * var(--panel-pad));  /* banner width. As set, its left and right edges line up with the outer pieces. Or use e.g. 90% */
  --banner-gap: 40px;         /* space under the banner, above the menu */

  /* ---- Menu (Gallery / Shop / ...) ---- */
  --nav-size: .9rem;          /* size of the menu words */
  --nav-letter-spacing: .04em;   /* extra space between the letters of the menu words */
  --nav-link-gap: 40px;       /* space between menu words, side to side */
  --nav-row-gap: 4px;         /* space between menu rows when it wraps on a phone */
  --nav-link-pad: 8px;        /* tap height above/below each word */
  --nav-pad-y: 12px;          /* space above and below the whole menu */
  --nav-pad-x: var(--panel-pad);   /* space at the menu's left and right ends */
  --nav-current-scale: 1.5;      /* size of the current page's menu word, as a multiple of the other words. 1 = same size */
  --nav-current-color: #559ac4;  /* color of the current page's menu word (the underline's color is set inside its drawing, search for 559ac4) */
  --nav-underline-offset: 0px;   /* moves the current-page underline: negative = up toward the word, positive = down. 0 sits about 3px under the letters */
  --nav-underline-height: 2px;   /* room for the hand-drawn line's wobble (bigger = more pronounced wobble and thicker look) */
  --nav-gap: 12px;            /* space under the menu */

  /* ---- Text panels ---- */
  --panel-pad: 20px;          /* space inside each panel, around its text */
  --panel-gap: 20px;          /* space between one panel and the next */
  /* intro text edges: worked out from the banner width so they stay lined up with the banner lettering. Replace with a plain % to override */
  --intro-pad-left: calc((100% - var(--banner-width)) / 2 + .039 * var(--banner-width));
  --intro-pad-right: calc((100% - var(--banner-width)) / 2 + .042 * var(--banner-width));
  --steps-gap: .5em;          /* space between "How to order" steps */
  --product-pad: 16px;        /* space inside the card/postcard boxes */
  --footer-link-gap: 8px;     /* space around the footer links */

  /* ---- Picture grid: number of columns ---- */
  --cols-phone: 1;            /* narrow screens (under 560px wide) */
  --cols-tablet: 2;           /* medium screens (560px and up) */
  --cols-desktop: 3;          /* large screens (820px and up) */
  /* ---- Picture grid: spacing ---- */
  --col-gap: 20px;            /* side-to-side space between pieces on phone/tablet */
  --row-gap: 40px;            /* top-to-bottom space between pieces on phone/tablet */
  --col-gap-desktop: 100px;    /* side-to-side space between pieces on a large screen */
  --row-gap-desktop: 68px;    /* top-to-bottom space between pieces on a large screen */
  /* ---- Small grid (the Archive page) ---- */
  --small-cols-phone: 2;
  --small-cols-tablet: 3;
  --small-cols-desktop: 4;
  --small-gap: 16px;          /* space between pieces on phone/tablet */
  --small-col-gap-desktop: 48px;

  /* ---- Each piece ---- */
  --thumb-ratio: 4 / 5;       /* shape of the box each piece sits in: width / height. 1 / 1 = square, 3 / 4 = wider */
  --hover-zoom: 1.04;         /* how much a piece grows under the mouse. 1 = no growth */
  --hover-speed: .33s;        /* how fast it grows */
  --title-hover-time: .5s;    /* how long the title takes to fade to the piece's color, and back */
  --title-hover-max-lightness: .45;  /* keeps the picked color dark enough to read. Lower = darker titles (0 to 1) */
  --title-hover-min-lightness: .2;   /* keeps very dark picks from going near-black (0 to 1) */
  --title-gap-above: 26px;    /* space between the piece and its title */
  --title-gap-below: 7px;     /* space between the title and the size/price */
  --meta-size: .85rem;        /* size of the size/price text */
  --meta-opacity: .5;         /* fade of the size/price text. 1 = solid */
  --button-gap-above: 8px;    /* space above a Buy button under a piece */

  /* ---- Headings and buttons ---- */
  --h1-size: 1.5rem;
  --h2-size: 2rem;
  --h3-size: 1.25rem;         /* piece titles */
  --size-filter-size: .9rem;      /* size of the ALL / SMALL / LARGER words */
  --size-filter-gap: 32px;        /* space between them */
  --size-filter-space-below: 18px;  /* space between them and the first row of pieces */
  --size-filter-space-above: -31px; /* moves the buttons up toward the Gallery intro text above them. 0 = the normal space
                                       between panels (about 92px); -31px leaves about 61px. More negative = closer */
  --sold-tag-color: #b4babd;  /* the grey (SOLD) under a sold piece's size */
  --btn-height: 44px;         /* minimum button height (44px is a comfortable thumb tap) */
  --btn-pad-y: 10px;
  --btn-pad-x: 16px;          /* space inside the button, left and right */

  /* ---- Zoomed-in image viewer ---- */
  --lb-img-height: 74vh;      /* tallest the large image gets, as a share of the screen height */
  --lb-dim: .92;              /* how dark the screen goes behind it. 1 = black */
  --lb-pad: 12px;             /* space around the viewer's edge */
  --lb-cap-gap-above: 12px;   /* space between the image and its caption */
  --lb-cap-gap-below: 8px;    /* space between the caption and the buttons */
  --pm-width: 420px;          /* the Purchase pop-up: widest it gets */
  --pm-dim: .55;              /* how dark the screen goes behind the pop-up */
  --scale-btn-bg: #1f2a31;    /* the "Show Scale" button: much darker than Purchase */
  --scale-btn-edge: rgba(255,255,255,.55);   /* its thin outline */
  --lb-button-gap: 28px;      /* space between the left/right arrows and the Buy button */
  --panel-pad-y: var(--panel-pad);   /* space above and below the text inside each panel */

  /* ---- About page ---- */
  --about-photo-width: 320px;   /* widest your photo gets (it fills the phone width up to this) */
  --about-gap: 48px;            /* space between the photo and the text */
  --about-photo-border: 10px;   /* white paper border around your photo (the torn edge bites into it). 0 = tear the photo itself */
  --about-text-width: 36em;     /* longest a line of About text gets on a wide screen */
  --about-intro-weight: bold;   /* the first lines on the About page: bold, or normal */
  --about-intro-size: 1em;      /* size of the first lines on the About page. 1em = same as the rest of the About text; 1.15em = a bit larger */

  /* ---- Email signup box ---- */
  --signup-width: 460px;      /* widest the email field + button get */
  --signup-heading-size: 1.25rem;
  --signup-solo-pad: 48px;            /* join page: extra space above and below the box */
  --signup-solo-heading-size: 1.6rem; /* join page: heading size */
}

/* =====================================================================
   MASTER CONTROLS: small phones (screens under 560px wide).
   These replace the numbers above on phones only, so the banner, menu and intro
   stay compact and the first piece shows without scrolling. Delete a line to use the normal value.
   ===================================================================== */
@media (max-width: 559px) {
  :root {
    --page-pad-top: 16px;       /* space above the banner */
    --banner-gap: 14px;         /* space under the banner, above the menu */
    --nav-size: min(.85rem, 2.85vw);   /* menu words grow and shrink with the screen width so they stay on one line (2.85vw = 10.7px on a 375px-wide phone) */
    --nav-letter-spacing: 0em;
    --nav-link-gap: 2.8vw;      /* space between menu words (2.8vw = 10.5px on a 375px-wide phone) */
    --nav-pad-x: 0px;           /* no extra space at the menu's ends */
    --nav-row-gap: 0px;         /* space between the two menu rows */
    --nav-link-pad: 10px;       /* tap height above/below each word (the words are small, so a taller tap area) */
    --nav-pad-y: 2px;           /* space above and below the whole menu */
    --nav-current-scale: 1.1;   /* size of the current page's menu word */
    --nav-gap: 2px;             /* space under the menu */
    --size-filter-size: .8rem;  /* ALL / SMALL / LARGER words on phones */
    --size-filter-gap: 5vw;     /* space between them on phones */
    --size-filter-space-below: 10px;
    --size-filter-space-above: -17px;  /* phones: 0 = about 52px of space above the buttons; -17px leaves about 35px */
    --text-size: .9rem;         /* body text size */
    --line-height: 1.55;        /* space between lines of text */
    --paragraph-gap: .6em;      /* space between paragraphs */
    --panel-pad-y: 10px;        /* space above and below the text inside each panel */
    --panel-gap: 10px;          /* space between one panel and the next */
    --about-gap: 24px;          /* space between your photo and the text below it */
    --lb-button-gap: 8px;       /* image viewer: space between the arrows, Show Scale and Purchase (all on one row) */
    --lb-btn-pad-x: 10px;       /* image viewer: space inside those buttons, left and right */
    --lb-btn-size: .75rem;      /* image viewer: size of their words */
    --lb-arrow-width: 40px;     /* image viewer: width of the arrow buttons */
  }
}

/* =====================================================================
   MASTER CONTROLS: paper look. Change a number, save, reload.
   ===================================================================== */
:root {
  /* Vignette (edges of the screen slightly darker) */
  --vignette-strength: .445;  /* 0 = off.  .03 = barely there.  .1 = clearly visible */
  --vignette-start: 60%;      /* where the darkening begins, measured from the center. Higher = smaller dark edge */

  /* Paper grain (fine speckle over the whole page) */
  --grain-strength: .15;      /* 0 = off.  .03 = faint.  .1 = rough paper */

  /* Torn edges on the framed drawings */
  --tear-depth: 4;            /* how deep the tear bites, in pixels. 0 = straight edges.  3 = fine.  10 = ragged */
  --tear-fineness: 1;         /* size of the teeth. 1 = as now.  2 = finer, tighter teeth.  .5 = broader, wavier tear */
  --tear-shadow: .122;         /* shadow under each sheet. 0 = none */
}

/* ===== colors and layout ===== */
:root {
  --bg: #e6eeee;
  --panel: #e6eeee;
  --text: #555555;
  --text-soft: #666666;
  --link: #8888aa;
  --link-visited: #555577;
  --accent: #447799;
  --border: #d3dede;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: var(--page-pad-top) var(--page-pad-side) var(--page-pad-bottom);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-size);
  line-height: var(--line-height);
}

/* Paper texture + soft vignette: two fixed layers laid over the page (under the image viewer).
   Strengths are set in MASTER CONTROLS at the top of this file. */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 5; }   /* plain layers (no blend mode), so scrolling doesn't redraw the whole screen */
body::before {   /* vignette: edges a hair darker */
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) var(--vignette-start), rgba(70,90,100,var(--vignette-strength)) 100%);
}
body::after {    /* paper grain */
  opacity: var(--grain-strength);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .35  0 0 0 0 .38  0 0 0 1.6 -.3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { max-width: var(--maxw); margin: 0 auto; }

.panel {
  background: var(--panel);
  padding: var(--panel-pad-y) 0;    /* left/right space is set per item below */
  margin-bottom: var(--panel-gap);
}
/* Supporting text (headings, paragraphs, steps, notes) lines up with the banner lettering on every page;
   pictures and boxes line up with the banner edges. */
.panel:not(.footer) > h2, .panel:not(.footer) > p, .panel:not(.footer) > .steps { margin-left: var(--intro-pad-left); margin-right: var(--intro-pad-right); }
.panel:not(.footer) > h2, .panel:not(.footer) > p { text-align: var(--supporting-text-align); }
.panel > .grid, .panel > .product { margin-left: var(--panel-pad); margin-right: var(--panel-pad); }
.panel.footer { padding: var(--panel-pad); }

.banner { padding: 0; margin-bottom: var(--banner-gap); filter: drop-shadow(0 1px 1.5px rgba(60,80,90,var(--tear-shadow))); }
.banner img { display: block; width: var(--banner-width); margin: 0 auto; height: auto; }

h1, h2, h3 { font-family: var(--font); color: var(--text); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); text-transform: uppercase; }
p  { margin: 0 0 var(--paragraph-gap); }

button, input { font-family: inherit; }

a, a:link   { text-decoration: none; color: var(--link); font-weight: bold; }
a:visited   { color: var(--link-visited); }
a:hover, a:focus-visible { text-decoration: underline; }

/* ---- Navigation ---- */
.nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: var(--nav-row-gap) var(--nav-link-gap); padding: var(--nav-pad-y) var(--nav-pad-x); background: var(--panel); margin-bottom: var(--nav-gap); }
.nav a { padding: var(--nav-link-pad) 0; text-transform: uppercase; font-size: var(--nav-size); letter-spacing: var(--nav-letter-spacing); white-space: nowrap; }
/* current page: hand-drawn underline (a slightly wobbly double stroke), sitting close under the word */
.nav a[aria-current="page"] {
  color: var(--nav-current-color);
  pointer-events: none; cursor: default; text-decoration: none;   /* not clickable */
  font-size: calc(var(--nav-size) * var(--nav-current-scale));
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'><path d='M1 3.3 C 11 2.4, 21 3.9, 34 3.1 S 58 2.5, 74 3.5 S 91 2.8, 99 3.2' fill='none' stroke='%23559ac4' stroke-width='1.8' stroke-linecap='round' vector-effect='non-scaling-stroke'/><path d='M4 3.9 C 30 3.3, 62 4.1, 96 3.4' fill='none' stroke='%23559ac4' stroke-width='.9' stroke-linecap='round' opacity='.55' vector-effect='non-scaling-stroke'/></svg>") no-repeat;
  background-origin: content-box;
  background-size: 100% var(--nav-underline-height);
  background-position: 0 calc(100% + var(--nav-underline-offset));
}

/* ---- Size filter (ALL / SMALL / LARGER above the Gallery) ---- */
.size-filter { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px var(--size-filter-gap); margin: var(--size-filter-space-above) 0 var(--size-filter-space-below); }
.size-filter button {
  -webkit-appearance: none; appearance: none; border: 0; border-radius: 0; background: none; cursor: pointer;
  font: inherit; color: var(--text); text-transform: uppercase; font-size: var(--size-filter-size); letter-spacing: var(--nav-letter-spacing);
  padding: 8px 0; white-space: nowrap;
}
.size-filter button:hover { color: var(--nav-current-color); }
.size-filter .hint { text-transform: none; opacity: .55; font-size: .85em; }
/* the chosen one: blue with the same hand-drawn underline as the menu */
.size-filter button[aria-pressed="true"] {
  color: var(--nav-current-color); cursor: default;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'><path d='M1 3.3 C 11 2.4, 21 3.9, 34 3.1 S 58 2.5, 74 3.5 S 91 2.8, 99 3.2' fill='none' stroke='%23559ac4' stroke-width='1.8' stroke-linecap='round' vector-effect='non-scaling-stroke'/><path d='M4 3.9 C 30 3.3, 62 4.1, 96 3.4' fill='none' stroke='%23559ac4' stroke-width='.9' stroke-linecap='round' opacity='.55' vector-effect='non-scaling-stroke'/></svg>") no-repeat;
  background-origin: content-box; background-size: 100% var(--nav-underline-height); background-position: 0 calc(100% + var(--nav-underline-offset));
}

/* ---- Grid of works ---- */
.grid { display: grid; grid-template-columns: repeat(var(--cols-phone), 1fr); gap: var(--row-gap) var(--col-gap); padding: 0; margin: 0; list-style: none; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(var(--cols-tablet), 1fr); } }
@media (min-width: 820px) { .grid { grid-template-columns: repeat(var(--cols-desktop), 1fr); column-gap: var(--col-gap-desktop); row-gap: var(--row-gap-desktop); } }
.grid.small { grid-template-columns: repeat(var(--small-cols-phone), 1fr); gap: var(--small-gap); }
@media (min-width: 560px) { .grid.small { grid-template-columns: repeat(var(--small-cols-tablet), 1fr); } }
@media (min-width: 820px) { .grid.small { grid-template-columns: repeat(var(--small-cols-desktop), 1fr); column-gap: var(--small-col-gap-desktop); } }

/* Rows of equal-height pieces (grid option  landscape: "alternate"). js/site.js builds each row;
   every piece's flex-grow is its width/height, so all pieces on a row come out the same height. */
.jrow { --jgap: var(--col-gap); display: flex; align-items: flex-start; justify-content: center; gap: 0 var(--jgap); list-style: none; margin: 0; padding: 0; }   /* center: a lone portrait on a phone row is narrower than the row */
.jrow + .jrow { margin-top: var(--row-gap); }
@media (min-width: 820px) { .jrow { --jgap: var(--col-gap-desktop); } .jrow + .jrow { margin-top: var(--row-gap-desktop); } }
.jrow > .work { flex: 1 1 0; min-width: 0; }
.jrow > .work.spacer { visibility: hidden; }
.jrow > .work.spacer.trim:first-child { margin-right: calc(var(--jgap) / -2); }   /* keeps a centered pair at the normal piece size */
.jrow > .work.spacer.trim:last-child { margin-left: calc(var(--jgap) / -2); }
.jrow > .work .thumb { display: block; aspect-ratio: auto; height: auto; }
.jrow > .work .thumb img { display: block; width: 100%; height: auto; max-width: none; max-height: none; }

.work { display: flex; flex-direction: column; text-align: center; }
.work .thumb {
  display: flex; align-items: flex-end; justify-content: center;   /* picture sits at the bottom, so the gap to the title is the same for every shape */
  background: transparent; aspect-ratio: var(--thumb-ratio); border: 0; padding: 0; width: 100%;
  cursor: zoom-in;
}
/* torn-paper edges: js/site.js gives each picture a mask (shape set in MASTER CONTROLS); the shadow sits on the frame around it */
.work .thumb img, .banner img, .lb .lb-main, .about-photo img { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.work .thumb { filter: drop-shadow(0 1px 1.5px rgba(60,80,90,var(--tear-shadow))); }
.work .thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.work .thumb { transition: transform var(--hover-speed) ease; }   /* the zoom scales the frame, not the picture: Safari drops a picture's torn-edge mask while the picture itself is scaled */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work .thumb:hover { position: relative; z-index: 3; transform: scale(var(--hover-zoom)); }   /* rises above its neighbours, uncropped */
}
.work h3 { margin: var(--title-gap-above) 0 var(--title-gap-below); transition: color var(--title-hover-time) ease; }
/* while the piece is hovered, its title fades to the piece's dominant colour (set per piece by js/site.js) */
.work .thumb:hover ~ h3, .work .thumb:focus-visible ~ h3 { color: var(--piece-color, var(--text)); }
.work .sold-tag { color: var(--sold-tag-color); font-size: var(--h3-size); font-weight: bold; line-height: 1.1; margin: .3em 0 0; }   /* same size as the title */
.work .meta { margin: 0; font-size: var(--meta-size); opacity: var(--meta-opacity); }
.work .price { font-weight: bold; color: var(--text); }
.sold { color: var(--accent); font-weight: bold; }
.work .buy { margin-top: var(--button-gap-above); }

/* ---- Buttons ---- */
.btn, a.btn, a.btn:visited {
  display: inline-block; min-height: var(--btn-height); padding: var(--btn-pad-y) var(--btn-pad-x); line-height: 24px;
  background: var(--link); color: #fff; font-weight: bold; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em;
  border: 0; cursor: pointer; text-align: center;
}
a.btn:hover, .btn:hover { background: #6e6e92; text-decoration: none; }
.btn.ghost, a.btn.ghost { background: transparent; color: var(--link); border: 2px solid var(--link); }

/* ---- Product cards (cards, postcards...) ---- */
.product { border: 1px solid var(--border); padding: var(--product-pad); }
.product .tag { display: inline-block; font-size: .8rem; text-transform: uppercase; color: var(--accent); font-weight: bold; margin-bottom: 4px; }

/* ---- About page ---- */
.panel.about-block { display: flex; flex-direction: column; align-items: center; gap: var(--about-gap); padding-left: var(--intro-pad-left); padding-right: var(--intro-pad-right); }
.about-photo { margin: 0; width: min(var(--about-photo-width), 100%); flex: 0 0 auto; filter: drop-shadow(0 1px 1.5px rgba(60,80,90,var(--tear-shadow))); }   /* torn edge: js/site.js */
.about-photo img { display: block; width: 100%; height: auto; background: #fff; padding: var(--about-photo-border); }   /* white print border, so the torn edge reads as torn paper */
.about-text { text-align: var(--supporting-text-align); max-width: var(--about-text-width); min-width: 0; }
.about-intro { font-size: var(--about-intro-size); font-weight: var(--about-intro-weight); }
.about-sec { margin-top: 1.6em; }
.about-sec h2 { font-size: var(--h3-size); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6em; }
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li { margin-bottom: .35em; }
.about-sec.todo { border: 1px dashed #9aa8a8; padding: 10px 14px; color: var(--text-soft); font-size: .9rem; }
@media (min-width: 700px) {
  .panel.about-block { flex-direction: row; align-items: flex-start; justify-content: center; }
  .about-text { text-align: left; flex: 1 1 auto; }
  .about-text > :first-child { margin-top: 0; }
}

/* ---- Email signup box (Gallery and Shop) ---- */
.panel.signup { text-align: center; }
.panel.signup > h2 { font-size: var(--signup-heading-size); margin-bottom: .4em; }
.panel.signup > p { margin-bottom: .8em; }
.signup-form { display: flex; gap: 8px; max-width: var(--signup-width); margin: 0 auto; padding: 0 var(--panel-pad); }
.signup-form input {
  flex: 1 1 auto; min-width: 0; min-height: var(--btn-height); padding: 8px 12px;
  font-size: 16px;                       /* 16px or more: iPhone Safari won't zoom the page when the box is tapped */
  color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.signup-form input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.signup-form .btn { flex: 0 0 auto; -webkit-appearance: none; appearance: none; border-radius: 0; }
.signup-form .btn:disabled { opacity: .6; cursor: default; }
.signup-msg { min-height: 1em; margin-top: .6em; font-size: .9rem; }
.signup-msg:empty { display: none; }
/* the join page (join.html), where the signup box is the whole page */
.panel.signup.solo { padding-top: var(--signup-solo-pad); padding-bottom: var(--signup-solo-pad); }
.panel.signup.solo > h2 { font-size: var(--signup-solo-heading-size); }

/* ---- Steps ---- */
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: var(--steps-gap); }

/* ---- Footer ---- */
.footer { text-align: center; font-size: .9rem; }
.footer a { margin: 0 var(--footer-link-gap); white-space: nowrap; display: inline-block; }   /* each link stays on one line; whole links wrap instead */

/* ---- Lightbox ---- */
.lb { position: fixed; inset: 0; background: rgba(20, 28, 28, var(--lb-dim)); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 50; padding: var(--lb-pad); }
.lb.open { display: flex; }
.lb .lb-main { max-width: 100%; max-height: var(--lb-img-height); object-fit: contain; background: #fff; }
/* "Show Scale": room photo with the matted piece placed on it by js/site.js (sizes in % of the room photo) */
.lb .lb-stage { position: relative; line-height: 0; max-width: 100%; }
.lb .lb-room { display: block; max-width: 100%; max-height: var(--lb-img-height); width: auto; height: auto; }
.lb .lb-mat { position: absolute; box-shadow: 0 1px 2px rgba(0,0,0,.28), 0 3px 8px rgba(0,0,0,.12); }
.lb .lb-piece { display: block; width: 100%; height: auto; object-fit: contain; background: #fff; }
.lb .lb-scale, .lb .lb-scale:hover { background: var(--scale-btn-bg); color: #fff; border: 2px solid var(--scale-btn-edge); }   /* same border thickness as the arrow buttons; the light edge keeps the dark button visible on the dark viewer */
.lb .lb-scale:hover { filter: brightness(1.25); }
.lb .cap { color: #fff; text-align: center; margin: var(--lb-cap-gap-above) 0 var(--lb-cap-gap-below); }
.lb .cap strong { text-transform: uppercase; }
.lb .cap .meta { font-size: .85rem; opacity: .5; }
.lb .row { display: flex; gap: var(--lb-button-gap); flex-wrap: wrap; justify-content: center; }
.lb button, .lb a.btn { min-width: 48px; }
.lb .row .btn { display: inline-flex; align-items: center; justify-content: center; padding-left: var(--lb-btn-pad-x, var(--btn-pad-x)); padding-right: var(--lb-btn-pad-x, var(--btn-pad-x)); font-size: var(--lb-btn-size, .85rem); }   /* words centered the same way in every button */
.lb .row .lb-prev, .lb .row .lb-next { min-width: var(--lb-arrow-width, 48px); }
.lb .lb-x { position: absolute; top: 8px; right: 8px; }

/* ---- Purchase pop-up (matted not framed, shipping included, framing by email) ---- */
.pm { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 14, 14, var(--pm-dim)); }
.pm[hidden] { display: none; }
.pm-box { width: 100%; max-width: var(--pm-width); max-height: 100%; overflow: auto; background: var(--bg); color: var(--text); text-align: center; padding: 24px 20px 14px; box-shadow: 0 6px 30px rgba(0,0,0,.35); }
.pm-box h2 { font-size: var(--h3-size); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .7em; }
.pm-box p { margin: 0 0 .7em; }
.pm-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.pm-btns .btn { display: flex; align-items: center; justify-content: center; }
.pm-btns .btn:hover, .pm-btns .btn:focus-visible { text-decoration: none; }
.pm-cancel { background: none; border: 0; min-height: var(--btn-height); color: var(--link); font-weight: bold; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; cursor: pointer; }

.note { font-size: .9rem; color: var(--text-soft); }
.hidden { display: none !important; }
/* greyed-out Buy box in the image viewer for pieces that aren't for sale */
.lb a.btn.off, .lb a.btn.off:visited { background: #8a9494; border-color: #8a9494; color: #fff; pointer-events: none; cursor: default; }   /* SOLD / NOT FOR SALE in the image viewer */

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Intro text lines up with the left edge of the lettering in the banner image (5% margin + 3.9% of 90% width) */
/* (.intro needs no rule now: every panel's text uses the intro margins above) */ /* right edge matches the end of "RECENT INK DRAWINGS" (5% + 95.8% of 90%) */
