.diana-header,
.diana-menu {
  --nav-blue: var(--_colors---background-color--bg-primary);
  --nav-ink: var(--_colors---text-color--text-primary-color);
  --nav-paper: var(--_colors---background-color--bg-secondary);
  --nav-line: rgb(255 255 255 / 36%);
  --nav-height: 93px;
  --nav-gutter: clamp(20px, 3.5vw, 48px);
  --nav-ui-font: var(--_typography---font--body-font);
  --nav-heading-font: var(--_typography---font--heading-font);
  --nav-wipe: cubic-bezier(.76, 0, .24, 1);
  --nav-rise: cubic-bezier(.22, 1, .36, 1);
}

.diana-nav-container {
  width: min(1280px, calc(100% - 2 * var(--nav-gutter)));
  margin-inline: auto;
}

.diana-header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgb(0 0 0 / 12%);
  background: var(--nav-paper);
  color: var(--nav-ink);
}

.diana-header-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: calc(var(--nav-height) - 1px);
}

.diana-nav-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.diana-nav-brand img {
  display: block;
  width: 128px;
  height: auto;
}

.diana-header-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 2.45vw, 40px);
}

.diana-header-links a,
.diana-header-cta,
.diana-menu-toggle,
.diana-menu-close,
.diana-menu-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--nav-ui-font);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .095em;
  text-transform: uppercase;
  text-decoration: none;
}

.diana-header-links a {
  color: inherit;
  text-underline-offset: 6px;
}

.diana-header-links a:hover {
  color: var(--nav-blue);
  text-decoration: underline;
}

.diana-header-cta,
.diana-menu-cta {
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid currentColor;
}

.diana-header-cta {
  justify-self: end;
  color: var(--nav-paper);
  background: var(--nav-ink);
  text-align: left;
}

.diana-header-cta:hover {
  background: var(--nav-blue);
}

.diana-nav-arrow {
  flex: none;
  font-size: 1rem;
  line-height: 1;
  transition: transform 200ms var(--nav-rise);
}

.diana-header-cta:hover .diana-nav-arrow,
.diana-menu-cta:hover .diana-nav-arrow {
  transform: translate(2px, -2px);
}

.diana-menu-toggle,
.diana-menu-close {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.diana-menu-toggle {
  display: none;
  grid-template-rows: auto minmax(min-content, 1fr) auto;
  justify-self: end;
}

html:has(.diana-menu[open]) {
  overflow: hidden;
}

.diana-menu {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--nav-blue);
  color: var(--nav-paper);
  clip-path: inset(0 0 0 100%);
  pointer-events: none;
  transition: clip-path 500ms var(--nav-wipe), display 500ms allow-discrete, overlay 500ms allow-discrete;
}

.diana-menu[open] {
  display: grid;
  clip-path: inset(0);
  pointer-events: auto;
}

@starting-style {
  .diana-menu[open] { clip-path: inset(0 0 0 100%); }
}

.diana-menu::backdrop {
  background: transparent;
}

.diana-menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-height);
  border-bottom: 1px solid var(--nav-line);
}

.diana-menu-bar .diana-nav-brand img {
  filter: brightness(0) invert(1);
}

.diana-menu-links {
  align-self: center;
  padding-block: clamp(28px, 7vh, 76px);
}

.diana-menu-links ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.diana-menu-links li {
  border-bottom: 1px solid var(--nav-line);
  overflow: hidden;
}

.diana-menu-links li:nth-child(2) { --row-delay: 55ms; }
.diana-menu-links li:nth-child(3) { --row-delay: 110ms; }

.diana-menu-links a {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 24px);
  padding-block: 12px 16px;
  color: var(--nav-paper);
  text-decoration: none;
  animation: diana-menu-row 430ms var(--nav-rise) calc(140ms + var(--row-delay, 0ms)) both;
}

@keyframes diana-menu-row {
  from { transform: translateY(105%); }
  to { transform: translateY(0); }
}

.diana-menu-index {
  flex: none;
  min-width: 20px;
  font: 600 .75rem/1 var(--nav-ui-font);
  font-variant-numeric: tabular-nums;
}

.diana-menu-label {
  font: 400 clamp(35px, 7.3vw, 76px)/1.02 var(--nav-heading-font);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.diana-menu-links a:hover .diana-menu-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .12em;
}

.diana-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-block: 16px max(28px, env(safe-area-inset-bottom));
  animation: diana-menu-foot 350ms var(--nav-rise) 260ms both;
}

@keyframes diana-menu-foot {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.diana-menu-cta {
  min-height: 52px;
  color: var(--nav-ink);
  background: var(--nav-paper);
  border-color: var(--nav-paper);
}

.diana-menu-cta:hover {
  color: var(--nav-paper);
  background: transparent;
}

.diana-menu-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  font-size: .875rem;
}

.diana-menu-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.diana-menu-contact a:hover { text-decoration: underline; }

.diana-menu :is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.diana-menu-links a:focus-visible { outline-offset: -4px; }
.diana-menu-links a:focus-visible,
.diana-menu-foot:focus-within { animation: none; }

@media (max-width: 1200px) {
  .diana-header-bar { grid-template-columns: 1fr auto auto; }
  .diana-header-links { display: none; }
  .diana-menu-toggle { display: inline-flex; }
}

@media (max-width: 700px) {
  .diana-header,
  .diana-menu { --nav-height: 96px; }
  .diana-header-bar { grid-template-columns: 1fr auto; }
  .diana-header-cta { display: none; }
  .diana-menu-label { font-size: clamp(34px, 10vw, 48px); }
  .diana-menu-foot { align-items: flex-start; flex-direction: column; }
}

@media (480px <= width <= 991px) {
  #about-me, #service, #contact { scroll-margin-top: 3.5rem; }
}

@media (max-width: 479px) {
  .diana-header { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  .diana-menu,
  .diana-nav-arrow { transition: none; }
  .diana-menu-links a,
  .diana-menu-foot { animation: none; }
}
