@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=Literata:wght@300;400;500;600&family=Lora:wght@400;500;600&display=swap');

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

:root {
  --sidebar-w: 260px;
  --text-light: #eef4d7;
  --gold: #b88d16;
  --bg-content: #d9d9d9;
  --text-dark: #1a1a1a;
  --text-dim: #555;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Lora', Georgia, serif;
  --display: 'Literata', Georgia, serif;
}

html, body { height: 100%; }
/* The whole viewport is covered by the fixed sidebar + content, so this colour
   is only ever seen for a frame during page navigation. Match it to the content
   panel so that gap reads as the page itself rather than a black/purple flash. */
html { background: var(--bg-content); color-scheme: light; }

body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
}

.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  background: #000;
  display: flex;
  flex-direction: column;
}

.sidebar-logo { padding: 0; }
.sidebar-logo a { display: block; }
.sidebar-logo img, .sidebar-logo svg { width: 100%; height: auto; display: block; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 2rem;
  gap: 0.25rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-nav a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: block;
}

.sidebar-nav a:hover { color: var(--gold); }
.sidebar-nav a.active { color: var(--gold); border-left-color: var(--gold); }
.nav-spacer { min-height: 2rem; }

.content {
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  border-top: 7.6px solid #000;
  border-right: 8px solid #000;
  border-bottom: 8px solid #000;
  background: var(--bg-content);
  isolation: isolate;
}

.content::after {
  content: "";
  position: absolute;
  inset: -7.6px -8px -8px 0;
  pointer-events: none;
  z-index: 10;
  background:
    linear-gradient(#000 0 0) top    / 100% 7.9px no-repeat,
    linear-gradient(#000 0 0) right  / 8px  100% no-repeat,
    linear-gradient(#000 0 0) bottom / 100% 8px  no-repeat;
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: var(--bg-content);
}

.content-waves {
  position: fixed;
  top: 7.6px;
  left: var(--sidebar-w);
  width: 170px;
  height: 108px;
  z-index: 1;
  pointer-events: none;
  overflow: clip;
}
.content-waves img, .content-waves svg {
  width: 100%;
  height: 108px;
  display: block;
  position: relative;
}

.content-body {
  padding: 0 3.5rem 2.5rem;
  max-width: 900px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.section { display: none; }
.section.active { display: block; flex: 1; padding-top: calc(108px + 2.5rem); }

.section h1 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.section h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.section h2:first-child { margin-top: 0; }

.section p {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.section a { color: #1a5276; text-decoration: underline; }
.section a:hover { color: #000; }

.product { margin-bottom: 2.5rem; }
.product:last-child { margin-bottom: 0; }

.product h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.product .tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.product p { font-size: 0.95rem; }

.product-url {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  margin-bottom: 0.9rem;
}

.product-cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-top: 0.6rem;
}

.product-featured {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.product-main { flex: 1 1 auto; min-width: 0; }

.product-shot { flex: 0 0 240px; width: 240px; }

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.section h2.catalog-divider { margin-top: 3.5rem; }

.contact-list { list-style: none; }

.contact-list li {
  font-family: var(--mono);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-dim);
}

.contact-list li span { margin-right: 0.5rem; }
.contact-list a { color: var(--text-dark); }

.legal-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.legal-tabs a {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: #c2c2c2;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.legal-tabs a:hover { background: #aaa; }
.legal-tabs a.active { background: var(--gold); color: #fff; }

.legal-sub { display: none; }
.legal-sub.active { display: block; }

.policy h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.policy h3:first-child { margin-top: 0; }

.policy h4 {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.policy ul li {
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.8rem;
}

.policy table th,
.policy table td {
  border: 1px solid #aaa;
  padding: 0.5rem 0.7rem;
  text-align: left;
  color: var(--text-dark);
}

.policy table th { font-weight: 500; background: #c2c2c2; }

.policy ol {
  margin-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.policy ol li {
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.io-block {
  margin: 1.3rem 0;
  background: #dcdcdc;
  border-left: 3px solid var(--gold);
}

.io-head {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #c2c2c2;
}

.io-head .io-model { color: var(--gold); }

.io-body { padding: 0.95rem 1rem; }

.io-turn + .io-turn { margin-top: 0.9rem; }

.io-role {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--gold);
  padding: 0.12rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.4rem;
}

.io-text {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-dark);
}

.policy .math {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  white-space: pre;
  background: #d9d9d9;
  border-left: 3px solid var(--gold);
  padding: 0.7rem 1.4rem;
  margin: 1rem 0 1.2rem;
  color: var(--text-dark);
}

.policy-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 2rem;
}

.disclaimer-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

footer {
  text-align: right;
  margin-top: auto;
}

footer p {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #999;
  letter-spacing: 0.05em;
}

.mobile-break { display: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 100;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.hamburger {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.3s, opacity 0.3s;
  position: relative;
}

.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
}

.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

.hamburger.open span { background: transparent; }
.hamburger.open span::before { top: 0; transform: rotate(45deg); }
.hamburger.open span::after { top: 0; transform: rotate(-45deg); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 19;
}

.sidebar-backdrop.visible { display: block; }

@media (max-width: 976px) {
  .product-featured { flex-direction: column; gap: 1.5rem; }
  .product-shot { flex: 0 0 auto; width: 100%; max-width: 260px; margin: 0 auto; }
}

@media (max-width: 700px) {
  .hamburger { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 20;
  }

  .sidebar.open { transform: translateX(0); }

  .content {
    left: 0;
    border-left: 8px solid #000;
  }

  .content::after {
    inset: -8px;
    border-left: 8px solid #000;
  }

  .content-waves { left: 0; }

  footer { text-align: left; }
  .mobile-break { display: inline; }
}
