:root {
    --color-text: #363535;
    --color-logo: #FF6B6B;
    --color-muted: #6f6868;
    --color-bg: #ffffff;
    --color-surface: #f4f3f3;
    --color-line: #e7e5e5;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 32px;
    --space-4: 48px;
    --control-height: 44px;
    --icon-size: 1.25rem;
    --page-width: 1120px;
    --font: "Pretendard", "Noto Sans KR", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: clip;
    overscroll-behavior-x: none;
    max-width: 100%;
    margin: 0;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
    touch-action: manipulation;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

button,
input,
textarea,
select {
    font: inherit;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23363535' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-2) center;
    background-size: 1.125rem;
}

h1,
h2,
p,
ul,
dl,
dd {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

.skip {
    position: absolute;
    left: var(--space-2);
    top: var(--space-1);
    transform: translateY(-150%);
    min-height: var(--control-height);
    padding: 0 var(--space-2);
    display: inline-flex;
    align-items: center;
    background: var(--color-text);
    color: var(--color-bg);
    z-index: 2;
}

.skip:focus {
    transform: none;
}

.wrap {
    width: 100%;
    max-width: var(--page-width);
    margin-inline: auto;
    padding-inline: var(--space-2);
}

.page {
    flex: 1;
}
