/* Le Black — brand tokens pulled from the original theme.json / global styles */
:root {
  --color-base: #fff50e;
  --color-contrast: #000000;
  --color-primary: #2d2d03;

  --font-family: "Commissioner", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-size-x-small: 0.833rem;
  --font-size-small: clamp(0.833rem, 0.833rem + ((1vw - 0.2rem) * 0.304), 1rem);
  --font-size-medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.364), 1.2rem);
  --font-size-large: clamp(1.2rem, 1.2rem + ((1vw - 0.2rem) * 0.436), 1.44rem);
  --font-size-x-large: clamp(1.44rem, 1.44rem + ((1vw - 0.2rem) * 0.524), 1.728rem);
  --font-size-xx-large: clamp(1.728rem, 1.728rem + ((1vw - 0.2rem) * 0.629), 2.074rem);

  --space-30: 0.75rem;
  --space-40: 1rem;
  --space-50: 1.5rem;
  --space-60: 2rem;
  --space-70: 3rem;
  --space-80: 4.5rem;

  --content-size: 600px;
  --wide-size: 1200px;
}

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("fonts/commissioner-400.otf") format("opentype");
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 500;
  font-display: fallback;
  src: url("fonts/commissioner-500.otf") format("opentype");
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: url("fonts/commissioner-700.otf") format("opentype");
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 800;
  font-display: fallback;
  src: url("fonts/commissioner-800.otf") format("opentype");
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0 var(--space-50);
  background-color: var(--color-base);
  color: var(--color-contrast);
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site {
  max-width: var(--wide-size);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: var(--space-70) 0;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  width: 423px;
}

h1, h2, h3, h4, h5, h6 {
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-50);
}

h1 { font-size: var(--font-size-xx-large); }
h2 { font-size: var(--font-size-x-large); }
h3 { font-size: var(--font-size-large); }
h4 { font-size: var(--font-size-medium); }

p {
  line-height: calc(1em + 0.5rem);
}

/* Home page */
body.home .site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.home main {
  container-type: inline-size;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-60) 0;
}

.hero-title {
  text-align: center;
  font-size: clamp(2rem, 9cqw, 6rem);
  font-weight: 800;
  letter-spacing: clamp(0.05em, 1.5cqw, 0.25em);
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0 0 var(--space-60);
}

.post-link {
  text-align: center;
  font-size: var(--font-size-small);
  font-weight: 500;
}

.post-link a {
  text-decoration: none;
}

.post-link a:hover {
  text-decoration: underline;
}

/* Content pages */
.article {
  max-width: var(--content-size);
  margin: var(--space-50) auto var(--space-80);
}

.article-title {
  text-align: center;
  font-size: var(--font-size-x-large);
  font-weight: 700;
}

.article-content {
  margin-top: var(--space-70);
}

.article-content ul,
.article-content ol {
  padding-left: var(--space-40);
}

.article-content li {
  margin-top: var(--space-40);
}

.article-content li:first-child {
  margin-top: 0;
}

.article-content ul ul,
.article-content ol ul,
.article-content ul ol,
.article-content ol ol {
  margin-top: var(--space-40);
}

/* Footer */
.site-footer {
  padding: 0 0 var(--space-50);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--space-30);
  font-size: 0.69rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  margin-top: var(--space-40);
  font-size: 0.69rem;
}
