/* Whetstone Dynamics site stylesheet: the locked "wall chart" direction.
   Workshop grey, charcoal, dashed hairlines, mono figures, the drawn
   whetstone wheel as the mark. Documented live at /styleguide/. */

:root {
    --bg: #f4f4f2;
    --text: #2b2b2b;
    --accent: #4a4a45;
    --muted: #6c6c66;
    --surface: #fbfbfa;
    --border: #d8d8d4;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
main { display: block; }
a { color: var(--text); }

.guide-bar { display: flex; justify-content: space-between; padding: 0.5rem 1.5rem; background: #111; color: #bbb; font-size: 14px; }
.guide-bar a { color: #fff; text-decoration: none; }

.site-header, .hero, .services, .honesty, .closing-cta, .site-footer, .specimen {
    max-width: 960px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem;
}

.site-header { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--text); font-size: 1.25rem; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; color: var(--accent); }
.logo-strong { font-weight: 800; }
.logo-light { font-weight: 300; color: var(--muted); }
.site-nav a { margin-left: 1.5rem; text-decoration: none; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }
.site-nav a:hover { color: var(--text); }
.nav-contact { color: var(--text) !important; text-decoration: underline !important; text-underline-offset: 4px; }

.hero { position: relative; overflow: hidden; padding-top: 4rem; padding-bottom: 4rem; }
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero > *:not(.hero-canvas) { position: relative; z-index: 1; }
.kicker { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 1rem; }
h1 { font-size: 2.4rem; line-height: 1.15; letter-spacing: -0.015em; font-weight: 800; max-width: 24ch; }
.lede { margin-top: 1.25rem; font-size: 1.15rem; color: var(--muted); max-width: 55ch; }
.cta-row { margin-top: 2rem; display: flex; align-items: center; gap: 1.25rem; }
.button { display: inline-block; background: transparent; color: var(--text); border: 1.5px solid var(--text); text-decoration: none; font-family: var(--mono); font-size: 0.95rem; padding: 0.7rem 1.5rem; border-radius: 0; }
.button:hover { background: var(--text); color: var(--bg); }
.cta-alt { color: var(--text); font-family: var(--mono); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 1rem; padding-bottom: 3rem; }
.card { background: var(--surface); border: 1px dashed var(--accent); padding: 1.5rem; }
.card h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; color: var(--muted); }
.figure { font-family: var(--mono); font-size: 0.9em; color: var(--text); font-weight: 700; }

.honesty { border: 1px dashed var(--muted); padding: 1.25rem 1.5rem; margin-bottom: 3rem; max-width: 860px; }
.honesty h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.honesty p { color: var(--muted); max-width: 68ch; }

.closing-cta { text-align: center; padding-top: 3rem; padding-bottom: 3.5rem; border-top: 1px dashed var(--accent); }
.closing-cta h2 { font-size: 1.5rem; }
.closing-cta p { margin-top: 0.5rem; color: var(--muted); }
.closing-cta .cta-row { justify-content: center; }

.site-footer { border-top: 1px dashed var(--accent); padding-top: 1.25rem; padding-bottom: 2rem; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

.specimen { border-top: 4px double var(--border); margin-top: 2rem; padding-top: 2rem; padding-bottom: 4rem; }
.specimen-title { font-size: 1.25rem; margin-bottom: 1.5rem; }
.specimen-block { margin-bottom: 2rem; }
.specimen-block h3 { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.75rem; }
.swatches { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.swatch { width: 130px; height: 70px; border: 1px solid var(--border); display: flex; align-items: flex-end; padding: 0.4rem; font-family: var(--mono); font-size: 0.7rem; }
.swatch-bg { background: var(--bg); }
.swatch-text { background: var(--text); color: #fff; }
.swatch-accent { background: var(--accent); color: #fff; }
.swatch-muted { background: var(--muted); color: #fff; }
.swatch-surface { background: var(--surface); }
.spec-h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.spec-h2 { font-size: 26px; font-weight: 700; margin-top: 0.5rem; }
.spec-body { font-size: 17px; margin-top: 0.5rem; max-width: 60ch; }
.spec-small { font-size: 14px; color: var(--muted); margin-top: 0.5rem; font-family: var(--mono); }
.spec-controls { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

@media (max-width: 720px) {
    .services { grid-template-columns: 1fr; }
    h1 { font-size: 1.85rem; }
    .site-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
    .site-nav a { margin-left: 0; margin-right: 1.25rem; }
}

/* Inner pages: shared primitives, same wall chart rules. */

.page-head, .page-body {
    max-width: 960px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem;
}
.page-head { padding-top: 3.5rem; padding-bottom: 1.5rem; }
.page-head h1 { max-width: 28ch; }
.page-body { padding-bottom: 3rem; }

.crumbs { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }

.prose h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin-top: 2.25rem; margin-bottom: 0.6rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: 0.4rem; }
.prose p, .prose ul { margin-bottom: 1rem; max-width: 68ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }

.prose table { border-collapse: collapse; margin: 0.5rem 0 1.5rem; width: 100%; font-size: 0.95rem; }
.prose th { text-align: left; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.05em; font-weight: 400; color: var(--muted); padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1.5px solid var(--text); }
.prose td { padding: 0.55rem 1rem 0.55rem 0; border-bottom: 1px dashed var(--border); vertical-align: top; }
.prose td.status { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.5rem 0 2rem; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.card-link { display: inline-block; margin-top: 0.75rem; font-family: var(--mono); font-size: 0.85rem; color: var(--text); text-underline-offset: 4px; }

.link-list { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.link-list li { margin-bottom: 0.4rem; }
.link-list a { font-family: var(--mono); font-size: 0.95rem; text-underline-offset: 4px; }

.article-list { list-style: none; padding: 0; margin: 0.5rem 0 2rem; max-width: 68ch; }
.article-list li { margin: 0; padding: 1.15rem 0; border-bottom: 1px dashed var(--border); }
.article-list li:first-child { border-top: 1px dashed var(--border); }
.article-list .article-date { display: block; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.3rem; }
.article-list a { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.article-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-list p { margin: 0.3rem 0 0; font-size: 0.95rem; color: var(--muted); }

.contact-form { max-width: 560px; margin-top: 2rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.35rem; }
.field input, .field textarea { width: 100%; background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 1rem; padding: 0.65rem 0.75rem; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.errorlist { list-style: none; padding: 0; margin: 0.35rem 0 0; font-family: var(--mono); font-size: 0.8rem; color: #8a3b32; }
.hp { position: absolute; left: -9999px; top: auto; }
.notice { border: 1px dashed var(--accent); background: var(--surface); padding: 1rem 1.25rem; margin: 1.5rem 0; max-width: 560px; }

.phone-line { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; }

/* Photo hero: full-bleed painted banner with the page title overlaid.
   Every page opens with one. */
.photo-hero { position: relative; overflow: hidden; }
.photo-hero > img { display: block; width: 100%; height: min(56vh, 480px); object-fit: cover; }
/* Canvas-painted variant: no image; the sketch is the picture (flock on
   home, links on contact). Background must match PAINT_BG in
   hero-motion.js. The text sits on a soft scrim instead of the photo
   heroes' bottom gradient. */
.photo-hero--canvas { height: min(62vh, 520px); background: #26241f; }
.photo-hero--canvas .photo-hero-text { background: none; padding-bottom: 2.75rem; }
/* Soft scrim: a radial fade behind the text, no edges. */
.hero-panel { position: relative; width: fit-content; padding: 0.5rem 0; }
/* closest-side so the fade reaches true zero exactly at the box edges,
   and a bottom inset smaller than the hero's bottom padding so the box
   never crosses the hero edge (overflow clipping was cutting the fade). */
.hero-panel::before { content: ""; position: absolute; inset: -4rem -7rem -2.5rem; z-index: -1; pointer-events: none; background: radial-gradient(ellipse closest-side at center, rgba(22, 21, 18, 0.85) 0%, rgba(22, 21, 18, 0.68) 55%, rgba(22, 21, 18, 0) 100%); }
.photo-hero .hero-canvas { z-index: 1; }
.photo-hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 4.5rem 0 1.75rem; background: linear-gradient(180deg, rgba(24,24,24,0) 0%, rgba(24,24,24,0.78) 70%); }
.photo-hero-text > div { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.photo-hero-text .kicker { color: rgba(255,255,255,0.75); }
.photo-hero-text h1 { color: #fff; }
.photo-hero-text .lede { color: rgba(255,255,255,0.88); }
.photo-hero-text .cta-row { margin-top: 1.5rem; }
.photo-hero-text .button { border-color: #fff; color: #fff; }
.photo-hero-text .button:hover { background: #fff; color: var(--text); }
.photo-hero-text .cta-alt { color: #fff; }
.photo-hero-text .crumbs, .photo-hero-text .crumbs a { color: rgba(255,255,255,0.75); }

/* Illustrations: line-drawn catalogue plates, framed like wall charts. */
.page-head.with-illo { display: grid; grid-template-columns: 3fr 2fr; gap: 2rem; align-items: center; }
.page-head-illo img { display: block; width: 100%; height: auto; border: 1px dashed var(--border); }
.card-illo { display: block; width: 100%; height: auto; border: 1px dashed var(--border); margin-bottom: 1rem; }

/* Vendor logos: monochrome at rest, true colours on hover. Each logo sits
   in a framed tile so mixed shapes and weights read as one deliberate row;
   per-logo classes even out the optical sizes. */
.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin: 1.5rem 0 2rem; }
@media (max-width: 900px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .logo-strip { grid-template-columns: repeat(2, 1fr); } }
.logo-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; height: 96px; border: 1px dashed var(--border); background: var(--surface); text-decoration: none; }
.logo-tile img { max-width: 110px; max-height: 28px; width: auto; height: auto; filter: grayscale(1); opacity: 0.8; mix-blend-mode: multiply; }
.logo-tile span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.logo-tile:hover { border-color: var(--muted); }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile:hover span { color: var(--text); }

.vendor-plate { float: right; width: 200px; height: 96px; margin: 0 0 1rem 2rem; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border); background: var(--surface); }
.vendor-plate img { max-width: 130px; max-height: 32px; width: auto; height: auto; filter: grayscale(1); opacity: 0.8; mix-blend-mode: multiply; }
.vendor-plate:hover img { filter: none; opacity: 1; }

/* Optical size corrections per mark */
img.logo-simpro { max-height: 18px; }
img.logo-katana { max-height: 22px; }
img.logo-tharstern { max-height: 24px; }
img.logo-sage { max-height: 30px; }
img.logo-unleashed { max-height: 34px; }
img.logo-xero { max-height: 40px; }

@media (max-width: 720px) {
    .vendor-plate { float: none; width: 100%; margin: 0 0 1.5rem; }
}

.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; padding-bottom: 0.75rem; }
.footer-col h3 { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 0.3rem; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 720px) {
    .card-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
