:root {
  --ink: #1a2230;
  --muted: #6a7382;
  --line: #e6e8ec;
  --bg: #eef0f3;
  --card: #ffffff;
  --blue: #1e6fe6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--ink);
}

/* ---------------- Homepage (business card) ---------------- */

body.home {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.card {
  background: var(--card);
  width: 100%;
  max-width: 520px;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(20, 30, 50, 0.04),
    0 12px 32px -12px rgba(20, 30, 50, 0.18),
    0 2px 6px -2px rgba(20, 30, 50, 0.08);
  padding: 44px 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mark {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.name .sub {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

.desc {
  color: var(--ink);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.rule {
  height: 1px;
  background: var(--line);
  margin: 4px -44px;
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
}

.contact dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.contact dd {
  margin: 0;
}

.contact a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.contact a:hover {
  color: var(--blue);
}

body.home > footer,
body.notfound > footer {
  padding: 22px 24px 28px;
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}

body.home > footer,
body.notfound > footer a {
  color: var(--muted);
  text-decoration: none;
}

body.home > footer,
body.notfound > footer a:hover {
  color: var(--ink);
}

body.home > footer,
body.notfound > footer .sep {
  opacity: 0.45;
}

@media (max-width: 480px) {
  .card {
    padding: 32px 24px 28px;
  }
  .rule {
    margin: 0 -24px;
  }
  .contact {
    flex-direction: column;
    gap: 4px;
  }
}

/* ---------------- Legal pages (privacy, terms) ---------------- */

body.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px;
  line-height: 1.6;
}

.prose h1 {
  font-size: 22px;
  margin: 0 0 8px;
}

.prose h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 8px;
}

.prose .muted {
  color: var(--muted);
  font-size: 13px;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul {
  margin: 0 0 14px;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 4px;
}

.prose a {
  color: var(--ink);
}

.prose a:hover {
  color: var(--blue);
}

.prose .back {
  margin-top: 36px;
  font-size: 13px;
}

.prose .back a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 22px;
}

.prose .back a:hover {
  color: var(--ink);
}

/* ---------------- 404 ---------------- */

body.notfound {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.notfound main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.notfound .card {
  text-align: center;
  gap: 16px;
}

.notfound .card h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.notfound .card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.notfound .card a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.notfound .card a:hover {
  color: var(--blue);
}
