/*
Theme Name: UILabs
Theme URI: https://uilabs.com
Author: UILabs, LLC
Author URI: https://uilabs.com
Description: Custom classic theme for uilabs.com: web design, graphic design, 3D printing and local Tulsa IT support. No page builder.
Version: 1.0.9
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: uilabs
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
    --accent: #FF5A1F; /* overridden from the Customizer in functions.php */
    --ink: #16130F;
    --ground: #F4F0E6;
    --surface: #FFFDF7;
    --line: #D9D2C1;
    --line-dark: #4A4438;
    --muted: #5A5448;
    --body: #3B372E;
    --soft: #CFC8B6;
    --blue: #1B4F8A;
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --wrap: 1200px;
    --radius: 6px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.band-dark :focus-visible, .site-footer :focus-visible, .custom :focus-visible { outline-color: var(--ground); }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.skip-link:focus {
    position: fixed; top: 8px; left: 8px; z-index: 100;
    width: auto; height: auto; margin: 0; padding: 12px 16px;
    clip: auto; background: var(--ink); color: var(--ground);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
section[id], article[id] { scroll-margin-top: 24px; }

.eyebrow {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.band-dark .eyebrow, .custom .eyebrow { color: var(--soft); }

.h-display {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(34px, 4.4vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head--row > .section-head { max-width: 640px; }

.band-light { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--ink); color: var(--ground); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center;
    min-height: 52px; padding: 0 28px;
    border: 2px solid transparent; border-radius: 4px;
    font: inherit; font-size: 17px; font-weight: 600;
    text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(0.94); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--md { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--ground); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.band-dark .btn--outline { border-color: var(--ground); color: var(--ground); }

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px 32px; padding-top: 20px; padding-bottom: 20px;
}
.site-logo { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-logo__img { display: block; height: 67px; width: auto; }

.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.primary-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.primary-nav a:not(.btn), .footer-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.primary-nav a:not(.btn):hover, .footer-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 80px 0 96px; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 5.6vw, 80px);
    line-height: 1.14;
    letter-spacing: -0.015em;
    word-spacing: 0.06em;
}
.hero h1 .mark {
    background: var(--accent);
    padding: 0 12px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.hero__lede { margin: 0; max-width: 34em; font-size: 20px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art {
    flex: 1 1 440px; min-width: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 240px 240px; gap: 16px;
}
.tile { display: flex; flex-direction: column; min-height: 0; border-radius: var(--radius); }
.tile--print { grid-row: span 2; padding: 20px; background: var(--ink); }
.tile--web { padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.tile--design { padding: 16px; background: var(--blue); }
.tile__head { display: flex; align-items: center; justify-content: space-between; }
.tile__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.tile--print .tile__label { color: var(--soft); }
.tile--web .tile__label { color: var(--muted); }
.tile--design .tile__label { color: var(--ground); }
.tile__live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tile__dots { display: flex; gap: 5px; }
.tile__dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.tile svg { display: block; flex: 1 1 0; min-height: 0; margin-top: 8px; }

/* SVG helpers (accent follows the Customizer color) */
.acc-fill { fill: var(--accent); }
.acc-stroke { stroke: var(--accent); }
.svg-mono { font-family: var(--font-mono); }

/* ==========================================================================
   Services
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.service {
    display: flex; flex-direction: column; gap: 20px;
    padding: 32px;
    background: var(--ground);
    border: 1px solid var(--line); border-top: 10px solid var(--ink);
    border-radius: var(--radius);
}
.service--print { border-top-color: var(--accent); }
.service--design { border-top-color: var(--blue); }
.service__top { display: flex; align-items: center; justify-content: space-between; }
.service__num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.service h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; }
.service p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }
.service ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.service li { padding-top: 10px; border-top: 1px solid var(--line); }
.service__link { display: flex; align-items: center; min-height: 44px; margin-top: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }

.icon { fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon--service { color: var(--ink); stroke: var(--ink); stroke-width: 2; }
.icon--it { stroke: var(--accent); stroke-width: 1.75; }

/* ==========================================================================
   Work
   ========================================================================== */
.section--work { gap: 40px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.work-item { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.work-item__shot { display: block; overflow: hidden; line-height: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.work-item__shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }
.work-item figcaption { font-size: 16px; }
.work-item figcaption a { font-weight: 600; text-underline-offset: 4px; }

/* ==========================================================================
   Shop and custom printing
   ========================================================================== */
.section--shop { gap: 64px; }
.shop { display: flex; flex-direction: column; gap: 40px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.product { display: flex; flex-direction: column; margin: 0; }
.product__link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.product__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); }
.product__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.product__link:hover .product__title { text-decoration: underline; text-underline-offset: 4px; }
.product__price { font-family: var(--font-mono); font-size: 14px; white-space: nowrap; }

.shop-fallback {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    padding: 32px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
}
.shop-fallback p { margin: 0; font-size: 18px; }

.custom { display: flex; flex-wrap: wrap; gap: 48px; padding: 48px; color: var(--ground); background: var(--ink); border-radius: var(--radius); }
.custom__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.custom h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.custom__lede { margin: 0; max-width: 30em; font-size: 18px; line-height: 1.55; color: #E4DECF; }
.custom .btn { align-self: flex-start; }
.steps { flex: 1 1 360px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.steps__n { min-width: 28px; font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.steps strong { display: block; font-size: 18px; font-weight: 600; }
.steps__d { display: block; margin-top: 4px; line-height: 1.5; color: var(--soft); }

/* ==========================================================================
   About
   ========================================================================== */
.section--about { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.about__label { flex: 1 1 320px; min-width: 0; }
.about__body { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about__lead { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.about__text { margin: 0; max-width: 36em; font-size: 18px; line-height: 1.6; color: var(--body); }

/* ==========================================================================
   Local IT
   ========================================================================== */
.it__inner { display: flex; flex-direction: column; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.it__top { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; }
.it__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.it h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.it__copy > p:not(.eyebrow) { margin: 0; max-width: 34em; font-size: 18px; line-height: 1.55; color: #E4DECF; }
.it-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.it-list li { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 12px 0; font-size: 17px; border-top: 1px solid var(--line-dark); }

/* ==========================================================================
   Contact
   ========================================================================== */
.section--contact { flex-direction: row; flex-wrap: wrap; gap: 56px 80px; }
.contact__copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__copy > p:not(.eyebrow) { margin: 0; max-width: 28em; font-size: 18px; line-height: 1.55; color: var(--body); }
.contact__details { display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.contact__details a { display: flex; align-items: center; min-height: 44px; font-weight: 600; }
.contact__details span { color: var(--muted); }

.form { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: relative; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 52px; padding: 0 16px;
    font: inherit; font-size: 17px; color: var(--ink);
    background: var(--surface); border: 2px solid var(--ink); border-radius: 4px;
}
.field select { padding: 0 12px; }
.field textarea { padding: 14px 16px; resize: vertical; }
.form .btn { align-self: flex-start; padding: 0 32px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; font-weight: 500; background: var(--surface); border: 2px solid var(--ink); border-radius: 4px; }
.notice--ok { border-color: #1B6B3A; }
.notice--err { border-color: #A32A12; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--soft); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; font-size: 15px; }
.site-footer__legal { width: 100%; margin: 0; padding-top: 16px; font-size: 13px; color: #B9B2A0; border-top: 1px solid var(--line-dark); }

/* ==========================================================================
   Generic pages and posts
   ========================================================================== */
.entry { padding-top: 80px; padding-bottom: 96px; }
.entry > *, .entry article { max-width: 760px; }
.entry__title { margin: 0 0 24px; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.entry__meta { margin: 0 0 16px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.entry__content { font-size: 18px; line-height: 1.65; color: var(--body); }
.entry__content a { text-underline-offset: 4px; }
.entry__item { margin-bottom: 40px; }
.entry__item-title { margin: 0 0 8px; font-family: var(--font-display); font-size: 28px; }

/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 640px) {
    .wrap { padding-left: 20px; padding-right: 20px; }
    .section { padding-top: 64px; padding-bottom: 64px; gap: 40px; }
    .hero { padding: 48px 0 64px; }
    .custom { padding: 28px; gap: 32px; }
    .it__inner { padding-top: 56px; padding-bottom: 56px; }
    .service { padding: 24px; }
    .entry { padding-top: 56px; padding-bottom: 64px; }
}
