* {
    box-sizing: border-box;
}

:root {
    --sans: "Microsoft YaHei", "PingFang SC", sans-serif;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
}

.sheet {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

h1,
figure {
    margin: 0;
}

.sunny {
    --paper: #edf4f1;
    --ink: #0b3b4b;
}

.brand {
    position: absolute;
    top: 4.5%;
    left: 5.8%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: clamp(13px, 1.4vw, 20px);
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.2;
}

.mark {
    position: relative;
    display: inline-block;
    flex: none;
    width: 1.54em;
    height: 1.54em;
    border: 1.5px solid;
    border-radius: 50%;
}

.mark::before {
    position: absolute;
    bottom: 21%;
    left: 24%;
    width: 50%;
    height: 42%;
    background: currentColor;
    clip-path: polygon(48% 0, 48% 79%, 0 79%, 66% 3%, 100% 80%, 54% 80%, 54% 0);
    content: "";
}

.hero {
    position: absolute;
    z-index: -1;
    inset: 12% 0 9%;
    overflow: hidden;
    background: #2b6177;
}

.hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 56% 53%;
}

.hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 26, 46, .52), transparent 55%);
    content: "";
}

.sunny h1 {
    position: absolute;
    left: 7.3%;
    bottom: 15.5%;
    color: white;
    font-size: clamp(62px, min(8vw, 14vh), 150px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.075em;
    text-shadow: 0 1px 10px #092c492e;
}

.sunny h1 span {
    display: inline-block;
}

.deco {
    position: absolute;
    right: 6%;
    top: 6.3%;
    width: 8%;
    height: 11px;
    border-top: 2px solid;
    border-bottom: 1px solid;
    transform: skewX(-35deg);
    pointer-events: none;
}

.record {
    position: absolute;
    bottom: max(2.8%, env(safe-area-inset-bottom, 0px));
    left: 5.8%;
    right: 5.8%;
    z-index: 5;
    text-align: center;
    font: 500 clamp(13px, 1.03vw, 16px)/1.35 var(--sans);
    letter-spacing: .04em;
}

.record a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.record a:hover,
.record a:focus-visible {
    text-decoration: underline;
}

.lunar {
    --paper: #e9e9e6;
    --ink: #2c3133;
}

.code {
    position: absolute;
    left: 50%;
    top: 16%;
    transform: translateX(-50%);
    display: flex;
    gap: .035em;
    align-items: center;
    font: 400 clamp(165px, min(18vw, 34vh), 310px)/1 Georgia, "Times New Roman", serif;
    letter-spacing: -.08em;
}

.moon {
    position: relative;
    width: .66em;
    height: .66em;
    border: 1px solid #43494a;
    border-radius: 50%;
    margin-left: .045em;
    margin-right: .04em;
    overflow: hidden;
    background: radial-gradient(circle, #303639 45%, transparent 52%) 0 0/5px 5px;
}

.moon::after {
    position: absolute;
    top: -6%;
    left: 34%;
    width: 100%;
    height: 112%;
    background: var(--paper);
    border-radius: 50%;
    border-left: 1px solid #787c7b;
    content: "";
}

.orbit {
    position: absolute;
    left: 13%;
    right: 13%;
    top: 46%;
    z-index: -1;
    height: 1px;
    background: #b8bcb6;
}

.orbit::before,
.orbit::after {
    position: absolute;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #858c87;
    content: "";
}

.orbit::before {
    left: 0;
}

.orbit::after {
    right: 0;
}

.content {
    position: absolute;
    left: 0;
    right: 0;
    top: 56%;
    z-index: 2;
    text-align: center;
}

.content h1 {
    font: 500 clamp(27px, 2.8vw, 44px)/1.35 var(--sans);
    letter-spacing: .15em;
}

.back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    min-height: 48px;
    min-width: 136px;
    margin-top: 27px;
    color: inherit;
    font: 600 clamp(14px, 1.18vw, 18px)/1 var(--sans);
    text-decoration: none;
    border: 1px solid;
    border-radius: 36px;
}

.back::before {
    width: 1.04em;
    height: .7em;
    background: currentColor;
    clip-path: polygon(0 50%, 40% 0, 49% 13%, 25% 41%, 100% 41%, 100% 59%, 25% 59%, 49% 87%, 40% 100%);
    content: "";
}

@media (max-width: 600px) {
    .brand { left: 7%; font-size: 15px; }
    .hero { inset: 12% 0 11.5%; }
    .hero img { object-position: 56% 52%; }
    .sunny h1 { bottom: 19%; left: 7%; width: 2.2em; font-size: clamp(52px, 15vw, 90px); line-height: 1.08; }
    .sunny h1 span { display: block; }
    .deco { right: 7%; width: 12%; }
    .record { left: 5%; right: 5%; bottom: max(3.1%, env(safe-area-inset-bottom, 0px)); font-size: 13px; }
    .code { top: 28%; font-size: clamp(132px, 35vw, 196px); }
    .content { top: 53%; }
    .orbit { left: 5%; right: 5%; top: 42%; }
}

@media (max-height: 460px) and (orientation: landscape) {
    .code { top: 9%; font-size: clamp(72px, 29vh, 132px); }
    .orbit { top: 42%; }
    .content { top: 49%; }
    .back { margin-top: 12px; }
}
