/* Instant Studio — shared site chrome.
   Header, footer, brand tokens and the Condensed face, used by both the
   Eleventy blog (blog-src/_includes/layouts/base.njk) and the static guide
   pages (guides/). Edit here, not in a copy: this file exists because the
   nav had already drifted between surfaces.
   Page fonts (DM Sans, DM Mono, Hubot Sans) come from /css/css. */

@font-face {
  font-family: "Hubot Sans Condensed";
  src: url("/fonts/6a0aaa22d554556ab5fff803_Hubot-Sans-Condensed.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hubot Sans Condensed";
  src: url("/fonts/HubotSans-Condensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hubot Sans Condensed";
  src: url("/fonts/HubotSans-Condensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent-primary: #ff6038;
  --accent-primary-dark: #e04c27;
  --accent-secondary: #d1b3ff;
  --accent-secondary-hover: #c09dfa;
  --bg-page: #fafafa;
  --bg-cream: #fff3ed;
  --ink: #101010;
  --ink-soft: #383838;
  --ink-muted: #606060;
  --line: #ededed;
  --on-lavender: #3d0f11;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Hubot Sans Condensed", "Hubot Sans", Arial, sans-serif;
  --font-mono: "DM Mono", monospace;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  background-color: var(--bg-page);
  background-image: radial-gradient(#e7e7e7 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */

.site-header {
  padding: 16px clamp(16px, 4vw, 48px) 0;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px 12px 24px;
  background: var(--accent-primary);
  border-radius: 16px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.navbar__brand img {
  display: block;
  height: 36px;
  width: auto;
}

.navbar__toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.navbar__toggle svg {
  display: block;
}

.navbar__menu {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.navbar__links {
  display: flex;
  align-items: center;
  flex: 1;
}

.navbar__links a {
  padding: 8px 16px;
  color: #ffe9e2;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}

.navbar__links a:hover,
.navbar__links a.is-active {
  color: #fff;
}

.navbar__links a.is-active {
  font-weight: 600;
}

.navbar__cta {
  flex-shrink: 0;
  padding: 12px 24px;
  background: var(--accent-secondary);
  color: var(--on-lavender);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius);
}

.navbar__cta:hover {
  background: var(--accent-secondary-hover);
}

@media (max-width: 960px) {
  .navbar {
    flex-wrap: wrap;
  }

  .navbar__toggle {
    display: block;
  }

  .navbar__menu {
    display: none;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 8px;
  }

  .navbar.is-open .navbar__menu {
    display: flex;
  }

  .navbar__links {
    flex: none;
    flex-direction: column;
    align-items: stretch;
  }

  .navbar__links a {
    padding: 12px 8px;
    font-size: 18px;
  }

  .navbar__cta {
    margin-top: 12px;
    text-align: center;
  }
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 24px;
  padding: 0 clamp(16px, 4vw, 48px) 20px;
}

.footer-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px clamp(24px, 4vw, 48px) 24px;
  background: var(--accent-primary);
  border-radius: 16px;
  color: #ffe9e2;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  display: block;
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 21px;
  color: #fff;
  margin: 16px 0 0;
  max-width: 320px;
  line-height: 1.2;
}

.footer-cols {
  display: flex;
  gap: clamp(40px, 8vw, 96px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 4px;
}

.footer-col a {
  color: #ffe9e2;
  text-decoration: none;
  font-size: 16px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-socials a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-socials a:hover {
  color: #fff;
}
