:root {
  --paper: #fff;
  --pale: #f5f5f5;
  --ink: #1d1d1d;
  --muted: #575757;
  --rule: #aaa;
  --reading: 52rem;
  --wide: 75rem;
  --heading: "Josefin Slab", Rockwell, Georgia, serif;
  --body: Cantarell, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--body); }
h1, h2, h3 { font: 600 1.75rem/1.18 var(--heading); margin: 0 0 .85em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.15rem); }
h3 { font-size: 1.5rem; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .15em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #225cab; outline-offset: 3px; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: .6rem; left: .6rem; z-index: 10; background: #fff; color: #000; padding: .75rem; }
.top-line { margin: 0; padding: .75rem 1.25rem; text-align: center; background: #e9e9e9; color: #454545; font-size: .9rem; }
.site-nav { max-width: var(--wide); margin: auto; padding: 1.3rem 1.25rem; }
.site-nav ul { display: flex; justify-content: center; gap: .65rem clamp(.65rem, 1.9vw, 2rem); flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.site-nav a:hover { text-decoration: underline; }
.site-nav button { font: 1.35rem var(--body); background: none; border: 0; padding: .4rem .6rem; color: inherit; cursor: pointer; }
.hero { padding: clamp(1.4rem, 4vw, 3.5rem) 1.4rem 1.4rem; background: var(--pale); text-align: center; }
.site-name { margin: 0 auto .2em; font: 600 clamp(2.1rem, 6vw, 4rem)/1.12 var(--heading); }
.hero h1 { margin: .8rem auto 1.35rem; max-width: 48rem; font: 400 clamp(.78rem, 2vw, 1.06rem)/1.4 var(--body); text-transform: uppercase; letter-spacing: .18em; }
.hero img { margin: auto; width: min(100%, 42rem); }
.reading, .gallery, .journal, .article-layout { margin: clamp(2.25rem, 5vw, 4.5rem) auto; padding: 0 clamp(1.25rem, 3.5vw, 2.4rem); }
.reading { max-width: var(--reading); }
.gallery, .journal, .article-layout, .about { max-width: var(--wide); }
.ruled { display: flex; gap: clamp(.65rem, 2vw, 1.5rem); align-items: center; justify-content: center; text-align: center; margin-bottom: 1.15em; }
.ruled::before, .ruled::after { content: ""; max-width: 8rem; flex: 1 1 2rem; border-bottom: 1px solid var(--rule); }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.about-card { display: grid; min-height: 19rem; color: #fff; background: #333; }
.about-card > * { grid-area: 1 / 1; }
.about-card img { width: 100%; height: 100%; max-height: 22rem; object-fit: cover; }
.about-card > div { z-index: 1; display: flex; flex-direction: column; justify-content: center; background: rgba(0, 0, 0, .56); padding: 1.35rem; }
.about-card h3, .about-card p { margin: .35rem 0; }
.announcement { text-align: center; }
.announcement p { margin: 1.3rem 0; }
.gallery-stage figure { margin: 0 auto 1rem; }
.gallery-stage img { margin: auto; width: auto; max-height: min(69vh, 44rem); object-fit: contain; }
.gallery-stage figcaption { margin: .65rem 0; text-align: center; }
.gallery-controls, .thumbnails { display: flex; gap: .7rem; justify-content: center; align-items: center; flex-wrap: wrap; margin: .8rem 0; }
.gallery-controls button { cursor: pointer; font: 1.4rem/1 var(--body); min-width: 2.5rem; min-height: 2.5rem; background: #fff; border: 1px solid var(--rule); }
.thumbnails a { border: 2px solid transparent; padding: 2px; }
.thumbnails a[aria-current="true"] { border-color: var(--ink); }
.thumbnails img { width: 4.3rem; height: 3.2rem; object-fit: cover; }
.button { display: inline-block; padding: .66rem 1.2rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font: 700 .88rem/1.4 var(--body); cursor: pointer; }
.button:hover { background: #434343; }
.stock { font-weight: bold; }
.download-list, .recent-posts ul { list-style: none; padding: 0; }
.download-list li { border-top: 1px solid #ccc; }
.download-list li:last-child { border-bottom: 1px solid #ccc; }
.download-list a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .9rem .2rem; }
.download-action { font-size: .82rem; text-transform: uppercase; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.4rem; align-items: start; }
details { padding: .85rem 0; border-top: 1px solid #ccc; }
details summary { cursor: pointer; font-weight: 700; }
.categories { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.15rem; margin: 0 0 1.75rem; }
.categories a { color: var(--muted); }
.categories a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1rem, 3vw, 2rem); align-items: center; border-top: 1px solid #d9d9d9; padding: 1.4rem 0; }
.post-card > a img { width: 100%; max-height: 14rem; object-fit: cover; }
.post-info:only-child { grid-column: 1 / -1; }
.post-card h3, .post-card p { margin: 0 0 .5rem; }
.post-meta { color: var(--muted); font-size: .9rem; }
.read-more { font-weight: bold; }
.more-posts { display: block; margin: 1.5rem auto 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.article-body h1 { margin: 1rem 0 .5rem; }
.article-body figure { margin: 1.3rem 0; }
.article-body figure img { max-height: 39rem; width: auto; }
.recent-posts ul { margin-top: 0; }
.recent-posts li { margin-bottom: .8rem; }
.recent-posts time { font-size: .85rem; color: var(--muted); }
.site-footer { padding: 1.25rem; text-align: center; border-top: 1px solid #ddd; font-size: .95rem; }
@media (max-width: 45rem) {
  .site-nav { min-height: 3.5rem; padding: .65rem 1.05rem; }
  .site-nav button:not([hidden]) + ul { justify-content: flex-start; padding: .65rem; }
  .about-grid, .article-layout, .support-grid { grid-template-columns: 1fr; }
  .about-card { min-height: 16rem; }
  .post-card { grid-template-columns: 1fr; }
  .post-card > a img { max-height: 17rem; }
}
