/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


:root{
    /* Type scale — hand-crafted non-uniform clamps that ACSS's uniform-scale generator can't express (see CLAUDE.md → Child Theme → style.css). */
    --text-xs: clamp(0.57rem, 0.11vi + 0.54rem, 0.63rem);
    --text-s: clamp(0.75rem, 0.15vi + 0.72rem, 0.84rem);
    --text-m: clamp(0.8333rem, 0.7576rem + 0.303vw, 1rem);
    --text-l: clamp(1.33rem, 0.28vi + 1.27rem, 1.5rem);
    --text-xl: clamp(1.77rem, 0.38vi + 1.69rem, 2rem);

    --h6: clamp(1.125rem, 1.0611rem + 0.2557vw, 1.2656rem);
    --h5: clamp(1.25rem, 1.179rem + 0.2841vw, 1.4063rem);
    --h4: clamp(1.5rem, 1.4148rem + 0.3409vw, 1.6875rem);
    --h3: clamp(1.875rem, 1.7685rem + 0.4261vw, 2.1094rem);
    --h2: clamp(2.25rem, 2.1222rem + 0.5114vw, 2.5313rem);
    --h1: clamp(3rem, 2.8295rem + 0.6818vw, 3.375rem);
    --h-title: clamp(3.05rem, 2.15vi + 2.62rem, 4.34rem);

    /* Brand tokens that aren't part of a ramp — no ACSS slot to hold them. */
    --punch-cream: #E9E3D3;
    --punch-paper: #F5EFE0;
    --punch-ink:   #1A1A1A;
    --punch-rule:  #2A2418;
    --punch-muted: #756C55;
}

.text-xl {
    font-size: var(--text-xl);
    line-height: 1.4;
}
.text-l {
    font-size: var(--text-l);
    line-height: 1.5;
}
body, .text-m {
    font-size: var(--text-m);
    line-height: 1.5;
}
.text-s {
    font-size: var(--text-s);
    line-height: 1.6;
}
.text-xs {
    font-size: var(--text-xs);
    line-height: 1.7;
}

.h-title {
    font-size: var(--h-title);
    line-height: 1.05;
}
h1, .h1 {
    font-size: var(--h1);
    line-height: 1.1;
}
h2, .h2 {
    font-size: var(--h2);
    line-height: 1.2;
}
h3, .h3 {
    font-size: var(--h3);
    line-height: 1.3;
}
h4, .h4 {
    font-size: var(--h4);
    line-height: 1.4;
}
h5, .h5 {
    font-size: var(--h5);
    line-height: 1.5;
}
h6, .h6 {
    font-size: var(--h6);
    line-height: 1.6;
}

/* Restore vertical rhythm inside Bricks Rich Text. ACSS zeroes margin-block
   on p, headings, and lists site-wide and only re-applies spacing inside
   .smart-spacing containers — Bricks' brxe-text isn't one. */
.brxe-text > * + * {
    margin-block-start: var(--paragraph-spacing, 1em);
}


/* =========================================================================
   PUNCH BRAND PATTERNS
   Reusable identity-level visual patterns. Referenced in
   notes/index.html (Brand Identity Vol. I) and notes/employment-wireframe.html.
   Voice-level elements: eyebrows, ornaments, section heads, double-rules,
   drop caps, display italics, pullouts.
   ========================================================================= */

/* -- Eyebrow --------------------------------------------------------------
   Small red all-caps label with thin rules flanking it on both sides.
   Use on: hero masthead, chapter labels, apply-band intro.
   Apply .is-gold on navy / dark surfaces (e.g. apply band).
   Markup: <span class="punch-eyebrow">Now Hiring · Wheaton, Illinois</span>
   -------------------------------------------------------------------------*/
.punch-eyebrow {
    font-family: var(--heading-font-family);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.punch-eyebrow::before,
.punch-eyebrow::after {
    content: "";
    height: 1px;
    flex: 0 1 5rem;
    background: currentColor;
    opacity: 0.5;
}

.punch-eyebrow.is-gold { color: var(--accent); }

/* -- Ornament -------------------------------------------------------------
   Three stars, wide-tracked, centered. Use between masthead and section
   body as a decorative separator.
   Markup: <div class="punch-ornament">✦ ✦ ✦</div>
   -------------------------------------------------------------------------*/
.punch-ornament {
    font-family: var(--heading-font-family);
    color: var(--primary);
    font-size: var(--h6);
    letter-spacing: 0.5em;
    text-align: center;
}

.punch-ornament.is-gold { color: var(--accent); }

/* -- Double rule ----------------------------------------------------------
   3px double-ruled divider. Use as section separator beneath hero/masthead.
   Apply as a modifier on the section/block.
   -------------------------------------------------------------------------*/
.punch-double-rule        { border-bottom: 3px double var(--punch-rule); }
.punch-double-rule-top    { border-top:    3px double var(--punch-rule); }

/* -- Section head --------------------------------------------------------
   Chapter-N eyebrow + section title + italic lede + hairline underneath.
   Children use BEM-style descendants so markup can be built in Bricks
   without needing nested global classes.
   Markup:
     <div class="punch-section-head">
       <div class="punch-section-head__number">Chapter One</div>
       <h2 class="punch-section-head__title">The Vision</h2>
       <p class="punch-section-head__lede">What Punch is, and what that asks…</p>
     </div>
   -------------------------------------------------------------------------*/
.punch-section-head {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--punch-rule);
}

.punch-section-head__title {
    font-family: var(--heading-font-family);
    font-size: var(--h2);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--punch-black, var(--base));
    margin: 0;
}

.punch-section-head__lede {
    font-family: var(--heading-font-family);
    font-style: italic;
    font-size: var(--h6);
    color: var(--punch-muted);
    font-weight: 400;
    line-height: 1.5;
}

/* -- Display italic em ---------------------------------------------------
   Inside display headings (.punch-display, e.g. masthead H1), any <em>
   renders italic, weight-400, red. Use for the "Come work the chair."
   ceremonial emphasis pattern.
   Apply .punch-display to the heading, mark the accent word with <em>.
   -------------------------------------------------------------------------*/
.punch-display em {
    font-style: italic;
    font-weight: 400;
    color: var(--primary);
}

.punch-display.is-gold em {
    color: var(--accent);
}
.punch-display-alt em {
    font-style: italic;
    font-weight: 400;
    color: var(--primary);
}

.punch-display-alt.is-gold em {
    color: var(--accent);
}
/* -- Drop cap -------------------------------------------------------------
   Red slab-serif first-letter drop. Apply .punch-drop to a paragraph
   that opens a prose section.
   -------------------------------------------------------------------------*/
.punch-drop::first-letter {
    font-family: var(--heading-font-family);
    font-size: 4.25rem;
    font-weight: 700;
    line-height: 0.9;
    float: left;
    padding: 0.25rem 0.625rem 0 0;
    color: var(--primary);
}

/* -- Pullout --------------------------------------------------------------
   Ceremonial callout between sections — top+bottom hairlines with a
   centered ✦ anchor that sits over the top rule, label + italic body.
   The anchor background uses --body-bg-color so it remains clean whether
   the site body is white, cream, or paper.
   Markup:
     <div class="punch-pullout">
       <div class="punch-pullout__label">The Hiring Process</div>
       <p class="punch-pullout__body">Our process includes a brief,
         <strong>paid working interview</strong>. …</p>
     </div>
   -------------------------------------------------------------------------*/
.punch-pullout {
    position: relative;
    text-align: center;
    padding: 2.75rem 3rem;
    border-top: 1px solid var(--punch-rule);
    border-bottom: 1px solid var(--punch-rule);
    margin: 3rem 0;
}

.punch-pullout::before {
    content: "✦";
    position: absolute;
    top: -0.875rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--heading-font-family);
    font-size: 1.25rem;
    color: var(--primary);
    background: var(--body-bg-color);
    padding: 0 1rem;
    line-height: 1;
}

.punch-pullout__body {
    font-family: var(--heading-font-family);
    font-style: italic;
    font-size: var(--h5);
    line-height: 1.5;
    color: var(--punch-ink);
    max-width: 40rem;
    margin: 0 auto;
    font-weight: 400;
}

.punch-pullout__body strong {
    font-style: normal;
    font-weight: 700;
    color: var(--primary-dark);
}


/* =========================================================================
   EMPLOYMENT PAGE COMPONENT PATTERNS
   Layout-level components used on /employment/. Named without .punch-
   prefix because they're functional layout (grids, definition lists, CTA
   bands) — distinct from the voice-level .punch-* brand patterns above.
   If any of these turn out to recur across other pages (About, Services)
   consider promoting them to .punch-* or migrating to Bricks global classes.
   ========================================================================= */

/* -- Tasks list (§04 What You'll Do) ---------------------------------
   Numbered rows: large thin red numeral + heading + body, hairline
   between rows. */
.task-row {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 2rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(42, 36, 24, 0.15);
    align-items: baseline;
}

.task-row:last-child { border-bottom: none; }

.task-num {
    font-family: var(--heading-font-family);
    font-size: 2.75rem;
    font-weight: 300;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.task-title {
    font-family: var(--heading-font-family);
    font-size: var(--h4);
    font-weight: 700;
    color: var(--base);
    margin: 0 0 0.375rem;
}

.task-body {
    font-size: var(--text-m);
    line-height: 1.65;
    color: var(--punch-ink);
    margin: 0;
}

@media (max-width: 640px) {
    .task-row  { grid-template-columns: 3.75rem 1fr; gap: 1.25rem; }
    .task-num  { font-size: 2.125rem; }
}

/* -- Traits grid (§06 Who You Are) -----------------------------------
   Two-column grid; each trait item prefixed with a red em-dash and a
   hairline separator below. Em-dash comes from ::before so it lives in
   CSS, not in editor content. */
.traits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3.5rem;
}

.trait {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(42, 36, 24, 0.15);
}

.trait__name {
    font-family: var(--heading-font-family);
    font-size: var(--h5);
    font-weight: 700;
    color: var(--base);
    letter-spacing: -0.005em;
    margin: 0 0 0.375rem;
}

.trait__name::before {
    content: "— ";
    color: var(--primary);
    font-weight: 500;
}

.trait__body {
    font-size: var(--text-m);
    line-height: 1.6;
    color: var(--punch-ink);
    margin: 0;
}

@media (max-width: 640px) {
    .traits-grid { grid-template-columns: 1fr; }
    .trait:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid rgba(42, 36, 24, 0.15); }
}

/* -- Specs definition list (§07 Schedule & Requirements) -------------
   Tracked-label column + value column, with optional italic note
   beneath the value. */
.specs {
    display: flex;
    flex-direction: column;
}

.spec-row {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 2.5rem;
    padding: 1.375rem 0;
    border-bottom: 1px solid rgba(42, 36, 24, 0.2);
    align-items: baseline;
}

.spec-row:last-child { border-bottom: none; }

.spec-row__label {
    font-family: var(--heading-font-family);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--punch-muted);
    margin: 0;
}

.spec-row__value {
    font-family: var(--heading-font-family);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--base);
    line-height: 1.45;
    margin: 0;
}

.spec-row__note {
    display: block;
    font-style: italic;
    color: var(--punch-muted);
    font-size: 0.9375rem;
    font-weight: 400;
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .spec-row { grid-template-columns: 1fr; gap: 0.375rem; }
}

/* -- Apply band (§09 How to Apply) -----------------------------------
   Navy full-width CTA band with cream text and gold accents. Phone is
   the primary CTA, email is the alternate. Details grid beneath the
   CTA with top hairline. */
.apply-band {
    background: var(--secondary);
    color: var(--punch-cream);
    text-align: center;
    padding: 6rem 0;
}

.apply-band a { color: inherit; }

.apply-label {
    font-family: var(--heading-font-family);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.apply-phone {
    display: inline-block;
    font-family: var(--heading-font-family);
    font-weight: 800;
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    letter-spacing: -0.02em;
    color: var(--punch-cream);
    text-decoration: none;
    line-height: 1;
    transition: color 300ms ease-in-out;
}

.apply-phone:hover { color: var(--accent); }

.apply-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 2rem 0;
    font-family: var(--heading-font-family);
    font-size: 0.6875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(233, 227, 211, 0.5);
}

.apply-divider::before,
.apply-divider::after {
    content: "";
    height: 1px;
    flex: 0 1 6rem;
    background: rgba(233, 227, 211, 0.3);
}

.apply-email {
    display: inline-block;
    font-family: var(--heading-font-family);
    font-weight: 600;
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 300ms ease-in-out;
}

.apply-email:hover { border-bottom-color: var(--accent); }

.apply-details {
    border-top: 1px solid rgba(233, 227, 211, 0.18);
}

.apply-detail__label {
    font-family: var(--heading-font-family);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.625rem;
}

.apply-detail__value {
    font-family: var(--heading-font-family);
    font-size: 1rem;
    font-weight: 500;
    color: var(--punch-cream);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 640px) {
    .apply-details { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* -- Hours compact helper output -------------------------------------
   Styles the spans emitted by [punch_hours_compact] / {punch_hours_compact}.
   These resolve inline wherever the tag is used (apply band, footer, etc.)
   — color is inherited so they adapt to context. */
.punch-hours-compact__range {
    font-family: var(--heading-font-family);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.punch-hours-compact__time {
    font-family: var(--heading-font-family);
}
