@font-face {
  font-family: "Josefin Sans";
  src: url("/assets/fonts/josefin-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("/assets/fonts/josefin-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --fg: #0d1a10;
  --muted: #5b6460;
  --accent: #0d1a10;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Josefin Sans", sans-serif;
  line-height: 1.6;
}

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

h1 {
  font-weight: 700;
  margin: 0;
}

/* ---------- Home: one screen, no scrolling ---------- */
body.home-body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.home {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2vh;
  padding: 3vh 16px 2vh;
  text-align: center;
}

.home h1 {
  font-size: clamp(1.8rem, 5.6vh, 3.6rem);
  line-height: 1.15;
}

.home .photo {
  display: block;
  flex: 0 1 auto;
  min-height: 0;
  height: 74vh;
  max-width: 100%;
}
.home .photo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* the secret dot -> /i : appears, then rises a little */
.home .banner {
  display: block;
  flex: none;
  line-height: 0;
  opacity: 0;
  transform: translateY(14px);
  animation:
    dot-rise 1.4s ease-out 1.2s forwards,
    dot-float 3.2s ease-in-out 2.6s infinite;
}
.home .banner img {
  display: block;
  height: clamp(56px, 8vh, 96px);
  width: auto;
}
.home .banner:hover img,
.home .banner:focus-visible img {
  transform: scale(1.15);
  transition: transform 0.25s ease;
}

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

@keyframes dot-float {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  .home .banner { animation: none; opacity: 1; transform: none; }
}

/* Phones: let the photo fill the width instead */
@media (max-aspect-ratio: 3/4) {
  .home .photo { height: auto; width: 100%; }
  .home .photo img { width: 100%; height: auto; max-height: 70vh; }
}

/* ---------- Text page (/i) ---------- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 16px 4rem;
}
.page h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.page .back { margin: 0 0 2rem; font-size: 0.95rem; }
.page .back a { color: var(--muted); text-decoration: none; }
.page .note { font-size: 0.95rem; }
.page blockquote {
  margin: 2.5rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--fg);
  color: var(--muted);
  font-style: italic;
}

/* quiet sign-in link on the home page */
.auth-link {
  position: fixed;
  right: 16px;
  bottom: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.55;
}
.auth-link:hover, .auth-link:focus-visible { opacity: 1; text-decoration: underline; }

/* ---------- Sign-in / account pages ---------- */
.auth {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 16px 4rem;
}
.auth h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 1.5rem; }
.auth .back { margin: 0 0 2rem; font-size: 0.95rem; }
.auth .back a { color: var(--muted); text-decoration: none; }
.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.card label, .card .label { font-weight: 700; margin: 0.6rem 0 0; }
.card input, .card textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--fg);
  border-radius: 6px;
  background: #fff;
  color: var(--fg);
  width: 100%;
  word-break: break-all;
}
.card textarea { resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
.hint code { font-size: 0.85em; }
.small-print { font-size: 0.8rem; }
.error { color: #b3261e; font-weight: 700; margin: 0; }
button {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--fg);
  color: #fff;
  cursor: pointer;
}
button:disabled { opacity: 0.5; cursor: wait; }
button.small { padding: 0.45rem 0.8rem; font-size: 0.85rem; flex: none; }
button.link {
  background: none;
  color: var(--muted);
  padding: 0.4rem 0;
  font-weight: 400;
  text-decoration: underline;
  align-self: flex-start;
}
.message-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.message-row code {
  flex: 1;
  padding: 0.7rem 0.8rem;
  background: #f3f4f2;
  border-radius: 6px;
  font-size: 0.85rem;
  word-break: break-word;
  user-select: all;
}
.wallets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.wallets li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid #e3e5e2; }
.wallets .chain { font-weight: 700; }
.wallets code { color: var(--muted); }
.badge {
  font-size: 0.75rem;
  vertical-align: middle;
  padding: 0.15rem 0.5rem;
  border: 1.5px solid var(--fg);
  border-radius: 99px;
}
