/* Senpoo Site — the background image is the star, everything else stays quiet. */

:root {
  --ink: #191623;
  --ink-soft: #4a4458;
  --accent: #6d4a7a;
  --sheet: rgba(255, 255, 255, 0.82);
  --rule: rgba(25, 22, 35, 0.14);
  --display: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.65;

  /* the 2048x2048 image: fills the viewport, never tiles, stays put on scroll */
  background-image: url("background.jpg");
  background-color: #2a2733;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

.sheet {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem) 5rem;
}

/* ---------- home ---------- */

.masthead {
  background: var(--sheet);
  backdrop-filter: blur(6px);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
}

.masthead h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entries li + li { margin-top: 2px; }

/* Signature: hovering an entry fades the panel back so the artwork shows through. */
.entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.8rem;
  background: var(--sheet);
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: var(--ink);
  transition: background 220ms ease, padding-left 220ms ease, color 220ms ease;
}

.entry:hover,
.entry:focus-visible {
  background: rgba(255, 255, 255, 0.32);
  padding-left: 2.4rem;
}

.entry-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}

.entry time,
.post-head time {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.empty {
  background: var(--sheet);
  padding: 1rem 1.8rem;
  color: var(--ink-soft);
}

/* ---------- post page ---------- */

.post-head,
.post {
  background: var(--sheet);
  backdrop-filter: blur(6px);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.post-head { padding-bottom: 1.6rem; }
.post { padding-top: 0.5rem; }

.back {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.back:hover { text-decoration: underline; }

.post-head h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0.8rem 0 0.4rem;
}

.post h2, .post h3 {
  font-family: var(--display);
  font-weight: 600;
  margin-top: 2rem;
}

.post p { margin: 1.1rem 0; }

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

.post img {
  max-width: 100%;
  height: auto;
  display: block;
}

.post figure {
  margin: 2rem 0;
}

.post blockquote {
  margin: 1.6rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

.post code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(25, 22, 35, 0.07);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.post hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.4rem 0;
}

a:focus-visible,
.entry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* iOS ignores background-attachment: fixed, so let it scroll there instead. */
@media (hover: none) {
  body { background-attachment: scroll; }
}
