/* PANEOTECH delivery portal index
   Colours and typefaces follow Brand-Standards/assets/developers/paneotech-tokens.json */

@font-face {
  font-family: Inter;
  src: url('Brand-Standards/assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Spectral;
  src: url('Brand-Standards/assets/fonts/Spectral-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Spectral;
  src: url('Brand-Standards/assets/fonts/Spectral-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #1E305F;
  --navy-deep: #162448;
  --teal: #296F8A;
  --tint: #F2F4F8;
  --rule: #DCE1EA;
  --muted: #5A6683;
  --sans: Inter, Arial, Helvetica, sans-serif;
  --serif: Spectral, Georgia, serif;
  --page: 1080px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

a { color: var(--navy); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #FFFFFF;
  color: var(--navy);
  padding: .75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Masthead */

.masthead {
  background: var(--navy);
  color: #FFFFFF;
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2.75rem, 8vw, 5rem);
}
.masthead a { color: #FFFFFF; }

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.mark img {
  display: block;
  width: clamp(148px, 20vw, 196px);
  height: auto;
}

.lang { display: flex; gap: .25rem; }
.lang button {
  min-height: 36px;
  padding: .3rem .75rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: .8125rem;
  cursor: pointer;
  border-radius: 3px;
}
.lang button[aria-pressed="true"] {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}
.masthead .lang button {
  border-color: rgba(255, 255, 255, .4);
  color: #FFFFFF;
}
.masthead .lang button[aria-pressed="true"] {
  background: #FFFFFF;
  color: var(--navy);
  border-color: #FFFFFF;
}

.masthead h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 6.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 1rem;
  max-width: 20ch;
}

.lede {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: rgba(255, 255, 255, .82);
}

.release {
  margin: clamp(1.75rem, 5vw, 2.5rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: .875rem;
  color: rgba(255, 255, 255, .7);
}
.release span { color: #FFFFFF; }

/* Directory */

.directory { padding-block: clamp(2.5rem, 7vw, 4.5rem); }

.section-intro {
  max-width: 62ch;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  color: var(--muted);
}

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.entries li { border-bottom: 1px solid var(--rule); }

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .5rem 2rem;
  padding: clamp(1.5rem, 3.6vw, 2.25rem) .75rem;
  margin-inline: -.75rem;
  text-decoration: none;
  color: inherit;
  transition: background-color .16s ease;
}
.entry:hover { background: var(--tint); }
.entry:hover .entry-name { color: var(--teal); }

.entry-name {
  grid-column: 1;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  line-height: 1.2;
  margin: 0;
  transition: color .16s ease;
}
.entry-note {
  grid-column: 1;
  margin: .35rem 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: .9375rem;
}
.entry-path {
  grid-column: 2;
  grid-row: 1;
  font-size: .8125rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Notes */

.notes {
  padding-block: 0 clamp(3rem, 8vw, 5rem);
}
.panel {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  background: var(--tint);
  padding: clamp(1.5rem, 3.5vw, 2rem);
}
.panel h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0 0 .85rem;
}
.panel p {
  margin: 0 0 .85rem;
  max-width: 72ch;
  font-size: .9375rem;
}
.panel p:last-child { margin-bottom: 0; }

/* Asset pages */

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.head-row h1 { margin-bottom: 0; }

.page-head { padding-block: clamp(2.25rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2.25rem); }
.back {
  display: inline-block;
  font-size: .875rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.back:hover { color: var(--teal); text-decoration: underline; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 4.6vw, 2.75rem);
  line-height: 1.14;
  margin: 0 0 .75rem;
}
.page-head p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

.group {
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.group h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 .4rem;
}
.group > p {
  margin: 0 0 1.5rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: .9375rem;
}

.files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.files a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--rule);
  background: #FFFFFF;
  text-decoration: none;
  font-size: .9375rem;
  transition: border-color .16s ease, background-color .16s ease;
}
.files a:hover { border-color: var(--navy); background: var(--tint); }
.files .kind {
  color: var(--muted);
  font-size: .75rem;
  white-space: nowrap;
}

.preview {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--tint);
  border: 1px solid var(--rule);
}
.preview img { display: block; max-width: 180px; height: auto; }
.preview.on-navy { background: var(--navy); border-color: var(--navy); }

footer {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  font-size: .875rem;
  color: var(--muted);
}
footer p { margin: 0 0 .4rem; max-width: 72ch; }
footer a { color: var(--navy); }

@media (max-width: 640px) {
  .entry { grid-template-columns: minmax(0, 1fr); }
  .entry-path { grid-column: 1; grid-row: auto; margin-top: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.preview.square img { max-width: 116px; }

.swatches {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
}
.swatches li { border: 1px solid var(--rule); }
.swatches .chip { height: 84px; }
.swatches .meta { padding: .65rem .8rem; font-size: .8125rem; line-height: 1.45; }
.swatches .meta strong { display: block; font-weight: 600; }
.swatches .meta span { color: var(--muted); }
