/*
Theme Name: Anarchist Gadget Factory
Theme URI: https://anarchistgadgetfactory.com
Author: Nick Taylor
Description: Anarchist playground — full-screen hero, big black canvas, white text. Sister theme to Analog.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: anarchist
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; display: block; }

/* =========================================================
   TOP BAR
========================================================= */
.bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bar-brand {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 100;
    font-size: 26px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff0099;
    line-height: 1;
}

.bar-brand span { color: #fff; }

.bar nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.bar nav li {
    padding: 8px 14px;
    transition: background-color 0.15s;
}

.bar nav li:hover,
.bar nav li.current_page_item {
    background: #ff0099;
}

.bar nav a {
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
}

/* =========================================================
   HERO  (full-viewport slot for video / image / app)
========================================================= */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #111;
}

.hero > * {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero video,
.hero img {
    object-fit: cover;
}

.hero-caption {
    position: absolute;
    left: 32px;
    bottom: 32px;
    right: 32px;
    z-index: 2;
    pointer-events: none;
}

.hero-caption h1 {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 100;
    font-size: clamp(48px, 8vw, 140px);
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}

.hero-caption h1 em {
    font-style: normal;
    color: #ff0099;
}

/* =========================================================
   PLAY AREA  (everything below the hero)
========================================================= */
.play {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 32px 120px;
}

.play h2 {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 44px);
    color: #ff0099;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.play .lede {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    color: #ddd;
    margin-bottom: 56px;
    max-width: 800px;
}

/* =========================================================
   THREE-COLUMN GRID  (dark version)
========================================================= */
.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.three-col-item { display: flex; flex-direction: column; }

.three-col-head {
    aspect-ratio: 1 / 1;
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
}

.three-col-head h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: #fff;
    margin: 0;
}

.three-col-head--orange { background: #ff6600; }
.three-col-head--green  { background: #00cc44; }
.three-col-head--pink   { background: #ff0099; }

.three-col-body {
    padding: 18px 0 0;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: #ddd;
}

.three-col-body p { margin-bottom: 10px; }
.three-col-body a { color: #ff0099; border-bottom: 1px solid rgba(255,0,153,0.4); }
.three-col-body a:hover { color: #fff; border-bottom-color: #fff; }

/* =========================================================
   STANDARD PAGE (non-front, non-fullscreen)
========================================================= */
.page-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 32px 96px;
}

.page-shell h1 {
    font-family: 'Big Shoulders Display', sans-serif;
    font-weight: 100;
    font-size: clamp(48px, 7vw, 96px);
    color: #ff0099;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 32px;
}

.page-shell .content {
    font-size: 17px;
    line-height: 1.8;
    color: #ddd;
}

.page-shell .content a {
    color: #ff0099;
    border-bottom: 1px solid rgba(255,0,153,0.4);
}

.page-shell .content p { margin-bottom: 18px; }

/* =========================================================
   FULLSCREEN APP TEMPLATE
========================================================= */
body.fullscreen { overflow: hidden; }

.fs-frame {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
}

.fs-frame > iframe,
.fs-frame > video,
.fs-frame > img {
    width: 100%;
    height: 100%;
    border: 0;
}

.fs-back {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    padding: 8px 14px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.fs-back:hover { background: #ff0099; border-color: #ff0099; }

/* =========================================================
   FOOTER
========================================================= */
.footer {
    padding: 48px 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #888;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-align: center;
}

.footer a { color: #ff0099; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
    .three-col { grid-template-columns: 1fr 1fr; }
    .bar { padding: 12px 16px; }
    .bar-brand { font-size: 22px; }
    .play { padding: 64px 20px 96px; }
}

@media (max-width: 640px) {
    .three-col { grid-template-columns: 1fr; gap: 16px; }
    .three-col-head { aspect-ratio: auto; padding: 24px; }
    .bar nav ul { gap: 0; }
    .bar nav li { padding: 6px 8px; }
    .bar nav a { font-size: 11px; letter-spacing: 0.06em; }
    .hero-caption { left: 20px; right: 20px; bottom: 20px; }
}
