/* thehouseofspear.com: same look as the Squarespace site (Kepler Std, bookshelf banners, blue bands, green cards). */
:root {
  --base: clamp(16px, 0.853vw, 22px);
  --blue: #d3e4f3;
  --gray: #eaeaee;
  --card: #acd5ac;
  --wrap: min(92vw, max(62.7vw, 900px));
}
* { box-sizing: border-box; }
html { font-size: var(--base); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: kepler-std, "Kepler Std", Georgia, "Times New Roman", serif; font-weight: 300; line-height: 1.6; color: #000; background: #fff; }
body.theme-gray { background: #fff; }
body.theme-blue { background: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.22; margin: 0 0 .5em; }
h1 { font-size: 3.56rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.text p:last-child { margin-bottom: 0; }
.text.md p { margin: 0; }
strong, b { font-weight: 600; }

/* Header: on the banner, turns black when the page scrolls */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 2.2rem 3.5vw; color: #fff; transition: background .25s, padding .25s; }
.site-header.solid { background: #000; padding: 1.2rem 3.5vw; }
.site-title { font-size: 1.62rem; font-weight: 600; text-decoration: none; }
.site-nav a { font-size: 1.35rem; text-decoration: none; padding-bottom: 2px; }
.site-nav a.current, .site-nav a:hover { border-bottom: 1px solid currentColor; }
.header-space { height: 8.5rem; background: #000; }
@media (max-width: 767px) { .header-space { height: 4.5rem; } }

/* Banner photo with the page title */
.banner { position: relative; background-size: cover; background-position: center; color: #fff; display: flex; align-items: center; }
.banner-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.banner .wrap { position: relative; width: var(--wrap); margin: 0 auto; }
.banner-small { min-height: 21.8rem; padding: 7rem 0 2rem; }
.banner-tall { min-height: 13.4rem; padding: 9.5rem 0 1.2rem; align-items: flex-end; }
.banner h1 { margin: 0; }
.banner h4 { margin: 0; font-size: 1.18rem; }
.banner a { color: #eaeaee; }

/* Content bands and the 12-column rows */
.band { padding: 7.7rem 0; }
.band.theme-gray { padding: 1.2rem 0 1.2rem; background: var(--gray); }
.band.theme-blue { background: var(--blue); }
.band.theme-white { background: #fff; padding: 4rem 0 30rem; }
.wrap { width: var(--wrap); margin: 0 auto; }
.row { display: flex; gap: 0 1.1rem; }
.col { min-width: 0; }
.col > * + * { margin-top: 1.1rem; }
.span-1 { flex: 0 0 calc(1 / 12 * 100% - 1.1rem * 11 / 12); }
.span-2 { flex: 0 0 calc(2 / 12 * 100% - 1.1rem * 10 / 12); }
.span-3 { flex: 0 0 calc(3 / 12 * 100% - 1.1rem * 9 / 12); }
.span-4 { flex: 0 0 calc(4 / 12 * 100% - 1.1rem * 8 / 12); }
.span-5 { flex: 0 0 calc(5 / 12 * 100% - 1.1rem * 7 / 12); }
.span-6 { flex: 0 0 calc(6 / 12 * 100% - 1.1rem * 6 / 12); }
.span-7 { flex: 0 0 calc(7 / 12 * 100% - 1.1rem * 5 / 12); }
.span-8 { flex: 0 0 calc(8 / 12 * 100% - 1.1rem * 4 / 12); }
.span-9 { flex: 0 0 calc(9 / 12 * 100% - 1.1rem * 3 / 12); }
.span-10 { flex: 0 0 calc(10 / 12 * 100% - 1.1rem * 2 / 12); }
.span-11 { flex: 0 0 calc(11 / 12 * 100% - 1.1rem * 1 / 12); }
.span-12 { flex: 0 0 calc(12 / 12 * 100% - 1.1rem * 0 / 12); }
.col:empty { display: none; }

/* "Fluid" sections: the 24-column placement grid Squarespace used (8 columns on phones) */
.band.fluid { padding: 3.5rem 0 7.7rem; }
.fe { --gut: max(0px, 3vw - 11px); --cw: min(1600px, 94vw); display: grid; gap: 11px;
  grid-template-columns: minmax(var(--gut), 1fr) repeat(24, minmax(0, calc((1600px - 11px * 23) / 24))) minmax(var(--gut), 1fr);
  grid-template-rows: repeat(var(--rows), minmax(calc(var(--cw) * .0215), auto)); }
.fe-b { grid-area: var(--d); min-width: 0; }
.fe-b > .pic > img { width: 100%; height: 100%; object-fit: cover; }

/* Pictures: plain, "collage" (green card beside, overlapping) and "poster" (card on the picture) */
.pic { margin: 0; position: relative; }
.pic > img, .pic > a > img { width: auto; margin: 0 auto; }
.pic.poster > img, .pic.poster > a > img { width: 100%; }
.pic.collage { display: flex; align-items: center; min-height: 6rem; }
.pic.collage > img, .pic.collage > a { width: 70%; }
.pic.collage.pos-right > img, .pic.collage.pos-right > a { margin-left: auto; }
.pic.collage .card { position: absolute; width: 50%; top: 40%; transform: translateY(-50%); }
.pic.collage.pos-right .card { left: 0; }
.pic.collage.pos-left .card { right: 0; }
.card { background: var(--card); padding: 1.8rem; min-height: 3.9rem; }
.card-title h1, .card-title h2, .card-title h3, .card-title h4 { margin: 0; font-size: 1.6rem; font-weight: 600; }
.card-title p { margin: 0; }
.card-sub p { margin: .6rem 0 0; font-size: .74rem; }
.card-sub:empty { display: none; }
.pic.poster .card { position: absolute; left: 10%; right: 10%; bottom: 10%; }
.pic figcaption { padding-top: .6rem; }

/* Home: class grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 1.84rem; padding: 0 3.5rem; }
.grid-item { text-decoration: none; text-align: center; }
.grid-image { aspect-ratio: 2 / 3; overflow: hidden; }
.grid-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .4s; }
.grid-item:hover img { transform: scale(1.05); opacity: .7; }
.grid-item h3 { font-size: 1.12rem; margin: .5rem -1rem .4rem; white-space: nowrap; }

/* Previous / next class */
.pager { display: flex; justify-content: space-between; padding: 6rem 3.5vw 2.5rem; background: inherit; }
.pager a { font-size: 1.6rem; font-weight: 600; text-decoration: none; }
.pager-prev::before { content: "\2039\00a0\00a0"; font-weight: 300; }
.pager-next { margin-left: auto; }
.pager-next::after { content: "\00a0\00a0\203A"; font-weight: 300; }

/* Old 2021 event pages */
.event h1 { font-size: 2.4rem; }
.event-meta { list-style: none; padding: 0; margin: 0 0 2rem; }
.back a { text-decoration: none; }

@media (max-width: 767px) {
  .fe { display: flex; flex-direction: column; gap: 1.2rem; width: var(--wrap); margin: 0 auto; }
  .fe-b { order: var(--o); }
  .fe-b > .pic > img { height: auto; }
  .banner h2[style*="font-size"] { font-size: 3rem !important; }
  .fe-b h3[style*="font-size"] { font-size: 2.2rem !important; white-space: normal !important; }
  :root { --base: 16px; --wrap: calc(100vw - 32px); }
  h1 { font-size: 2.4rem; }
  .site-header { padding: 1.2rem 16px; }
  .site-header.solid { padding: .8rem 16px; }
  .site-title { font-size: 1.2rem; }
  .site-nav a { font-size: 1.1rem; }
  .row { flex-direction: column; gap: 1.1rem; }
  .col { flex-basis: auto; }
  .band { padding: 3rem 0; }
  .grid { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0; }
  .banner-small { min-height: 16rem; }
  .pager { flex-direction: column; gap: 1rem; }
}
@media (max-width: 767px) { .grid-item h3 { white-space: normal; margin: .5rem 0; } }
