body {
    font-family: 'Arimo', sans-serif;
    background-color: #ffffff;
    color: #111;
    margin: 0;
}

.page {
    width: min(900px, 90%);
    margin: 0 auto;
    padding: 40px 0 100px;
}


.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 35px;
    min-height: 80vh;
    justify-content: center;
}


.polaroid {
    width: 230px;
    transform: rotate(-5deg);
    margin-top: 0;
}

.polaroid img {
    width: 100%;
    display: block;
}




.intro-text {
    width: 470px;
    max-width: 470px;
    margin-top:-30px;
    
}

.hello {
    font-family: 'Reenie Beanie', cursive;
    font-size: 2rem;
    margin: 0 0 10px -18px;
}

.name {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-weight: normal;
    line-height: 0.95;
    letter-spacing: 3px;
    white-space: nowrap;
    font-size: 3rem;
    margin: 0 0 65px 0;
}

.description {
    font-size: 0.90rem;
    line-height: 1.4;
    width: 340px;
    margin: 0 0 30px 13px;
}





.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-left: 13px;
}

.buttons a,
.contact a {
    color:#111;
    border: 1px solid #111;
    border-radius: 999px;
    padding: 9px 18px;
    text-decoration: none;
    font-size: 0.90rem;
    transition: all 0.3s ease;
}

.buttons a:hover,
.contact a:hover {
    background-color: #111;
    color: #fff;
}





.intro {
    width: min(620px, 100%);
    margin: 0 auto 130px;
    text-align: center;
}

.intro p {
    font-size: 1rem;
    line-height: 1.9;
}





.projects {
    width: 760px;
    margin: 0 auto;
}

.projects h2 {
    font-family: "Times New Roman", serif;
    letter-spacing: 3px;
    font-style: italic;
    font-weight: normal;
    font-size: 3rem;
    text-align: left;
    margin: 0 0 55px 0;
}

.project {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin-bottom: 100px;
}

.project-text {
    flex: 1;
    width: 300px;
    
    position: relative;
    left: 40px;
    /* The column is shifted 40px right and the image 40px left; this keeps its contents
       (long titles, tag rows, buttons) from running underneath the image. */
    margin-right: 80px;
}

.project-text h3 {
    font-family: "Arimo", serif;
    font-weight: normal;
    font-size: 2rem;
    margin: 0 0 15px;
}

.project-text p {
    line-height: 1.7;
    width: 300px;
}

.project-preview {
    width: 320px;
    height: 220px;

    position: relative;
    right: 40px;
    border: 1px solid #111;
    border-radius: 10px;
    background-color: white;
    flex-shrink: 0;
    overflow: hidden;
}

/* Fill the preview box without stretching; overflow above clips to the rounded corners */
.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.80rem;
    border: 1px solid #111;
    border-radius: 999px;
    padding: 5px 12px;
    background-color: #fff;
}






.note h2 {
    font-family: "Times New Roman", serif;
    letter-spacing: 1.5px;
    font-style: italic;
    font-weight: normal;
    font-size: 1.75rem;
    text-align: center;
    margin: 0 0 30px 0;
}

.note {
    width: min(520px, 100%);
    margin: 100px auto 130px;
    padding: 35px 45px;
    text-align: center;
}

.note ul {
    margin: 0;
    padding-left: 20px;
}

.note li {
    line-height: 1.7;
    font-size: 1rem;
}





.contact {
    text-align: center;
    margin-top: 100px;
}

.contact p:first-child {
    font-family: "Reenie Beanie", cursive;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact a {
    display: inline-block;
    margin: 8px;
}

.contact p:last-child {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #555;
}




.coming-soon {
    font-family: "Reenie Beanie", cursive;
    font-size: 2rem;
    margin: 0 0 100px;
}

/* Deliberately faint: there for the site owner, not visitors */
.admin-link {
    display: block;
    width: max-content;
    margin: 60px auto 0;
    font-size: 0.65rem;
    color: #ccc;
    text-decoration: none;
}

.admin-link:hover {
    color: #888;
}


/* Phones: let the projects section shrink and stack each card's text above its image */
@media (max-width: 800px) {
    .projects { width: 100%; }
    .project { flex-wrap: wrap; }
    .project-text { left: 0; margin-right: 0; }
    .project-preview { right: 0; width: 100%; max-width: 320px; height: auto; aspect-ratio: 32 / 22; }
    .note { box-sizing: border-box; }

    /* Hero text: fit the screen instead of fixed widths, no negative margin past the edge */
    .intro-text { width: 100%; margin-top: 0; }
    .hello { margin-left: 0; }
    .name { font-size: min(3rem, 11vw); margin-bottom: 40px; }
    .description { width: auto; margin-left: 0; }
    .buttons { margin-left: 0; }
}
