/* Archive — conventions inherited from Oeuvre (oeuvre.yashmoitra.com).
 * Keep this file in step with oeuvre-v2/styles.css. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.8;
}

/* ===== Layout ===== */
.main-view > * { max-width: 800px; margin: 0 auto; padding: 0 20px; }

.main-view > header { padding: 60px 20px 40px; text-align: center; max-width: 800px; margin: 0 auto; }
.main-view > main   { padding: 20px 20px 0;  max-width: 800px; margin: 0 auto; }
.main-view > footer { padding: 50px 20px; max-width: 800px; margin: 0 auto; }

/* ===== Header ===== */
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 48px;
  font-weight: normal;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.header-line { width: 100px; height: 1px; background: #000; margin: 0 auto; }

.author-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-style: italic;
  color: #000;
  margin: 15px 0 30px;
}

/* ===== Category sections ===== */
section { margin-bottom: 100px; padding-top: 40px; }

.category-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px;
  font-weight: normal;
  margin-bottom: 60px;
  text-align: center;
  letter-spacing: 1px;
}

/* ===== Work list ===== */
.work-list { list-style: none; padding: 0; }
.work-item { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 12px; }
.work-item a { color: #000; text-decoration: none; transition: opacity .15s ease; }
.work-item a:hover { text-decoration: underline; }
.work-year { color: #666; font-size: 14px; margin-left: 8px; white-space: nowrap; }

/* hover note on an entry */
.work-item a[data-tip] { position: relative; }
.work-item a[data-tip]:hover::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: 280px;
  background: #000;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  white-space: normal;
  z-index: 2;
  pointer-events: none;
}

/* ===== Item / detail page ===== */
.item-page { max-width: 800px; margin: 0 auto; padding: 40px 20px 0; }

.back-link {
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 40px;
}
.back-link:hover { text-decoration: underline; }

.item-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 42px;
  font-weight: normal;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.item-date { font-size: 16px; color: #666; font-style: italic; margin-bottom: 40px; }

.item-content {
  margin-top: 60px;
  line-height: 2;
  font-family: Georgia, 'Times New Roman', serif;
}
.item-content p { margin-bottom: 20px; }

.salutation { margin-bottom: 32px; }

.signoff { margin-top: 48px; line-height: 1.7; }
.signoff .role { font-style: italic; color: #666; }

/* inline hover note inside prose */
.tip { position: relative; border-bottom: 1px dotted #bbb; cursor: help; }
.tip:hover::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  background: #000;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  white-space: normal;
  z-index: 2;
  pointer-events: none;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 50px 0;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #000;
  margin-top: 80px;
}

footer a { color: #666; text-decoration: none; }
footer a:hover { color: #000; text-decoration: underline; }
.footer-site { margin-top: 4px; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  h1 { font-size: 36px; }
  .category-heading { font-size: 28px; }
  .item-title { font-size: 32px; }
}
