/* The satin nav: a strip of black satin alone on a black page, with the name of the house and its links in Bodoni.
   The satin is a WebGL canvas behind the links; its colours are read from here by the script. */
:root {
  --page: #000000;                  /* the page */
  --satin: #17141b;                 /* the satin in its shadows */
  --sheen: #d9d0e2;                 /* the light sliding along the folds */
  --ivory: #f3ece2;                 /* the name and the page you are on */
  --muted: rgba(243, 236, 226, 0.6);/* the other links */
}

* {
  box-sizing: border-box;
}

html {
  touch-action: manipulation;
}

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  min-height: 100svh;
  background: var(--page);
  color: var(--ivory);
  font-family: 'Bodoni Moda Variable', 'Bodoni Moda', 'Didot', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 32px 16px;
}

/* ---------------------------------------------------------------- the bar */
.bar {
  position: relative;
  display: flex;
  align-items: center;
  width: min(760px, 100%);
  height: 60px;
  padding: 0 28px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--satin);
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.bar__satin {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
}

/* without WebGL: a soft sheen under the current page, placed by the script */
.no-gl .bar {
  background:
    radial-gradient(120px 46px at var(--glow-x, 30%) 50%, rgba(217, 208, 226, 0.22), transparent 70%),
    linear-gradient(180deg, #221e27, var(--satin));
}

.no-gl .bar__satin {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.brand {
  flex: none;
  margin-right: auto;
  padding: 6px 0;
}

.brand__word {
  display: block;
  font-size: 21px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-variation-settings: 'opsz' 28;
}

.brand__mark {
  display: none;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  font-variation-settings: 'opsz' 28;
}

.brand:focus-visible {
  box-shadow: 0 1px 0 0 var(--ivory);
}

/* ---------------------------------------------------------------- the links */
.list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link {
  position: relative;
  display: block;
  padding: 10px 2px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1;
  font-style: normal;
  font-weight: 420;
  letter-spacing: 0.02em;
  font-variation-settings: 'opsz' 14;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  transition: color 0.35s ease;
  user-select: none;
  -webkit-user-select: none;
}

.link[aria-current='page'] {
  color: var(--ivory);
}

@media (hover: hover) and (pointer: fine) {
  .link:hover {
    color: var(--ivory);
  }
}

.link:focus-visible::after {
  content: '';
  position: absolute;
  inset: 2px -8px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--ivory);
}

/* ---------------------------------------------------------------- a phone */
@media (max-width: 600px) {
  .bar {
    padding: 0 16px 0 18px;
  }

  .brand__word {
    display: none;
  }

  .brand__mark {
    display: block;
  }

  .brand {
    margin-right: 18px;
  }

  .nav {
    flex: 1;
    min-width: 0;
  }

  .list {
    justify-content: space-between;
    gap: 6px;
  }

  .link {
    font-size: 14px;
    padding: 12px 1px;
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link {
    transition: color 0.2s ease;
  }
}
