/* What both public sites share: layout and reading. Each site's own stylesheet sets its colours and type by
   filling in these variables, so a redesign rarely needs to touch the posts or this file. */
:root {
  --paper: #ffffff; --ink: #111111; --quiet: #666666; --rule: #e5e5e5; --accent: #111111; --accent-ink: #ffffff; --link: #111111;
  --heading-font: Georgia, serif; --body-font: system-ui, sans-serif; --heading-weight: 400;
  --measure: 42rem; --wide: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body-font); }
img, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.15em; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: var(--heading-weight); line-height: 1.15; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

.site-header { border-bottom: 1px solid var(--rule); }
.site-header-inner, .site-footer-inner, main { width: 100%; max-width: var(--wide); margin: 0 auto; padding-inline: 1rem; }
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1rem; }
.wordmark { font-family: var(--heading-font); font-weight: var(--heading-weight); font-size: 1.5rem; line-height: 1; text-decoration: none; color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; font-size: 0.95rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

main { padding-block: 2.5rem 4rem; }
.page-title { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0 0 2rem; }

.cards { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.card-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 0.75rem; }
.card time { font-size: 0.85rem; color: var(--quiet); }
.card h2 { font-size: 1.4rem; margin: 0.25rem 0 0.5rem; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--quiet); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.article { max-width: var(--measure); margin: 0 auto; }
.article > header h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 0.75rem; }
.byline { color: var(--quiet); font-size: 0.9rem; margin: 0 0 2rem; }
.lead { margin: 0 0 2rem; }
.prose { overflow-wrap: break-word; }
.prose p { margin: 0 0 1.25em; white-space: pre-wrap; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.3rem; margin: 1.75em 0 0.5em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25em; border-left: 3px solid var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.prose li > p { margin-bottom: 0.4em; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 0.85rem; color: var(--quiet); margin-top: 0.5rem; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.link-button { text-align: center; margin: 2em 0; }
.link-button a, .button { display: inline-block; padding: 0.7em 1.5em; background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 0; font: inherit; cursor: pointer; border-radius: 2px; }
.topics { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.9rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

.comments { margin-top: 3rem; font-size: 0.95rem; }
.comments h2 { font-size: 1.3rem; }
.comments ul { list-style: none; margin: 0; padding: 0; }
.comments ul ul { margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--rule); }
.comment-meta { color: var(--quiet); font-size: 0.85rem; margin: 1.5rem 0 0.25rem; }
.comment-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.call { max-width: var(--measure); margin: 3rem auto 0; padding: 1.5rem; background: color-mix(in srgb, var(--ink) 5%, var(--paper)); }
.call h2 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.call p { margin: 0 0 1rem; }
.sign-up { display: grid; gap: 0.75rem; }
.sign-up label { display: grid; gap: 0.25rem; font-size: 0.9rem; }
.sign-up input { font: inherit; padding: 0.6em 0.75em; border: 1px solid var(--quiet); background: var(--paper); color: var(--ink); border-radius: 2px; width: 100%; }
.sign-up .trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.sign-up small { color: var(--quiet); }
.sign-up [role="status"] { margin: 0; font-weight: 600; }

.site-footer { border-top: 1px solid var(--rule); padding-block: 2rem; font-size: 0.9rem; color: var(--quiet); }
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-footer a { color: inherit; }

/* barrymorisse.com's look: plain for now, in the spirit of the old site. Change this to redesign. */
:root {
  --paper: #ffffff; --ink: #111111; --quiet: #5f5f5f; --rule: #e6e6e6; --accent: #111111; --accent-ink: #ffffff; --link: #111111;
  --heading-font: "Anton", Impact, sans-serif; --body-font: "Inter", system-ui, sans-serif; --heading-weight: 400;
}
h1, h2, h3, .wordmark { letter-spacing: 0.01em; }
.wordmark { text-transform: uppercase; }
.prose h2, .prose h3 { font-family: var(--body-font); font-weight: 600; letter-spacing: 0; }
.card h2 { font-family: var(--body-font); font-weight: 600; letter-spacing: 0; font-size: 1.2rem; line-height: 1.3; }
.article > header h1 { font-family: var(--heading-font); line-height: 1.1; }

.hero { position: relative; margin: -2.5rem calc(50% - 50vw) 3rem; width: 100vw; overflow: hidden; background: #111; }
.hero img { width: 100%; height: clamp(16rem, 45vw, 30rem); object-fit: cover; opacity: 0.8; }
.hero h1 { position: absolute; left: 1rem; right: 1rem; bottom: 1.5rem; margin: 0 auto; max-width: var(--wide); color: #fff; font-size: clamp(2.5rem, 8vw, 5.5rem); text-transform: uppercase; }
.intro { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; max-width: 60rem; margin: 0 auto 3.5rem; }
.intro img { width: 100%; max-width: 22rem; }
.intro h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 1rem; text-transform: uppercase; }
@media (min-width: 45rem) { .intro { grid-template-columns: 22rem minmax(0, 1fr); gap: 3rem; } }
.projects { max-width: 60rem; margin: 0 auto; }
.projects > h2 { font-size: 1.75rem; margin: 0 0 1rem; text-transform: uppercase; }
.project-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.project-cards a { display: grid; gap: 0.25rem; padding: 1.25rem; border: 1px solid var(--ink); text-decoration: none; }
.project-cards a:hover { background: var(--ink); color: var(--paper); }
.project-cards strong { font-size: 1.1rem; }
.project-cards span { font-size: 0.9rem; }
