/* Jarrett Interiors — public site (spec §4, mockups/public-home.html + style.css).
   Warm espresso + linen neutrals, terracotta primary, Poppins display / Figtree
   text. NO external font or CDN loads (spec): the stacks below fall back to
   system faces until font files are bundled locally. */

:root {
    --espresso: #2b241e;
    --espresso-2: #3a2f26;
    --ink: #262626;
    --slate: #6b6159;
    --line: #e8e2da;
    --bg: #f7f4f0;
    --card: #ffffff;
    --terra: #b64e08;
    --terra-dk: #79320e;
    --sage: #5f7a5f;
    --sage-bg: #ecf1ec;
    --red: #a93b2e;
    --red-bg: #f9ecea;
    --font-text: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: "Poppins", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.pub {
    font-family: var(--font-text);
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.pub a { color: var(--terra-dk); text-decoration: none; }

/* ---- header ---- */
.pub-top { display: flex; align-items: center; padding: 22px 56px; gap: 34px; flex-wrap: wrap; }
.pub-top .wordmark {
    font-family: var(--font-display); font-weight: 600; letter-spacing: 3px;
    font-size: 17px; text-transform: uppercase; color: var(--espresso); white-space: nowrap;
}
.pub-top .wordmark span { color: var(--terra); }
.pub-top nav { margin-left: auto; display: flex; gap: 28px; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; flex-wrap: wrap; }
.pub-top nav a { color: var(--ink); }
.pub-top nav a.on { color: var(--terra-dk); font-weight: 600; }
.pub-top .login {
    border: 1.5px solid var(--terra); color: var(--terra); padding: 9px 20px;
    font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
    border-radius: 2px; white-space: nowrap;
}
.pub-top .login:hover { background: var(--terra); color: #fff; }

/* ---- hero ---- */
.pub-hero { position: relative; height: 480px; overflow: hidden; background: var(--espresso); }
.pub-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-hero .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 18, 14, .62), rgba(23, 18, 14, .08)); }
.pub-hero.no-photo { background: linear-gradient(120deg, var(--espresso) 0%, var(--espresso-2) 55%, var(--terra-dk) 130%); }
.pub-hero .msg { position: absolute; left: 56px; right: 24px; top: 50%; transform: translateY(-50%); color: #fff; max-width: 520px; }
.pub-hero .msg h1 { font-family: var(--font-display); font-weight: 500; font-size: 38px; line-height: 1.2; letter-spacing: .5px; }
.pub-hero .msg p { margin-top: 14px; font-size: 15.5px; color: #eadfd3; line-height: 1.6; }
.pub .cta {
    display: inline-block; background: var(--terra); color: #fff;
    padding: 13px 28px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
    font-weight: 600; border-radius: 2px; border: 0; cursor: pointer;
}
.pub .cta:hover { background: var(--terra-dk); color: #fff; }
.pub-hero .msg .cta { margin-top: 22px; }

/* ---- sections ---- */
.pub-sect { padding: 54px 56px; }
.pub-sect.tint { background: var(--bg); }
.pub-sect h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: .5px; }
.pub-sect .lead { color: var(--slate); margin-top: 10px; max-width: 640px; font-size: 14.5px; line-height: 1.7; }
.pub-sect .more-link { display: inline-block; margin-top: 26px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--terra); }

.pub-page-head { padding: 48px 56px 0; }
.pub-page-head h1 { font-family: var(--font-display); font-weight: 500; font-size: 32px; letter-spacing: .4px; }
.pub-page-head p { color: var(--slate); margin-top: 10px; max-width: 640px; font-size: 14.5px; line-height: 1.7; }

/* ---- portfolio grid ---- */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.pub-grid .work { border-radius: 4px; overflow: hidden; position: relative; }
.pub-grid img { width: 100%; height: 240px; object-fit: cover; display: block; background: var(--line); }
.pub-grid .wcap { padding: 12px 2px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate); }

.pub-empty {
    margin-top: 28px; border: 1px dashed var(--line); border-radius: 8px;
    padding: 44px 24px; text-align: center; color: var(--slate); background: var(--bg);
    font-size: 14px;
}

/* ---- positioning pillars ---- */
.pub-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.pub-pillars .pillar { border-top: 2px solid var(--terra); padding-top: 16px; }
.pub-pillars h3 { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: .4px; }
.pub-pillars p { margin-top: 8px; color: var(--slate); font-size: 13.5px; line-height: 1.7; }

/* ---- process steps ---- */
.pub-steps { margin-top: 34px; display: grid; gap: 0; max-width: 760px; }
.pub-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.pub-step:last-child { border-bottom: 1px solid var(--line); }
.pub-step .n {
    width: 40px; height: 40px; border-radius: 50%; background: var(--espresso); color: #fff;
    font-family: var(--font-display); font-weight: 600; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.pub-step h2, .pub-step h3 { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.pub-step p { margin-top: 6px; color: var(--slate); font-size: 14px; line-height: 1.7; }

/* ---- about ---- */
.pub-about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; margin-top: 30px; max-width: 980px; }
.pub-about .bio p + p { margin-top: 14px; }
.pub-about .bio p { color: var(--ink); font-size: 15px; line-height: 1.8; }
.pub-about aside { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 24px 26px; height: fit-content; }
.pub-about aside h2, .pub-about aside h3 { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--terra-dk); }
.pub-about aside ul { list-style: none; margin-top: 12px; }
.pub-about aside li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--slate); }
.pub-about aside li:last-child { border-bottom: 0; }

/* ---- contact form ---- */
.pub-form { max-width: 560px; margin-top: 30px; }
.pub-form label { display: block; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; color: var(--espresso); margin: 18px 0 6px; }
.pub-form input, .pub-form textarea, .pub-form select {
    width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff;
    padding: 11px 13px; font-family: var(--font-text); font-size: 14.5px; color: var(--ink);
}
.pub-form input:focus, .pub-form textarea:focus, .pub-form select:focus { outline: 2px solid rgba(182, 78, 8, .35); border-color: var(--terra); }
.pub-form textarea { min-height: 140px; resize: vertical; }
.pub-form .err { color: var(--red); font-size: 13px; margin-top: 5px; }
.pub-form .submit {
    margin-top: 26px; background: var(--terra); color: #fff; border: 0; cursor: pointer;
    padding: 13px 30px; font-family: var(--font-text); font-size: 12px; letter-spacing: 1.5px;
    text-transform: uppercase; font-weight: 600; border-radius: 2px;
}
.pub-form .submit:hover { background: var(--terra-dk); }

/* honeypot: off-screen, not display:none (bots check) */
.pub-form .hp-field { position: absolute; left: -6000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.pub-thanks {
    max-width: 560px; margin-top: 30px; background: var(--sage-bg); border: 1px solid var(--sage);
    border-radius: 8px; padding: 28px 30px;
}
.pub-thanks h2 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--sage); }
.pub-thanks p { margin-top: 10px; color: var(--ink); font-size: 14.5px; }

/* ---- responsive ---- */
@media (max-width: 960px) {
    .pub-grid { grid-template-columns: repeat(2, 1fr); }
    .pub-pillars { grid-template-columns: 1fr; }
    .pub-about { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .pub-top { padding: 18px 22px; gap: 16px; }
    .pub-top nav { margin-left: 0; gap: 16px; order: 3; width: 100%; }
    .pub-top .login { margin-left: auto; }
    .pub-hero { height: 400px; }
    .pub-hero .msg { left: 22px; }
    .pub-hero .msg h1 { font-size: 29px; }
    .pub-sect, .pub-page-head, .pub-foot { padding-left: 22px; padding-right: 22px; }
    .pub-grid { grid-template-columns: 1fr; }
    .pub-step { grid-template-columns: 48px 1fr; gap: 12px; }
}

/* ---- Portfolio projects (spec §4) ---- */
.pub-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pub-filters a {
    display: inline-block; padding: 5px 14px; border: 1px solid var(--line);
    border-radius: 999px; font-size: 13px; letter-spacing: .04em; text-decoration: none; color: inherit;
}
.pub-filters a.on { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.pub-filters a:hover { border-color: var(--espresso); }

.pub-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pub-projects .proj { display: block; text-decoration: none; color: inherit; }
.pub-projects .proj img { width: 100%; height: 260px; object-fit: cover; border-radius: 6px; display: block; }
.pub-projects .pcap { display: block; padding-top: 10px; }
.pub-projects .ptitle { display: block; font-weight: 600; }
.pub-projects .pmeta { display: block; font-size: 13px; opacity: .65; margin-top: 2px; }
.pub-grid.mt { margin-top: 34px; }

.proj-hero .msg h1 { font-size: 34px; }
.proj-story { max-width: 640px; margin: 0 auto 30px; font-size: 17px; line-height: 1.7; }

.proj-gallery button.work { border: 0; padding: 0; background: none; text-align: left; cursor: zoom-in; font: inherit; color: inherit; }
.proj-gallery button.work:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.proj-cta { text-align: center; margin-top: 44px; padding: 36px 20px; background: var(--bg); border-radius: 8px; }
.proj-cta h2 { margin: 0 0 8px; }
.proj-cta p { margin: 0 0 18px; opacity: .8; }

.pub-lightbox { border: 0; padding: 0; background: rgba(20, 16, 13, .96); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.pub-lightbox::backdrop { background: rgba(20, 16, 13, .8); }
.pub-lightbox img { position: absolute; inset: 0; margin: auto; max-width: 92vw; max-height: 90vh; object-fit: contain; }
.pub-lightbox button { position: absolute; z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 22px; cursor: pointer; }
.pub-lightbox button:focus-visible { outline: 3px solid #fff; }
.pub-lightbox .lb-close { top: 16px; right: 16px; }
.pub-lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.pub-lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) { .pub-projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pub-projects { grid-template-columns: 1fr; } }

/* ---- Home sections (hero CTAs, intro, teaser, quotes, CTA band) ---- */
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta.ghost { background: transparent; border: 1px solid rgba(255,255,255,.65); color: #fff; }
.cta.ghost:hover { background: rgba(255,255,255,.12); }

.pub-intro { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: center; }
.pub-intro img { width: 100%; height: auto; border-radius: 8px; display: block; }
.pub-intro h2 { margin-bottom: 10px; }
.pub-intro p { max-width: 560px; line-height: 1.7; }

.pub-teaser { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; counter-reset: step; margin: 18px 0 14px; }
.pub-teaser li { counter-increment: step; }
.pub-teaser a {
    display: inline-block; padding: 8px 16px 8px 12px; border: 1px solid var(--line); border-radius: 999px;
    text-decoration: none; color: inherit; font-size: 14px;
}
.pub-teaser a::before { content: counter(step); display: inline-block; width: 22px; height: 22px; line-height: 22px;
    text-align: center; background: var(--espresso); color: #fff; border-radius: 999px; font-size: 12px; margin-right: 8px; }
.pub-teaser a:hover { border-color: var(--espresso); }

.pub-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pub-quotes blockquote { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin: 0; }
.pub-quotes blockquote p { font-style: italic; line-height: 1.7; }
.pub-quotes footer { margin-top: 12px; font-size: 13px; color: var(--slate); }

.pub-ctaband { text-align: center; padding: 64px 24px; background: var(--espresso); color: #fff; }
.pub-ctaband h2 { color: #fff; margin-bottom: 8px; }
.pub-ctaband p { opacity: .8; margin-bottom: 20px; }

@media (max-width: 700px) { .pub-intro { grid-template-columns: 1fr; } .pub-intro img { max-width: 280px; } }

/* ---- Contact qualification (spec §4/§5) ---- */
.pub-form .checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; }
.pub-form .checks label { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; margin: 0; }
.pub-form .checks input { width: auto; margin: 0; }
.pub-consult {
    max-width: 560px; margin-top: 18px; background: var(--sage-bg); border: 1px solid var(--sage);
    border-radius: 8px; padding: 18px 20px; font-size: 14px; line-height: 1.6;
}
.pub-form fieldset.scope-set { border: 0; padding: 0; margin: 0; }
.pub-form fieldset.scope-set legend { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; color: var(--espresso); margin: 18px 0 6px; padding: 0; }

/* ---- About portrait + subheads ---- */
.pub-about .portrait { float: right; width: 190px; margin: 0 0 16px 24px; }
.pub-about .portrait img { width: 100%; height: auto; border-radius: 8px; display: block; }
.pub-about .h-sub { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-top: 22px; }
.pub-about .bio .h-sub + p { margin-top: 8px; }
@media (max-width: 600px) { .pub-about .portrait { float: none; margin: 0 auto 16px; } }

/* ---- Skip link, mobile menu, footer ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -6000px; top: 0; z-index: 100; background: var(--espresso); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font-size: 18px; cursor: pointer; color: var(--espresso); }
.menu-toggle:focus-visible { outline: 2px solid var(--terra); }

.pub-foot { background: var(--espresso); color: #d9cfc4; padding: 44px 56px 28px; font-size: 13.5px; }
.pub-foot a { color: #f0e7dc; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; max-width: 980px; }
.foot-brand { font-family: var(--font-display); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.foot-contact { margin-top: 10px; line-height: 2; }
.foot-head { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: #bba893; margin: 0 0 8px; }
.foot-head + .foot-links { margin-bottom: 16px; }
.foot-links { list-style: none; }
.foot-links li { padding: 2px 0; }
.foot-legal { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: #a3927f; }

@media (max-width: 760px) {
    .menu-toggle { display: block; }
    .pub-top nav { display: none; width: 100%; flex-direction: column; gap: 14px; padding: 12px 0; }
    .pub-top nav.open { display: flex; }
    .foot-grid { grid-template-columns: 1fr; }
}

/* Reduced motion: nothing on the site animates heavily, but be explicit. */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Visible focus everywhere on the public face. */
.pub a:focus-visible, .pub button:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
