/* The palette of himekogit.yukanoe.org, so the two sites feel related. */
:root {
  --bg: #121016;
  --bg-raised: #1b1822;
  --border: #2e2a38;
  --text: #ece9f2;
  --muted: #a39db0;
  --accent: #a678ff;
  --accent-strong: #8b5cf6;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf9fc;
    --bg-raised: #ffffff;
    --border: #e3dfeb;
    --text: #1d1a24;
    --muted: #5e576b;
    --accent: #6d3fd6;
    --accent-strong: #6d3fd6;
    --shadow: 0 20px 50px rgba(40, 20, 80, 0.16);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand { color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }

nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--text); text-decoration: none; }

/* Sections */

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--border); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 6vw, 60px); margin: 0 0 16px; font-weight: 750; }
h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 32px; font-weight: 700; }
h3 { font-size: 21px; margin: 0 0 6px; }

.hero { text-align: center; padding: 120px 0 96px; }

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto;
}

/* Products */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.product {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.15s, transform 0.15s;
}
.product:not(.soon):hover { border-color: var(--accent); transform: translateY(-2px); }
.product p { margin: 0; color: var(--muted); font-size: 16px; }

.product h3 a { color: var(--text); }
/* The whole card opens the product's site. */
.product-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.product-link:hover { text-decoration: none; }

.product-icon {
  flex: none;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.links { display: flex; gap: 16px; margin-top: 12px !important; font-size: 15px; }
/* Above the card's own link, so each still goes where it says. */
.links a { position: relative; z-index: 1; }

.soon { border-style: dashed; background: none; }
.placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 28px;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .product { transition: none; }
  .product:not(.soon):hover { transform: none; }
}

/* Footer */

footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Not found */

.not-found { text-align: center; padding: 140px 0; }
.not-found p { color: var(--muted); }

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .hero { padding: 88px 0 72px; }
  .products { grid-template-columns: 1fr; }
}
