@font-face {
    font-family: "LavishlyYours";
    src: url("../fonts/LavishlyYours-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "HackNerd";
    src: url("../fonts/HackNerdFontMono-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter.woff2") format("woff2");
}

@font-face {
    font-family: "IBMPlexMono-Regular";
    src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
}

:root {
    --color0: #02151f;
    --color10: #000000;
    --color1: #274c77;
    --color5: #cb9152;
    --color50: rgb(112, 76, 37);
    --color6: #a16112;

    --terminal-border: #cb9152;
    --terminal-text: #ffffff;
    --terminal-text-muted: #cb9152;
    --terminal-panel: rgba(0, 0, 0, 0.88);

    --case-black: #0a0907;
    --panel-black: #0a0907;
    --panel-raised: #0a0907;
    --amber: #ffb000;
    --amber-bright: #ffc547;
    --amber-dim: #8a641d;
    --green: #63d471;
    --red: #ff4d3d;
    --cream: #d8c7a2;
    --tan: #9f8159;
    --brown: #5f351e;
    --brown-dark: #2c170d;
    --atari-orange: #d96b22;
    --commodore-blue: #4f74a8;
    --commodore-light: #8da6c8;
    --text-muted: #9b8d70;
    --border: #4a3817;
    --content-width: 760px;
}

body {
    background: #000000;
}

/* Main current-weather panel */
.current-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(90px, 1fr);

    width: 100%;
    min-height: 215px;

    background: var(--terminal-panel);
    border: 1px solid var(--amber-dim);

    overflow: hidden;
}

.current-card-embed {
    display: grid; 
    grid-template-columns: minmax(0, 2fr) minmax(90px, 1fr);

    width: 100%;
    min-height: 215px;
    
    background: #000000;
    border: 1px solid var(--amber-dim);

    overflow: hidden;
}



/* Left two-thirds */
.current-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 0.75rem;
}

/* Location heading */
.location {
    margin-bottom: 0.85rem;
    padding-bottom: 0.55rem;

    border-bottom: 1px dashed rgba(203, 145, 82, 0.45);
}

.location h1 {
    margin: 0;

    color: var(--atari-orange);
    /* font-size: 10rem; */
    /* font-size: clamp(5rem, 5vw, 1.45rem); */
    line-height: 1.1;
    letter-spacing: -0.05rem;
    text-shadow: 0 0 10px rgba(255, 176, 0, 0.65);
}

.location h1::after {
    margin: 0;

    color: var(--commodore-blue);
    font-size: 9px;

    line-height: 2.1;
    display: block;
    text-shadow: 0 0 6px rgba(255, 176, 0, 0.3), 0 0 12px rgba(79, 116, 168, 1);
    text-transform: uppercase;


    content: "> current conditions";
}

.location-meta {
    margin-top: 0.4rem;

    color: var(--terminal-text);
    font-size: 0.72rem;
    line-height: 1.5;
}

/* Terminal-style label/value grid */
.cur-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 0.4rem;
    row-gap: 0.5rem;

    align-items: baseline;

    width: 100%;
    margin-top: auto;

    font-size: 0.78rem;
}

.detail-label {
    min-width: 0;
    color: var(--atari-orange);
    white-space: nowrap;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(255, 176, 0, 0.95);

}

.detail-label::before {
    content: ":: ";
    color: var(--commodore-blue);
    font-size: 8px;
    text-shadow: 0 0 6px rgba(255, 176, 0, 0.3), 0 0 12px rgba(79, 116, 168, 1);
}

.detail-value {
    color: var(--amber-bright);
    text-align: right;
    white-space: nowrap;

    font-weight: normal;

    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 15px rgba(255, 176, 0, 0.95);

}

.location-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;

    margin: auto;
    padding: 0.5rem;

    background: #000000;
    border: 0px solid var(--amber-dim);

    font-family: "IBMPlexMono-Regular", monospace;
}

.location-controls label {
    color: var(--commodore-blue);
    font-size: 0.62rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;

    text-shadow:
        0 0 6px rgba(79, 116, 168, 0.8);
}

.location-controls label::before {
    content: "> ";
    color: var(--atari-orange);
}

.location-controls input[type="text"] {
    min-width: 0;
    width: 100%;

    padding: 0.4rem 0.5rem;

    background: #000000;
    border: 1px solid var(--amber-dim);

    color: var(--amber-bright);
    caret-color: var(--commodore-blue);

    font-family: "IBMPlexMono-Regular", monospace;
    font-size: 0.72rem;
    text-align: center;

    outline: none;
}

.location-controls input[type="text"]:focus {
    border-color: var(--atari-orange);

    box-shadow:
        inset 0 0 8px rgba(255, 176, 0, 0.1),
        0 0 7px rgba(217, 107, 34, 0.35);
}

.location-controls input::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

.location-controls button {
    padding: 0.4rem 0.65rem;

    background: #000000;
    border: 0px solid var(--amber-dim);
    border-radius: 0;

    color: var(--amber-bright);

    font-family: "IBMPlexMono-Regular", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.04rem;
    text-transform: uppercase;


    cursor: pointer;

    /* text-shadow:
        0 0 7px rgba(255, 176, 0, 0.8); */
}

.location-controls button:hover {
    background: var(--atari-orange);
    color: var(--case-black);
}

.location-error {
    margin-bottom: 0.65rem;
    padding: 0.6rem;

    border: 1px solid var(--red);

    color: var(--red);
    font-size: 0.72rem;
}

/* Right third */
.current-image {
    position: relative;
    overflow: hidden;
    padding: 2px;
    border-left: 1px solid var(--amber-dim);
}

.weather-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .35rem;

    text-align: center;

    font-size: .65rem;
    letter-spacing: .12rem;
    text-transform: uppercase;
    font-weight: bold;

    color: var(--weather-accent);

    text-shadow:
        0 0 6px color-mix(in srgb, var(--weather-accent) 40%, transparent),
        0 0 12px var(--weather-accent);
}

.current-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;

    position: relative;
    z-index: 1;
}

/* Optional terminal treatment over the image */
.current-image::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 2px,
            rgba(83, 52, 10, 0.35) 3px,
            rgba(95, 64, 7, 0.4) 4px
        );

    pointer-events: none;
}

/* .current-image::after {
    content: "current";

    position: absolute;

    right: 4px;
    bottom: 4px;

    /* writing-mode: vertical-rl;

    font-size: .55rem;
    /* letter-spacing: .15rem;

    color: var(--commodore-blue);
    text-shadow: 0 0 6px rgba(255, 176, 0, 0.3), 0 0 12px rgba(79, 116, 168, 1);
    text-transform: uppercase;
    z-index: 2;

    pointer-events: none;
} */

.footer {
    font-size: 0.5rem;
    text-align: center;
    color: var(--commodore-light);
    text-shadow: 0 0 6px rgba(255, 176, 0, 0.3), 0 0 12px rgba(79, 116, 168, 1);
}

input[type="text"] {
    background-color: #aaaaaa;
}
.location {
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
}
.cur_date {
    font-size: 2rem;
    font-weight: bold;
    text-align: left;
}
.cur_emoji {
    font-size: 4rem;
    font-weight: bold;
    text-align: right;
}
.current-row {
    /*display: flex;*/
    gap: 0.3rem;
    justify-content: space-between;
    /*flex-wrap: nowrap;*/
    overflow-x: auto; /* allow scrolling if screen is small */
}

.day-row {
    display: flex;
    gap: 0.3rem;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto; /* allow scrolling if screen is small */
}




.detail-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.detail-row span:last-child {
    text-align: right;
}
.detail-row span:first-child {
    color: #b9853d;
}

.detail-row span:last-child {
    color: #ffffff;
    justify-self: end;
}

.day-card {
    flex: 0 0 160px; /* fixed card width */
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0.75rem;
    /* font-family: "Inter", sans-serif; */
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* text-align: center; */
}

.card-header {
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.temps {
    font-size: 1.1rem;
}

.emoji {
    font-size: 1.6rem;
}

.max {
    font-size: 1.9rem;
    font-weight: bold;
}

.apparent,
.precip,
.wind,
.sun,
.uv {
    font-size: 0.9rem;
}

/* ---------- Reset ---------- */

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

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ---------- Body ---------- */

body {
    min-height: 100vh;
    background: var(--color10);
    font-family: "IBMPlexMono-Regular", Helvetica, sans-serif;
    padding: 0.5rem;
    color: white;
}

/* ---------- Links ---------- */

a {
    color: var(--color1);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color:#a16112
}

/* ---------- Container ---------- */

.page_container {
    width: 100%;
    max-width: 100%;
    margin: auto;

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ---------- Cards ---------- */

.card,
.nav_card,
.job_listings,
.skills-card {
    width: 100%;

    padding: 0.75rem;

    border-radius: 4px;

    background: rgba(0, 0, 0, 0.85);

    backdrop-filter: blur(2px);

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);

    border: 2px;
    border-color: var(--terminal-border);
}

/* ---------- Card variant ---------- */

.card {
    background: var(--color6);
    color: rgb(3, 6, 29);
    border-radius: 5px 26px 5px 26px;
}

/* ---------- Headline ---------- */

h1 {
    /* font-family: "HackNerd"; */
    font-size: 1.2rem;
    color: #cb9152;
}

/* ---------- Signature ---------- */

.signature {
    font-family: "LavishlyYours";
    font-size: 3rem;
    color: white;
}

/* ---------- Text ---------- */

p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ---------- Search ---------- */

.search_area {
    padding: 0.5rem;
}

/* ---------- Skill blocks ---------- */

.skill {
    width: 100%;

    background: var(--color0);

    padding: 1rem;

    border-radius: 8px;

    text-align: left;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.focused_job {
    width: 100%;

    padding: 1rem;

    text-align: left;
}

/* ---------- Lists ---------- */

.skills-list h1 {
    font-weight: 700;
}


/* Very narrow phones */
@media (max-width: 360px) {
    body {
        padding: 0.35rem;
    }

    .current-card {
        grid-template-columns: minmax(0, 1fr) 82px;
    }

    .current-info {
        padding: 0.6rem 0.5rem;
    }

    .cur-details {
        font-size: 0.7rem;
        column-gap: 0.25rem;
    }

    .location h1 {
        font-size: 1rem;
    }
}

/* Tablet and larger */
@media (min-width: 600px) {
    body {
        padding: 1rem;
        margin-top: 2rem;
    }

    .card,
    .nav_card,
    .job_listings,
    .skills-card {
        width: 70%;
        align-items: center;
        margin: auto;
        min-width: 600px;
        max-width: 800px;
    }

    .current-card {
        grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
        min-height: 260px;
    }

    .current-info {
        padding: 1rem;
    }

    .cur-details {
        font-size: 0.95rem;
    }
}
