/* Shared lightweight stylesheet for all Mackie Family Co. sites.
   One file, no frameworks, system fonts only (no external requests).
   Each site sets a theme class on <body>. */
:root{--bg:#fbf8f3;--fg:#231f1a;--muted:#5c544a;--accent:#2f5d50;--accent-fg:#fff;--card:#fff;--line:#e4ddd2;--max:44rem;
--font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--serif:Georgia,"Iowan Old Style","Times New Roman",serif;--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.theme-family{--accent:#2f5d50}
.theme-coffee{--bg:#faf6f1;--fg:#2a1e16;--muted:#634f42;--accent:#6b3e26;--line:#e8dccf}
.theme-watch{--bg:#f5f6f8;--fg:#1a1f2b;--muted:#4f5868;--accent:#1f3a5f;--line:#dde1e8}
.theme-steady{--bg:#0f1418;--fg:#e6edf1;--muted:#a9b6bf;--accent:#3fb6a8;--accent-fg:#0b1013;--card:#161d22;--line:#26313a}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:1.0625rem/1.65 var(--font)}
img{max-width:100%;height:auto}
a{color:var(--accent);text-underline-offset:.15em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.skip{position:absolute;left:-999px;top:0;background:var(--accent);color:var(--accent-fg);padding:.5rem 1rem;z-index:9}
.skip:focus{left:1rem}
.wrap{max-width:var(--max);margin:0 auto;padding:0 1.25rem}
header.site{border-bottom:1px solid var(--line)}
header.site .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1.5rem;padding-top:1rem;padding-bottom:1rem}
.brand{font-family:var(--serif);font-size:1.35rem;font-weight:700;color:var(--fg);text-decoration:none;line-height:1.2}
.brand small{display:block;font:italic .85rem/1.3 var(--serif);color:var(--muted);font-weight:400}
.theme-steady .brand{font-family:var(--mono);letter-spacing:-.02em}
nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 1.1rem}
nav a{color:var(--fg);text-decoration:none;padding:0 .1rem;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px}  /* 44px tap targets */
nav a:hover,nav a[aria-current=page]{color:var(--accent);text-decoration:underline}
main{padding:2.5rem 0 3rem}
.back-links a{display:inline-block;padding:.7rem 0;min-height:44px;box-sizing:border-box}  /* 44px tap targets */
h1,h2,h3{font-family:var(--serif);line-height:1.2;margin:1.8em 0 .5em}
.theme-steady h1,.theme-steady h2,.theme-steady h3{font-family:var(--font)}
h1{font-size:clamp(1.9rem,5vw,2.6rem);margin-top:0}
h2{font-size:1.45rem}
.lede{font-size:1.2rem;color:var(--muted)}
.mission{border-left:4px solid var(--accent);padding:.25rem 0 .25rem 1rem;margin:1.75rem 0;font-family:var(--serif);font-size:1.2rem}
.theme-steady .mission{font-family:var(--font)}
.coming{display:inline-block;background:var(--accent);color:var(--accent-fg);font-weight:700;padding:.3rem .8rem;border-radius:999px;font-size:.95rem;letter-spacing:.02em}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:1.25rem 1.4rem;margin:1.5rem 0}
.brands{list-style:none;padding:0;display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr))}
.brands li{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:1rem 1.2rem}
.brands strong{display:block;font-family:var(--serif);font-size:1.1rem}
.ph{background:#fff3b0;color:#3b3000;padding:0 .2em;border-radius:3px}
.theme-steady .ph{background:#4a3f00;color:#fff3b0}
.signup label{display:block;font-weight:600;margin-bottom:.4rem}
.signup .row{display:flex;flex-wrap:wrap;gap:.5rem}
.signup input[type=email]{flex:1 1 14rem;min-width:0;font:inherit;padding:.7rem .85rem;border:2px solid var(--line);border-radius:8px;background:var(--bg);color:var(--fg)}
.signup input[type=email]:focus{border-color:var(--accent)}
.signup button{font:inherit;font-weight:700;padding:.7rem 1.2rem;border:0;border-radius:8px;background:var(--accent);color:var(--accent-fg);cursor:pointer}
.signup button:hover{filter:brightness(1.1)}
.hp{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}
/* contact form (POST /contact.php); reuses the .signup button style */
.contact-form label{margin:1rem 0 .35rem}
.contact-form label:first-of-type{margin-top:0}
.contact-form input[type=text],.contact-form input[type=email],.contact-form textarea{display:block;width:100%;box-sizing:border-box;font:inherit;padding:.7rem .85rem;border:2px solid var(--line);border-radius:8px;background:var(--bg);color:var(--fg)}
.contact-form textarea{min-height:9rem;resize:vertical}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--accent)}
.contact-form button{margin-top:1rem}
/* Turnstile placeholder: takes no space until Tech Ops puts the widget in it */
.turnstile-slot{margin:.75rem 0 0;min-height:0}
.turnstile-slot:empty{display:none}
.fine{font-size:.9rem;color:var(--muted);margin:.6rem 0 0}
ul.ticks{padding-left:1.2rem}
ul.ticks li{margin:.35rem 0}
code,.mono{font-family:var(--mono);font-size:.92em}
dt{font-weight:700;margin-top:1.1rem}
dd{margin:.25rem 0 0}
footer.site{border-top:1px solid var(--line);padding:1.5rem 0 2rem;font-size:.92rem;color:var(--muted)}
footer.site p{margin:0}
footer.site a{color:inherit;display:inline-block;padding:.75rem 0;line-height:1.3;min-height:44px;box-sizing:border-box}  /* 44px tap targets */
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media print{nav,.signup,.skip{display:none}}
.card>h2:first-child{margin-top:0}
.coming{font-family:var(--font)}

/* ---- Cookie consent banner (/assets/consent.js; hidden without JS) ---- */
.consent{position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--card);color:var(--fg);border-top:3px solid var(--accent);
  box-shadow:0 -4px 18px rgba(0,0,0,.18);max-height:60vh;overflow-y:auto;font-size:.95rem;line-height:1.45}
.consent[hidden],.consent-settings[hidden]{display:none}
.consent-in{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.25rem;padding-top:.85rem;padding-bottom:.85rem}
.consent p{margin:0;flex:1 1 22rem;min-width:0}
.consent a{color:inherit;text-decoration:underline;display:inline-block;padding:.6rem 0;min-height:44px;box-sizing:border-box}
.consent-btns{display:flex;gap:.75rem;flex:0 1 auto}
/* Accept and Decline: identical size, colour and weight */
.consent-btn{font-family:inherit;font-size:1rem;font-weight:600;line-height:1.2;min-height:44px;min-width:7.5rem;padding:.7rem 1.2rem;cursor:pointer;
  background:var(--accent);color:var(--accent-fg);border:2px solid var(--accent);border-radius:4px}
.consent-btn:hover{filter:brightness(1.08)}
@media (max-width:30rem){.consent-btns{flex:1 1 100%}.consent-btn{flex:1 1 0;min-width:0}}
@media print{.consent{display:none}}
/* footer "Cookie settings": a <button> that looks like the footer links */
.linkbtn{font:inherit;color:inherit;background:none;border:0;padding:.75rem 0;margin:0;line-height:1.3;min-height:44px;
  text-decoration:underline;text-underline-offset:.15em;cursor:pointer;box-sizing:border-box}
.design-holding footer.site .linkbtn{color:var(--off)}
.design-rustic footer.site .linkbtn{color:var(--cream)}
.design-heritage footer.site .linkbtn{color:var(--ivory)}
.design-steel footer.site .linkbtn{color:var(--steel-l)}
/* News (tools/sitecopy.py NEWS_POSTS): list of posts, newest first */
.news-list{list-style:none;margin:1.5rem 0;padding:0}
.news-list li{margin:0 0 1.75rem}
.news-list h2{margin:0 0 .25rem}
.news-date{margin:0 0 .5rem;font-size:.9rem;opacity:.8}

/* ==== Design system: "heritage" (the watch brand: refined, quiet, made to hand down) ====
   Any brand in tools/sitecopy.py with "design": "heritage" gets this file appended to the base
   site.css, plus self-hosted fonts in /assets/fonts/.
   Fonts (SIL Open Font License 1.1, no Reserved Font Name, self-hosted, no CDN):
     Cormorant Garamond (headings)  Copyright 2015 The Cormorant Project Authors
     Inter (body)                   Copyright 2020 The Inter Project Authors
   Palette: charcoal, titanium grey, ivory, thistle heather, sage. All text pairs below are WCAG AA (>= 4.5:1).
   Ornaments: thistles from Watch Maker's art (copies), the Mackie shield and M. No nautical imagery (see README, trademark notes). */
@font-face{font-family:"Cormorant";src:url(/assets/fonts/cormorant-500.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant";src:url(/assets/fonts/cormorant-700.woff2) format("woff2");font-weight:600 700;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url(/assets/fonts/inter-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url(/assets/fonts/inter-600.woff2) format("woff2");font-weight:600 700;font-style:normal;font-display:swap}

.design-heritage{
 --ink:#171b21;--ink-2:#222932;--ti:#a9afb5;--ti-d:#5d646c;--ti-l:#d4d8dc;--ivory:#f4f0e6;--paper:#faf8f2;
 --heather:#6e4a82;--heather-l:#bb9fd2;--sage:#56694e;--rule:#d9d3c4;
 --bg:var(--ivory);--fg:var(--ink);--muted:#545b63;--accent:var(--heather);--accent-fg:#fff;
 --card:var(--paper);--line:var(--rule);--max:70rem;--measure:38rem;
 --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
 --serif:"Cormorant",Georgia,"Times New Roman",serif;
 font-size:1.0625rem;line-height:1.7;
}
.design-heritage .wrap{padding:0 1.5rem}
.design-heritage h1,.design-heritage h2,.design-heritage h3{font-family:var(--serif);font-weight:700;letter-spacing:.005em;color:var(--ink)}
.design-heritage h1{font-size:clamp(2.8rem,7vw,4.4rem);line-height:1;letter-spacing:.06em;text-transform:uppercase}
.design-heritage h1 sup{font:600 .28em/1 var(--font);letter-spacing:0;vertical-align:.95em;margin-left:.08em}
.design-heritage h2{font-size:clamp(1.9rem,3.6vw,2.5rem);margin:0;line-height:1.1}
.design-heritage main p,.design-heritage main ul.ticks{max-width:var(--measure)}
.design-heritage .ph{background:#ece2f2;color:#3a2347}
.design-heritage .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.design-heritage .eyebrow{font:600 .76rem/1.2 var(--font);letter-spacing:.24em;text-transform:uppercase;color:var(--heather);margin:0 0 .8rem}

/* header: charcoal bar with a titanium hairline */
.design-heritage header.site{background:var(--ink);border-bottom:1px solid #000;box-shadow:inset 0 -1px 0 #3a424c}
.design-heritage header.site .wrap{padding-top:.8rem;padding-bottom:.8rem}
.design-heritage .brand{display:flex;align-items:center;gap:.8rem;font:700 1.45rem/1.1 var(--serif);letter-spacing:.12em;text-transform:uppercase;color:var(--ivory)}
.design-heritage .brand img{height:42px;width:auto;flex:none} /* pointed M-only mark; ~old shield weight */
.design-heritage .brand small{font:400 .74rem/1.4 var(--font);letter-spacing:.06em;text-transform:none;color:var(--ti);font-style:normal}
.design-heritage nav a{color:var(--ti-l);font-size:.9rem;font-weight:600;letter-spacing:.06em}
.design-heritage nav a:hover,.design-heritage nav a[aria-current=page]{color:#fff;text-decoration-color:var(--heather-l);text-decoration-thickness:2px}
.design-heritage header.site :focus-visible{outline-color:var(--heather-l)}

.design-heritage main{padding:2.75rem 0 3.5rem}
.design-heritage main:has(>.band){padding:0}
.design-heritage .band{padding:clamp(3rem,7vw,5.5rem) 0;border-bottom:1px solid var(--rule)}
.design-heritage .band-alt{background:var(--paper)}

/* hero: charcoal, soft titanium glow behind the crest */
.design-heritage .hero-band{background:radial-gradient(ellipse 60% 80% at 22% 45%,#2c343e 0,var(--ink) 70%);color:#dfe2e5;border-bottom:0;box-shadow:inset 0 -1px 0 #3a424c}
.design-heritage .hero-grid{display:grid;gap:2rem 4rem;align-items:center}
.design-heritage .hero-copy{min-width:0}
.design-heritage .hero-crest{justify-self:center;width:min(14rem,60vw)}
.design-heritage .hero-crest img{display:block;width:100%;height:auto}
.design-heritage .hero-band .eyebrow{color:var(--heather-l)}
.design-heritage .hero-band h1{color:var(--ivory);margin:0 0 .6rem}
.design-heritage .hero-band .lede{color:var(--ti-l);font:500 1.45rem/1.4 var(--serif);font-style:italic;margin:0 0 1.4rem}
.design-heritage .hero-band .mission{font:400 1.05rem/1.7 var(--font);border-left:1px solid var(--ti);padding:.1rem 0 .1rem 1.2rem;margin:0 0 1.6rem;color:#cfd3d8}
.design-heritage .status-line{font:600 .8rem/1.3 var(--font);letter-spacing:.16em;text-transform:uppercase;color:var(--ti-l);margin:0 0 1.8rem;display:flex;align-items:center;gap:.7rem}
.design-heritage .status-line::before{content:"";width:2.2rem;height:1px;background:var(--heather-l);flex:none}
.design-heritage .actions{display:flex;flex-wrap:wrap;gap:.75rem;margin:0}
.design-heritage .btn{display:inline-block;font:600 .9rem/1 var(--font);letter-spacing:.08em;text-transform:uppercase;padding:1rem 1.45rem;text-decoration:none;border:1px solid var(--ti-l);background:var(--ivory);color:var(--ink)}
.design-heritage .btn:hover{background:#fff}
.design-heritage .btn-line{background:transparent;color:var(--ivory);border-color:#5d666f}
.design-heritage .btn-line:hover{background:rgba(187,159,210,.12);border-color:var(--heather-l)}
.design-heritage .hero-band :focus-visible{outline-color:var(--heather-l)}
@media (min-width:52rem){.design-heritage .hero-grid{grid-template-columns:16rem 1fr}.design-heritage .hero-crest{width:100%}}

/* section heads: small numeral over a fine rule, thistle ornament */
.design-heritage .sec-head{border-top:1px solid var(--ink);padding-top:1rem;margin-bottom:2.2rem}
.design-heritage .sec-head .eyebrow{font-variant-numeric:tabular-nums}
.design-heritage .sec-title{font:700 clamp(1.9rem,3.6vw,2.5rem)/1.1 var(--serif);color:var(--ink);margin:0}
.design-heritage .thistle{display:block;width:107px;height:auto;margin:1.2rem 0 0;opacity:.95}
.design-heritage .split{display:grid;gap:0 4rem}
@media (min-width:52rem){.design-heritage .split{grid-template-columns:15rem 1fr}.design-heritage .split .sec-head{margin-bottom:0}}
.design-heritage .story p:first-child{margin-top:0}
.design-heritage .story p{font-size:1.08rem}

/* what we're making: dial illustration + four notes */
.design-heritage .make-grid{display:grid;gap:2.5rem 4rem;align-items:center}
.design-heritage .dial{margin:0;justify-self:center;width:min(22rem,86vw)}
.design-heritage .dial img{display:block;width:100%;height:auto;border-radius:50%;box-shadow:0 18px 40px -18px rgba(23,27,33,.55)}
.design-heritage .dial figcaption{font:400 .85rem/1.4 var(--font);color:var(--muted);text-align:center;margin-top:1rem}
.design-heritage .features{list-style:none;margin:0;padding:0;display:grid;gap:0}
.design-heritage .features li{padding:1.15rem 0;border-top:1px solid var(--rule)}
.design-heritage .features li:last-child{border-bottom:1px solid var(--rule)}
.design-heritage .features h3{font-size:1.5rem;margin:0 0 .2rem;line-height:1.2}
.design-heritage .features p{margin:0;color:#3c434b}
@media (min-width:52rem){.design-heritage .make-grid{grid-template-columns:minmax(16rem,22rem) 1fr}}

/* signup card */
.design-heritage .card{border-radius:0;border:1px solid var(--rule);border-top:2px solid var(--ink);background:var(--paper);padding:1.7rem 1.8rem;margin:0;max-width:40rem}
.design-heritage main>.wrap .card{margin:1.5rem 0}
.design-heritage .coming{border-radius:0;background:transparent;color:var(--ink);padding:0;font:700 clamp(1.6rem,3vw,2rem)/1.15 var(--serif)}
.design-heritage .signup input[type=email],.design-heritage .contact-form input[type=text],.design-heritage .contact-form textarea{border-radius:0;border:1px solid #8d949b;background:#fff}
.design-heritage .signup input[type=email]:focus,.design-heritage .contact-form input:focus,.design-heritage .contact-form textarea:focus{border-color:var(--ink);outline:2px solid var(--heather);outline-offset:0}
.design-heritage .signup button{border-radius:0;background:var(--ink);color:var(--ivory);letter-spacing:.08em;text-transform:uppercase;font-size:.9rem;font-weight:600}
.design-heritage .signup button:hover{filter:none;background:var(--ink-2);box-shadow:inset 0 -2px 0 var(--heather-l)}

/* plain pages (contact, privacy, notices, 404) */
.design-heritage main>.wrap>h1{font-size:clamp(2.2rem,5vw,3rem);letter-spacing:.04em;padding-bottom:.8rem;border-bottom:1px solid var(--ink);max-width:var(--measure)}
.design-heritage main>.wrap>h2{font-size:1.6rem;margin:2rem 0 .4rem}
.design-heritage .lede{color:var(--muted)}

/* footer: charcoal */
.design-heritage footer.site{background:var(--ink);color:#c5cad0;border-top:0;padding:2.4rem 0 2.8rem}
.design-heritage footer.site strong{font:700 1.15rem/1.3 var(--serif);letter-spacing:.1em;text-transform:uppercase;color:var(--ivory)}
.design-heritage footer.site a{color:var(--ivory)}
.design-heritage footer.site .fine{color:#c5cad0}
.design-heritage footer.site :focus-visible{outline-color:var(--heather-l)}
.design-heritage :focus-visible{outline-color:var(--heather)}
body.design-heritage{display:flex;flex-direction:column;min-height:100vh}
body.design-heritage>main{flex:1 0 auto}

/* Heritage arms and crest badge: About / family-story pages only.
   Supporting historical illustrations, not brand marks. Not linked. */
.heritage{margin:1.6rem 0 1.35rem;max-width:36rem;padding:0;border:0}
.heritage-pair{display:flex;align-items:flex-end;justify-content:center;gap:1.5rem}
.heritage-pair picture,.heritage-pair img{display:block;margin:0}
.heritage-pair img{width:auto;height:auto;max-width:7.5rem;max-height:8.25rem}
.heritage figcaption{font:400 .85rem/1.45 var(--font);color:var(--muted);text-align:center;margin:.85rem auto 0;max-width:32rem}
.design-rustic .heritage{max-width:var(--measure)}
@media (max-width:22rem){.heritage-pair{gap:1rem}.heritage-pair img{max-width:6.25rem;max-height:7rem}}
