:root {
    --blue: #000dff;
    --red: #ff004b;
    --purple: #8800ff;
    --font-fallback-sans: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-fallback-caps: "Arial Narrow", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
    --bg: #f8f4e9;
    --surface: #ece8db;
    --image-surface: #ece8db;
    --text-on-accent: #f8f4e9;
    --line-soft: rgba(0, 13, 255, 0.2);
    --placeholder: rgba(0, 13, 255, 0.35);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --blue: #bfc8ff;
        --red: #ff7a98;
        --purple: #ceb0ff;
        --bg: #101521;
        --surface: #1a2438;
        --image-surface: #f0e9db;
        --text-on-accent: #101521;
        --line-soft: rgba(191, 200, 255, 0.28);
        --placeholder: rgba(191, 200, 255, 0.45);
        color-scheme: dark;
    }
}

@font-face {
    font-family: "clickable sans";
    src: url('fonts/clickable-sans.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
    font-style: normal;
    size-adjust: 88%;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

*::-webkit-scrollbar-thumb {
    background-color: transparent;
}

*::-webkit-scrollbar-track {
    background-color: transparent;
}

@font-face {
    font-family: "clickable caps";
    src: url('fonts/clickable-caps.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
    font-style: normal;
    size-adjust: 60%;
}

body {
    background-color: var(--bg);
    font-family: "clickable sans", var(--font-fallback-sans);
    font-synthesis: none;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::selection {
    background-color: var(--blue);
    color: var(--text-on-accent);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 1000;
    padding: 10px 14px;
    border: 2px solid var(--blue);
    background-color: var(--bg);
    color: var(--blue);
    text-decoration: none;
    font-family: "clickable caps", var(--font-fallback-caps);
}

.skip-link:focus-visible {
    top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.human-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: 8px;
    padding: 8px 10px;
    margin: auto 16px 24px auto;
    border: 2px solid var(--blue);
    background-color: var(--bg);
    color: var(--blue);
    font-size: 0.85rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-family: "clickable caps", var(--font-fallback-caps);
    pointer-events: none;
}

.human-credit img {
    width: auto;
    height: 16px;
    display: block;
}

@media (max-width: 700px) {
    .human-credit {
        font-size: 0.75rem;
        padding: 7px 9px;
        margin: auto auto 24px;
    }
}

#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: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

#home-link .logo-mark {
    text-decoration: none;
    position: relative;
    top: 1px;
}

#home-link .logo-wordmark {
    text-decoration: underline;
}

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

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

nav a {
    font-size: 1.6rem;
    font-weight: normal;
    font-family: "clickable caps", var(--font-fallback-caps);
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 2.5px;
}

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;
}

body.home #hero {
    min-height: 0;
    flex: 1 1 auto;
}

body.home #main-content {
    display: flex;
    flex: 1;
}

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

#hero h2,
#hero h3 {
    margin: 0 auto;
    text-align: center;
    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: "clickable caps", var(--font-fallback-caps);
}

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

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

#hero-image-link {
    position: absolute;
    right: clamp(12px, 4vw, 56px);
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    width: min(40vw, 500px);
    max-height: calc(100vh - 240px);
    z-index: 1;
    display: block;
    line-height: 0;
    cursor: pointer;
}

#hero-image {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    height: auto;
    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;
}

.shop-kicker {
    margin: 0 0 12px;
    font-size: 1rem;
    letter-spacing: 0.12em;
    color: var(--red);
    font-family: "clickable caps", var(--font-fallback-caps);
}

#shop-product {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.shop-gallery {
    position: sticky;
    top: 32px;
}

.shop-image-frame {
    background: var(--image-surface);
    border: 3px solid var(--blue);
    padding: clamp(18px, 3vw, 28px);
}

#shop-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
}

.shop-image-note {
    margin: 18px 0 0;
    max-width: 28ch;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--blue);
    font-family: "clickable caps", var(--font-fallback-caps);
}

#shop-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.shop-price {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 0.95;
    color: var(--blue);
    font-family: "clickable caps", var(--font-fallback-caps);
}

.shop-shipping-note {
    margin: -24px 0 0;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--blue);
    font-family: "clickable caps", var(--font-fallback-caps);
}

sup {
    font-size: 0.5em;
    vertical-align: super;
    text-decoration: underline;
    text-decoration-thickness: 2.5px;
}

.shop-description {
    margin: 0;
    max-width: 38ch;
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    line-height: 1.28;
    color: var(--blue);
    font-family: "clickable caps", var(--font-fallback-caps);
}

.shop-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.shop-cta {
    display: inline-block;
    border: 2px solid var(--blue);
    padding: 12px 18px;
    color: var(--blue);
    text-decoration: none;
}

.shop-cta:hover {
    color: var(--red);
    border-color: var(--red);
}

.shop-availability {
    margin: 0;
    max-width: 34ch;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--purple);
    font-family: "clickable caps", var(--font-fallback-caps);
}

.shop-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    margin: 0;
}

.shop-specs div {
    padding: 14px 0;
    border-top: 2px solid var(--line-soft);
}

.shop-specs dt,
.shop-size-block h3,
.shop-copy-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: normal;
    font-family: "clickable caps", var(--font-fallback-caps);
}

.shop-specs dd,
.shop-copy-card p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--blue);
    font-family: "clickable sans", var(--font-fallback-sans);
}

.shop-size-block {
    padding: 22px;
    border: 2px solid var(--blue);
}

.shop-size-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.shop-size-list li {
    min-width: 48px;
    padding: 8px 12px;
    border: 2px solid var(--blue);
    text-align: center;
    color: var(--blue);
    background-color: var(--bg);
}

.shop-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.shop-copy-card {
    padding: 22px;
    border: 2px solid var(--line-soft);
}

.shop-order-intro {
    margin: 0 0 20px;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.3;
    color: var(--blue);
    font-family: "clickable caps", var(--font-fallback-caps);
}

.shop-order-disclaimer {
    margin: -10px 0 0;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--red);
    font-family: "clickable caps", var(--font-fallback-caps);
}

#order-status {
    margin: 0 0 20px;
    font-size: 1.1rem;
    color: var(--purple);
    font-family: "clickable caps", var(--font-fallback-caps);
}

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

.order-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.order-size-option input[type="radio"],
.order-option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.order-size-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 8px 12px;
    border: 2px solid var(--blue);
    color: var(--blue);
    cursor: pointer;
}

.order-size-option:has(input:checked) span {
    background-color: var(--blue);
    color: var(--text-on-accent);
}

.order-size-option span:hover {
    border-color: var(--red);
    color: var(--red);
}

.order-size-option:has(input:checked) span:hover {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--text-on-accent);
}

.order-size-option input:focus-visible + span,
.order-option input:focus-visible + span {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

.order-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.order-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 2px solid var(--blue);
    color: var(--blue);
    cursor: pointer;
}

.order-option:has(input:checked) span {
    background-color: var(--blue);
    color: var(--text-on-accent);
}

.order-option span:hover {
    border-color: var(--red);
    color: var(--red);
}

.order-option:has(input:checked) span:hover {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--text-on-accent);
}

.field fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.field legend {
    font-size: 1.25rem;
    color: var(--blue);
    margin-bottom: 8px;
    font-family: "clickable caps", var(--font-fallback-caps);
}

.field-optional {
    font-size: 0.85rem;
    opacity: 0.5;
    font-family: "clickable caps", var(--font-fallback-caps);
}

#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;
    display: block;
    background-color: var(--image-surface);
    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: "clickable caps", var(--font-fallback-caps);
}

#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: "clickable sans", var(--font-fallback-sans);
}

#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);
    max-height: calc(100% - 24px);
    height: auto;
    z-index: 1;
    opacity: 0.18;
    pointer-events: none;
}

#not-found-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;
}

#not-found-section h2 {
    font-size: clamp(4rem, 11vw, 8rem);
    font-weight: normal;
    color: var(--red);
    margin: 0 0 28px 0;
    line-height: 0.9;
}

#not-found-body {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

#not-found-body p {
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    line-height: 1.3;
    color: var(--blue);
    margin: 0 0 20px;
    font-family: "clickable caps", var(--font-fallback-caps);
}

#not-found-body p:first-child {
    color: var(--red);
}

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

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

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

body.contact #contact-section {
    padding-bottom: clamp(32px, 6vh, 64px);
}

#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: "clickable sans", var(--font-fallback-sans);
}

#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);
    font-family: "clickable caps", var(--font-fallback-caps);
}

.field input,
.field textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--blue);
    outline: none;
    font-family: "clickable sans", var(--font-fallback-sans);
    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: var(--placeholder);
}

@media (prefers-color-scheme: dark) {
    #hero-image,
    #about-image {
        opacity: 0.24;
        filter: brightness(1.18) contrast(1.05);
    }

    .human-credit img {
        filter: invert(1) brightness(1.1);
    }
}

.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: "clickable sans", var(--font-fallback-sans);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--blue);
    text-decoration: underline;
}

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

@media (min-width: 701px) {
    body.shop #shop-section,
    body.about #about-section,
    body.contact #contact-section,
    body.not-found #not-found-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

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

    .shop-specs,
    .shop-copy-grid {
        grid-template-columns: 1fr;
    }

    #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-link {
        left: 48%;
        right: auto;
        top: 54%;
        bottom: auto;
        transform: translate(-38%, -34%) rotate(-8deg);
        width: min(82vw, 380px);
        max-height: 52vh;
    }

    #hero-image {
        opacity: 0.14;
    }

    #about-image {
        left: 48%;
        right: auto;
        top: 50%;
        transform: translate(-38%, -50%) rotate(6deg);
        width: min(70vw, 320px);
        max-height: calc(100% - 32px);
        opacity: 0.12;
    }

    #shop-product {
        grid-template-columns: 1fr;
    }

    .shop-gallery {
        position: static;
    }

    .shop-image-note,
    .shop-description,
    .shop-availability {
        max-width: none;
    }

    sup {
        font-size: 0.6em;
        vertical-align: super;
        top: 2px;
        position: relative;
        text-decoration: underline;
        text-decoration-thickness: 1.5px;
    }
}