/* Timber Connection Systems — site styles */

:root {
  --paper: #f7f5f1;
  --surface: #ffffff;
  --ink: #16181a;
  --ink-soft: #4a4f55;
  --ink-faint: #8a8f95;
  --rule: #e2ded6;
  --accent: #8c5a2b;       /* timber */
  --accent-soft: #f1e8dd;
  --maxw: 1080px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip-link:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header (interior pages) ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.site-header .brand img { display: block; height: 40px; width: auto; }
.site-header nav a {
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-soft);
}
.site-header nav a:hover { color: var(--ink); }

main { flex: 1 0 auto; }

/* ---------- Home / splash ---------- */
.splash {
  display: flex; align-items: center; justify-content: center;
  padding: 64px 0;
  min-height: calc(100vh - 90px);
  min-height: calc(100dvh - 90px);
}
.splash-inner { text-align: center; max-width: 720px; }
.splash-title { margin: 0; }
.notfound { margin: 40px 0 0; color: var(--ink-soft); }
.notfound a { color: var(--ink); }

.splash .logo {
  display: block; width: min(440px, 76vw); height: auto; margin: 0 auto;
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* ---------- IP page ---------- */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--rule); }
.eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.page-head h1 {
  margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.1;
  font-weight: 600; letter-spacing: -.02em;
}
.page-head p.intro { margin: 18px 0 0; max-width: 62ch; color: var(--ink-soft); font-size: 17px; }

.notice {
  margin: 40px 0 0; padding: 22px 24px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 15px; line-height: 1.65; color: var(--ink);
}
.notice strong { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.section { padding: 56px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.section .jurisdiction { font-size: 13px; color: var(--ink-faint); }


.patent-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  overflow: hidden;
}
.patent-table th, .patent-table td { text-align: left; vertical-align: top; padding: 18px 20px; }
.patent-table thead th {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); background: #fbfaf8; border-bottom: 1px solid var(--rule);
}
.patent-table tbody tr + tr td, .patent-table tbody tr + tr th { border-top: 1px solid var(--rule); }
.patent-table tbody th { width: 30%; font-weight: 600; font-size: 16px; }

.patent-group { display: flex; align-items: flex-start; gap: 14px; }
.patent-group + .patent-group { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.group-label {
  flex: 0 0 52px; padding-top: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint);
}

.patents { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.patents li {
  font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums;
  padding: 4px 10px; border-radius: 4px; white-space: nowrap;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
}

.page-end { height: 80px; }

@media (max-width: 640px) {
  .page-head { padding: 48px 0 32px; }
  .patent-table, .patent-table tbody, .patent-table tr, .patent-table th, .patent-table td { display: block; width: 100%; }
  .patent-table thead { display: none; }
  .patent-table tbody th { width: 100%; padding-bottom: 6px; }
  .patent-table tbody td { padding-top: 0; }
  .patent-table tbody tr + tr th { border-top: 1px solid var(--rule); }
  .patent-table tbody tr + tr td { border-top: 0; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-faint); }
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  min-height: 72px; padding-top: 18px; padding-bottom: 18px;
}
.site-footer nav { display: flex; gap: 24px; }
.footer-contact { font-style: normal; display: flex; gap: 6px 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--ink-soft); }
@media (max-width: 760px) { .site-footer .wrap { flex-direction: column; align-items: flex-start; } }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media print {
  body { background: #fff; }
  .site-footer nav, .skip-link { display: none; }
  .patent-table { background: #fff !important; }
}
