/* A&PS Service Navigator — base styles */

@font-face {
  font-family: "HPE Graphik";
  src: url("fonts/HPE-Graphik-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HPE Graphik";
  src: url("fonts/HPE-Graphik-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HPE Graphik";
  src: url("fonts/HPE-Graphik-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:    #FFFFFF;
  --paper-2:  #F6F7F8;
  --paper-3:  #ECEEF0;
  --ink:      #292D3A;
  --ink-2:    #535C66;
  --ink-3:    #5F6770;
  --silver:   #B1B9BE;
  --rule:     rgba(41, 45, 58, 0.12);
  --rule-soft: rgba(41, 45, 58, 0.06);

  --accent:        #00805F;
  --accent-soft:   rgba(0, 128, 95, 0.10);
  --accent-warm:   #C45A38;

  --serif: "HPE Graphik", "Helvetica Neue", Arial, sans-serif;
  --sans:  "HPE Graphik", "Helvetica Neue", Arial, sans-serif;
  --mono:  "HPE Graphik", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --gut:  clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; }

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ─── Masthead ──────────────────────────────────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--rule);
}
.masthead__row {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gut);
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
}
.masthead__brand { min-width: 0; }
.masthead__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.masthead__sub {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masthead__nav {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
@media (max-width: 800px) {
  .masthead__nav { display: none; }
}
.masthead__nav a {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.masthead__nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.masthead__meta { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.masthead__issue {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink-2);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Colophon ─────────────────────────────────────────────────────────── */
.colo {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--gut) 56px;
}
.colo__rule { height: 1px; background: var(--ink); margin-bottom: 20px; }
.colo__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.colo__brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.colo__meta { color: var(--ink-3); }
.colo__type { color: var(--ink-3); margin-top: 18px; font-size: 0.65rem; }

::selection { background: var(--accent); color: var(--paper); }
