/* Stoneroller Cooperative: static copy of the Cargo site.
   Part 1 reproduces Cargo's layout engine (pages, columns, galleries, media).
   Part 2 is the site's own stylesheet, carried over from Cargo.
   Part 3 holds the per-page settings Cargo kept with individual pages.
   Sizes use rem. The root size (--base-size) is set by a small script in each
   page's <head>, following the way Cargo scales a site to the window. */

/* ---------- typefaces ---------- */
/* Cooper* by Indestructible Type, SIL Open Font License. See assets/fonts/OFL.txt. */
@font-face { font-family: "Cooper"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Cooper-Regular.woff2") format("woff2"); }
@font-face { font-family: "Cooper"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/Cooper-Italic.woff2") format("woff2"); }
@font-face { font-family: "Cooper"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Cooper-Medium.woff2") format("woff2"); }
@font-face { font-family: "Cooper"; font-weight: 500; font-style: italic; font-display: swap; src: url("fonts/Cooper-MediumItalic.woff2") format("woff2"); }
@font-face { font-family: "Cooper"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Cooper-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Cooper"; font-weight: 600; font-style: italic; font-display: swap; src: url("fonts/Cooper-SemiBoldItalic.woff2") format("woff2"); }
@font-face { font-family: "Cooper"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Cooper-Bold.woff2") format("woff2"); }
@font-face { font-family: "Cooper"; font-weight: 700; font-style: italic; font-display: swap; src: url("fonts/Cooper-BoldItalic.woff2") format("woff2"); }
@font-face { font-family: "Cooper"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/Cooper-Black.woff2") format("woff2"); }
@font-face { font-family: "Cooper"; font-weight: 900; font-style: italic; font-display: swap; src: url("fonts/Cooper-BlackItalic.woff2") format("woff2"); }

/* Cargo set body text in Favorit Variable, which is licensed through Cargo and
   cannot be carried over. --body-font is the stand-in; change it in one place. */
:root { --body-font: "Favorit Variable", "Helvetica Neue", Helvetica, Arial, sans-serif; }

/* ---------- Part 1: layout engine ---------- */
html { --mobile-scale: 1.29; --mobile-padding-offset: 0.1; --gs: 1; font-size: var(--base-size, 1.44vh); touch-action: manipulation; scroll-behavior: smooth; }
html.mobile { font-size: calc(var(--base-size, 2.154vw) * var(--mobile-scale)); --gs: 0.5; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; text-size-adjust: none; display: flex; flex-direction: column; width: 100%; background-color: #fff; }
body.no-scroll { overflow: hidden; }
*, *::before, *::after { box-sizing: border-box; }

.content { position: relative; display: flex; flex-direction: column; align-items: stretch; flex-grow: 1; min-height: 100vh; }
.pages { width: 100%; flex: 1 0 auto; }
.page { display: flex; justify-content: center; width: 100%; max-width: 100%; }
.page-layout { width: 100%; }
.page-content { width: 100%; }
.mobile .desktop-only, html:not(.mobile) .mobile-only { display: none; }

/* the desktop header sits over the top of the first page, as on Cargo */
.page.pinned-top.overlay { position: absolute; top: 0; left: 0; z-index: 10; }

bodycopy { display: block; overflow-wrap: break-word; position: relative; max-width: 100%; width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
bodycopy p { margin: 0 0 1em; }
bodycopy img, bodycopy video { max-width: 100%; }
bodycopy table { border-collapse: collapse; width: 100%; margin: 1em 0; }
bodycopy th, bodycopy td { text-align: left; vertical-align: top; padding: 0.6em 1em 0.6em 0; border-bottom: 1px solid rgba(0, 0, 0, 0.2); }

/* columns: a 12-column grid, as in Cargo */
column-set { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter, 2rem); align-items: start; width: 100%; }
column-unit { display: block; min-width: 0; grid-column: span var(--span, 6); }
.mobile column-set:not([mobile-stack="false"]) { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
.mobile column-set:not([mobile-stack="false"]) > column-unit { grid-column: auto; }
.mobile column-set:not([mobile-stack="false"]):not([mobile-hide-empty="false"]) > column-unit:empty { display: none; }

:is(column-set, gallery-grid, gallery-columnized, gallery-justify, gallery-slideshow) + :is(column-set, gallery-grid, gallery-columnized, gallery-justify, gallery-slideshow) { margin-top: var(--gutter, 2rem); }

/* media */
media-item { display: inline-flex; flex-direction: column; vertical-align: bottom; position: relative; width: var(--w, 100%); max-width: 100%; margin: 0; }
media-item > img, media-item > a > img, media-item > video, media-item > a > video { display: block; width: 100%; height: auto; }
media-item > a { display: block; }
media-item.zoomable > img { cursor: zoom-in; }
media-item[data-missing] { display: none; }
.mobile media-item { width: 100%; }
bodycopy iframe { border: 0; max-width: 100%; }
text-icon { display: inline-block; }
[style*="--font-scale"] { font-size: calc(var(--font-scale) * 1em); }

/* grid gallery */
gallery-grid { display: grid; grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr)); gap: var(--gutter, 2rem); width: 100%; align-items: start; }
.mobile gallery-grid { grid-template-columns: repeat(var(--mcolumns, 1), minmax(0, 1fr)); gap: var(--mgutter, var(--gutter, 2rem)); }
gallery-grid[vertical-align="center"] > media-item { align-self: center; }

/* columnized gallery: site.js sorts items into columns, shortest column first */
gallery-columnized { display: flex; align-items: flex-start; gap: var(--gutter, 1rem); width: 100%; }
gallery-columnized > .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gutter, 1rem); }
gallery-columnized:not(.ready) { flex-wrap: wrap; }
gallery-columnized:not(.ready) > media-item { width: calc((100% - (var(--columns, 3) - 1) * var(--gutter, 1rem)) / var(--columns, 3)); }
.mobile gallery-columnized, .mobile gallery-columnized > .col { gap: var(--mgutter, var(--gutter, 1rem)); }

/* justified gallery: site.js sets each item's size so rows fill the width */
gallery-justify { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--gutter, 1rem); width: 100%; }
gallery-justify > media-item { flex: 0 0 auto; width: calc(var(--ar, 1) * 18rem); }
gallery-justify > media-item > img, gallery-justify > media-item > a > img { width: 100%; height: auto; }
.mobile gallery-justify { gap: var(--mgutter, var(--gutter, 1rem)); }

/* slideshow */
gallery-slideshow { display: block; position: relative; width: 100%; overflow: hidden; aspect-ratio: var(--fit-ar, 1.5); }
gallery-slideshow[limit-by="height"] { aspect-ratio: auto; height: var(--slide-height, 50rem); max-height: 90vh; }
.mobile gallery-slideshow[limit-by="height"] { height: auto; aspect-ratio: var(--fit-ar, 1.5); }
gallery-slideshow > media-item { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.8s cubic-bezier(0.24, 0, 0.29, 1); pointer-events: none; }
gallery-slideshow[vertical-align="top"] > media-item { justify-content: flex-start; }
gallery-slideshow > media-item.active { opacity: 1; pointer-events: auto; }
gallery-slideshow > media-item > img, gallery-slideshow > media-item > a > img, gallery-slideshow > media-item > video { width: 100%; height: 100%; object-fit: contain; }
gallery-slideshow > media-item > a { width: 100%; height: 100%; }
gallery-slideshow[vertical-align="top"] > media-item > img { object-position: center top; }
gallery-slideshow[horizontal-align="left"] > media-item > img { object-position: left top; }
gallery-slideshow[horizontal-align="right"] > media-item > img, gallery-slideshow[horizontal-align="right"] > media-item > a > img { object-position: right top; }
gallery-slideshow > media-item > .caption { position: absolute; left: 0; bottom: 0; margin: 0; padding: 0.6rem 1rem; background: rgba(255, 255, 255, 0.9); }
.slideshow-nav { position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; padding: 0; border: 0; border-radius: 50%; background: rgba(87, 87, 87, 0.35); cursor: pointer; opacity: 0; transition: opacity 0.2s ease-in-out; z-index: 2; }
.slideshow-nav svg { display: block; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.5px; }
.slideshow-nav.prev { left: 15px; } .slideshow-nav.next { right: 15px; }
.slideshow-nav.next svg { transform: scaleX(-1); }
gallery-slideshow:hover .slideshow-nav, .mobile .slideshow-nav, .slideshow-nav:focus-visible { opacity: 1; }
.slideshow-nav:active { opacity: 0.7; }
.mobile .slideshow-nav.prev { left: 10px; } .mobile .slideshow-nav.next { right: 10px; }

/* thumbnails that stand in for pages */
media-item.thumbnail .page-title a { color: inherit; text-decoration: none; }
media-item.thumbnail.no-image { border-top: 2px solid #181146; padding-top: 1rem; }

/* quick view (image zoom) */
.quick-view { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 3rem; background-color: #ffffff; cursor: zoom-out; }
.quick-view[hidden] { display: none; }
.quick-view img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.quick-view .slideshow-nav { opacity: 1; position: fixed; }
.quick-view .slideshow-nav.prev { left: 20px; } .quick-view .slideshow-nav.next { right: 20px; }
.quick-view-close { position: fixed; top: 20px; right: 20px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(87, 87, 87, 0.35); color: rgba(255, 255, 255, 0.9); font: 20px/30px Helvetica, Arial, sans-serif; padding: 0; cursor: pointer; }
.mobile .quick-view { padding: 10px; }

/* ---------- Part 2: the site's stylesheet, from Cargo ---------- */
body {
	--swatch-1: rgba(0, 0, 0, 0.85);
	--swatch-2: rgba(0, 0, 0, 0.75);
	--swatch-3: rgba(0, 0, 0, 0.6);
	--swatch-4: rgba(0, 0, 0, 0.4);
	--swatch-5: rgba(0, 0, 0, 0.25);
	--swatch-6: #17901f;
	--swatch-7: #181146;
	--swatch-8: #da5406;
	--swatch-9: #678d48;
	--swatch-10: #ddc639;
}

a:active, .linked:active, .zoomable > img:active { opacity: 0.7; }
.page a.active { opacity: 1; }

sub { position: relative; vertical-align: baseline; top: 0.3em; }
sup { position: relative; vertical-align: baseline; top: -0.4em; }
.small-caps { font-variant: small-caps; text-transform: lowercase; }

ol { list-style-type: decimal; margin: 0; padding: 0 0 0 1.5em; }
ul { margin: 0; padding: 0.5em 0 0.5em 1em; }
ul.lineated { margin: 0; padding: 0; list-style-type: none; margin: 0 0 0 3em; text-indent: -3em; }
blockquote { margin: 0; padding: 0 0 0 2em; }

hr { background: #181146; border: 0; height: 2px; display: block; margin-top: 1.5rem; margin-bottom: 2.0rem; }

.content { border-color: rgba(0,0,0,.85); }

bodycopy {
	font-size: 1.8rem;
	font-weight: 350;
	color: rgba(0, 0, 0, 0.85);
	font-family: var(--body-font);
	font-style: normal;
	line-height: 1.55;
	letter-spacing: 0;
	display: block;
}
bodycopy a { color: #da5406; text-decoration: none; font-weight: 700; }

h1 {
	font-family: Cooper, Georgia, serif;
	text-transform: uppercase;
	font-style: normal;
	font-weight: 400;
	margin: 0;
	font-size: 6.50rem;
	line-height: 1.1;
	color: #181146;
	letter-spacing: 0em;
}
.mobile h1 { line-height: 0.9; font-size: 3.75rem; }
h1 a { color: #181146; text-decoration: none; }

h2 {
	font-family: Cooper, Georgia, serif;
	font-style: normal;
	font-weight: 500;
	margin: 0;
	color: #181146;
	font-size: 3rem;
	line-height: 1.5;
	letter-spacing: 0em;
}
h2 a { color: #181146; text-decoration: none; }

.caption {
	font-size: 1.2rem;
	font-weight: 700;
	color: #181146;
	font-family: var(--body-font);
	text-transform: uppercase;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: 0.145em;
	display: block;
}
.caption a { color: #da5406; text-decoration: none; }
media-item .caption { margin-top: 1rem; }
gallery-grid .caption, gallery-columnized .caption, gallery-justify .caption { margin-bottom: 2em; }
[thumbnail-index] .caption { text-align: left; }
[thumbnail-index] .caption .tags { margin-top: 0.25em; }

.page { justify-content: center; }
.page-content { padding: 5rem; text-align: left; padding-top: 8rem; }
.mobile .page-content { padding: 1.6rem; padding-top: 3rem; border: 0; border-radius: 0; }
.page-layout { align-items: flex-start; max-width: 95%; }
.mobile .page-layout { max-width: 100%; padding: 0; }

.h3 {
	font-size: 2rem;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.85);
	font-family: Cooper, Georgia, serif;
	font-style: normal;
	line-height: 1.30;
	letter-spacing: 0.095em;
	display: block;
	background: rgba(0,0,0,0);
	text-transform: uppercase;
	margin-bottom: 0.4em;
	margin-top: 0.2em;
	padding-top: 0.4rem;
}
.h3 a { font-family: Cooper, Georgia, serif; font-weight: 500; font-style: normal; color: rgba(0, 0, 0, 0.85); }

.heading-2b {
	font-family: Cooper, Georgia, serif;
	font-style: normal;
	font-weight: 500;
	margin: 0;
	color: #181146;
	font-size: 2.25rem;
	line-height: 1;
	letter-spacing: 0em;
}
.heading-2b a { color: #181146; text-decoration: none; }

.button2 {
	font-size: 1.7rem;
	font-weight: 700;
	color: #ffffff;
	font-family: var(--body-font);
	font-style: normal;
	line-height: 1.45;
	letter-spacing: 0;
	display: inline-block;
	background: #181146;
	border-width: 0.0rem;
	padding: 0.8rem 1.8rem 0.6rem 1.9rem;
	border-style: solid;
	border-radius: 18.3rem;
	border-color: #181146;
}
.button2 a { color: #ffffff; text-decoration: none; }

.button1 {
	font-size: 2.20rem;
	font-weight: 500;
	color: #ffffff;
	font-family: var(--body-font);
	font-style: normal;
	line-height: 1.45;
	letter-spacing: 0.014em;
	display: inline-block;
	background: #da5406;
	border-width: 0.0rem;
	padding: 0.8rem 3rem 0.5rem 3rem;
	border-style: solid;
	border-radius: 18.3rem;
	border-color: #181146;
}
.mobile .button1 { font-size: 1.90rem; }
.button1 a { color: #ffffff; text-decoration: none; }
bodycopy a.button1, bodycopy a.button2 { color: #ffffff; }

.button-6 {
	font-size: 1.7rem;
	font-weight: 700;
	font-family: var(--body-font);
	font-style: normal;
	line-height: 1.45;
	letter-spacing: 0;
	color: #181146;
	background: rgba(0,0,0,0);
	display: inline-block;
	border-radius: 1015.4rem;
	padding: 0.7rem 1.5rem 0.5rem 1.5rem;
	border-width: 0.3rem;
	border-color: #da5406;
	border-style: solid;
}
.button-6 a { font-weight: 400; color: #da5406; text-decoration: none; }
bodycopy a.button-6 { color: #181146; }

.h2large {
	font-size: 7.00rem;
	font-weight: 400;
	color: #181146;
	font-family: Cooper, Georgia, serif;
	font-style: normal;
	line-height: 1.1;
	letter-spacing: 0;
	display: block;
}
.mobile .h2large { font-size: 4.15rem; }
.h2large a { color: #da5406; text-decoration: none; font-weight: 400; }

.details {
	font-size: 1.15rem;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.85);
	font-family: var(--body-font);
	font-style: normal;
	line-height: 1.75;
	letter-spacing: 0.134em;
	display: block;
	text-transform: uppercase;
}
.details a { color: #da5406; text-decoration: none; font-weight: 400; }

.small-bodycopy {
	font-size: 1.4rem;
	font-weight: 350;
	color: rgba(0, 0, 0, 0.85);
	font-family: var(--body-font);
	font-style: normal;
	line-height: 1.5;
	letter-spacing: 0;
	display: block;
}
.small-bodycopy a { color: #da5406; text-decoration: none; font-weight: 700; }

.nav {
	font-size: 1.55rem;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.85);
	font-family: Cooper, Georgia, serif;
	font-style: normal;
	line-height: 1.30;
	letter-spacing: 0.095em;
	display: block;
	background: rgba(0,0,0,0);
	text-transform: uppercase;
	margin-bottom: 0.4em;
	margin-top: 0.2em;
	padding-top: 0.4rem;
}
.nav a { font-family: Cooper, Georgia, serif; font-weight: 500; font-style: normal; color: rgba(0, 0, 0, 0.85); }

.quote {
	font-family: Cooper, Georgia, serif;
	font-style: normal;
	font-weight: 400;
	margin: 0;
	color: rgba(0, 0, 0, 0.85);
	font-size: 2.4rem;
	line-height: 1.25;
	letter-spacing: 0em;
}
.quote a { color: rgba(0, 0, 0, 0.85); text-decoration: none; }

.mobile .content { border: 0; margin: 0; }

.code-window { position: relative; background: #2d2d2d; border-radius: 8px; margin: 1.5em 0; overflow: hidden; }
.code-window pre { margin: 0; padding: 1em; overflow-x: auto; color: #f8f8f2; background: #2d2d2d; font-family: Menlo, Monaco, Consolas, monospace; font-size: 24px; }
.code-window pre code { font-family: inherit; font-size: inherit; }
.copy-btn { position: absolute; top: 8px; right: 8px; padding: 4px 8px; font-size: 15px; background: #444; color: #fff; border: none; border-radius: 4px; cursor: pointer; opacity: 0.8; }
.copy-btn:hover { opacity: 1; }

.accordion-container { border-top: 1px solid #ccc; max-width: 700px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid #ccc; }
.accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 1em; cursor: pointer; font-weight: bold; background: #f9f9f9; transition: background 0.2s ease; }
.accordion-header:hover { background: #eee; }
.accordion-icon-wrapper { width: 1em; height: 1em; display: flex; align-items: center; justify-content: center; transform-origin: center; transition: transform 0.2s ease; }
.accordion-icon { display: inline-block; }
.accordion-item.active .accordion-icon-wrapper { transform: rotate(90deg); }
.accordion-content { padding: 0 1em; opacity: 0; transform: translateY(-10px); max-height: 0; overflow: hidden; transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease; pointer-events: none; }
.accordion-item.active .accordion-content { opacity: 1; transform: translateY(0); max-height: 500px; pointer-events: auto; padding-top: 1em; padding-bottom: 1em; }

ul li, ol li { margin-bottom: 0.7em; }

.project-columns { display: flex; flex-wrap: wrap; margin-bottom: 0.6em; }
.project-columns column-unit { flex: 1; padding: 1em; border-left: 1px solid #ccc; margin-bottom: 0.9em; }
.project-columns column-unit:first-child { border-left: none; }
@media (max-width: 768px) {
	.project-columns { flex-direction: column; border-top: none; }
	.project-columns column-unit { border-left: none; border-top: 1px solid #ccc; }
	.project-columns column-unit:first-child { border-top: none; }
}

.visually-hidden { display: none; }

button:focus-visible, a:focus-visible { outline: 3px solid #005fcc; outline-offset: 3px; }

/* cookie banner, from the site's custom HTML on Cargo */
#cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: #f4f4f4; padding: 1em; box-shadow: 0 -2px 6px rgba(0,0,0,0.2); font-family: sans-serif; font-size: 16px; z-index: 1000; display: none; }
#cookie-banner p { margin: 0 0 0.5em 0; font-size: 0.95em; }
#cookie-banner button { margin-right: 1em; font-size: 15px; }
#cookie-settings-modal { display: none; position: fixed; top: 10%; left: 50%; transform: translateX(-50%); background: white; border: 1px solid #ccc; padding: 1em; z-index: 1100; width: 90%; max-width: 500px; box-shadow: 0 2px 10px rgba(0,0,0,0.3); font-family: sans-serif; font-size: 16px; }

/* ---------- Part 3: per-page settings, from Cargo ---------- */
[id="T3057851291"] .page-content { padding-bottom: 1rem; padding-top: 1rem; }
[id="K3635027128"] .page-content { padding-bottom: 0rem; padding-top: 2rem; }
[id="K3635027128"] .page-layout { max-width: 100%; }
[id="T2494834929"] .page-content { padding-top: 0rem; }
[id="O1623867275"] .page-content { padding-bottom: 2.0rem; padding-top: 11.7rem; }
.mobile [id="O1623867275"] .page-content { padding-top: 3rem; }
[id="Z0415609394"] .page-content { padding-bottom: 1.0rem; padding-top: 3rem; }
[id="T0371813617"] .page-content { padding-top: 0rem; }
[id="E3569230520"] .page-content { padding-bottom: 1.0rem; padding-top: 3rem; }
[id="L0437080357"] .page-content { padding-top: 3rem; padding-bottom: 0rem; }
[id="E0661243276"].page { background-color: rgba(221, 198, 57, 0.1); }
[id="U0614692063"].page { background-color: rgba(24, 17, 70, 0.1); }
[id="U0614692063"] .page-content { padding-top: 5rem; }
/* pages stacked under the first one on Home and Work do not need the header clearance */
.pages > .page.stacked ~ .page.stacked .page-content { padding-top: 3rem; }
.mobile column-set[mobile-stack="false"] { column-gap: 0.6rem; }
.mobile [id="K3635027128"] bodycopy { font-size: 1.5rem; }
.mobile [id="K3635027128"] column-set { margin-top: 0.6rem; }
gallery-slideshow { max-height: 85vh; }
