/* ==========================================================================
   WSOR, LLC — styles. Apple-derived design system (see /DESIGN.md).
   ========================================================================== */

:root {
  --canvas: #ffffff;
  --surface: #f5f5f7;      /* parchment tile */
  --ink: #1d1d1f;
  --muted: #86868b;
  --hairline: #e0e0e0;
  --blue: #0066cc;
  --blue-hover: #0071e3;
  --maxw: 980px;
  --nav-h: 48px;
  --radius: 18px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --canvas: #000000;
  --surface: #121213;
  --ink: #f5f5f7;
  --muted: #8a8a8e;
  --hairline: #2a2a2c;
  --blue: #2997ff;
  --blue-hover: #47a6ff;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #000000;
    --surface: #121213;
    --ink: #f5f5f7;
    --muted: #8a8a8e;
    --hairline: #2a2a2c;
    --blue: #2997ff;
    --blue-hover: #47a6ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.foot { flex-shrink: 0; }
body.home main { display: flex; flex-direction: column; justify-content: center; }
body.home .tile { padding-top: 34px; padding-bottom: 34px; }

.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;
}

a { color: inherit; text-decoration: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 22px; padding: 0 22px;
}
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 13.5px; }
.nav__links a { color: var(--ink); opacity: .82; transition: opacity .15s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink); opacity: .8;
}
.nav__theme:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nav__theme .icon-moon { display: none; }
:root[data-theme="dark"] .nav__theme .icon-sun { display: none; }
:root[data-theme="dark"] .nav__theme .icon-moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav__theme .icon-sun { display: none; }
  :root:not([data-theme="light"]) .nav__theme .icon-moon { display: inline; }
}

/* ---------- Brand mark (nav / footer) ---------- */
.brandmark { display: inline-flex; align-items: center; gap: 9px; }
.brandmark__mark { width: 26px; height: 19px; display: block; color: var(--ink); }
.brandmark__word { font-size: 15px; font-weight: 600; letter-spacing: .08em; padding-left: .08em; }

/* ---------- Logo lockup (white box) ---------- */
.lockup {
  display: inline-flex; flex-direction: column; align-items: center;
}
.lockup__mark { color: var(--ink); display: block; }
.lockup__word { color: var(--ink); font-weight: 600; line-height: 1; }
.lockup__rule { background: var(--hairline); display: block; }
.lockup__llc { color: var(--muted); font-weight: 600; }
.lockup--lg { padding: 0; gap: 38px; }
.lockup--lg .lockup__mark { width: 208px; height: 152px; }
.lockup--lg .lockup__word { font-size: 80px; letter-spacing: .16em; padding-left: .16em; }
.lockup--lg .lockup__rule { width: 88px; height: 2px; }
.lockup--lg .lockup__llc { font-size: 28px; letter-spacing: .42em; padding-left: .42em; }
.lockup--sm { padding: 22px 28px 18px; gap: 11px; border-radius: 14px; }
.lockup--sm .lockup__mark { width: 60px; height: 44px; }
.lockup--sm .lockup__word { font-size: 22px; letter-spacing: .15em; padding-left: .15em; }
.lockup--sm .lockup__rule { width: 30px; height: 1px; }
.lockup--sm .lockup__llc { font-size: 9px; letter-spacing: .4em; padding-left: .4em; }

/* ---------- Tiles (edge-to-edge, alternating) ---------- */
.tile { background: var(--canvas); color: var(--ink); padding: 68px 22px; text-align: center; }
.tile--alt { background: var(--surface); }
.tile--dark { background: #000; color: #f5f5f7; }
.tile--dark .lead { color: #a1a1a6; }
.tile__inner { max-width: var(--maxw); margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* headings */
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.08; font-weight: 600; }
.hero h1 { font-size: clamp(38px, 6vw, 56px); }
.hero .sub { font-size: clamp(21px, 3vw, 28px); font-weight: 400; letter-spacing: 0; color: var(--ink); margin-top: 6px; }
.tile h2 { font-size: clamp(30px, 4.4vw, 44px); }
.lead { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; color: var(--muted); max-width: 58ch; margin: 16px auto 0; }
.tile p + p { margin-top: 1em; }

/* hero */
.hero .lockup { margin: 0 auto; }
.hero__links { margin-top: 26px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; font-size: 18px; color: var(--blue); }
.hero__links a { display: inline-flex; align-items: center; gap: 3px; }
.hero__links a::after { content: "›"; font-size: 1.2em; line-height: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-size: 16px; font-weight: 500;
  padding: 12px 26px; border-radius: 980px; border: 0; cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(.98); }
.tile--dark .btn { background: #2997ff; color: #000; }
.btn--ghost { background: transparent; color: var(--blue); border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); }

/* ---------- Brand logo row (no cards, hover reveals name) ---------- */
.brandrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(30px, 6vw, 70px); padding-bottom: 24px; }
.brandlogo { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.brandlogo__img { width: 56px; height: 56px; object-fit: contain; opacity: .88; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.brandlogo:hover .brandlogo__img, .brandlogo:focus-visible .brandlogo__img { transform: translateY(-4px); opacity: 1; }
.brandlogo__label {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, -4px);
  font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.brandlogo:hover .brandlogo__label, .brandlogo:focus-visible .brandlogo__label { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Prose (about) ---------- */
.prose { max-width: 66ch; margin: 0 auto; text-align: left; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose h2 { text-align: center; margin: 8px 0 4px; }
.prose .lead { text-align: left; margin-left: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-top: .4em; }
.prose a { color: var(--blue); }
.prose a:hover { text-decoration: underline; }

/* ---------- Contact form ---------- */
.form { max-width: 520px; margin: 40px auto 0; text-align: left; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--canvas);
  border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.form .btn { justify-self: start; }
.form__note { font-size: 13px; color: var(--muted); }
.form__status { font-size: 15px; padding: 12px 14px; border-radius: 12px; display: none; }
.form__status--ok { display: block; background: color-mix(in srgb, #1aae39 12%, transparent); color: #12842c; }
.form__status--err { display: block; background: color-mix(in srgb, #e5484d 12%, transparent); color: #c62a2f; }
.contact-alt { margin-top: 26px; font-size: 15px; color: var(--muted); }
.contact-alt a { color: var(--blue); }

/* ---------- Footer ---------- */
.foot { background: transparent; }
.foot__inner { max-width: var(--maxw); margin: 0 auto; padding: 22px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.foot__legal { font-size: 12.5px; color: var(--muted); text-align: center; }
.foot__theme { width: 30px; height: 30px; }

@media (max-width: 560px) {
  .tile { padding: 68px 20px; }
  .foot__legal { margin-left: 0; width: 100%; }
}
