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

:root {
  --bg: #b8b0a4;
  --bg-dark: #a89e91;
  --panel: #fafaf9;
  --panel-2: #f5f5f4;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #d6d0c4;
  --line-strong: #9ca3af;
  --tab: #1e3a5f;
  --tab-dark: #15294a;
  --tab-light: #2b4f75;
  --alert: #dc2626;
  --ok: #22c55e;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', 'Trebuchet MS', sans-serif;
  color: var(--ink);
  line-height: 1.45;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #d6d0c4 0, #d6d0c4 58px, transparent 58px),
    repeating-linear-gradient(
      0deg,
      rgba(194, 185, 172, 0.28) 0,
      rgba(194, 185, 172, 0.28) 7px,
      rgba(168, 158, 145, 0.24) 7px,
      rgba(168, 158, 145, 0.24) 14px
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
  position: relative;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 41, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 55, 0.03) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.22;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1020px;
  margin: 0 auto;
  padding: 1rem 1rem 2.4rem;
  display: grid;
  gap: 0.85rem;
}

.memo-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 245, 244, 0.96) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(156, 163, 175, 0.06) 0,
      rgba(156, 163, 175, 0.06) 1px,
      transparent 1px,
      transparent 16px
    );
  border: 1.5px solid var(--line-strong);
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 3px 8px rgba(21, 41, 74, 0.08);
  padding: 0.95rem 0.95rem 1rem;
}

.hero {
  border-top: 0;
  padding-top: 0;
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.brand-strip {
  margin: -0.95rem -0.95rem 0.72rem;
  padding: 0.42rem 0.7rem;
  background: linear-gradient(180deg, var(--tab) 0%, var(--tab-dark) 100%);
  border-bottom: 3px solid #15294a;
  color: #eff6ff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand-mark {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.brand-branch {
  opacity: 0.72;
}

.brand-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #93c5fd;
}

.live-dot {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.kicker {
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.95rem, 4.8vw, 2.9rem);
  line-height: 1;
  color: #132944;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.tagline {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 0.35rem;
}

.subhead {
  font-size: 0.92rem;
  max-width: 70ch;
  color: var(--muted);
}

.doc-note {
  margin-top: 0.2rem;
  margin-bottom: 0;
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #2a4c6f;
}

.header-meta {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stamp {
  display: inline-flex;
  align-items: center;
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 2px solid var(--alert);
  color: var(--alert);
  padding: 0.12rem 0.45rem;
}

.stamp.muted {
  border-color: var(--line-strong);
  color: var(--line-strong);
}

.intranet-nav {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.intranet-nav a {
  text-decoration: none;
  color: #eff7ff;
  background: linear-gradient(180deg, var(--tab-light) 0%, var(--tab) 100%);
  border: 1px solid #10273d;
  border-bottom-width: 2px;
  padding: 0.26rem 0.55rem;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.intranet-nav a:hover {
  background: linear-gradient(180deg, #325f8b 0%, #284d71 100%);
}

.ticker {
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  background: #f7fbff;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.3rem 0.35rem;
}

.ticker span {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #254869;
  border: 1px dashed rgba(95, 120, 146, 0.8);
  padding: 0.08rem 0.3rem;
  background: #f1f7fd;
}

.team-strip {
  margin-top: 0.52rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.team-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.14rem 0.44rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.team-pill.research {
  border-color: rgba(30, 64, 175, 0.35);
  background: #dbeafe;
  color: #1e40af;
}

.team-pill.planning {
  border-color: rgba(219, 39, 119, 0.3);
  background: #fce7f3;
  color: #be185d;
}

.team-pill.testing {
  border-color: rgba(180, 83, 9, 0.3);
  background: #fef3c7;
  color: #92400e;
}

.team-pill.build {
  border-color: rgba(13, 148, 136, 0.3);
  background: #ccfbf1;
  color: #0f766e;
}

.team-pill.review {
  border-color: rgba(185, 28, 28, 0.28);
  background: #fee2e2;
  color: #b91c1c;
}

section h2 {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.97rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #eff6ff;
  background: linear-gradient(180deg, var(--tab) 0%, var(--tab-dark) 100%);
  border: 1px solid #10273d;
  padding: 0.3rem 0.48rem;
  margin: -0.95rem -0.95rem 0.8rem;
}

p {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

p:last-child {
  margin-bottom: 0;
}

.notice-grid {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0.55rem;
}

.notice h3 {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #224364;
  margin-bottom: 0.2rem;
}

.notice p {
  font-size: 0.84rem;
  margin-bottom: 0;
}

.pipeline-table {
  border: 1px solid var(--line-strong);
  background: #ffffff;
}

.row {
  display: grid;
  grid-template-columns: 1.05fr 2.2fr 0.95fr;
  border-top: 1px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.row.head {
  background: #f5f5f4;
  border-bottom: 2px solid var(--line-strong);
}

.row.head span {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #475569;
  padding: 0.42rem 0.48rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cell {
  padding: 0.42rem 0.48rem;
  border-left: 1px solid var(--line);
}

.cell:first-child {
  border-left: 0;
}

.cell-title {
  display: none;
}

.desk-name {
  font-family: 'Courier Prime', 'Courier New', monospace;
  text-transform: uppercase;
  font-weight: 700;
  color: #19354f;
  margin-bottom: 0;
}

.cell p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.badge {
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #334155;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.result {
  margin: 0;
  padding: 0.52rem 0.55rem;
  border-top: 2px solid var(--line-strong);
  background: #f6f1ef;
  color: var(--alert);
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.handoff-strip {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.handoff-strip article {
  border: 1px solid var(--line);
  background: #f6fafe;
  padding: 0.55rem;
}

.handoff-strip h3 {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.78rem;
  color: #1f3e5c;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.handoff-strip p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.culture-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.culture-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, #f8fcff 0%, #eff6fd 100%);
  padding: 0.6rem 0.55rem;
  position: relative;
}

.culture-card::before {
  content: "memo";
  position: absolute;
  top: 0.28rem;
  right: 0.34rem;
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.63rem;
  text-transform: uppercase;
  color: rgba(32, 64, 95, 0.55);
}

.culture-card h3 {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.78rem;
  color: #20405f;
  text-transform: uppercase;
  margin-bottom: 0.28rem;
  padding-right: 2.5rem;
}

.culture-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.committee-board {
  margin-top: 0.65rem;
  border: 1px solid #8a6f48;
  background:
    linear-gradient(180deg, #ccb188 0%, #b38e64 100%);
  padding: 0.55rem;
}

.board-title {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.73rem;
  text-transform: uppercase;
  color: #452b15;
  margin-bottom: 0.4rem;
}

.sticky-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sticky-note {
  position: relative;
  padding: 0.55rem 0.45rem 0.4rem;
  border: 1px solid rgba(90, 70, 44, 0.35);
  box-shadow: 0 2px 0 rgba(52, 31, 9, 0.2);
}

.sticky-note:nth-child(1) {
  background: #fff2ab;
  transform: rotate(-1.5deg);
}

.sticky-note:nth-child(2) {
  background: #d8f4c8;
  transform: rotate(1.1deg);
}

.sticky-note:nth-child(3) {
  background: #cde8ff;
  transform: rotate(-0.8deg);
}

.sticky-note::before {
  content: "";
  position: absolute;
  top: 0.16rem;
  left: 50%;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: -0.175rem;
  border-radius: 50%;
  background: #b94735;
  box-shadow: 0 0 0 1px rgba(67, 30, 20, 0.35);
}

.sticky-note h3 {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #2a2a2a;
  margin-bottom: 0.22rem;
}

.sticky-note p {
  font-size: 0.8rem;
  color: #2f3c4b;
  margin-bottom: 0;
}

.arch-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arch-item {
  border: 1px solid var(--line);
  background: #f6fafe;
  padding: 0.55rem;
}

.arch-item h3 {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #20405f;
  margin-bottom: 0.2rem;
}

.arch-item p {
  font-size: 0.86rem;
  margin-bottom: 0;
}

ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

li {
  border: 1px solid var(--line);
  background: #f7fbff;
  padding: 0.4rem 0.48rem;
  font-size: 0.88rem;
  color: var(--muted);
}

li::before {
  content: "[ ] ";
  color: var(--line-strong);
}

strong {
  color: #19344f;
}

.code-block {
  background: #0f2234;
  color: #d2ecff;
  border: 1px solid #254664;
  padding: 0.75rem;
  overflow-x: auto;
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.81rem;
  line-height: 1.5;
}

.code-block .comment {
  color: #86b9de;
}

.note {
  margin-top: 0.45rem;
  font-size: 0.84rem;
}

footer {
  text-align: center;
  padding: 0.55rem 0 0;
}

.footer-links {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.license {
  font-size: 0.78rem;
  color: #54697f;
}

@media (max-width: 860px) {
  html {
    font-size: 15px;
  }

  main {
    padding: 0.85rem 0.7rem 2rem;
  }

  .brand-strip {
    margin: -0.95rem -0.95rem 0.62rem;
    padding: 0.4rem 0.55rem;
    gap: 0.4rem 0.65rem;
  }

  .brand-live {
    margin-left: 0;
  }

  .notice-grid,
  .handoff-strip,
  .culture-grid,
  .sticky-grid,
  .arch-grid {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
    border-top: 2px solid var(--line);
  }

  .row.head {
    display: none;
  }

  .cell {
    border-left: 0;
    border-top: 1px dashed var(--line);
  }

  .cell:first-child {
    border-top: 0;
  }

  .cell-title {
    display: block;
    font-family: 'Courier Prime', 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #234565;
    margin-bottom: 0.12rem;
  }

  .sticky-note:nth-child(1),
  .sticky-note:nth-child(2),
  .sticky-note:nth-child(3) {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
