/* shared logo settings for the home page and project pages */
/* Local fonts first; font-loader.js adds Google Fonts only on failure. */
@font-face {
  font-family: 'DM Mono';
  src: url('./fonts/DMMono-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('./fonts/DMMono-Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

/* Shared text scale for home, dialogs, slot machine, and snake. */
:root {
  --body-size: 1rem;
  --meta-size: .8125rem;
  --control-size: .875rem;
  --body-leading: 1.7;
  --meta-leading: 1.6;
  --control-leading: 1.4;
  --site-width: 1600px;
  --logo-top: 40px;
  --logo-left: 30px;
  --logo-size: 37px;
  --logo-color: #e2eae7;
  --logo-accent: #96c8a2;
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: max-content;
  margin: 0;
  padding: 0;
  color: var(--logo-color);
  font-family: 'DM Mono', 'Cascadia Code', 'Courier New', monospace;
  font-size: var(--logo-size);
  font-weight: 500;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: -5px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.wordmark span { color: var(--logo-accent); }
.wordmark::after {
  content: '';
  position: absolute;
  inset: -7px;
  min-width: 44px;
  min-height: 44px;
}
.wordmark:focus-visible { outline: 2px solid var(--logo-accent); outline-offset: 6px; }

/* same page margin as the home sidebar, including its centred wide layout */
.brand-home {
  position: absolute;
  top: var(--logo-top);
  left: max(var(--logo-left), calc((100% - var(--site-width)) / 2 + var(--logo-left)));
}

@media (max-width: 1100px) {
  :root { --logo-top: 33px; --logo-left: 24px; }
}
@media (max-width: 760px) {
  :root { --logo-top: 22px; --logo-left: 22px; --logo-size: 30px; }
  .wordmark { align-self: auto; }
}

