/* Hybrid Visual Simulation of Garment Wear — project page */

:root {
  --text: #1a1a1a;
  --muted: #666;
  --rule: #e2e2e2;
  --link: #1a5fb4;
  --link-hover: #0b3d7a;
  --bg: #ffffff;
  --panel: #f7f7f5;
  --max: 880px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino,
               Georgia, "Hiragino Mincho ProN", serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ---------- header ---------- */

header {
  text-align: center;
  padding: 64px 0 8px;
}

h1 {
  font-size: 2.05rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.authors {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 14px;
  text-wrap: balance;   /* even out line lengths when the list wraps */
}

.authors .author { white-space: nowrap; }   /* never break inside a name */

.authors a { color: var(--text); }
.authors a:hover { color: var(--link); }

.authors sup { font-size: 0.72em; color: var(--muted); padding-left: 1px; }

.affil {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.7;
}

.affil sup { padding-right: 2px; }

.venue {
  font-size: 1rem;
  margin: 0 0 6px;
}

.venue strong { font-weight: 600; }

.venue-sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 30px;
}

/* ---------- link buttons ---------- */

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.links a:hover {
  background: #ececea;
  border-color: #cfcfcf;
  text-decoration: none;
}

.links svg { width: 16px; height: 16px; flex: none; }

/* ---------- sections ---------- */

section { margin: 56px 0 0; }

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 34px 0 10px;
}

p { margin: 0 0 16px; }

/* ---------- figures ---------- */

figure {
  margin: 26px 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

figcaption b { color: var(--text); font-weight: 600; }

.teaser { margin: 34px 0 0; }

/* ---------- author list ---------- */

ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.85;
}

ul.plain .org { color: var(--muted); }

/* ---------- bibtex ---------- */

.bibtex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.bibtex-head h3 { margin: 0; }

button.copy {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

button.copy:hover { background: #ececea; }

pre {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 10px 0 0;
}

.ref {
  font-size: 0.95rem;
  padding-left: 2em;
  text-indent: -2em;
}

/* ---------- footer ---------- */

footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  header { padding-top: 40px; }
  h1 { font-size: 1.5rem; }
  .authors { font-size: 0.97rem; }
  .wrap { padding: 0 18px 64px; }
}

/* ---------- video ---------- */

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 18px 0 0;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
