/* Griptape: you are looking down at the top of a board. Black grip, silver paint marker, razor cuts down to the maple.
   Photos are windows cut out of the grip. Stickers, for products, are the only clean things on it. */
@font-face { font-family: "Covered By Your Grace"; src: url("../Fonts/covered-by-your-grace.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../Fonts/atkinson-hyperlegible.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../Fonts/atkinson-hyperlegible-wght700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --grip: #171717;
  --marker: #e9e8e2;
  --dim: #b9b8b1;
  --maple: #dcb67e;
  /* Maple, cut across the grain. */
  --wood: repeating-linear-gradient(92deg, rgba(120, 76, 28, .16) 0 2px, transparent 2px 9px, rgba(120, 76, 28, .09) 9px 11px, transparent 11px 23px), var(--maple);
  --page: 1500px; /* The widest the page gets. The grip carries on behind it. */
  --edge: clamp(1rem, 4vw, 3.5rem);
  --pen: "Covered By Your Grace", "Bradley Hand", "Segoe Print", cursive;
  --text: "Atkinson Hyperlegible", Arial, sans-serif;
  /* Rough cuts for photos that may be cropped a little, and fine ones for photos shown whole. */
  --rough-1: polygon(1% 3%, 99% 0, 97% 96%, 3% 100%);
  --rough-2: polygon(0 1%, 97% 5%, 100% 100%, 4% 94%);
  --rough-3: polygon(3% 0, 100% 4%, 98% 98%, 0 95%);
  --rough-4: polygon(0 5%, 98% 0, 100% 95%, 2% 100%);
  --fine-1: polygon(.4% 1%, 100% 0, 99.2% 99%, 1% 100%);
  --fine-2: polygon(0 .3%, 99.2% 1.4%, 100% 100%, 1% 98.6%);
  --fine-3: polygon(1% 0, 100% 1%, 99.5% 99.6%, 0 98.8%);
}

*, *::before, *::after { box-sizing: border-box; }
/* The grip is on html so that it also fills the screen below a short page. */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--grip) url("../Images/grip.webp") 0 0 / 320px; }
body {
  margin: 0;
  color: var(--marker);
  font: 400 1.0625rem/1.55 var(--text);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
main:focus { outline: 0; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration: underline wavy 2px; }
:focus-visible { outline: 3px dashed var(--marker); outline-offset: 4px; }

.bar, main, .foot { max-width: var(--page); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: .5rem; z-index: 10; padding: .5rem 1rem; background: var(--maple); color: #000; }
.skip:focus { left: .5rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Everything written with the paint marker. */
.bar nav, .wordmark span, .post h2, .more, .archive h1, .year h2, .single h1, .item h1,
.crew h2, .facts dd, .pager__link, .year a, .video span {
  font-family: var(--pen);
  font-weight: 400;
  letter-spacing: .01em;
}

/* One long razor cut across the board, wider than the page. */
.wordmark::after, .year--shelf + .year--shelf::before, .foot::before {
  content: "";
  display: block;
  width: 100vw;
  height: clamp(26px, 5vw, 70px);
  margin-inline: calc(50% - 50vw);
  background: var(--wood);
  clip-path: polygon(0 58%, 22% 42%, 58% 34%, 100% 0, 100% 34%, 61% 68%, 24% 82%, 0 100%);
}
.year--shelf + .year--shelf::before { margin-block: 0 clamp(1.5rem, 4vw, 3rem); }

/* Bar: the small logo steps aside on the front page, where the wordmark is the page's opening. */
.bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: clamp(.75rem, 2vw, 1.5rem) var(--edge) 0; }
.bar__logo img { width: 130px; filter: invert(1) brightness(.92); }
body:has(.wordmark) .bar__logo { display: none; }
.bar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; gap: .1rem clamp(.9rem, 2vw, 1.5rem); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; text-transform: lowercase; }
.bar nav a { text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { text-decoration: underline wavy 2px; text-underline-offset: .15em; }

/* The stencil runs edge to edge. */
.wordmark { margin: 0 0 clamp(2.5rem, 7vw, 6rem); padding: clamp(.5rem, 2vw, 1.5rem) var(--edge) 0; font-size: inherit; font-weight: inherit; }
.wordmark img { width: 100%; filter: invert(1) brightness(.92); }
.wordmark span { display: block; margin: .3em 0 clamp(1.25rem, 4vw, 3rem); font-size: clamp(2rem, 6.4vw, 6rem); line-height: 1; text-transform: lowercase; transform: rotate(-1.2deg); transform-origin: left; }

/* A photo is a window cut out of the grip, and the maple shows along the cut. The link stays square, so that keyboard focus
   is not cut off with it: the maple and the photo share one grid cell and the same crooked outline. */
.post__photo, .photo, .crew a { display: grid; grid-template-columns: fit-content(100%); text-decoration: none; }
.post__photo::before, .photo::before, .crew a::before { content: ""; grid-area: 1 / 1; background: var(--wood); clip-path: var(--cut); }
.post__photo img, .photo img, .crew a img { grid-area: 1 / 1; margin: var(--kerf, 5px); max-width: calc(100% - 2 * var(--kerf, 5px)); clip-path: var(--cut); }
.post, .crew li { --cut: var(--rough-1); }
.post:nth-child(4n + 2), .crew li:nth-child(4n + 2) { --cut: var(--rough-2); }
.post:nth-child(4n + 3), .crew li:nth-child(4n + 3) { --cut: var(--rough-3); }
.post:nth-child(4n), .crew li:nth-child(4n) { --cut: var(--rough-4); }
.photo { --cut: var(--fine-1); }
.photo:nth-child(3n + 2) { --cut: var(--fine-2); }
.photo:nth-child(3n) { --cut: var(--fine-3); }

/* Posts: staggered, three to a round. */
.wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 2vw, 2rem); padding: 0 var(--edge); align-items: start; }
.post { grid-column: 1 / -1; min-width: 0; }
/* The front page shows every post's first photo in the same cutout, whatever the shape of the original. */
.post__photo img { width: calc(100% - 2 * var(--kerf, 5px)); aspect-ratio: 3 / 2; object-fit: cover; }
.post__photo { grid-template-columns: minmax(0, 1fr); }
.post__photo:hover img, .post__photo:hover::before { transform: rotate(-.6deg); }
.post h2 { margin-top: .55rem; font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: .98; overflow-wrap: break-word; }
.post h2 a { text-decoration: none; }
.post h2 a:hover, .post:has(.post__photo:hover) h2 a { text-decoration: underline wavy 3px; text-underline-offset: .12em; }
.post p { max-width: 60ch; margin-top: .3rem; color: var(--dim); }
.post .post__meta { margin-top: .35rem; font-size: .95rem; font-weight: 700; }
.more { padding: clamp(3rem, 6vw, 5rem) var(--edge) 0; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1; }
.empty { padding: 2rem var(--edge); max-width: 62ch; }
@media (min-width: 800px) {
  .post:nth-child(3n + 1) { grid-column: 1 / span 7; }
  .post:nth-child(3n + 2) { grid-column: 8 / -1; margin-top: 7rem; }
  .post:nth-child(3n) { grid-column: 3 / span 7; }
}

/* A single post, team member and page */
.single header { padding: clamp(1.5rem, 4vw, 3rem) var(--edge) 0; }
.single h1, .archive h1 { font-size: clamp(2.5rem, 12.5vw, 8rem); line-height: .9; overflow-wrap: break-word; transform: rotate(-1.5deg); transform-origin: left; }
.archive h1 { text-transform: lowercase; }
.single__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: 1.25rem; font-weight: 700; color: var(--dim); }
.tag { font-weight: 400; }
.single__text { max-width: calc(66ch + 2 * var(--edge)); margin-top: 1.75rem; padding-inline: var(--edge); }

/* What the editor offers, wherever the editor is used. */
:is(.single__text, .item__text, .frame-type-text, .ce-bodytext, main) {
  & > * + :not(.frame, a, [class*="frame-space"]) { margin-top: 1em; }
  & > :is(h2, h3) { margin-top: 1.1em; font-family: var(--pen); font-weight: 400; letter-spacing: .01em; line-height: 1.05; overflow-wrap: break-word; }
  & > h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
  & > h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
  & > :is(ul, ol) { padding-left: 1.4em; }
  & > :is(ul, ol) li + li, & > :is(ul, ol) ul, & > :is(ul, ol) ol { margin-top: .3em; }
  & > blockquote { margin-inline: 0; padding-left: 1rem; border-left: 6px solid var(--maple); font-size: 1.15em; }
  & > hr { height: 6px; margin-block: 2em; border: 0; background: var(--wood); transform: rotate(-.8deg); }
  & > pre { max-width: 100%; margin-inline: 0; padding: .75rem 1rem; overflow-x: auto; border-left: 6px solid var(--dim); background: #000; font: .92em/1.5 ui-monospace, Menlo, Consolas, monospace; }
  & > figure { margin-inline: 0; margin-bottom: 0; }
}
.lead { font-size: 1.3em; line-height: 1.4; }
.text-muted { color: var(--dim); }
small { font-size: .85em; }
sub, sup { line-height: 0; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-start { text-align: left; }
.text-justify { text-align: justify; hyphens: auto; }
li::marker { color: var(--maple); }

/* A table scrolls by itself on a phone instead of widening the page. */
main table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
main caption { padding-bottom: .4rem; color: var(--dim); font-weight: 700; text-align: left; }
main th, main td { padding: .4rem .7rem; border-block: 1px solid var(--dim); text-align: left; vertical-align: top; }
main thead th { border-bottom: 3px solid var(--maple); }
main tfoot :is(th, td) { border-top: 3px solid var(--maple); font-weight: 700; }
.single__text :is(th, td), .item__text :is(th, td), .frame-type-text figure :is(th, td), .ce-bodytext figure :is(th, td), .ce-table-bordered :is(th, td) { border: 1px solid var(--dim); }
.ce-table-striped tbody tr:nth-child(odd) { background: rgba(233, 232, 226, .09); }

/* The default content elements. Plugins bring their own spacing. */
.frame:is(.frame-type-header, .frame-type-text, .frame-type-textmedia, .frame-type-textpic, .frame-type-image, .frame-type-bullets, .frame-type-table, .frame-type-uploads, .frame-type-html, .frame-type-div, [class*="frame-type-menu_"]) { padding: clamp(1.5rem, 4vw, 3rem) var(--edge); }
.frame-type-text, .frame-type-html, .frame-type-header, .frame-type-bullets { max-width: calc(66ch + 2 * var(--edge)); }
/* With the frame set to none, there is no frame to hold the element off the edge. */
main > :not(.frame, a, [class*="frame-space"]) { margin-inline: var(--edge); }
main > :is(p, ul, ol, dl, pre, blockquote, h2, h3) { max-width: 66ch; }

:is(.frame, main, .ce-bodytext) > header {
  margin-bottom: clamp(1rem, 3vw, 2rem);
  & :is(h1, h2, h3, h4, h5, h6) { font-family: var(--pen); font-weight: 400; letter-spacing: .01em; line-height: 1.05; overflow-wrap: break-word; }
  & h1 { font-size: clamp(2.5rem, 12.5vw, 8rem); line-height: .9; text-transform: lowercase; transform: rotate(-1.5deg); transform-origin: left; }
  & h2 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: .98; }
  & h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
  & h4 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
  & h5 { font-size: 1.35rem; }
  /* The subheader is the next heading level, but it reads as a line under the heading. */
  & > :is(h1, h2, h3, h4, h5, h6) + :is(h2, h3, h4, h5, h6) { margin-top: .5rem; color: var(--dim); font: 700 1.15rem/1.3 var(--text); letter-spacing: 0; text-transform: none; }
  & > p { margin-top: .35rem; color: var(--dim); font-size: .95rem; font-weight: 700; }
  & a { text-decoration: none; }
  & a:hover { text-decoration: underline wavy 2px; text-underline-offset: .12em; }
}
.ce-headline-left { text-align: left; }
header > .ce-headline-center { text-align: center; transform-origin: center; }
header > .ce-headline-right { text-align: right; transform-origin: right; }

/* Photos and media: columns as the editor set them, windows cut out of the grip like every other photo. */
.ce-gallery { --gap: clamp(.6rem, 1.4vw, 1.25rem); display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: var(--gap); }
.ce-gallery[data-ce-columns="2"] { --cols: 2; }
.ce-gallery[data-ce-columns="3"] { --cols: 3; }
.ce-gallery[data-ce-columns="4"] { --cols: 4; }
.ce-gallery[data-ce-columns="5"] { --cols: 5; }
.ce-gallery[data-ce-columns="6"] { --cols: 6; }
.ce-gallery[data-ce-columns="7"] { --cols: 7; }
.ce-gallery[data-ce-columns="8"] { --cols: 8; }
.ce-outer, .ce-inner, .ce-row { display: contents; }
.ce-column { min-width: 0; }
.ce-gallery figure { margin: 0; }
.ce-left .ce-gallery { justify-items: start; }
.ce-center .ce-gallery { justify-items: center; }
.ce-right .ce-gallery { justify-items: end; }
.image-embed-item { padding: var(--kerf, 5px); background: var(--wood); clip-path: var(--fine-1); }
.ce-column:nth-child(3n + 2) .image-embed-item { clip-path: var(--fine-2); }
.ce-row:nth-child(even) .image-embed-item { clip-path: var(--fine-3); }
.ce-border { --kerf: clamp(8px, 1.2vw, 14px); }
.video-embed-item { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #000; clip-path: var(--fine-1); }
.audio-embed-item { display: block; width: min(100%, 32rem); }
.ce-column:has(.video-embed-item, .audio-embed-item) { width: 100%; }
:is(.image-caption, .video-caption, .audio-caption) { margin-top: .3rem; color: var(--dim); font-size: .85rem; }
.lightbox { cursor: zoom-in; }

.ce-textpic { display: flow-root; }
.ce-bodytext { max-width: 66ch; }
.ce-above > .ce-bodytext, .ce-gallery + .ce-bodytext { margin-top: clamp(1rem, 2vw, 1.5rem); }
.ce-below > .ce-gallery { margin-top: clamp(1rem, 2vw, 1.5rem); }
.ce-intext:not(.ce-nowrap) { max-width: 110ch; }
.ce-intext:not(.ce-nowrap) > .ce-bodytext { max-width: none; margin-top: 0; }
.ce-intext.ce-left:not(.ce-nowrap) > .ce-gallery { float: left; width: 45%; margin: .3rem clamp(1rem, 2.4vw, 2rem) 1rem 0; }
.ce-intext.ce-right:not(.ce-nowrap) > .ce-gallery { float: right; width: 45%; margin: .3rem 0 1rem clamp(1rem, 2.4vw, 2rem); }
.ce-nowrap { display: flex; gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.ce-nowrap > .ce-gallery { flex: 1 1 0; min-width: 0; }
.ce-nowrap > .ce-bodytext { flex: 1 1 0; margin-top: 0; }
.ce-nowrap.ce-right > .ce-gallery { order: 2; }

/* Bullets */
dl.ce-bullets { margin: 0; }
dl.ce-bullets dt { font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.05 var(--pen); }
dl.ce-bullets dd { margin: .1rem 0 0; color: var(--dim); }
dl.ce-bullets dd + dt { margin-top: 1rem; }
ul.ce-bullets, ol.ce-bullets { margin: 0; padding-left: 1.4em; }
.ce-bullets li + li { margin-top: .3em; }

/* File links */
.ce-uploads { margin: 0; padding: 0; list-style: none; }
.ce-uploads li { display: flex; align-items: start; gap: .75rem; }
.ce-uploads li + li { margin-top: 1rem; }
.ce-uploads li > img { flex: none; width: 2rem; height: 2rem; }
.ce-uploads li > a img { width: 120px; padding: 3px; background: var(--wood); clip-path: var(--fine-2); }
.ce-uploads li > a { flex: none; }
.ce-uploads div { min-width: 0; overflow-wrap: anywhere; }
.ce-uploads-fileName { font-weight: 700; }
.ce-uploads-description, .ce-uploads-filesize { display: block; color: var(--dim); font-size: .92rem; }

/* Menus: written with the marker, like every other way around the site. */
[class*="frame-type-menu_"] ul { margin: 0; padding: 0; list-style: none; }
[class*="frame-type-menu_"] li + li { margin-top: .4rem; }
[class*="frame-type-menu_"] a { font: 400 clamp(1.7rem, 3vw, 2.6rem)/1.05 var(--pen); letter-spacing: .01em; text-decoration: none; overflow-wrap: anywhere; }
[class*="frame-type-menu_"] a:hover { text-decoration: underline wavy 2px; text-underline-offset: .12em; }
[class*="frame-type-menu_"] li > p { max-width: 62ch; color: var(--dim); }
[class*="frame-type-menu_"] ul ul { margin-top: .4rem; padding-left: 1.25rem; }
[class*="frame-type-menu_"] ul ul a { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }

/* Frames and space around an element, as chosen on the Appearance tab. */
.frame-type-shortcut { padding: 0; }
.ce-div { height: clamp(26px, 5vw, 70px); margin: 0 calc(50% - 50vw); border: 0; background: var(--wood); clip-path: polygon(0 58%, 22% 42%, 58% 34%, 100% 0, 100% 34%, 61% 68%, 24% 82%, 0 100%); }
.frame-ruler-before::before, .frame-ruler-after::after { content: ""; display: block; height: 6px; background: var(--wood); transform: rotate(-.8deg); }
.frame-ruler-before::before { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.frame-ruler-after::after { margin-top: clamp(1.5rem, 4vw, 3rem); }
.frame.frame-indent { padding-inline: calc(var(--edge) + clamp(1rem, 8vw, 7rem)); }
.frame.frame-indent-left { padding-left: calc(var(--edge) + clamp(1rem, 8vw, 7rem)); }
.frame.frame-indent-right { padding-right: calc(var(--edge) + clamp(1rem, 8vw, 7rem)); }
.frame-space-before-extra-small { margin-top: .75rem; }
.frame-space-before-small { margin-top: 1.5rem; }
.frame-space-before-medium { margin-top: 3rem; }
.frame-space-before-large { margin-top: 5rem; }
.frame-space-before-extra-large { margin-top: 8rem; }
.frame-space-after-extra-small { margin-bottom: .75rem; }
.frame-space-after-small { margin-bottom: 1.5rem; }
.frame-space-after-medium { margin-bottom: 3rem; }
.frame-space-after-large { margin-bottom: 5rem; }
.frame-space-after-extra-large { margin-bottom: 8rem; }

:is(button, iframe).video { width: 100%; aspect-ratio: 16 / 9; margin-top: 1.25rem; border: 0; }
button.video { display: grid; place-content: center; gap: .25rem; background: var(--wood); color: #000; font: inherit; text-align: center; cursor: pointer; clip-path: var(--fine-1); }
.video + p { margin-top: 1.25rem; }
.video:hover span { text-decoration: underline wavy 2px; }
.video span { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }

.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1.25rem); padding: 0 var(--edge); margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start; }
/* The link is only as wide as the photo, for its focus outline and what can be clicked. */
.photo { justify-self: start; max-width: 100%; cursor: zoom-in; }
.photo:nth-child(3n + 1) { grid-column: 1 / -1; }
.photos:not(.photos--item) .photo:nth-child(3n + 1) img { width: auto; max-height: 94vh; }
/* Older photos are narrower than the page, so every second one sits on the right. */
.photo:nth-child(6n + 4) { justify-self: end; }
.photo small { display: block; margin-top: .3rem; font-size: .85rem; color: var(--dim); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: clamp(3rem, 6vw, 5rem) var(--edge) 0; }
.pager__link { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1; text-decoration: none; overflow-wrap: break-word; }
.pager__link:hover { text-decoration: underline wavy 2px; text-underline-offset: .12em; }
.pager__link small { display: block; margin-bottom: .4rem; font: 700 .92rem/1.3 var(--text); color: var(--dim); }
.pager__link--older { grid-column: 2; text-align: right; }

/* All posts: the only place where the date leads. */
.archive { padding: clamp(1.5rem, 4vw, 3rem) var(--edge) 0; }
.year { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1rem clamp(1rem, 2vw, 2rem); margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.year h2 { position: sticky; top: 1rem; align-self: start; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .9; }
.year ul { list-style: none; margin: 0; padding: 0; }
.year li + li { margin-top: 1rem; }
.year a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; align-items: center; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1; text-decoration: none; overflow-wrap: break-word; }
.year a:hover { text-decoration: underline wavy 2px; text-underline-offset: .12em; }
.year a img { width: 120px; height: 80px; padding: 2px; background: var(--wood); object-fit: cover; clip-path: var(--rough-1); }
.year li:nth-child(even) a img { clip-path: var(--rough-3); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.6rem; margin-top: clamp(2.5rem, 7vw, 6rem); padding: 0 var(--edge) 2.5rem; color: var(--dim); }
.foot::before { flex: 0 0 100vw; margin-bottom: clamp(1.5rem, 4vw, 3rem); }

/* Back to top: a footer link that floats once you are a screen down, until the footer comes into view. */
.totop { font-weight: 700; }
.totop--float { position: fixed; z-index: 5; right: max(var(--edge), calc((100vw - var(--page)) / 2 + var(--edge))); bottom: max(1rem, env(safe-area-inset-bottom)); display: flex; align-items: center; min-height: 44px; padding: .25rem .9rem; background: #fff; color: #000; text-decoration: none; box-shadow: 0 2px 0 #000, 0 3px 10px rgba(0, 0, 0, .8); transform: rotate(-1.2deg); }
.totop--float:hover { background: var(--maple); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .post__photo:hover img, .post__photo:hover::before { transform: none; }
}

/* Lightbox: the photo alone, without the board. */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: var(--marker); }
.viewer::backdrop { background: #000; }
.viewer[open] { display: grid; grid-template: 1fr auto / 1fr; }
.viewer img { grid-area: 1 / 1; place-self: center; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem var(--edge); }
.viewer button { min-width: 44px; min-height: 44px; padding: .25rem .9rem; border: 0; background: none; color: inherit; font: 400 clamp(1.5rem, 3vw, 2rem)/1 var(--pen); text-transform: lowercase; cursor: pointer; }
.viewer button:hover { background: var(--maple); color: #000; }

/* Team and links: every photo keeps its own shape, each in its own window, with the name signed under it. */
.crew { columns: 4; column-gap: clamp(1rem, 2vw, 2rem); list-style: none; margin: clamp(1.5rem, 3vw, 3rem) 0 0; padding: 0 var(--edge); --kerf: 4px; }
.crew li { break-inside: avoid; padding-bottom: clamp(1.75rem, 3vw, 3rem); }
.crew a img { width: calc(100% - 2 * var(--kerf)); }
.crew a { grid-template-columns: minmax(0, 1fr); }
.crew h2 { margin-top: .25rem; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.05; overflow-wrap: anywhere; }
.crew a:hover h2 { text-decoration: underline wavy 2px; text-underline-offset: .12em; }
.crew small { display: block; font-size: .9rem; line-height: 1.3; color: var(--dim); overflow-wrap: anywhere; }
.crew--links { columns: 3; }

/* Products: stickers on the grip. */
.notice { max-width: 56ch; margin-top: 1rem; }
.year--shelf { display: block; }
.year--shelf h2 { position: static; margin-bottom: clamp(1rem, 2.5vw, 2rem); font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: clamp(1.1rem, 2.4vw, 2.2rem); }
.year .shelf li + li { margin-top: 0; }
.shelf li:nth-child(4n + 1) { transform: rotate(-2deg); }
.shelf li:nth-child(4n + 2) { transform: rotate(1.4deg); }
.shelf li:nth-child(4n + 3) { transform: rotate(-.7deg); }
.shelf li:nth-child(4n) { transform: rotate(2.2deg); }
.year .shelf a { display: block; height: 100%; padding: .45rem .45rem .55rem; background: #fff; color: #000; font: inherit; box-shadow: 0 2px 0 #000, 0 3px 10px rgba(0, 0, 0, .8); }
.year .shelf a:hover { background: var(--maple); text-decoration: none; }
.year .shelf a img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.shelf h3 { margin-top: .4rem; font: 700 1rem/1.2 var(--text); }

/* A single product: the facts stay beside the photos. */
.item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(1rem, 2vw, 2rem); padding: clamp(1.5rem, 4vw, 3rem) var(--edge) 0; align-items: start; }
.item header { position: sticky; top: 1rem; }
.item h1 { font-size: clamp(3.2rem, 7vw, 6.5rem); line-height: .92; overflow-wrap: break-word; transform: rotate(-1.5deg); transform-origin: left; }
.facts { margin: 1.5rem 0 0; }
.facts div + div { margin-top: .75rem; }
.facts dt { font-size: .92rem; font-weight: 700; color: var(--dim); }
.facts dd { margin: 0; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.1; }
.item__text { margin-top: 1rem; }
.photos--item { padding: 0; margin-top: 0; }
.photos--item .photo:nth-child(n) { grid-column: auto; justify-self: start; }
.photos--item .photo:only-child { grid-column: 1 / -1; max-width: 560px; }

@media (max-width: 1000px) {
  .crew { columns: 3; }
}
@media (max-width: 760px) {
  .crew, .crew--links { columns: 2; }
  .ce-gallery:is([data-ce-columns="3"], [data-ce-columns="4"], [data-ce-columns="5"], [data-ce-columns="6"], [data-ce-columns="7"], [data-ce-columns="8"]) { --cols: 2; }
  .ce-intext.ce-left:not(.ce-nowrap) > .ce-gallery, .ce-intext.ce-right:not(.ce-nowrap) > .ce-gallery { float: none; width: auto; margin: 0 0 1rem; }
  .ce-nowrap { display: block; }
  .ce-nowrap > .ce-gallery { margin-bottom: 1rem; }
  .frame.frame-indent { padding-inline: calc(var(--edge) + 1rem); }
  .year { grid-template-columns: 1fr; }
  .year h2 { position: static; }
  .year a { grid-template-columns: 84px minmax(0, 1fr); }
  .year a img { width: 84px; height: 56px; }
  .pager { grid-template-columns: 1fr; }
  .pager__link--older { grid-column: 1; text-align: left; }
  .item { grid-template-columns: 1fr; }
  .item header { position: static; }
  .bar__logo img { width: 76px; }
  .bar nav { gap: .1rem .7rem; font-size: min(1.45rem, 6.1vw); }
  .foot { flex-direction: column; }
  .foot::before { flex-basis: auto; }
}
