*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --page-bg:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 28%),
        radial-gradient(circle at bottom right, rgba(191, 219, 254, 0.38), transparent 36%),
        repeating-radial-gradient(circle at 20% 20%, rgba(15, 23, 42, 0.04) 0, rgba(15, 23, 42, 0.04) 0.7px, transparent 0.8px, transparent 20px),
        linear-gradient(135deg, #EFF6FF 0%, #F8FBFF 40%, #EAF2FF 100%);
}

body {
    margin: 0;
    padding: 10vh 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    font-family: "Source Serif 4", sans-serif;
    font-display: swap;
    color: #333;
    background-color: #EFF6FF;
    background-image: var(--page-bg);
    background-attachment: fixed;
}

.about-page {
    padding-top: 8vh;
}

.about-content {
    width: min(100%, 760px);
    color: #333;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
}

.about-content h1 {
    margin: 0 0 28px;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.1;
}

.about-content p {
    margin: 0 0 22px;
}

.about-content a {
    color: inherit;
    overflow-wrap: anywhere;
}

.close-link {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10;
    color: #333;
    font-size: 32px;
    line-height: 1;
    text-decoration: none;
}

.close-link:hover,
.close-link:focus {
    text-decoration: none;
}

.container {
    width: 100%;
    text-align: center;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.site-footer {
    width: min(100%, 760px);
    margin-top: auto;
    padding-top: 48px;
    color: #333;
    font-size: clamp(11px, 1.1vw, 13px);
    line-height: 1.45;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: inherit;
}

.about-menu {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10;
    max-width: calc(100vw - 48px);
    font-size: var(--menu-font-size, 24px);
    color: #333;
    text-align: right;
}

.about-menu details {
    position: relative;
}

.about-menu summary {
    display: block;
    cursor: pointer;
    list-style: none;
    overflow-wrap: break-word;
    text-decoration: underline;
}

.about-menu summary::-webkit-details-marker {
    display: none;
}

.about-menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    flex-direction: column;
    min-width: 100%;
    width: max-content;
    max-width: calc(100vw - 48px);
    padding: 8px 0;
    font-size: clamp(14px, 1.6vw, 18px);
    background: transparent;
    border: none;
    box-shadow: none;
}

.about-menu details[open] .about-menu-links,
.about-menu details:hover .about-menu-links {
    display: flex;
}

.about-menu-links a {
    padding: 6px 0 6px 12px;
    color: inherit;
    text-align: right;
    text-decoration: none;
    white-space: nowrap;
}

.about-menu-links a:hover,
.about-menu-links a:focus {
    background-color: transparent;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .about-menu {
        top: 12px;
        right: 12px;
        max-width: calc(100vw - 24px);
    }

    .about-menu-links {
        max-width: calc(100vw - 24px);
    }
}

.result {
    font-size: 32px;
    color: #333;
}

.sentence {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.35;
    overflow-wrap: normal;
}

.sentence-line {
    display: block;
    width: max-content;
    white-space: nowrap;
}

input {
    background: none;
    border: none;
    outline: none;
    font-size: inherit;
    color: inherit;
    font-family: inherit;
    cursor: text;
    padding: 0;
    margin: 0;
    width: auto;
    min-width: 1ch;
    max-width: 100%;
    text-decoration: underline;
    vertical-align: baseline;
    transition: color 0.2s ease;
}

input:hover,
.currency-button:hover {
    color: #1c3157;
}

.currency-picker {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
}

.currency-button {
    display: inline-block;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: auto;
    min-width: 1ch;
    max-width: 100%;
    text-decoration: underline;
    white-space: nowrap;
    vertical-align: baseline;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.currency-options {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: none;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 160px);
    min-width: 100%;
    width: max-content;
    max-width: min(96vw, 1100px);
    overflow: auto;
    padding: 8px 0;
    background-color: white;
    font-size: 16px;
}

.currency-options.is-open {
    display: grid;
}

.currency-options button {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
    padding: 6px 12px;
    text-align: left;
    white-space: nowrap;
}

.currency-options button:hover,
.currency-options button:focus {
    background-color: #f5f5f5;
}

@media (min-width: 700px) {
    .currency-options {
        grid-template-columns: repeat(2, max-content);
    }
}

@media (min-width: 1000px) {
    .currency-options {
        grid-template-columns: repeat(3, max-content);
    }
}

@media (min-width: 1200px) {
    .currency-options {
        grid-template-columns: repeat(4, max-content);
    }
}

select {
    display: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}
