:root{color-scheme:light dark;--bg:#ffffff;--surface:#f4f5f7;--fg:#1a1c1f;--muted:#4f555c;--border:#d5d9de;--primary:#7a3e1d;--on-primary:#ffffff;--accent:#e2a34f;--on-accent:#000000;--primary-text:#7a3e1d;--accent-text:#916833}
@media (prefers-color-scheme:dark){:root{--bg:#121417;--surface:#1c1f24;--fg:#eceef1;--muted:#b4bac2;--border:#3a3f47;--primary:#7a3e1d;--on-primary:#ffffff;--accent:#e2a34f;--on-accent:#000000;--primary-text:#a7806a;--accent-text:#e2a34f}}
/* A&J Site Care kit stylesheet. The theme variables (--primary, --on-primary,
   --primary-text, ...) are written above this line by build.js from site.json,
   with contrast-safe values for both light and dark themes. System fonts only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.75rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--primary-text); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--primary); color: var(--on-primary);
  padding: 12px 16px; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 8px; }

/* Header and navigation */
.site-header { background: var(--surface); border-top: 5px solid var(--accent); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.site-header nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--fg); text-decoration: none; border-radius: 6px; font-weight: 500;
}
.site-header nav a:hover { background: var(--bg); }
.site-header nav a[aria-current="page"] { color: var(--primary-text); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .4em; }

main.wrap { padding-top: 32px; padding-bottom: 48px; min-height: 60vh; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.center { text-align: center; padding: 48px 0; }
.center .btn { display: inline-flex; }

/* Buttons: text color is derived from the button color, so any brand color reads. */
.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 10px 20px; border-radius: 10px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn:hover { filter: brightness(1.08); }
.btn-outline:hover { border-color: var(--primary-text); }

/* Home: a links-style landing page */
.home { max-width: 34rem; margin: 0 auto; text-align: center; }
.hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-bottom: 24px; }
.home-logo { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 16px; border-radius: 50%; background: var(--surface); }
.tagline { font-size: 1.2rem; color: var(--muted); }
.intro { margin-bottom: 1.5em; }
.link-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.socials { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 600; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.cards, .events { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.card > :last-child { margin-bottom: 0; }
.card h2 { border-left: 4px solid var(--accent); padding-left: 10px; }
.price { font-weight: 700; color: var(--primary-text); }
.cta { margin-top: 24px; }
.cta .btn { display: inline-flex; }
.when { font-weight: 600; margin-bottom: .25em; }
.where { color: var(--muted); }

/* About */
.about { display: grid; gap: 24px; margin-top: 24px; }
.about-photo { width: 100%; border-radius: 14px; object-fit: cover; }
.prose { max-width: 42rem; }
.prose section { margin-bottom: 1.5em; }
@media (min-width: 48rem) {
  .about.has-photo { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
}

/* Gallery */
.gallery { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--surface); }
.gallery figcaption { font-size: .95rem; color: var(--muted); margin-top: 6px; }

/* Contact */
.contact-grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--fg);
  background: var(--bg); border: 2px solid var(--muted); border-radius: 8px;
}
.field textarea { resize: vertical; }
.form .btn { width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
dl { margin: 0 0 16px; }
dt { font-weight: 700; margin-top: 8px; }
dd { margin: 0; }
dd a { display: inline-flex; align-items: center; min-height: 44px; }
address { font-style: normal; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.hours dt { margin: 0; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 24px 0 16px; color: var(--muted); }
.footer-name { font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.inline-links { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
.inline-links a, .fine a { display: inline-flex; align-items: center; min-height: 44px; }
.fine { font-size: .95rem; margin: 0; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header nav, .skip, .site-footer .inline-links { display: none; } }
