/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #4894E6;
    background: linear-gradient(to bottom, rgba(72, 148, 230, 1) 300px, rgb(13, 22, 37) 100%);
}

main{
    /*box-shadow: 0 0 20px rgba(35, 123, 232, 0.61);*/
    margin: 0 auto;
    max-width: 700px;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */

.hero,
.nav-buttons,
.intro,
.contact,
.projects,
.footer {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    z-index: 1;
    position: relative;
}

.jersey-25-regular {
    font-family: "Jersey 25", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.huninn-regular {
    font-family: "Huninn", sans-serif;
    font-weight: 400;
    font-style: normal;
}


/* ============================================================
   BUTTONS — full reset + custom styles
   ============================================================ */
body {
    font-family: "Huninn", sans-serif;
    line-height: normal;
}


.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: none;
    cursor: pointer;
    font-family: "Jersey 25", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 10px;
    padding: 10px 18px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--outline {
    border-radius: 10px;
    border-top: 1px solid #559AE9;
    background: #185497;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.21);
    color: #D5E9F4;
}

.btn-faded {
    border-radius: 10px;
    border-top: 1px solid #559AE9;
    background: #2866A9;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.21);
    color: #B0D6EC;
}

.btn--outline:hover,
.btn--outline:focus-visible,
.btn-faded:hover,
.btn-faded:focus-visible{
    background-color: #ffffff;
    color: #3a8fc7;
}

.btn--primary {
    background-color: #1e6fa8;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 13px;
    border-radius: 8px;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: #155d8e;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    max-width: 600px;

    padding: 50px 0 50px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.hero__inner {
    position: relative;
    width: 100%;
    z-index: 1;

}

.hero__asset .hero-sticker-pack {
    width: 100%;
    border-radius: 12px;
}

.hero__asset .hero__writing{
    position: absolute;
    width: 70%;
    left: 50%;
    transform: translateX(-50%);
    top: 40%;
}

.paper-texture{
    position: absolute;
    top: 0;
    width: 100vw;
    height: 300px;
    flex-shrink: 0;
    background-image: url("assets/paper-texture.jpg");
    z-index: 0;
    opacity: 0.6;
    background-size: contain;
    background-position: bottom center;
    background-repeat: repeat-x;
}
/* ============================================================
   NAV BUTTONS
   ============================================================ */

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 40px;
}

.nav-buttons .btn{
    width: 100%;
}

.nav-buttons .btn--outline,
.nav-buttons .btn-faded {
    flex: 1;
    font-size: 20px;
    padding: 10px 8px;
}

/* ============================================================
   INTRO
   ============================================================ */

.intro {
    display: flex;
    flex-direction: column;
    padding-bottom: 28px;
    gap: 5px;
}

.intro__heading {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2em;
    font-family: "Jersey 25", sans-serif;
    font-size: 26px;
    align-items: flex-end;
    line-height: normal;
    margin: 0;
}



.intro__heading strong {
    font-weight: 700;
    font-size: 24px;
    line-height: normal;
}

.intro__heading em {
    font-style: italic;
    font-size: 20px;
    line-height: normal;
}

.intro__text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact {
    padding-bottom: 48px;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

input::placeholder,
textarea::placeholder {
    font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 10px;
    border: 1px solid #559AE9;
    background: #3779C8;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    padding: 10px 12px;
    outline: none;
    width: 100%;
    transition: background-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background-color: rgb(70, 142, 223);
}

.form-group select {
    cursor: pointer;
    border: 1px solid #559AE9;
    background-color: #3779C8;
    color: #ffffff;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;

}



.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================================
   PROJECTS
   ============================================================ */

.projects {
    padding-bottom: 48px;
}

.projects__heading {
    margin-top: 20px;
}

.projects__heading strong {
    font-weight: 700;
}

.projects__heading em {
    font-style: italic;
}

.project-card {
    margin-bottom: 50px;
}

.project-card:first-of-type{
    margin-top: 20px;
}

.project-card__media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.2);
}

.project-card__media img {
    width: 100%;
    display: block;
    height: 400px;
    object-fit: cover;
    object-position: top center;
}

.project-card__label {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.project-card__label span {
    color: #f0c940;
}

.project-card__overlay-text {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    line-height: 1.4;
}

.project-card__overlay-text small {
    font-weight: 400;
    font-size: 10px;
}

.project-card__link {
    display: block;
    margin-bottom: 10px;
}

.project-card__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    padding: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

footer img{
    max-width: 200px;
    width: 100%;
    object-fit: contain;
}

/* ============================================================
   FOCUS VISIBLE — accessibility
   ============================================================ */

:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
