/*
Theme Name: BY MR ATOM LLC
Theme URI: https://bymratom.com
Author: BY MR ATOM LLC
Author URI: https://bymratom.com
Description: Broadsheet editorial theme for BY MR ATOM LLC — a private intellectual property holding company.
Version: 1.1.0
License: Proprietary
License URI: https://bymratom.com
Text Domain: bymratom
Tags: custom, business, minimal
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #0E0E0C;
  --ink2:       #444440;
  --ink3:       #5A5A56; /* FIX #03: was #7A7A76, bumped for WCAG AA contrast */
  --ink4:       #ABABAB;
  --rule:       #C8C3B8;
  --rule-light: #E2DDD6;
  --paper:      #F7F4EE;
  --paper2:     #EDE9E2;
  --paper3:     #E4DFD7;
  --blue:       #1B4FBF;
  --blue-light: #EBF0FB;
  --black:      #0A0A08;
  --gold:       #8A6914;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --font-sans:  "DM Sans", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── FIX #01: SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 10px 18px;
  background: var(--blue);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 3px 3px;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ── PAGE WRAPPER — FIX #07: min-height + flex column ── */
.page {
  max-width: 1100px;
  margin: 0 auto;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── MASTHEAD ── */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 40px;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}
.masthead-meta {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink3);
  line-height: 2;
}
.masthead-meta.right { text-align: right; }
.masthead-logo-wrap { text-align: center; }
.masthead-logo {
  display: inline-block;
  background: transparent;
  padding: 4px 0;
}
.masthead-logo img {
  display: block;
  height: 44px;
  width: auto;
}

/* ── TAGLINE BAR ── */
.tagline-bar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding: 0 40px;
  height: 38px;
}
.tagline-rule { flex: 1; height: 1px; background: var(--rule); }
.tagline-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink2);
  padding: 0 24px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ── NAV STRIP — FIX #05: sticky ── */
.nav-strip-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.nav-strip {
  display: flex;
  list-style: none;
}
.nav-strip li { flex: 1; }
.nav-strip a {
  display: block;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 10px 8px;
  color: var(--ink2);
  text-decoration: none;
  border-right: 1px solid var(--rule);
  transition: background 0.15s, color 0.15s;
}
.nav-strip li:last-child a { border-right: none; }
/* FIX #04: active state (JS-driven + WP classes) */
.nav-strip a:hover,
.nav-strip a.is-active,
.nav-strip .current-menu-item a,
.nav-strip .current_page_item a {
  background: var(--ink);
  color: var(--paper);
}

/* ── HERO — FIX #07: flex-grow so hero fills space ── */
.hero {
  padding: 40px 40px 0;
  border-bottom: 2px solid var(--ink);
  flex: 1;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.hero-kicker-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  white-space: nowrap;
}
.hero-kicker-rule { flex: 1; height: 1px; background: var(--blue); opacity: 0.4; }
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-columns {
  display: grid;
  grid-template-columns: 58fr 42fr;
  border-top: 1px solid var(--rule);
}
.hero-col-left {
  padding: 24px 32px 32px 0;
  border-right: 1px solid var(--rule);
}
.hero-col-right {
  padding: 24px 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-deck {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink2);
  line-height: 1.65;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-light);
}
.hero-body {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.9;
  column-count: 2;
  column-gap: 24px;
  column-rule: 1px solid var(--rule-light);
}
.notice-block {
  background: var(--black);
  color: var(--paper);
  padding: 18px 20px;
  border-radius: 3px;
}
.notice-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,244,238,0.45);
  margin-bottom: 8px;
}
.notice-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--paper);
  line-height: 1.6;
}
.entity-register {
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.entity-register-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink4);
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--rule-light);
  background: var(--paper2);
}
.entity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule-light);
  font-size: 12px;
}
.entity-row:last-child { border-bottom: none; }
.entity-key { color: var(--ink3); }
.entity-val { font-weight: 500; color: var(--ink); }
.entity-val.blue { color: var(--blue); }
.entity-val.gold { color: var(--gold); }

/* ── PILLARS ── */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 2px solid var(--ink);
}
.pillar {
  padding: 28px;
  border-right: 1px solid var(--rule);
}
.pillar:last-child { border-right: none; }
.pillar-ghost {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--rule-light);
  line-height: 1;
  margin-bottom: -12px;
  user-select: none;
  aria-hidden: true;
}
.pillar-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink2); /* FIX #03: was ink3/ink4 */
  margin-bottom: 6px;
}
.pillar-h2 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
}
.pillar-body {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.85;
}

/* ── IP PORTFOLIO ── */
.ip-section {
  padding: 0 40px;
  border-bottom: 2px solid var(--ink);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--rule);
}
.section-head-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink2); /* FIX #03 */
}
.section-head-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.section-head-rule { flex: 1; height: 1px; background: var(--rule-light); }
.ip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 0;
}
.ip-item {
  padding: 0 20px 0 0;
  margin-right: 20px;
  border-right: 1px solid var(--rule-light);
}
.ip-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.ip-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.ip-body {
  font-size: 12px;
  color: var(--ink3);
  line-height: 1.7;
  margin-bottom: 10px;
}
.ip-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  border: 1px solid;
}
.ip-badge.active    { color: var(--blue); border-color: var(--blue); }
.ip-badge.protected { color: var(--ink2); border-color: var(--rule); }
.ip-badge.pending   { color: var(--gold); border-color: var(--gold); }
.ip-trademark-note {
  padding-bottom: 18px;
  border-top: 1px solid var(--rule-light);
  padding-top: 12px;
  font-size: 12px;
  color: var(--ink2); /* FIX #03 */
  line-height: 1.75;
}
.ip-trademark-note strong {
  display: block;
  color: var(--gold);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ── LOWER BAND ── */
.lower-band {
  display: grid;
  grid-template-columns: 58fr 42fr;
  border-bottom: 2px solid var(--ink);
}
.lower-col { padding: 28px 40px; }
.lower-col.left  { border-right: 1px solid var(--rule); padding-left: 40px; padding-right: 32px; }
.lower-col.right { padding-left: 28px; padding-right: 40px; }
.lower-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink2); /* FIX #03 */
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-light);
}
.lower-h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.25;
}
.lower-body {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* ── FIX #09: contact fields — remove false affordance until email added ── */
.contact-field {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--paper);
}
/* hover only active when field contains a real link */
.contact-field.has-link {
  transition: border-color 0.15s;
  cursor: pointer;
}
.contact-field.has-link:hover { border-color: var(--blue); }
.contact-field-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.contact-field-val {
  font-size: 12px;
  color: var(--ink4);
  font-style: italic;
}
.contact-field-val a {
  color: var(--ink);
  text-decoration: none;
  font-style: normal;
}
.contact-field-val a:hover { color: var(--blue); text-decoration: underline; }

.legal-items { display: flex; flex-direction: column; gap: 8px; }
.legal-item {
  background: var(--paper2);
  border-radius: 3px;
  padding: 12px 14px;
}
.legal-item-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 5px;
}
.legal-item-body {
  font-size: 12px;
  color: var(--ink3);
  line-height: 1.65;
}

/* ── FOOTER ── */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px 40px;
  border-top: 1px solid var(--rule);
  margin-top: auto;
}
.footer-left {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink4);
}
.footer-center {
  font-size: 11px;
  color: var(--ink4);
  text-align: center;
  line-height: 1.7;
}
.footer-right {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--blue);
  text-align: right;
}

/* ── 404 — FIX #07: fill viewport ── */
.error-404 {
  padding: 80px 40px;
  text-align: center;
  border-bottom: 2px solid var(--ink);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.error-404-code {
  font-family: var(--font-serif);
  font-size: 120px;
  font-weight: 700;
  color: var(--rule-light);
  line-height: 1;
  user-select: none;
}
.error-404-rule {
  width: 40px;
  height: 2px;
  background: var(--blue);
  margin: 16px auto 20px;
}
.error-404-label {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.error-404-headline {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.25;
}
.error-404-body {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.85;
  max-width: 480px;
  margin: 0 auto 32px;
}
.error-404-home {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  padding: 12px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s;
}
.error-404-home:hover { background: var(--blue); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.masthead    { animation: fadeUp 0.45s 0.00s ease both; }
.tagline-bar { animation: fadeUp 0.45s 0.07s ease both; }
.nav-strip-wrap { animation: fadeUp 0.45s 0.12s ease both; }
.hero        { animation: fadeUp 0.45s 0.17s ease both; }
.pillars     { animation: fadeUp 0.45s 0.22s ease both; }
.ip-section  { animation: fadeUp 0.45s 0.27s ease both; }
.lower-band  { animation: fadeUp 0.45s 0.32s ease both; }
.error-404   { animation: fadeUp 0.45s 0.17s ease both; }

/* ── FIX #06: TABLET BREAKPOINT (769–1024px) ── */
@media (max-width: 1024px) and (min-width: 769px) {
  .masthead { padding: 20px 28px 16px; gap: 16px; }
  .hero { padding: 32px 28px 0; }
  .hero-columns { grid-template-columns: 3fr 2fr; }
  .hero-body { column-count: 1; }
  .hero-col-left { padding-right: 24px; }
  .hero-col-right { padding-left: 20px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: none; }
  .pillar:nth-child(3) {
    grid-column: span 2;
    border-right: none;
    border-top: 1px solid var(--rule);
  }
  .ip-section { padding: 0 28px; }
  .ip-grid { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .ip-item { border-right: none; margin-right: 0; padding-right: 0; }
  .lower-band { grid-template-columns: 1fr; }
  .lower-col.left { border-right: none; border-bottom: 1px solid var(--rule); padding: 24px 28px; }
  .lower-col.right { padding: 24px 28px; }
  .site-footer { padding: 16px 28px; }
  .tagline-bar { padding: 0 28px; }
}

/* ── MOBILE BREAKPOINT (≤768px) ── */
@media (max-width: 768px) {
  .masthead { grid-template-columns: 1fr; text-align: center; gap: 12px; padding: 20px; }
  .masthead-meta.right { text-align: center; }
  .tagline-bar { padding: 0 20px; }
  .hero { padding: 28px 20px 0; }
  .hero-columns { grid-template-columns: 1fr; }
  .hero-col-left { border-right: none; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 24px; }
  .hero-col-right { padding-left: 0; }
  .hero-body { column-count: 1; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: none; }
  .ip-section { padding: 0 20px; }
  .ip-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ip-item { border-right: none; margin-right: 0; padding-right: 0; }
  .lower-band { grid-template-columns: 1fr; }
  .lower-col { padding: 24px 20px; }
  .lower-col.left { border-right: none; border-bottom: 1px solid var(--rule); }
  .site-footer { grid-template-columns: 1fr; text-align: center; gap: 8px; padding: 16px 20px; }
  .footer-right { text-align: center; }
  .error-404 { padding: 60px 20px; }
  .error-404-code { font-size: 80px; }
}
