@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg-1: #f3f6fb;
  --bg-2: #e9eef8;
  --panel: #ffffff;
  --panel-soft: #f7f9fd;
  --ink: #152033;
  --muted: #54627a;
  --line: #d7dfec;
  --line-strong: #bcc9de;
  --accent: #1251b2;
  --accent-strong: #0a3f8f;
  --accent-soft: #dce9ff;
  --ok: #1b6e3a;
  --ok-bg: #dff4e7;
  --bad: #982a2a;
  --bad-bg: #f9e1e1;
  --shadow: 0 18px 50px rgba(15, 30, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(84, 138, 255, 0.14) 0, transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(18, 81, 178, 0.11) 0, transparent 30%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  line-height: 1.65;
}

.wrap {
  position: relative;
  width: min(980px, 92vw);
  margin: 3rem auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise-in 360ms ease-out;
}

.wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #0f4ead, #2a7bea, #4e97f7);
}

header {
  padding: 2.1rem 2.2rem 1.7rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(240, 246, 255, 0.92), rgba(231, 240, 255, 0.86)),
    var(--panel-soft);
}

h1,
h2,
h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
}

h1 {
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  margin-top: 1.15rem;
}

h3 {
  font-size: 1.04rem;
  letter-spacing: 0.01em;
}

p {
  margin: 0.45rem 0 1rem;
  color: var(--muted);
}

main {
  padding: 1.6rem 2.2rem 2.15rem;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.95rem;
  margin-top: 0.95rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(21, 40, 75, 0.08);
}

a.button,
button.button {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.58rem 0.98rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 140ms ease, filter 140ms ease;
}

a.button:hover,
button.button:hover {
  filter: brightness(1.03);
  box-shadow: 0 8px 16px rgba(18, 81, 178, 0.28);
}

a.button:active,
button.button:active {
  transform: translateY(1px);
}

a.button.ghost,
button.button.ghost {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--line-strong);
  box-shadow: none;
}

a.button.ghost:hover,
button.button.ghost:hover {
  border-color: var(--accent);
  background: rgba(18, 81, 178, 0.06);
}

button.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.meta {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--panel-soft);
  color: #2c3b57;
  font-size: 0.92rem;
}

.status-text {
  margin-top: 0.9rem;
  min-height: 1.2rem;
  color: #2b4468;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin-top: 1rem;
}

.list-box {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  overflow-wrap: anywhere;
}

.event-row {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 0.83rem;
  color: #2c3d5c;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill.good {
  background: var(--ok-bg);
  color: var(--ok);
}

.pill.bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

code {
  background: var(--accent-soft);
  color: #12376b;
  border: 1px solid #c4dafc;
  border-radius: 6px;
  padding: 0.1rem 0.34rem;
  font-size: 0.89em;
}

footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #5a6d8d;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .wrap {
    margin: 1rem auto;
    border-radius: 14px;
  }

  header,
  main {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  header {
    padding-top: 1.4rem;
    padding-bottom: 1.1rem;
  }

  main {
    padding-top: 1.05rem;
    padding-bottom: 1.35rem;
  }

  .actions a.button,
  .actions button.button {
    width: 100%;
    text-align: center;
  }
}
