/* Stumpy's Stump Grinding */

@font-face {
    font-family: "Chivo";
    src: url("fonts/chivo.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Literata";
    src: url("fonts/literata.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Literata";
    src: url("fonts/literata-italic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --oval: #0e5333;        /* the oval in his logo */
    --oval-deep: #0a3f27;
    --trailer: #ecede8;     /* the aluminium trailer */
    --paper: #f8f8f4;
    --ink: #191b18;         /* logo lettering */
    --muted: #51564e;
    --bandit: #f6b91e;      /* the yellow grinder, main action only */
    --bandit-deep: #e0a50c;
    --soil: #34271d;
    --chip: #cfaa76;
    --hat: #b8441a;         /* hard hat orange, gate too tight only */
    --rule: rgba(25, 27, 24, 0.16);
    --max-width: 1180px;
    --radius: 4px;
    --radius-lg: 8px;
    --head: "Chivo", "Arial Black", Arial, sans-serif;
    --body: "Literata", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis-smooth { scroll-behavior: auto !important; }
body {
    margin: 0;
    background: var(--trailer);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.68;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--oval); text-underline-offset: 3px; }
a:hover { color: var(--oval-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 18ch; }
h3 { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.2; }
.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 60; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 22px;
    font-family: var(--head); font-weight: 800; font-size: 1rem; letter-spacing: -0.005em; line-height: 1.1;
    border: 0; border-radius: var(--radius); text-decoration: none; cursor: pointer;
    transition: background-color 0.15s ease;
}
.button-call { background: var(--bandit); color: var(--ink); }
.button-call:hover { background: var(--bandit-deep); color: var(--ink); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #000; color: #fff; }
.text-link { font-family: var(--head); font-weight: 700; color: var(--ink); display: inline-block; padding: 10px 0; }

/* top bar and header */
.topbar { background: var(--soil); color: #f1e9dc; font-family: var(--head); font-size: 0.88rem; font-weight: 600; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; white-space: nowrap; }
.topbar a { color: #fff; text-decoration: none; display: inline-block; padding: 11px 0; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-email { margin-left: 22px; }
.site-header { background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.logo img { width: 150px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-family: var(--head); font-weight: 600; font-size: 0.97rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* hero */
.hero { background: var(--oval); color: #fff; padding: 84px 0 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
.hero-copy { padding-bottom: 88px; }
.hero h1 { font-weight: 900; font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: 0.96; letter-spacing: -0.035em; max-width: 11ch; }
.hero-lede { font-size: 1.2rem; line-height: 1.6; max-width: 34em; margin: 28px 0 32px; color: #eef3ee; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero-email { color: #fff; font-family: var(--head); font-weight: 700; display: inline-block; padding: 10px 0; }
.hero-email:hover { color: var(--bandit); }
.hero-note { margin: 26px 0 0; font-style: italic; color: #d5e2d8; }
.hero-photo { margin-bottom: -72px; position: relative; z-index: 2; }
.hero-photo img { width: 100%; border-radius: var(--radius); border: 8px solid var(--paper); }

/* the grind */
.grind-section { padding-top: 150px; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 56px; align-items: end; margin-bottom: 44px; }
.section-head p { margin: 0; max-width: 34em; color: var(--muted); }
.grind { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; }
.grind-controls { display: grid; gap: 26px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend, .field-label { display: block; font-family: var(--head); font-weight: 700; font-size: 1rem; margin-bottom: 8px; padding: 0; }
.field output { display: block; font-family: var(--head); font-weight: 500; color: var(--muted); font-size: 0.97rem; margin-top: 6px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--ink); border-radius: 3px; }
input[type="range"]::-moz-range-track { height: 6px; background: var(--ink); border-radius: 3px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: var(--bandit); border: 3px solid var(--ink); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--bandit); border: 3px solid var(--ink); }
.setting-options { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.setting-options label { position: relative; display: block; cursor: pointer; }
.setting-options label + label { border-left: 2px solid var(--ink); }
.setting-options input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.setting-options span { display: flex; align-items: center; justify-content: center; min-height: 46px; font-family: var(--head); font-weight: 700; font-size: 0.97rem; background: var(--paper); }
.setting-options input:checked + span { background: var(--ink); color: #fff; }
.setting-options input:focus-visible + span { outline: 3px solid var(--bandit); outline-offset: -5px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.stepper button { width: 48px; height: 46px; border: 0; background: var(--paper); color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.3rem; cursor: pointer; border-radius: 0; }
.stepper button:hover { background: var(--bandit); }
.stepper output { min-width: 52px; text-align: center; margin: 0; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.gate { width: 100%; margin-top: 4px; border-radius: var(--radius); background: var(--paper); }
.gate-text { font-family: var(--head); font-weight: 700; font-size: 11px; fill: var(--ink); }
.field .gate-out { color: var(--oval); font-weight: 700; }
.field .gate-out.is-tight { color: var(--hat); }
.grind-stage { background: var(--soil); border-radius: var(--radius-lg); overflow: hidden; }
#stage { width: 100%; }
.stage-text { font-family: var(--head); font-weight: 600; font-size: 17px; fill: var(--chip); stroke: none; }
.grind-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px 20px; color: #f1e9dc; }
.grind-result { margin: 0; font-size: 1rem; line-height: 1.5; min-height: 4.5em; max-width: 30em; }
.grind-foot .button { flex: none; min-width: 148px; }
.grind-send { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: center; }
#g-summary { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
.grind-send-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.fine { grid-column: 1 / -1; margin: 6px 0 0; font-size: 0.92rem; color: var(--muted); }

/* where stumps get ground */
.where { background: var(--paper); }
.where-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.where h2 { margin-bottom: 30px; }
.job { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 28px; padding: 20px 0; border-top: 1px solid var(--rule); }
.job:last-child { border-bottom: 1px solid var(--rule); }
.job p { margin: 0; }
.where-photo { position: sticky; top: 32px; }
.where-photo img { width: 100%; border-radius: var(--radius); }
figcaption { font-size: 0.95rem; line-height: 1.5; color: var(--muted); margin-top: 10px; font-style: italic; }

/* photos */
.jobs { padding-top: 0; background: var(--paper); }
.jobs h2 { margin-bottom: 30px; }
.jobs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.jobs-grid img { width: 100%; border-radius: var(--radius); }

/* area */
.area { background: var(--soil); color: #f1e9dc; }
.area h2 { font-weight: 900; font-size: clamp(2rem, 4.8vw, 3.9rem); line-height: 1; letter-spacing: -0.03em; color: #fff; max-width: 21ch; }
.area-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 26em)); gap: 28px 56px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(207, 170, 118, 0.4); }
.area-notes h3 { color: var(--chip); margin: 0 0 8px; }
.area-notes p { margin: 0; }

/* questions */
.questions-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-family: var(--head); font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.25s ease; }
.faq-item.is-open summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq-item.is-open summary { color: var(--oval); }
.faq-answer { overflow: hidden; margin: 0; padding: 0 44px 22px 0; max-width: 40em; }

/* contact */
.contact { background: var(--oval); color: #fff; }
.contact h2 { max-width: none; }
.contact-lede { max-width: 36em; margin: 20px 0 30px; color: #eef3ee; font-size: 1.12rem; }
.contact-phone { display: inline-block; font-family: var(--head); font-weight: 900; font-size: clamp(2.5rem, 9vw, 6.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--bandit); text-decoration: none; }
.contact-phone:hover { color: #fff; }
.contact-who { margin: 22px 0 0; font-size: 1.12rem; }
.contact-who a { color: #fff; font-weight: 600; display: inline-block; padding: 10px 0; }

/* footer */
.site-footer { background: var(--ink); color: #d9dcd4; padding: 48px 0 110px; font-size: 0.97rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 40px; align-items: start; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer strong { font-family: var(--head); color: #fff; }
.site-footer a { color: #fff; display: inline-block; padding: 10px 0; }
.site-footer address { line-height: 1.3; }
.site-footer p { margin: 0 0 6px; }
.footer-area { max-width: 30em; }

/* privacy and 404 */
.page-simple { background: var(--paper); }
.page-simple main { padding: 56px 0 120px; }
.page-simple h1 { font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.policy h2 { font-size: 1.35rem; margin: 34px 0 10px; max-width: none; }
.policy p { max-width: 42em; }
.simple-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 26px; }

@media (max-width: 980px) {
    .site-nav { display: none; }
    .header-call { margin-left: auto; }
    .hero-inner { grid-template-columns: 1fr; gap: 0; }
    .hero-copy { padding-bottom: 44px; }
    .hero-photo { max-width: 600px; margin-bottom: -56px; }
    .grind-section { padding-top: 120px; }
    .section-head, .where-inner, .questions-inner { grid-template-columns: 1fr; gap: 24px; }
    .grind { grid-template-columns: 1fr; }
    .grind-stage { order: -1; }
    .where-photo { position: static; max-width: 600px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 1rem; }
    .wrap { padding: 0 18px; }
    section { padding: 68px 0; }
    .topbar .topbar-email { display: none; }
    .logo img { width: 128px; }
    .site-header .header-call { display: none; }
    .hero { padding-top: 52px; }
    .hero-lede { font-size: 1.08rem; }
    .hero-photo img { border-width: 5px; }
    .grind-section { padding-top: 104px; }
    .grind-foot { flex-direction: column; align-items: stretch; padding: 14px 16px 16px; }
    .grind-result { min-height: 6em; }
    .grind-send { grid-template-columns: 1fr; }
    #g-summary { font-size: 1.12rem; }
    .job { grid-template-columns: 1fr; }
    .area-notes { grid-template-columns: 1fr; margin-top: 32px; }
    .jobs-grid { grid-template-columns: 1fr; gap: 24px; }
    .faq-answer { padding-right: 8px; }
    .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 360px) {
    .hero h1 { font-size: 2.35rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
