/* Shared styles for clarityedit.sonomaenterprises.com.
   The Sonoma Enterprises bar mirrors the header on sonomaenterprises.com so both sites navigate the same way. */
:root {
  color-scheme: light dark;
  --bg: #f7f7f4;
  --ink: #202124;
  --muted: #666d70;
  --line: #d9dbd3;
  --panel: #ffffff;
  --soft: #eef3ef;
  --accent: #0b6e4f;
  --accent-2: #255f85;
  --accent-ink: #ffffff;
  --se-text: #1a1d23;
  --se-muted: #565d6b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151715;
    --ink: #f4f4ef;
    --muted: #adb6b0;
    --line: #343a34;
    --panel: #20231f;
    --soft: #1c2a22;
    --accent: #49b989;
    --accent-2: #84bde0;
    --accent-ink: #08130e;
    --se-text: #eef0f3;
    --se-muted: #a2a8b4;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 30; background: var(--panel); padding: 8px 12px; border-radius: 6px; }

/* Sonoma Enterprises bar (same links as sonomaenterprises.com) */
.se-bar { border-bottom: 1px solid var(--line); font-size: 14px; }
.se-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.se-brand { color: var(--se-text); font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.se-links { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.se-links a { color: var(--se-muted); text-decoration: none; font-weight: 500; }
.se-links a:hover, .se-links a[aria-current] { color: var(--se-text); }

/* Clarity Edit product bar */
.product-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.product-nav { display: flex; align-items: center; gap: 22px; min-height: 60px; }
.product-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 17px; text-decoration: none; }
.product-brand img { width: 28px; height: 28px; border-radius: 7px; }
.product-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; flex: 1; }
.product-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.product-links a:hover { color: var(--ink); }
.product-links a[aria-current="page"] { color: var(--accent); }

/* Buttons */
.button, .store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  background: var(--panel);
  font-weight: 700;
  white-space: nowrap;
}
.button.primary, .store-button { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.store-button { min-height: 38px; padding: 0 14px; font-size: 14px; }
.store-button svg, .button svg { width: 17px; height: 17px; fill: currentColor; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Screenshots */
.shot { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery .shot { box-shadow: none; }

/* Footer */
.site-footer { padding: 44px 0 28px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-grid h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin: 0 0 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 860px) {
  .product-nav { flex-wrap: wrap; gap: 10px 18px; padding: 10px 0; }
  .product-links { order: 3; flex-basis: 100%; }
  .store-button { margin-left: auto; }
  .gallery, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .se-nav { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; }
  .se-links { gap: 2px 14px; }
  .product-bar { position: static; }
  .gallery, .footer-grid { grid-template-columns: 1fr; }
}
