:root {
  color-scheme: light;
  --bg: #0b3ea8;
  --bg-2: #1d58d8;
  --paper: #d7d7d7;
  --panel: #c0c0c0;
  --panel-dark: #8c8c8c;
  --panel-light: #ffffff;
  --text: #111111;
  --muted: #303030;
  --link: #0000ee;
  --visited: #551a8b;
  --danger: #b00020;
  --success: #006400;
}

* {
  box-sizing: border-box;
}

html {
  background:
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  background-size: 22px 22px, 22px 22px, cover;
  background-position: 0 0, 11px 11px, 0 0;
}

body {
  margin: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: var(--text);
  min-height: 100vh;
}

button,
input,
a {
  font: inherit;
}

.shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 14px 36px;
}

.hero,
.panel,
.entry-card,
.job-card,
.retro-bar {
  background: var(--panel);
  border-top: 3px solid var(--panel-light);
  border-left: 3px solid var(--panel-light);
  border-right: 3px solid var(--panel-dark);
  border-bottom: 3px solid var(--panel-dark);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.24);
}

.hero {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #eaeaea, #c8c8c8);
}

.retro-bar {
  margin-bottom: 14px;
  background: #000080;
  color: #ffff00;
  padding: 8px 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

marquee {
  display: block;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  background: #ff0080;
  border: 2px solid #000000;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: 'Trebuchet MS', Verdana, Arial, sans-serif;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
  color: #000080;
  text-shadow: 2px 2px 0 #ffffff;
}

h2 {
  font-size: 18px;
  text-transform: uppercase;
  color: #000080;
}

.panel {
  padding: 14px;
}

.stack-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

input[type='url'] {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border-top: 3px solid var(--panel-dark);
  border-left: 3px solid var(--panel-dark);
  border-right: 3px solid var(--panel-light);
  border-bottom: 3px solid var(--panel-light);
  background: #ffffff;
  color: #000000;
}

button,
.ghost-link,
.format-button,
.job-link {
  display: inline-block;
  padding: 11px 14px;
  text-decoration: none;
  color: #000000;
  background: #c0c0c0;
  border-top: 3px solid var(--panel-light);
  border-left: 3px solid var(--panel-light);
  border-right: 3px solid var(--panel-dark);
  border-bottom: 3px solid var(--panel-dark);
  cursor: pointer;
  font-weight: 700;
}

button:hover,
.ghost-link:hover,
.format-button:hover,
.job-link:hover {
  background: #d8d8d8;
}

button:active,
.ghost-link:active,
.format-button:active,
.job-link:active {
  border-top: 3px solid var(--panel-dark);
  border-left: 3px solid var(--panel-dark);
  border-right: 3px solid var(--panel-light);
  border-bottom: 3px solid var(--panel-light);
  transform: translate(1px, 1px);
}

.secondary {
  background: #d6d6d6;
}

.ghost-link {
  color: var(--link);
  background: #efefef;
}

.hint-row,
.section-head,
.entry-top,
.job-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.hint-row {
  margin-top: 10px;
  font-size: 12px;
  flex-wrap: wrap;
  color: #111111;
  padding: 8px 10px;
  background: #ffffcc;
  border: 1px dashed #000080;
}

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.results.empty {
  color: #222222;
  padding: 12px;
  background: #f7f7f7;
  border: 1px dotted #000000;
}

.entry-card,
.job-card {
  padding: 14px;
  background: #efefef;
}

.entry-title,
.job-title {
  font-size: 18px;
  margin-bottom: 6px;
  color: #000080;
}

.entry-meta,
.job-meta,
.muted {
  color: var(--muted);
}

.entry-extractor,
.job-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 8px;
  background: #000080;
  color: #ffffff;
  white-space: nowrap;
  border: 2px solid #000000;
}

.entry-note {
  margin-top: 10px;
  padding: 8px 10px;
  background: #fffbe6;
  border-left: 4px solid #ff0080;
}

.format-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.format-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #ffffff;
  border: 2px solid #000000;
}

.format-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.format-copy strong {
  color: #000080;
}

.format-subline {
  font-size: 12px;
  color: #2b2b2b;
}

.flash {
  margin-top: 12px;
  padding: 10px 12px;
  font-weight: 700;
  background: #d9ffd9;
  border: 2px solid var(--success);
  color: #003600;
}

.flash.error {
  background: #ffe1e1;
  border-color: var(--danger);
  color: #6a0015;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .hero,
  .stack-row,
  .grid,
  .format-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .section-head,
  .entry-top,
  .job-progress-row,
  .hint-row {
    align-items: flex-start;
  }
}
