/* Global variables I use throughout the sheet*/
:root {
    --maroon: #3e1a17;
    --ink: #233047;
    --muted: #516078;
    --background: #f0f3f8;
    --accent: #d6aa59;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

.site-header {
    padding: 49px 20px 43px;
    background: var(--maroon);
    color: white;
    text-align: center;
    border-bottom: 5px solid var(--accent);
}

.site-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    letter-spacing: .015em;
}

/* Section 1 for the HW stuff*/
.cards-section {
    padding: 44px 22px 52px;
}

#playing-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1380px;
    margin: 0 auto;
}

.card {
    display: flex;
    justify-content: space-between;
    width: 236px;
    height: 380px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 13px;
    box-shadow: 0 8px 25px rgba(23, 38, 62, .10);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover, .card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(23, 38, 62, .16);
}

.left {
    align-self: flex-start;
}

.middle {
    display: flex;
    flex-direction: column;
    align-self: center;
    flex: 1;
    min-width: 0;
    height: 100%;
}

.right {
    align-self: flex-end;
}

.middle a {
    display: block;
    width: 100%;
    height: 100%;
}

.middle a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.middle img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Section 2: For the personal reflections*/
.reflection-section {
    width: min(900px, calc(100% - 44px));
    margin: 0 auto 70px;
    padding: 42px 50px;
    border: 1px solid #e0e4ec;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 32px rgba(23, 38, 62, .06);
}

.reflection-section h2 {
    margin: 0 0 32px;
    color: var(--maroon);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    text-align: center;
}

.reflection-entry {
    padding: 0 0 21px;
    margin: 0 0 22px;
    border-bottom: 1px solid #e8ebf1;
}

.reflection-entry:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.reflection-entry h3 {
    margin: 0 0 10px;
    color: var(--maroon);
    font-size: 1.18rem;
}

.reflection-entry p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

/* Adding a little responsiveness, was cool to watch stuff shrink when i adjusted the window.  */
@media (max-width: 600px) {
    .site-header { padding: 36px 14px 32px; }
    .cards-section { padding: 28px 12px 35px; }
    .card { width: 208px; height: 335px; }
    .reflection-section {
        width: calc(100% - 24px);
        padding: 30px 22px;
        margin-bottom: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card { transition: none; }
}
