/* rpdthree.com — design "1D": Ink blue, orange accent, Archivo + IBM Plex Mono */
:root {
  --ground: #081B45;
  --panel: #0C2459;
  --text: #EAF1FF;
  --muted: #BFCBE8;
  --accent: #FFB454;
  --line: rgba(234, 241, 255, 0.35);
  --line-soft: rgba(234, 241, 255, 0.25);
  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

@font-face {
  font-family: 'Archivo'; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url('fonts/archivo-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400;
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500;
  src: url('fonts/ibm-plex-mono-500.woff2') format('woff2');
}

* { box-sizing: border-box; }

img, svg { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    linear-gradient(rgba(234, 241, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 241, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--text); }
a:hover { color: #FFFFFF; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand-mark { width: 14px; height: 14px; background: var(--accent); }
.brand-name { font-weight: 800; font-size: 22px; font-stretch: 104%; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.site-nav a { padding: 12px 14px; text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px; align-items: center; padding: 88px 0 96px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 14px; letter-spacing: 0.12em; }
h1 {
  margin: 0; font-weight: 800; font-stretch: 104%;
  font-size: clamp(42px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede { margin: 0; max-width: 30em; font-size: 20px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  font-weight: 700; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--ground); }
.btn-primary:hover { background: #FFC67A; color: var(--ground); }
.btn-ghost { border-color: rgba(234, 241, 255, 0.6); font-weight: 600; }
.btn-ghost:hover { border-color: #FFFFFF; }

/* Tote rack drawing */
.figure { display: flex; flex-direction: column; gap: 14px; margin: 0; width: 100%; max-width: 560px; justify-self: end; }
.elev {
  display: block; background: #F3F0EA; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s ease;
}
.elev:hover { border-color: var(--accent); }
.elev img { display: block; width: 100%; height: auto; }
.figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; color: var(--muted); }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); }
.featured { padding: 44px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.featured p { margin: 0; max-width: 40em; color: var(--muted); }
h2 { margin: 0; font-weight: 800; font-stretch: 104%; font-size: 36px; letter-spacing: -0.02em; line-height: 1.05; }
.featured h2 { font-size: clamp(32px, 4.5vw, 48px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; font-family: var(--mono); font-size: 13px; }
.tags li { padding: 6px 10px; border: 1px solid rgba(234, 241, 255, 0.4); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; text-underline-offset: 6px; }

/* Sections */
.section { padding-top: 96px; display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head span { font-family: var(--mono); font-size: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 28px; text-decoration: none; }
a.card:hover { border-color: var(--accent); }
.card-top { display: flex; justify-content: space-between; color: var(--accent); }
.card h3 { margin: 0; font-weight: 700; font-size: 26px; line-height: 1.1; }
.card p { margin: 0; font-size: 16px; color: var(--muted); }
.card-status { margin-top: auto; padding-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.list li, .list a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.list li > a { flex: 1 1 100%; border: 0; padding: 0; }
.list .kind { width: 110px; color: var(--accent); }
.list .title { flex-grow: 1; font-weight: 600; font-size: 22px; }
.list .date { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); margin: 0; }

.about { margin-top: 96px; padding: 44px; display: flex; flex-direction: column; gap: 12px; }
.about h2 { font-size: 32px; }
.about p { margin: 0; max-width: 40em; color: var(--muted); }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 40px 0 56px; font-family: var(--mono); font-size: 13px; color: var(--muted);
}

/* Simple inner pages */
.page { padding: 72px 0 24px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.page p { margin: 0; max-width: 40em; color: var(--muted); }

@media (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 64px 0 72px; }
  .figure { justify-self: start; }
}
@media (max-width: 560px) {
  .featured, .about { padding: 28px; }
  .hero { padding: 56px 0 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
