/* Hatchseal.com site chrome — drop-in header + footer.
   Light and night themes. Pair with header.html and footer.html.
   Font files live in assets/fonts/ relative to this stylesheet.
   Prefix: hs-  so this can sit beside the existing Hatchseal page styles. */

@font-face{
  font-family:"Space Grotesk";
  font-weight:300 700;
  font-display:swap;
  src:url("assets/fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
}
@font-face{
  font-family:"IBM Plex Sans";
  font-weight:400;
  font-display:swap;
  src:url("assets/fonts/plexsans-400.ttf") format("truetype");
}
@font-face{
  font-family:"IBM Plex Sans";
  font-weight:500;
  font-display:swap;
  src:url("assets/fonts/plexsans-500.ttf") format("truetype");
}
@font-face{
  font-family:"IBM Plex Sans";
  font-weight:600;
  font-display:swap;
  src:url("assets/fonts/plexsans-600.ttf") format("truetype");
}
@font-face{
  font-family:"IBM Plex Sans";
  font-weight:700;
  font-display:swap;
  src:url("assets/fonts/plexsans-700.ttf") format("truetype");
}

:root, [data-theme="night"]{
  --hs-void:#06080e;
  --hs-header-bg:rgba(6, 8, 14, 0.88);
  --hs-footer-bg:rgba(6, 8, 14, 0.94);
  --hs-text:#e8edf5;
  --hs-text-soft:#c5ccd8;
  --hs-text-dim:#9aa5b8;
  --hs-teal:#8fd4e8;
  --hs-teal-bright:#4ec8e8;
  --hs-focus:#4ec8e8;
  --hs-line:rgba(150, 170, 200, 0.22);
  --hs-line-strong:rgba(150, 170, 200, 0.34);
  --hs-amber:#f0a31a;
  --hs-amber-bright:#ffc14d;
  --hs-ink:#1a1306;
  --hs-menu-bg:#0c101a;
}

[data-theme="light"]{
  --hs-void:#f3f6fa;
  --hs-header-bg:rgba(243, 246, 250, 0.90);
  --hs-footer-bg:#eef2f7;
  --hs-text:#101a28;
  --hs-text-soft:#2a384b;
  --hs-text-dim:#4a576a;
  --hs-teal:#0b6670;
  --hs-teal-bright:#0b6670;
  --hs-focus:#0b6670;
  --hs-line:rgba(30, 50, 80, 0.18);
  --hs-line-strong:rgba(30, 50, 80, 0.34);
  --hs-amber:#8a4a00;
  --hs-amber-bright:#8a4a00;
  --hs-ink:#1a1306;
  --hs-menu-bg:#ffffff;
}

.hs-wrap{
  width:min(100% - 48px, 1120px);
  margin:0 auto;
}

.hs-skip{
  position:absolute;
  left:16px;
  top:12px;
  z-index:200;
  transform:translateY(-200%);
  background:var(--hs-focus);
  color:var(--hs-void);
  font:600 0.9rem/1 "IBM Plex Sans", "Segoe UI", sans-serif;
  padding:10px 14px;
  border-radius:8px;
  text-decoration:none;
}
.hs-skip:focus,
.hs-skip:focus-visible{
  transform:translateY(0);
  outline:2px solid var(--hs-text);
  outline-offset:3px;
}

.hs-header{
  position:sticky;
  top:0;
  z-index:90;
  background:var(--hs-header-bg);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--hs-line);
  color:var(--hs-text);
  font-family:"IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}
.hs-header .hs-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:72px;
}

.hs-brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:var(--hs-text);
  text-decoration:none;
  flex-shrink:0;
  border-radius:10px;
}
.hs-brand:hover{ color:var(--hs-text); text-decoration:none; }
.hs-brand img{
  width:40px;
  height:40px;
  display:block;
  border-radius:9px;
}
.hs-wordmark{
  font-family:"Space Grotesk", "Segoe UI", sans-serif;
  font-weight:700;
  font-size:1.25rem;
  letter-spacing:0.12em;
  line-height:1;
  text-transform:uppercase;
}

.hs-nav{
  display:flex;
  align-items:center;
  gap:8px 4px;
}
.hs-nav ul{
  display:flex;
  align-items:center;
  gap:8px 22px;
  list-style:none;
  margin:0;
  padding:0;
}
.hs-nav a{
  color:var(--hs-text-soft);
  font-size:0.95rem;
  font-weight:500;
  text-decoration:none;
  padding:8px 2px;
  border-radius:6px;
}
.hs-nav a:hover{ color:var(--hs-text); }

.hs-header a:focus-visible,
.hs-footer a:focus-visible,
.hs-menu-toggle:focus-visible,
.hs-menu summary:focus-visible{
  outline:2px solid var(--hs-focus);
  outline-offset:3px;
}

/* Mobile menu: details/summary, no JS required. */
.hs-menu{ display:none; position:relative; }
.hs-menu summary{
  list-style:none;
  cursor:pointer;
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  color:var(--hs-text);
  border:1px solid var(--hs-line);
  background:transparent;
}
.hs-menu summary::-webkit-details-marker{ display:none; }
.hs-menu summary svg{ display:block; }
.hs-menu .hs-icon-close{ display:none; }
.hs-menu[open] .hs-icon-menu{ display:none; }
.hs-menu[open] .hs-icon-close{ display:block; }
.hs-menu .hs-menu-panel{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width:220px;
  background:var(--hs-menu-bg);
  border:1px solid var(--hs-line-strong);
  border-radius:14px;
  box-shadow:0 16px 40px rgba(0,0,0,.35);
  padding:8px;
  z-index:100;
}
.hs-menu .hs-menu-panel a{
  display:block;
  color:var(--hs-text-soft);
  text-decoration:none;
  font-weight:500;
  font-size:1rem;
  padding:12px 14px;
  border-radius:8px;
  min-height:44px;
}
.hs-menu .hs-menu-panel a:hover{
  color:var(--hs-text);
  background:rgba(63, 182, 178, 0.10);
}

.hs-footer{
  border-top:1px solid var(--hs-line);
  background:var(--hs-footer-bg);
  color:var(--hs-text);
  font-family:"IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  padding:36px 0 40px;
}
.hs-footer .hs-wrap{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:16px 28px;
}
.hs-byline{
  margin:0;
  font-size:0.98rem;
  font-weight:500;
  color:var(--hs-text);
}
.hs-byline a{
  color:var(--hs-teal);
  text-decoration:none;
  font-weight:500;
}
.hs-byline a:hover{ text-decoration:underline; }

.hs-footer-nav ul{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 22px;
  list-style:none;
  margin:0;
  padding:0;
}
.hs-footer-nav a{
  color:var(--hs-text-soft);
  font-size:0.92rem;
  font-weight:500;
  text-decoration:none;
}
.hs-footer-nav a:hover{ color:var(--hs-text); }

.hs-x{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:36px;
  padding:6px 12px 6px 10px;
  color:var(--hs-text-soft);
  border:1px solid var(--hs-line);
  border-radius:999px;
  text-decoration:none;
  font-size:0.88rem;
  font-weight:500;
  white-space:nowrap;
}
.hs-x:hover,
.hs-x:focus-visible{
  color:var(--hs-text);
  border-color:var(--hs-teal-bright);
  text-decoration:none;
}

.hs-copy{
  margin:0 0 0 auto;
  color:var(--hs-text-dim);
  font-size:0.88rem;
}

@media (max-width:980px){
  .hs-wrap{ width:min(100% - 32px, 1120px); }
  .hs-nav{ display:none; }
  .hs-menu{ display:block; }
  .hs-header .hs-wrap{ min-height:64px; gap:12px; }
  .hs-wordmark{ font-size:1.05rem; letter-spacing:0.10em; }
  .hs-brand{ gap:10px; }
  .hs-brand img{ width:36px; height:36px; border-radius:8px; }
  .hs-copy{ margin-left:0; width:100%; }
}

@media (prefers-reduced-motion:reduce){
  .hs-header, .hs-skip{ transition:none; }
}
