.pop.menu-sheet { top: var(--sheet-top, 0px); left: var(--sheet-side, 0px); right: var(--sheet-side, 0px); bottom: auto; width: auto; height: auto; min-width: 0; max-height: calc(100dvh - var(--sheet-top, 0px) - 12px); padding: 0 0 max(14px, env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--sheet-radius, 0 0 22px 22px); transform-origin: 50% 0; transition-duration: .28s; transition-timing-function: cubic-bezier(.2, .7, .2, 1); } .pop.menu-sheet:not(:popover-open) { translate: 0 -8px; scale: .985; } @starting-style { .pop.menu-sheet:popover-open { translate: 0 -8px; scale: .985; } } .menu-sheet:popover-open { display: flex; flex-direction: column; } .menu-sheet::backdrop { background: rgba(13, 24, 66, .46); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .28s ease, display .28s allow-discrete, overlay .28s allow-discrete; } .menu-sheet:not(:popover-open)::backdrop { opacity: 0; } @starting-style { .menu-sheet:popover-open::backdrop { opacity: 0; } } html:has(.menu-sheet:popover-open) { overflow: hidden; } body:has(.menu-sheet:popover-open) > :not(.nav), .nav:has(.menu-sheet:popover-open) :is(.wordmark, .nav-links, .nav-right > :not(.menu-sheet)) { interactivity: inert; } .sheet-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--sheet-row, 72px); padding-inline: var(--sheet-pad-l, var(--gutter)) var(--sheet-pad-r, var(--gutter)); } .sheet-logo { display: inline-flex; align-items: center; min-height: 44px; font: 500 1.8rem/1 var(--serif); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; } .sheet-logo .wm { display: inline-flex; align-items: baseline; } .sheet-logo .i, .sheet-logo .star-end { position: relative; } .sheet-logo .i svg { position: absolute; left: 50%; top: -.02em; width: .34em; height: .34em; translate: -50% 0; color: var(--accent); } .sheet-logo .star-end svg { width: .34em; height: .34em; margin-left: .05em; color: var(--accent); } .sheet-title { display: none; font: 600 1rem/1 var(--sans); color: var(--muted); } .sheet-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s ease, scale .2s ease; } .sheet-close svg { width: 22px; height: 22px; } .sheet-close:active { scale: .92; } .sheet-close:focus-visible, .menu-sheet a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; } .sheet-links { display: grid; padding: 4px calc(var(--sheet-pad-l, var(--gutter)) - 12px) 10px; } .menu-sheet .sheet-links a { min-height: 52px; padding: .5rem 12px; font: 600 1.125rem/1.2 var(--sans); letter-spacing: -.005em; } .sheet-lang { margin-inline: var(--sheet-pad-l, var(--gutter)); padding: 14px 0 4px; border-top: 1px solid var(--line); } .sheet-lang p { display: flex; align-items: center; gap: .5rem; margin: 0 0 10px; font: 500 .875rem/1.2 var(--sans); color: var(--muted); } .sheet-lang p svg { flex: none; width: 18px; height: 18px; } .sheet-lang ul { display: flex; flex-wrap: wrap; gap: 8px; } .menu-sheet .sheet-lang a { min-height: 44px; padding: 0 .95rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font: 500 .9375rem/1.2 var(--sans); translate: none; } .menu-sheet .sheet-lang a[aria-current="true"] { font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent); } .sheet-actions { display: grid; gap: 10px; margin-top: 10px; padding: 0 var(--sheet-pad-l, var(--gutter)); } .menu-sheet .sheet-cta { display: flex; min-height: 52px; padding: .8rem 1.25rem; font-size: 1.0625rem; } .menu-sheet .sheet-signin { justify-content: center; min-height: 48px; padding: .5rem 1.25rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font: 600 1rem/1.2 var(--sans); translate: none; } .menu-sheet .sheet-signin:active, .menu-sheet .sheet-lang a:active, .menu-sheet .sheet-links a:active { background: var(--stone); } @media (min-width: 600px) { .pop.menu-sheet { left: auto; width: min(24rem, calc(100vw - 2 * var(--sheet-side, 0px))); transform-origin: 100% 0; } .sheet-logo { display: none; } .sheet-title { display: block; } } @media (hover: hover) { .sheet-close:hover { background: var(--stone); } }
