/* Tokyo Night Storm */
:root {
  color-scheme: light dark;
  --bg: #1a1b26;
  --surface: #24283b;
  --text: #c0caf5;
  --muted: #a9b1d6;
  --primary: #7aa2f7;
  --secondary: #bb9af7;
  --highlight: #7dcfff;
  --border: #3b4261;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f7fb;
    --surface: #e9eaf2;
    --text: #343b58;
    --muted: #565f89;
    --primary: #34548a;
    --secondary: #7848a8;
    --highlight: #176b8a;
    --border: #d5d8e8;
  }
}

/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: sans-serif;
  line-height: 1.5;
}

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

/* Header */
#homepage-header-title {
  text-align: center;
  font-size: 36px;
  color: var(--text);
  margin: 24px 16px 32px;
}

/* Main layout */
main {
  padding: 0 16px;
}

.homepage-layout {
  display: grid;
  grid-template-columns: minmax(0, 322px) minmax(0, 502px);
  justify-content: center;
  align-items: stretch;
  column-gap: 24px;
  width: 100%;
  max-width: 848px;
  margin: 0 auto;
}

/* Left column */
.homepage-left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Shared section styling */
#homepage-about-block,
#homepage-links-block,
#homepage-posts-block {
  box-sizing: border-box;
  min-width: 0;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px 12px;
}

/* About */
#homepage-left-main-title {
  text-align: center;
  color: var(--primary);
}

#homepage-left-about-text {
  text-align: center;
  color: var(--muted);
  margin-top: 0;
}

/* Useful Links */
#homepage-links-title {
  text-align: center;
  color: var(--muted);
  margin-top: 0.83em;
}

#homepage-links-block {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

#homepage-links-block a {
  color: var(--primary);
  text-decoration: none;
  text-align: center;
  justify-content: center;
  font-size: 21px;
  display: flex;
}

#homepage-links-block a:hover {
  text-decoration: underline;
}

/* Recent Posts */
#homepage-posts-block {
  height: 600px;
  overflow-y: auto;
}

#homepage-posts-block p {
  text-align: center;
  justify-content: center;
  font-size: 19px;
}

#homepage-posts-title {
  text-align: center;
  color: var(--primary);
}

#footer {
  margin-top: 40px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
}

#footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  width: 100%;
}

#footer-links a {
  text-decoration: none;
}

#footer-copyright {
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Donation Page */
.donation-page {
  justify-content: center;
  text-align: center;
  width: 100%;
}

#donation-page-text-first-row {
  font-size: 20px;
  color: var(--muted);
}

#donation-page-text-second-row {
  font-size: 20px;
  color: var(--muted);
}

#donation-links-section {
  justify-content: center;
  text-align: center;
  width: 100%;
}

#donation-links-section img {
  width: 16px;
  height: 16px;
}

#donation-links-bitcoin,
#donation-links-solana,
#donation-links-usdc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* Contact Page */

.contact-page {
  text-align: center;
}

#contact-page-text {
  font-size: 21px;
  color: var(--muted);
}

#contact-page-email-section {
  background: var(--surface);
  border: 1px solid #414868;
  border-radius: 8px;
  padding-left: 10px;
  padding-right: 10px;
  width: fit-content;
  margin-inline: auto;
}

#contact-page-email-section p {
  font-size: 21px;
}

/* About Page */

#about-page-header-title {
  text-align: center;
  justify-content: center;
}

.about-page p {
  text-align: center;
  justify-content: center;
  font-size: 19px;
  color: var(--text);
}


@media (max-width: 650px) {
  .homepage-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 502px;
    row-gap: 16px;
  }

  #homepage-posts-block {
    height: 400px;
  }
}

/* Small screens */
@media (max-width: 380px) {
  #homepage-header-title {
    font-size: 28px;
  }
}
