* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
}

button {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.btn {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
}

header,
article {
    width: min(740px, 90%);
    margin: 20px auto 0;
}

header {
    position: sticky;
    top: 0;
    padding: 20px 0;
    background: #fff;
}

article p {
    margin: 10px 0;
}

article img {
    max-width: 100%;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity, visibility;
    transition-duration: 0.3s;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop.show .modal-container {
    transform: scale(1);
}

.modal-container {
    position: relative;
    width: min(600px, 90%);
    padding: 28px;
    border-radius: 10px;
    background: #fff;
    transform: scale(0);
    transition: transform 0.3s;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #666;
    background: #ebebeb;
    font-size: 2rem;
}

.modal-close:hover {
    color: #333;
}

.modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px 0;
}

.modal-btn {
    padding: 8px 20px;
    color: #fff;
    background: #34495e;
}

.modal-btn.primary {
    background: #3498db;
}

.modal-btn.danger {
    background: #e74c3c;
}

.no-scroll {
    overflow: hidden;
}
