/* tmurano.github.io — single stylesheet (layout adapted from Jon Barron's website) */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5a5a5a;
  --line: #e5e5e5;
  --link: #1a5fb4;
  --hover: #0b3d7a;
  --maxw: 800px;
  --band: #1a5fb4;
  --font: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --text: #ececec;
    --muted: #a0a0a0;
    --line: #2a2a2a;
    --link: #7fb2ff;
    --hover: #b3d1ff;
    --band: #173a66;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.65;
}

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

.page { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 40px; }

h2 { font-size: 22px; font-weight: 400; margin: 32px 0 8px; }
h3 { font-size: 17px; font-weight: 600; margin: 22px 0 6px; }
p { margin: 0 0 12px; }
.note { color: var(--muted); font-size: 14px; }

/* Home header */
.name { text-align: center; font-size: 32px; font-weight: 400; margin: 6px 0 0; letter-spacing: 0.01em; }
.name-sub { text-align: center; color: var(--muted); margin: 2px 0 18px; }
.contact { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0 6px; }
.contact a { white-space: nowrap; }

/* Link rows: a / b / c (the slash follows each link, so a wrapped line never starts with one) */
.linkrow { display: flex; flex-wrap: wrap; justify-content: center; margin: 4px 0; }
.linkrow a { white-space: nowrap; }
.linkrow a:not(:last-child)::after { content: "/"; display: inline-block; color: var(--muted); margin: 0 8px; }

/* Page header: a blue band across the full width (the box-shadow widens the background, clip-path keeps it to the band) */
.topbar {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 16px; margin-top: -28px; padding: 14px 0 12px;
  background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax);
}
.topbar a { color: #ffffff; }
.topbar .home { font-size: 18px; }
.topbar .home .note { color: rgba(255, 255, 255, 0.8); }
.topbar .linkrow { margin: 0; font-size: 14px; justify-content: flex-end; }
.topbar .linkrow a:not(:last-child)::after { color: rgba(255, 255, 255, 0.6); }
.topbar .linkrow a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.topbar + .name { margin-top: 22px; }
h1.title { font-size: 26px; font-weight: 400; margin: 22px 0 8px; }

/* Dated lists (news, funding) */
.dated { list-style: none; margin: 0; padding: 0; }
.dated li { display: grid; grid-template-columns: 132px 1fr; gap: 10px; padding: 3px 0; }
.dated .d { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Papers */
.paper { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; padding: 18px 0; }
.paper + .paper { border-top: 1px solid var(--line); }
.paper img {
  width: 160px; height: 120px; object-fit: contain; display: block;
  background: #ffffff; border: 1px solid var(--line); border-radius: 3px;
}
.ptitle { font-weight: 700; }
.authors, .venue, .plinks { display: block; }
.venue { font-style: italic; }
.plinks a { white-space: nowrap; }
.plinks a:not(:last-child)::after { content: "/"; display: inline-block; color: var(--muted); margin: 0 6px; }
.summary { margin: 6px 0 0; }

/* Media coverage, folded under its paper on the publications page */
.paper .media { grid-column: 2; }
.media summary { cursor: pointer; color: var(--link); }
.media .items .t { font-weight: 400; }
.media .sub { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

/* Simple item lists (presentations, software, media) */
.items { list-style: none; margin: 0; padding: 0; }
.items li { padding: 10px 0; border-top: 1px solid var(--line); }
.items li:first-child { border-top: 0; }
.items .t { display: block; font-weight: 600; }
.items .m { display: block; color: var(--muted); font-size: 14px; }

/* CV */
.cv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0; }
.cv dt { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv dd { margin: 0; }

footer {
  margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .name { font-size: 27px; }
  .topbar .linkrow { justify-content: flex-start; }
  .paper { grid-template-columns: 96px 1fr; gap: 12px; align-items: start; padding: 14px 0; }
  .paper img { width: 96px; height: 72px; }
  .paper .media { grid-column: 1 / -1; }
  .dated li { grid-template-columns: 1fr; gap: 0; }
  .cv { grid-template-columns: 1fr; gap: 0; }
  .cv dd { margin-bottom: 10px; }
}
