@import url("/assets/wordmark.css");

@import url("/assets/form-controls.css");

:root {
  color-scheme: light dark;
  --surface: #fff;
  --text: #242424;
  --muted: color-mix(in srgb, var(--text) 65%, var(--surface));
  --line: color-mix(in srgb, var(--text) 14%, var(--surface));
  --accent: #171717;
  --subtle: color-mix(in srgb, var(--text) 4%, var(--surface));
  --site-gutter: 24px;
  font-family:
    var(--site-font, system-ui), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body > main {
  flex: 1;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.theme-button {
  padding: 9px 17px;
  background: var(--accent);
  color: var(--surface);
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
input,
select,
textarea {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: none;
}
.site-header,
.site-footer,
.prose {
  width: 100%;
  max-width: var(--site-width, 960px);
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}
.site-header,
.site-footer {
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-name {
  font-weight: var(--bracten-wordmark-weight);
  letter-spacing: var(--bracten-wordmark-tracking);
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  font-size: var(--site-name-size, var(--bracten-wordmark-size));
}
.site-header ul {
  display: flex;
  list-style: none;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.site-header ul ul {
  display: block;
}
.site-header nav a {
  font-size: 14px;
}
.site-footer {
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.site-footer .site-name {
  letter-spacing: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 500;
}
.prose {
  margin-block: 48px;
  min-height: 45vh;
}
h1 {
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
}
h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  margin: 36px 0 16px;
}
h3 {
  font-size: 21px;
}
p {
  margin: 18px 0;
}
.block-text {
  white-space: pre-wrap;
}
.block-video,
.block-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--subtle);
}
.lead {
  color: var(--muted);
  font-size: 19px;
}
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
figure {
  margin: 28px 0;
}
figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 24px;
  margin: 24px 0;
  color: var(--muted);
  white-space: pre-wrap;
}
pre {
  background: var(--subtle);
  padding: 22px;
  overflow: auto;
  border-radius: 4px;
  font-size: 14px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.article-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.article-list h2 {
  margin: 0;
  font-size: 22px;
}
.article-list h2 a {
  color: var(--text);
  text-decoration: none;
}
.article-list p {
  margin: 8px 0;
  color: var(--muted);
}
.block-columns,
.block-gallery {
  display: grid;
  gap: 24px;
}
.columns-2,
.block-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.spacer-small {
  height: 16px;
}
.spacer-medium {
  height: 40px;
}
.spacer-large {
  height: 72px;
}
.content-fields {
  font-size: 15px;
  margin-top: 40px;
}
.content-fields > div {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  font-weight: 600;
  min-width: 130px;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.site-search label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}
.site-search > div {
  display: flex;
  gap: 8px;
}
.site-search input {
  min-width: 0;
  flex: 1;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  background: var(--surface);
  padding: 8px;
  clip-path: inset(100%);
}
.skip-link:focus {
  clip-path: none;
}
.preview-notice {
  padding: 10px 20px;
  text-align: center;
  background: var(--subtle);
  font-size: 13px;
}
.site-footer > .block-text {
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
}
.site-footer > .block-text a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}
.site-footer > .block-text a:hover,
.site-footer > .block-text a:focus-visible {
  color: color-mix(in srgb, currentColor 80%, var(--text));
  text-decoration: none;
}
.site-footer > .block-text strong {
  font-weight: var(--bracten-wordmark-weight);
  letter-spacing: var(--bracten-wordmark-tracking);
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #171717;
    --text: #e6e6e6;
    --accent: #eeeeee;
  }
}
@media (max-width: 640px) {
  :root {
    --site-gutter: 20px;
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-header ul {
    gap: 16px;
  }
  .prose {
    margin-block: 32px;
  }
  .block-columns {
    grid-template-columns: 1fr;
  }
  .content-fields > div {
    display: block;
  }
  .site-search > div {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer > .block-text a {
    transition: none;
  }
}
