html {
    font-size: 16px;
    height: -webkit-fill-available;
}

@media (prefers-color-scheme: light) {

    body,
    #dialog {
        background: #fff;
        color: #000;
    }

}

@media (prefers-color-scheme: dark) {

    body,
    #dialog,
    footer select {
        background: #000;
        color: #fff;
    }

}

#info h3 small {
    background: #000;
    color: #fff;
}

* {
    box-sizing: border-box;
}

ul li {
    list-style: inside none;
}

hr {
    border: none;
    clear: both;
    padding: 0;
    margin: 0.25rem;
}

@font-face {
    font-family: "San Francisco";
    src: url("font/Compact-Text-Regular.otf"),
        url("font/UI-Display-Regular.otf");
}

@font-face {
    font-family: "New York";
    src: url('font/NewYork.otf');
    font-weight: 300;
    font-style: normal;
}

body {
    display: grid;
    font-family: -apple-system, 'San Francisco', 'BlinkMacSystemFont', 'Hiragino Kaku Gothic ProN', 'メイリオ', Sans-Serif;
    min-height: -webkit-fill-available;
}

h2 i,
ruby i,
.newyork {
    font-family: 'New York', Times, serif;
}

code {
    font-family: inherit;
}

body,
h1,
ul,
footer h3,
footer p,
footer ol,
button {
    padding: 0;
    margin: 0;
}

h2,
ul li {
    padding: 0;
    margin: 0.5rem 0;
}

header,
#info section {
    padding: 0.5rem;
    margin: 0;
}

#info section div {
    padding: 0;
    margin: 1rem 0;
}

footer {
    padding: 0.5rem;
    margin: 0;
}

footer details {
    padding: 0;
    margin: 0.5rem 0 0;
}

ul li time {
    padding: 0.25rem 0.5rem 0.25rem 0;
}

ul li a,
ul li u,
ul li strong,
ul li small {
    padding: 0.25rem 0.25rem 0.25rem 0;
}


#newArrivals li:nth-child(n+4) {
    display: none;
}

#newArrivals.all li {
    display: block;
}

#newArrivals button::before {
    content: "View All";
}

#newArrivals.all button::before {
    content: "Close";
}

footer details section {
    padding: 0;
    margin: 0.5rem 0 0;
}

button,
select,
a {
    appearance: none;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-weight: 600;
}

select {
    font-size: inherit;
}

button {
    border: none;
    outline: none;
}

button:hover {
    cursor: pointer;
}

select,
a.button,
button.button {
    border: 0.1rem solid;
    border-radius: 50%;
    display: inline-block;
    padding: 0.25rem 1rem;
    outline: none;
    text-align: center;
}

a.button {
    text-decoration: none;
}

#info nav button,
#back {
    font-size: 300%;
    text-shadow: 0.2rem 0.2rem #fff;
}

h2,
#info section button {
    font-size: 200%;
}

footer summary,
footer ul,
footer ul li,
h3,
h3 code {
    font-size: 125%;
}

footer b,
ul li a {
    font-size: 111%;
}

h1,
header button {
    font-size: 100%;
    font-weight: 600;
    line-height: 150%;
}

#text,
ul li u,
a.button {
    font-size: 90%;
}

footer h2 i,
ul li time {
    font-size: 75%;
}

h3 code {
    -webkit-text-stroke: 0.075rem #000;
    text-stroke: 0.075rem #000;
}

footer h2 b {
    font-weight: 600;
}

footer h2,
footer h3,
ul li strong {
    font-weight: 500;
}

#info section {
    color: #000;
    mix-blend-mode: difference;
    filter: contrast(200%);
}

#info section h2,
#info section h3,
#info section button {
    filter: invert();
}

#info section button {
    text-decoration: underline;
}

header,
footer,
footer #log {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.5rem 0.25rem;
}

header {
    background: #fff;
    color: #000;
    position: sticky;
    top: 0;
    z-index: 1;
    place-self: start;
}

footer,
footer #log {
    flex-flow: wrap;
}


hr,
header,
footer,
footer h2,
footer ul,
footer details {
    width: 100%;
}

#info {
    border-radius: 2rem;
    background: #fff;
    background-position: center;
    background-size: contain;
    width: 90%;
    height: 90%;
    max-width: 100%;
    max-height: 100%;
    z-index: 5;
}

#info section div p {
    display: inline;
    background: #fff;
}

#info nav,
#back {
    position: absolute;
    bottom: 0.5rem;
    z-index: 5;
}

#info nav {
    left: 0.5rem;
}

#back {
    right: 1rem;
}

@media screen and (max-width: 555px) {

    #info,
    footer {
        font-size: 3vw;
    }
}