@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fraunces-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/fraunces-800.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/manrope-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/manrope-600.ttf') format('truetype');
}

:root {
  color-scheme: light;
  --ink: #111111;
  --ink-soft: #555555;
  --border: #e6e6e6;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #ffffff;
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px 60px;
  gap: 24px;
}

.hero {
  width: 100%;
  max-width: 560px;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 12px;
}

.logo {
  width: min(50vh, 90vw);
  height: min(50vh, 90vw);
  object-fit: contain;
}

.links {
  width: 100%;
  max-width: 900px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  font-weight: 600;
}

.link:hover {
  border-color: #cfcfcf;
}

.panel {
  width: 100%;
  max-width: 680px;
  border-top: 1px solid var(--border);
  padding: 20px 4px 4px;
}

.panel h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.panel p {
  line-height: 1.6;
  color: var(--ink-soft);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.modal:target {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-card {
  position: relative;
  background: #ffffff;
  width: min(92vw, 560px);
  max-height: 80vh;
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 22px;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-close {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.modal-card h3 {
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.modal-card p {
  margin: 8px 0;
  line-height: 1.6;
  color: var(--ink-soft);
}

.modal-card ul {
  margin: 8px 0 14px;
  padding-left: 20px;
  list-style-position: outside;
}

.modal-card li {
  margin: 6px 0;
  line-height: 1.55;
  color: var(--ink-soft);
}

.footer {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

@media (max-width: 480px) {
  .page {
    padding-top: 24px;
  }

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