@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Mono:wght@400;500&display=swap');

:root {
  --ink: #17231a;
  --forest: #163226;
  --paper: #e9e3cf;
  --acid: #d7ef64;
  --rust: #df6b45;
  --mint: #7fc69b;
  --line: rgba(23, 35, 26, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(215, 239, 100, .62), transparent 22rem),
    repeating-linear-gradient(115deg, transparent 0 24px, rgba(22, 50, 38, .035) 24px 25px),
    var(--paper);
  font-family: "DM Mono", monospace;
  min-height: 100vh;
}

main { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 80px; }

.masthead { display: flex; justify-content: space-between; align-items: end; gap: 28px; border-bottom: 3px solid var(--ink); padding-bottom: 28px; }
.eyebrow, .account-key { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 500; }
h1, h2 { font-family: "Archivo Black", sans-serif; text-transform: uppercase; margin: 0; line-height: .86; }
h1 { font-size: clamp(3.4rem, 10vw, 8.5rem); letter-spacing: -.065em; }
h1 span { color: transparent; -webkit-text-stroke: 2px var(--ink); }

.heartbeat { display: flex; gap: 14px; align-items: center; min-width: 250px; background: var(--forest); color: white; padding: 18px 20px; transform: rotate(-1deg); box-shadow: 7px 7px 0 var(--rust); }
.heartbeat strong, .heartbeat small { display: block; }
.heartbeat small { opacity: .72; margin-top: 4px; font-size: .68rem; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 7px rgba(215, 239, 100, .15); animation: pulse 2s infinite; }
.heartbeat-failed .pulse { background: var(--rust); }

.briefing { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 24px 0 34px; }
.briefing div, .briefing button { background: rgba(255,255,255,.35); border: 0; padding: 18px 20px; font: inherit; text-align: left; }
.briefing span, .briefing strong { display: block; }
.briefing span { text-transform: uppercase; font-size: .66rem; letter-spacing: .12em; opacity: .6; margin-bottom: 5px; }
.briefing button { cursor: pointer; background: var(--acid); font-weight: 500; }

.accounts { display: grid; gap: 26px; }
.account-card { border: 2px solid var(--ink); background: rgba(255,255,255,.42); box-shadow: 10px 10px 0 rgba(22,50,38,.11); }
.account-heading { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 2px solid var(--ink); }
.account-heading h2 { font-size: clamp(1.6rem, 4vw, 3rem); }
.cycle-badge { background: var(--ink); color: white; padding: 8px 11px; font-size: .68rem; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.action { min-height: 150px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.action::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #889087; }
.action-success::before { background: var(--mint); }
.action-failed::before { background: var(--rust); }
.action-checked::before { background: #e8b356; }
.action > div { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.action span { font-size: .62rem; text-transform: uppercase; background: var(--ink); color: white; padding: 5px 7px; white-space: nowrap; }
.action p { font-family: Georgia, serif; font-size: 1rem; min-height: 2.4em; }
.action small { opacity: .55; }
.error { border: 2px solid var(--rust); padding: 16px; background: #fff1ea; }

@keyframes pulse { 50% { transform: scale(.72); opacity: .7; } }

@media (max-width: 800px) {
  main { width: min(100% - 20px, 700px); padding-top: 24px; }
  .masthead { align-items: stretch; flex-direction: column; }
  .heartbeat { align-self: stretch; }
  .briefing { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
  .account-heading { align-items: start; flex-direction: column; gap: 16px; }
}
