* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  background: #fafaf8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: cardFade 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.22s; }
.card:nth-child(3) { animation-delay: 0.34s; }
.card:nth-child(4) { animation-delay: 0.46s; }
.card:nth-child(5) { animation-delay: 0.58s; }
.card:nth-child(6) { animation-delay: 0.7s; }

@keyframes cardFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #111;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.45rem, 3.5vw, 1.7rem);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

p {
  margin: 10px 0 0;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
}

.tagline {
  margin-top: 0;
  color: #666;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  font-style: italic;
}

a {
  color: #1d4f91;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #12345f;
  text-decoration: underline;
}

.links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1a1a1a;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.top-button:hover {
  transform: translateY(-2px);
  background: #f5f5f3;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #111;
}

.top-button:active {
  transform: translateY(0);
}

.top-button:focus {
  outline: 2px solid rgba(29, 79, 145, 0.28);
  outline-offset: 3px;
}

.entry {
  margin-top: 20px;
}

.entry + .entry {
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.entry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.entry-row.top {
  font-weight: 700;
}

.entry-row.bottom {
  font-style: italic;
  color: #555;
  margin-top: 4px;
}

.entry-left,
.entry-right {
  font-size: clamp(1rem, 2.4vw, 1.125rem);
}

.entry-left {
  min-width: 0;
}

.entry-right {
  text-align: right;
  white-space: nowrap;
}

.entry-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.entry-logo {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.entry-details {
  margin-top: 10px;
}

.entry-details ul {
  margin-top: 8px;
}

ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

li {
  margin-bottom: 8px;
  font-size: clamp(1rem, 2.4vw, 1.125rem);
}

small,
.muted {
  color: #6f6f6f;
}

hr {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 24px 0;
}

.button,
button {
  display: inline-block;
  font: inherit;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  opacity: 0.96;
}

.button:active,
button:active {
  transform: translateY(0);
  box-shadow: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(29, 79, 145, 0.16);
}

a:focus,
button:focus {
  outline: 2px solid rgba(29, 79, 145, 0.35);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 32px 14px;
  }

  .card {
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .links {
    gap: 8px;
  }

  .top-button {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .entry-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .entry-right {
    text-align: left;
    white-space: normal;
  }

  .entry-logo {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .entry-with-logo {
    gap: 8px;
  }
  .links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .top-button .button-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
