@import "reset.css";

/* @link https://utopia.fyi/type/calculator?c=320,16,1.25,1240,20,1.5,2,1,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
    --step--1: clamp(0.8rem, 0.7884rem + 0.058vw, 0.8333rem);
    --step-0: clamp(1rem, 0.913rem + 0.4348vw, 1.25rem);
    --step-1: clamp(1.25rem, 1.0326rem + 1.087vw, 1.875rem);
    --step-2: clamp(1.5625rem, 1.1277rem + 2.1739vw, 2.8125rem);
  }

body {
    background-color: #161616;
    color: #d6d6d6;
    font-size: var(--step-0);
    font-family: "Nimbus Mono PS", "Courier New", monospace;
    font-weight: 300;
}

h1,
h2,
h3 {
    font-family: Bahnschrift, "DIN Alternate", "Franklin Gothic Medium",
        "Nimbus Sans Narrow", sans-serif-condensed, sans-serif;
    font-weight: 600;
}

h1 {
    font-size: var(--step-2);
}

h2 {
    font-size: var(--step-1);
}

ul {
    padding-inline-start: 0;
}

li {
    list-style-type: none;
}

.logo {
    display: block;
    width: auto;
    height: clamp(40px, 5vw, 60px);
    margin: 0;
    object-fit: contain;
    align-self: flex-start;
}

a {
    color: #d6d6d6;
    transition: opacity 200ms ease;
    text-decoration: none;
    margin-block-start: 1rem;
    opacity: 1;
}

a:hover {
    opacity: 0.5;
}

a.button {
    display: inline-block;
    width: fit-content;
    margin-inline: 0;
    margin-top: 2.5rem;
    padding: 10px;
    background-color: #161616;
    color: #d6d6d6;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
}

a.button:hover {
    background-color: #d6d6d6;
    color: rgba(0, 0, 0, 0.6);
}

.stack {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stack > * {
    margin-block: 0;
}

.stack > * + * {
    margin-block-start: var(--space, 1.5rem);
}

.stack-sm > * + * {
    margin-block-start: var(--space, 1rem);
}

.stack-lg > * + * {
    margin-block-start: var(--space, 2rem);
}

.center {
    box-sizing: content-box;
    margin-inline: auto;
    max-inline-size: var(--measure, 65ch);
}

.cover {
    display: flex;
    flex-direction: column;
    min-block-size: 100vh;
    padding: 1rem;
  }
  
  .cover > * {
    margin-block: 1rem;
  }
  
  .cover > :first-child:not(h1) {
    margin-block-start: 0;
  }
  
  .cover > :last-child:not(h1) {
    margin-block-end: 0;
  }
  
  .cover > h1 {
    margin-block: auto;
  }

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space, 1rem);
    justify-content: flex-start;
    align-items: center;
}

/* REEL */
.reel {
    display: flex;
    block-size: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: #d6d6d6 #161616;
    gap: 1.5rem;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    /* padding: 1rem; */
}

.reel::-webkit-scrollbar {
    block-size: 1rem;
}

.reel::-webkit-scrollbar-track {
    background-color: #161616;
}

.reel::-webkit-scrollbar-thumb {
    background-color: #161616;
    background-image: linear-gradient(
        #161616 0,
        #161616 0.25rem,
        #d6d6d6 0.25rem,
        #d6d6d6 0.75rem,
        #161616 0.75rem
    );
}

.reel > * {
    flex: 0 0 auto;
}

/* Polaroid Frame */
figure {
    background-color: #fff;
    padding: 1rem;
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
}

/* Responsive Image Height with Clamp */
figure source, figure img {
    height: clamp(
        30vh,
        40vw,
        60vh
    ); /* Minimum 20vh, fluid with viewport width, maximum 40vh */
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

/* Caption - Sharpie Style with Clamp */
figure > figcaption {
    font-family: "Permanent Marker", sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.5rem); /* Responsive font size */
    color: #000;
    text-align: center;
    letter-spacing: 1px;
    margin-top: auto;
}

/* CONTACT FORM */

form {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    font-family: Bahnschrift, "DIN Alternate", "Franklin Gothic Medium",
    "Nimbus Sans Narrow", sans-serif-condensed, sans-serif;
}

label {
    margin-top: 10px;
    font-weight: bold;
}

input,
select,
textarea,
button {
    margin-top: 5px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    margin-top: 15px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 200ms ease, opacity 200ms ease;
}

button:hover {
    background-color: #4444ff;
    opacity: 0.9;
}

footer {
    font-size: var(--step-0);
    margin: 4rem 0;
}

/* Form Status Messages */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.form-status.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
}

/* Loading State */
button[type="submit"].loading {
    position: relative;
    cursor: not-allowed;
    opacity: 0.7;
}

button[type="submit"].loading .button-text {
    display: none;
}

button[type="submit"].loading .button-loading {
    display: inline-block;
}

address {
    border: 1px solid #d6d6d6;
    border-radius: 4px;
}

address a {
    font-size: var(--step-2);
    text-align: center;
}