* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); color: var(--text); font: var(--text-md)/1.55 var(--font); }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.14; letter-spacing: -.035em; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.accent { color: var(--brand); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; inset: .5rem auto auto .5rem; padding: .75rem; background: var(--surface); }
.theme-image { display: grid; place-items: center; }
.img-dark, [data-theme="dark"] .img-light { display: none; }
[data-theme="dark"] .img-dark { display: block; }
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .img-light { display: none; }
  [data-theme="auto"] .img-dark { display: block; }
}
.site-header, .site-footer { background: var(--surface); }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner { display: flex; align-items: center; gap: 1.5rem; }
.header-inner { min-height: var(--header-h); }
.brand-link { display: grid; align-items: center; min-height: 44px; flex: none; }
.lockup img { width: 174px; }
.header-inner nav { margin-left: auto; }
nav { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--brand); text-decoration: underline; }
.theme-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text); background: var(--surface); font: 1.25rem/1 var(--font); cursor: pointer; }
.theme-toggle:hover { background: var(--surface-2); }
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 6vw, 6rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--brand); font-size: var(--text-sm); font-weight: 600; }
.eyebrow span { width: 1.5rem; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(2.55rem, 4.3vw, 4.1rem); line-height: 1.03; letter-spacing: -.06em; }
.hero-copy > p:not(.eyebrow) { max-width: 31rem; color: var(--muted); font-size: var(--text-lg); margin-top: 1.25rem; }
.primary { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; padding: .5rem 1rem; border-radius: var(--radius); background: var(--brand-fill); color: var(--on-brand); font-weight: 600; text-decoration: none; }
.primary:hover { background: var(--brand-deep); }
.hero-art { min-height: 285px; position: relative; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background-color: var(--surface); background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 17px 17px; }
.mark-frame { display: grid; place-items: center; width: 69%; height: 68%; min-height: 140px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hero-mark { width: min(62%, 180px); }
.catalog { padding-block: var(--space-7); background: var(--surface); border-block: 1px solid var(--border); }
.section-heading p { color: var(--muted); margin: .55rem 0 1.5rem; }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.app-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1rem; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.app-identity { display: flex; align-items: center; gap: .75rem; min-height: 48px; }
.app-mark { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--surface-2); padding: 7px; }
.app-mark img { width: 100%; max-height: 34px; object-fit: contain; }
.bracketq .app-mark, .kenolens .app-mark { flex-basis: auto; width: 132px; background: transparent; padding: 0; }
.bracketq .app-mark img, .kenolens .app-mark img { max-height: 40px; }
.bracketq h3, .kenolens h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.app-card p { color: var(--muted); margin: .75rem 0 .4rem; }
.app-card a { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; font-size: var(--text-sm); font-weight: 600; }
.auth-section { padding-block: var(--space-7); }
.auth-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-6); padding: var(--space-5); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius); background: var(--surface); }
.auth-panel p { color: var(--muted); max-width: 66ch; margin: .7rem 0 0; }
.auth-panel a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { justify-content: space-between; min-height: 84px; }
.footer-inner .lockup img { width: 146px; }
.prose { max-width: 48rem; padding-block: clamp(3rem, 7vw, 6rem); }
.prose h1 { font-size: clamp(2.35rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.prose h2 { margin: 2rem 0 .65rem; }
.prose p, .prose li { color: var(--muted); max-width: 68ch; }
.prose .lede { font-size: var(--text-lg); }
.prose li { margin-block: .5rem; }
@media (max-width: 68rem) { .wide-break { display: none; } }
@media (max-width: 58rem) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 42rem) {
  .header-inner { flex-wrap: wrap; gap: 0 .75rem; padding-top: .25rem; }
  .header-inner nav { order: 1; flex-basis: 100%; margin: 0; }
  .theme-toggle { margin-left: auto; }
  .hero, .auth-panel { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-art { min-height: 172px; }
  .mark-frame { min-height: 116px; }
  .hero-mark { max-width: 116px; }
  .catalog, .auth-section { padding-block: var(--space-6); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-block: .65rem; }
  .footer-inner nav { gap: 0 1rem; }
}
@media (max-width: 34rem) { .app-grid { grid-template-columns: 1fr; } }
