/* ==========================================================================
   Base Resets & Global Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  background-color: #f7f6f2; /* Clean paper background */
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  padding: 2.5rem 1rem;
}

/* Page Frame Container — Open Layout (No Outer Border) */
.container {
  max-width: 760px;
  margin: 0 auto;
  border: none; /* Outer black box removed */
  background-color: #f7f6f2;
  padding: 1rem 0;
}

/* Base link styling */
a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

/* ONLY actual links and details summaries turn red on hover */
a:hover,
summary:hover,
a.hover-thumb:hover,
a.meta-badge-link:hover,
a.meta-badge-link:hover .meta-badge {
  color: #db2428 !important;
}

/* Non-link thumbnail previews stay dark text on hover */
span.hover-thumb:hover {
  color: inherit;
}

/* ==========================================================================
   Header & Identity Section
   ========================================================================== */
.site-header {
  margin-bottom: 1.5rem;
}

.meta-badge {
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #555555;
  margin-bottom: 0.5rem;
}

.site-title {
  font-family: monospace;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.author-meta {
  font-size: 0.95rem;
  color: #444444;
}

.thesis-box {
  border: 1px solid #111111;
  padding: 1rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.02);
  margin-bottom: 2rem;
}

.thesis-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.label {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

/* ==========================================================================
   Hero Portrait & Overlay
   ========================================================================== */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  border: 1px solid #111111;
  margin-bottom: 2.5rem;
  background-color: #ffffff;
}

.hero-image {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.photo-overlay {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 10;
}

/* ==========================================================================
   Section Headings & Inquiries Accordion
   ========================================================================== */
.section-title {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.content-section {
  margin-bottom: 3rem;
}

.inquiry-list {
  list-style: none;
}

.inquiry-item {
  border-bottom: 1px dashed #ccc;
  padding: 1rem 0;
}

.inquiry-item:first-child {
  border-top: 1px dashed #ccc;
}

details summary {
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s ease;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "▶";
  font-size: 0.7rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

.inquiry-details {
  padding: 1rem 0 0.5rem 1.25rem;
  font-size: 0.95rem;
  color: #222222;
}

.output-list {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.output-list li {
  margin-bottom: 0.35rem;
}

/* Hover Thumbnail Preview Styles */
.hover-thumb {
  position: relative;
  display: inline-block;
}

.thumb-preview {
  display: none;
  position: absolute;
  top: -20px;
  left: 105%;
  max-width: 250px;
  max-height: 320px;
  width: auto;
  height: auto;
  border: 1px solid #111111;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  padding: 4px;
  z-index: 1000;
  pointer-events: none;
}

.hover-thumb:hover .thumb-preview {
  display: block;
}

a.meta-badge-link {
  text-decoration: none;
  display: inline-block;
}

/* Badges & Action Buttons */
.badge {
  font-family: monospace;
  font-size: 0.7rem;
  background-color: #111111;
  color: #ffffff;
  padding: 0.15rem 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ==========================================================================
   Fieldnotes Stream & Ethics Box
   ========================================================================== */
.ethics-box {
  border: 1px solid #111111;
  padding: 1.25rem;
  background-color: rgba(0, 0, 0, 0.02);
  margin-bottom: 2.5rem;
}

.ethics-title {
  font-family: monospace;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.ethics-box p {
  font-size: 0.85rem;
  color: #333333;
  line-height: 1.5;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid #111111;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #555555;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: monospace;
  margin-top: 3rem;
}

.site-footer p {
  margin: 0;
}

.site-footer .copyright {
  text-align: right;
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 680px) {
  .container {
    padding: 0.5rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .site-footer .copyright {
    text-align: left;
  }

  .thumb-preview {
    top: auto;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 200px;
  }
}
