/* ============================================================
   ROUX LABS — Base / Design System
   --------------------------------------------------------------
   Aesthetic notes:
   - Monochrome system. Product colorways do the color work.
   - "Grey space" is the brand's positioning, so warm grey is
     promoted from neutral to character.
   - Type: a bold condensed display + a clean grotesque body.
     Free, reliable Google Fonts swapped in: Archivo Black for
     display, Inter for body, JetBrains Mono for spec data.
   - Spacing: 8pt grid, generous whitespace, hard edges. No
     rounded corners except where strictly affordance-driven
     (form controls).
   ============================================================ */

:root{
    /* --- Palette ----------------------------------------------- */
    --ink:        #0a0a0a;       /* near-black, the workhorse  */
    --paper:      #ffffff;       /* base background            */
    --bone:       #f4f1ec;       /* warm off-white, hero washes*/
    --grey-900:   #1a1a1a;
    --grey-700:   #3d3d3d;
    --grey-500:   #8b8b90;       /* "grey space"               */
    --grey-300:   #c9c6c0;
    --grey-100:   #ebe8e2;
    --line:       #d8d4ce;

    /* Signature accent — safety orange, MIL/industrial read */
    --rl-orange:  #ff4d00;
    --rl-orange-dim:#cc3d00;

    /* Product colorway swatches (for chips/dots) */
    --pc-black:   #111111;
    --pc-white:   #f6f4ef;
    --pc-orange:  #ff5a1f;
    --pc-red:     #c8102e;

    /* --- Type -------------------------------------------------- */
    --f-display: "Inter", "Helvetica Neue", Arial, sans-serif;
    --f-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
    --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* --- Scale ------------------------------------------------- */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 96px;
    --s-10:128px;

    --container: 1440px;
    --gutter: clamp(16px, 3vw, 32px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body{
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1,h2,h3,h4 {
    font-family: var(--f-body);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0;
    text-transform: none;
}

.h-display {
    font-size: clamp(40px, 6vw, 84px);
    letter-spacing: -0.02em;
    line-height: 1;
}
.h-xl  { font-size: clamp(28px, 4vw, 52px); }
.h-lg  { font-size: clamp(22px, 3vw, 36px); }
.h-md  { font-size: clamp(18px, 2vw, 24px); }
.h-sm  { font-size: 16px; }

.eyebrow {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey-700);
}

.mono { font-family: var(--f-mono); }

p { margin: 0 0 var(--s-4); }
p.lead { font-size: 17px; line-height: 1.5; max-width: 64ch; }

/* ------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-7) 0; }

.divider {
    height: 1px;
    background: var(--ink);
    margin: 0;
    border: 0;
}

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px){
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Buttons — monochrome by default. Use sparingly.
   ------------------------------------------------------------ */
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 12px 22px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.btn:hover { background: var(--paper); color: var(--ink); }

.btn-ghost{
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Kept for legacy use but now monochrome — no orange by default */
.btn-orange{
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}
.btn-orange:hover { background: var(--paper); color: var(--ink); }

.btn-block { width: 100%; justify-content: center; }

/* ------------------------------------------------------------
   Tags / chips / badges — used like spec stickers
   ------------------------------------------------------------ */
.tag{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--ink);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
    background: var(--paper);
    color: var(--ink);
}
.tag-solid { background: var(--ink); color: var(--paper); }
.tag-orange { background: var(--rl-orange); border-color: var(--rl-orange); color: var(--paper); }
.tag-warn { background: #fff7ec; border-color: var(--rl-orange); color: var(--rl-orange-dim); }

.swatch{
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid var(--ink);
    vertical-align: middle;
}
.swatch.black  { background: var(--pc-black); }
.swatch.white  { background: var(--pc-white); }
.swatch.orange { background: var(--pc-orange); }
.swatch.red    { background: var(--pc-red); }

/* ------------------------------------------------------------
   Form controls
   ------------------------------------------------------------ */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select{
    width: 100%;
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid var(--ink);
    border-radius: 0;
    font-family: var(--f-body);
    font-size: 14px;
    color: var(--ink);
}
input:focus, textarea:focus, select:focus{
    outline: 2px solid var(--rl-orange);
    outline-offset: -1px;
}

label.field{
    display: block;
    margin-bottom: var(--s-4);
}
label.field > .lbl{
    display: block;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--grey-700);
}

/* ------------------------------------------------------------
   Utility
   ------------------------------------------------------------ */
.center { text-align: center; }
.flex   { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.uppercase { text-transform: uppercase; }
.hide-mobile { }
@media (max-width: 720px){ .hide-mobile { display: none !important; } }
.show-mobile { display: none; }
@media (max-width: 720px){ .show-mobile { display: initial; } }

/* ============================================================
   HEADER / NAV — Supreme-minimal: thin top strip, text only
   ============================================================ */
.site-header{
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
}
.header-bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    height: 44px;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.brand-link{
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
}
.brand-link-mark{
    height: 22px;
    width: auto;
    display: block;
}
.brand-link:hover .brand-link-mark{ opacity: 0.7; }

.nav{
    display: flex;
    gap: var(--s-5);
    font-family: var(--f-body);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}
.nav a{
    padding: 4px 0;
    color: var(--ink);
}
.nav a:hover { text-decoration: underline; }
.nav a.active { text-decoration: underline; }

.header-right{
    display: flex;
    align-items: center;
    gap: var(--s-4);
}

.cart-btn{
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 4px 0;
    font-family: var(--f-body);
    font-size: 13px;
    color: var(--ink);
}
.cart-btn:hover{ text-decoration: underline; }

/* Mobile menu button */
.menu-btn{
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px 4px;
    flex-direction: column;
    gap: 4px;
}
.menu-btn span{
    display: block;
    width: 20px;
    height: 1px;
    background: var(--ink);
}
@media (max-width: 720px){
    .menu-btn { display: flex; }
}
.mobile-nav{
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.mobile-nav a{
    padding: 14px var(--gutter);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink);
}
.mobile-nav.open{ display: flex; }

/* ============================================================
   FOOTER — single thin row, no fanfare
   ============================================================ */
.site-footer{
    background: var(--paper);
    color: var(--grey-700);
    padding: var(--s-6) 0;
    border-top: 1px solid var(--line);
    margin-top: var(--s-9);
}
.site-footer .footer-row{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--grey-700);
}
.site-footer a{
    color: var(--grey-700);
    text-decoration: none;
}
.site-footer a:hover{ color: var(--ink); text-decoration: underline; }
.footer-dot{ color: var(--grey-300); }

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer{
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}
.drawer.open { display: block; }
.drawer-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
.drawer-panel{
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 92vw);
    background: var(--paper);
    border-left: 1px solid var(--ink);
    display: flex;
    flex-direction: column;
}
.drawer-head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--ink);
}
.drawer-body{
    flex: 1;
    overflow-y: auto;
    padding: var(--s-5);
}
.drawer-foot{
    border-top: 1px solid var(--ink);
    padding: var(--s-5);
}
.close-x{
    background: transparent;
    border: 0;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    font-family: var(--f-display);
    line-height: 1;
}

.cart-row{
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: var(--s-3);
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.cart-row:last-child { border-bottom: 0; }
.cart-row .thumb{
    width: 64px; height: 64px;
    background: var(--bone);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
}
.cart-row .meta .name { font-weight: 700; font-size: 14px; }
.cart-row .meta .sub  { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-700); }
.cart-row .price { font-family: var(--f-mono); font-weight: 600; }
.qty-stepper{
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ink);
}
.qty-stepper button{
    width: 26px; height: 26px;
    background: var(--paper);
    border: 0;
    cursor: pointer;
    font-family: var(--f-mono);
}
.qty-stepper .val{
    min-width: 26px;
    text-align: center;
    font-family: var(--f-mono);
    font-size: 12px;
    border-left: 1px solid var(--ink);
    border-right: 1px solid var(--ink);
    padding: 0 4px;
}
