:root {
    --blue: #000dff;
    --red: #ff004b;
    --purple: #8800ff;
}

@font-face {
    font-family: "Munro";
    src: url('fonts/munro.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: "Munro Small";
    src: url('fonts/munro-small.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
    font-style: normal;
}

body {
    background-color: #f8f4e9;
    font-family: "Munro", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-synthesis: none;
    margin: 0;
}

#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: 30px 30px;
}

#header h1 {
    margin: 0;
}

#home-link {
    font-size: 2rem;
    font-weight: normal;
    color: var(--blue);
    text-decoration: underline;
    display: flex;
    align-items: center;
    gap: 12px;
}

#home-link img {
    height: 1.8rem;
    width: auto;
    image-rendering: pixelated;
}

#logo-hover-img {
    display: none;
}

#home-link:hover #logo-default-img {
    display: none;
}

#home-link:hover #logo-hover-img {
    display: block;
}

#home-link:hover {
    color: var(--red);
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a {
    font-size: 1.5rem;
    font-weight: normal;
    font-family: "Munro Small", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--blue);
    text-decoration: underline;
}

nav a:hover {
    color: var(--red);
}

nav a.active {
    color: var(--purple);
}

#hero {
    position: relative;
    min-height: calc(100vh - 108px);
    box-sizing: border-box;
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: clamp(56px, 10vh, 112px) 30px clamp(96px, 14vh, 160px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

#hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

#hero h2,
#hero h3 {
    margin: 0;
    font-weight: normal;
    color: var(--blue);
}

#hero h2 {
    font-size: clamp(4rem, 11vw, 8rem);
    line-height: 0.9;
    margin-bottom: 16px;
}

#hero h3 {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    line-height: 1.05;
    margin-bottom: 32px;
    font-family: "Munro Small", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#hero-cta {
    display: inline-block;
    font-size: 1.25rem;
    color: var(--blue);
    text-decoration: underline;
}

#hero-cta:hover {
    color: var(--red);
}

#hero-image {
    position: absolute;
    right: clamp(12px, 4vw, 56px);
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    width: min(40vw, 500px);
    max-height: calc(100vh - 240px);
    height: auto;
    z-index: 1;
    opacity: 0.18;
    pointer-events: none;
}

#shop-section {
    box-sizing: border-box;
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: clamp(40px, 8vh, 80px) 30px clamp(80px, 12vh, 140px);
}

#shop-section h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: normal;
    color: var(--blue);
    margin: 0 0 48px 0;
    line-height: 0.9;
}

#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px 32px;
}

.product-card a {
    text-decoration: none;
    display: block;
}

.product-card a:hover .product-image {
    outline: 3px solid var(--red);
}

.product-card a:hover .product-name {
    color: var(--red);
}

.product-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: scale-down;
    image-rendering: pixelated;
    display: block;
    background-color: #ece8db;
    padding: 10px;
}

.product-info {
    padding: 12px 0 0;
}

.product-name {
    font-size: 1.25rem;
    color: var(--blue);
    margin: 0 0 4px;
    font-weight: normal;
    text-decoration: underline;
}

.product-price {
    font-size: 1rem;
    color: var(--blue);
    margin: 0;
    font-family: "Munro Small", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#about-section {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: clamp(40px, 8vh, 80px) 30px clamp(80px, 12vh, 140px);
    overflow: hidden;
    isolation: isolate;
}

#about-section h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: normal;
    color: var(--blue);
    margin: 0 0 40px 0;
    line-height: 0.9;
}

#about-body {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

#about-body p {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.3;
    color: var(--blue);
    margin: 0 0 24px;
    font-family: "Munro Small", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#about-body a {
    color: var(--blue);
    text-decoration: underline;
}

#about-body a:hover {
    color: var(--red);
}

#about-image {
    position: absolute;
    right: clamp(12px, 4vw, 56px);
    top: 50%;
    transform: translateY(-50%) rotate(6deg);
    width: min(36vw, 420px);
    height: auto;
    z-index: 1;
    opacity: 0.18;
    pointer-events: none;
    image-rendering: pixelated;
}

#contact-section {
    box-sizing: border-box;
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: clamp(40px, 8vh, 80px) 30px clamp(80px, 12vh, 140px);
}

#contact-section h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: normal;
    color: var(--blue);
    margin: 0 0 40px 0;
    line-height: 0.9;
}

#contact-status {
    margin: 0 0 24px;
    font-size: 1.1rem;
    color: var(--purple);
    font-family: "Munro Small", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 520px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 1.25rem;
    color: var(--blue);
}

.field input,
.field textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--blue);
    outline: none;
    font-family: "Munro Small", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.1rem;
    color: var(--blue);
    padding: 6px 0;
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
    border-radius: 0;
    caret-color: var(--blue);
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(0, 13, 255, 0.35);
}

.field input:focus,
.field textarea:focus {
    border-bottom-color: var(--red);
}

.field textarea {
    resize: none;
    min-height: 120px;
    border: 2px solid var(--blue);
    padding: 8px;
}

.field textarea:focus {
    border-color: var(--red);
}

#submit-btn {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: "Munro", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.25rem;
    color: var(--blue);
    text-decoration: underline;
}

#submit-btn:hover {
    color: var(--red);
}

@media (max-width: 500px) {
    #header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    #product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
    }
}

@media (max-width: 700px) {
    #hero {
        min-height: calc(100vh - 108px);
        padding: 28px 30px 120px;
        align-items: flex-start;
    }

    #hero-image {
        left: 48%;
        right: auto;
        top: 54%;
        bottom: auto;
        transform: translate(-38%, -34%) rotate(-8deg);
        width: min(82vw, 380px);
        max-height: 52vh;
        opacity: 0.14;
    }

    #about-image {
        left: 48%;
        right: auto;
        top: 54%;
        transform: translate(-38%, -34%) rotate(6deg);
        width: min(80vw, 360px);
        opacity: 0.12;
    }
}