/* ============================================
   BLACKTHORN MANOR PRESERVATION TRUST
   Stylesheet - Last Modified: March 2003
   Best viewed in Netscape Navigator 4.0+
   ============================================ */

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

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 14px;
    line-height: 1.6;
    background-color: #f5f5dc;
    color: #333333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid #999999;
    padding: 20px 30px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.site-header {
    text-align: center;
    border-bottom: 2px solid #336699;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.site-title {
    font-family: "Times New Roman", Times, serif;
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.site-subtitle {
    font-size: 12px;
    color: #666666;
    font-style: italic;
}

.nav-bar {
    background-color: #336699;
    padding: 8px 10px;
    margin-bottom: 20px;
    text-align: center;
}

.nav-bar a {
    color: #ffffff;
    text-decoration: none;
    padding: 5px 12px;
    font-size: 12px;
    border-right: 1px solid #5588bb;
}

.nav-bar a:last-child {
    border-right: none;
}

.nav-bar a:hover {
    background-color: #4477aa;
    text-decoration: underline;
}

a { color: #336699; text-decoration: underline; }
a:visited { color: #663399; }
a:hover { color: #0000ff; }

h1 {
    font-family: "Times New Roman", Times, serif;
    font-size: 22px;
    color: #333333;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

h2 {
    font-family: "Times New Roman", Times, serif;
    font-size: 18px;
    color: #336699;
    margin-top: 25px;
    margin-bottom: 10px;
}

h3 {
    font-family: Georgia, serif;
    font-size: 16px;
    color: #444444;
    margin-top: 20px;
    margin-bottom: 8px;
}

p {
    margin-bottom: 12px;
    text-align: justify;
}

ul, ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

li { margin-bottom: 5px; }

hr {
    border: none;
    border-top: 1px solid #999999;
    margin: 20px 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
    font-size: 13px;
}

th, td {
    border: 1px solid #999999;
    padding: 8px 10px;
    text-align: left;
}

th {
    background-color: #336699;
    color: #ffffff;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f0f0e0;
}

.visitor-counter {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background-color: #000000;
    display: inline-block;
}

.counter-label {
    color: #00ff00;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    display: block;
    margin-bottom: 5px;
}

.counter-number {
    color: #ff0000;
    font-family: "Courier New", Courier, monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    background-color: #111111;
    padding: 5px 10px;
    border: 1px inset #333333;
}

.site-footer {
    border-top: 2px solid #336699;
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: 11px;
    color: #666666;
}

.site-footer p {
    text-align: center;
    margin-bottom: 5px;
}

.last-updated {
    font-style: italic;
    color: #999999;
}

.browser-notice {
    font-size: 10px;
    color: #999999;
    margin-top: 10px;
}

.guestbook-entry {
    border: 1px solid #cccccc;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #fafaf5;
}

.guestbook-entry.removed {
    background-color: #ffeeee;
    border-color: #cc9999;
}

.guestbook-entry.disturbing {
    background-color: #f5f5ee;
    border-left: 3px solid #996633;
}

.guestbook-meta {
    font-size: 11px;
    color: #666666;
    margin-bottom: 8px;
    border-bottom: 1px dotted #cccccc;
    padding-bottom: 5px;
}

.guestbook-name { font-weight: bold; color: #336699; }
.guestbook-date { float: right; font-style: italic; }

.guestbook-content { font-size: 13px; }

.document-list {
    list-style-type: none;
    margin-left: 0;
}

.document-list li {
    padding: 8px 10px;
    border-bottom: 1px dotted #cccccc;
}

.document-list li:hover {
    background-color: #f5f5e8;
}

.doc-icon { margin-right: 8px; color: #996633; }

.restricted {
    color: #cc0000;
    font-weight: bold;
    font-size: 11px;
}

.restricted-section {
    background-color: #fff5f5;
    border: 1px solid #cc9999;
    padding: 15px;
    margin: 15px 0;
}

.restricted-section h3 { color: #cc0000; }

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.gallery-item {
    width: calc(33% - 10px);
    border: 1px solid #999999;
    padding: 5px;
    background-color: #ffffff;
    text-align: center;
    cursor: default;
    user-select: none;
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: #cccccc;
    cursor: default;
    user-select: none;
}

.gallery-item.removed {
    background-color: #ffeeee;
}

.gallery-item.removed img { display: none; }

.gallery-caption {
    font-size: 11px;
    color: #666666;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dotted #cccccc;
}

.timeline {
    border-left: 2px solid #336699;
    margin-left: 20px;
    padding-left: 20px;
}

.timeline-entry {
    position: relative;
    margin-bottom: 20px;
}

.timeline-entry::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: #336699;
    border-radius: 50%;
}

.timeline-entry.anomaly::before {
    background-color: #cc0000;
}

.timeline-year {
    font-weight: bold;
    color: #336699;
    font-size: 16px;
}

.timeline-entry.anomaly .timeline-year { color: #cc0000; }

.family-member {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #cccccc;
    background-color: #fafaf5;
}

.family-member.deceased { opacity: 0.8; }

.family-member.missing {
    background-color: #fff5f5;
    border-color: #cc9999;
}

.family-dates {
    font-size: 11px;
    color: #666666;
    font-style: italic;
}

.redacted {
    background-color: #000000;
    color: #000000;
    padding: 0 3px;
    cursor: not-allowed;
    user-select: none;
}

.redacted:hover { background-color: #111111; }

/* Revealed redactions for clearance holders */
.redacted.revealed,
.redacted.clearance-revealed {
    background-color: rgba(26, 64, 128, 0.15);
    color: #2653a3;
    font-style: italic;
    cursor: text;
    user-select: text;
}

.redacted.revealed:hover,
.redacted.clearance-revealed:hover {
    background-color: rgba(26, 64, 128, 0.25);
}

.redacted-block {
    background-color: #000000;
    color: #000000;
    padding: 10px;
    margin: 10px 0;
    min-height: 50px;
    user-select: none;
}

/* Revealed redaction blocks for clearance holders */
.redacted-block.revealed,
.redacted-block.clearance-revealed {
    background-color: rgba(26, 64, 128, 0.1);
    color: #2653a3;
    padding: 15px;
    min-height: auto;
    border-left: 3px solid #2653a3;
}

.redacted-block.revealed::before,
.redacted-block.clearance-revealed::before {
    content: '[DECLASSIFIED - CLEARANCE HOLDER ACCESS]';
    display: block;
    font-size: 10px;
    color: #006666;
    margin-bottom: 10px;
    font-style: italic;
}

.handwritten {
    font-family: "Brush Script MT", "Segoe Script", cursive;
    color: #2653a3;
    font-size: 16px;
    line-height: 1.8;
    transform: rotate(-1deg);
    padding: 10px;
    margin: 15px 0;
}

.handwritten.margin-note {
    position: relative;
    margin-left: 60%;
    max-width: 35%;
    font-size: 14px;
}

.newspaper-clipping {
    border: 1px solid #999999;
    padding: 15px;
    margin: 15px 0;
    background-color: #f5f5e0;
    font-family: Georgia, serif;
}

.newspaper-headline {
    font-family: "Times New Roman", serif;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 2px solid #333333;
    padding-bottom: 5px;
}

.newspaper-meta {
    font-size: 11px;
    color: #666666;
    font-style: italic;
    margin-bottom: 10px;
}

.newspaper-body {
    column-count: 2;
    column-gap: 20px;
    font-size: 13px;
    text-align: justify;
}

.field-notes {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    background-color: #fffff5;
    border: 1px solid #cccc99;
    padding: 15px;
    margin: 15px 0;
    line-height: 1.8;
}

.field-notes .entry-date {
    font-weight: bold;
    color: #336699;
    border-bottom: 1px solid #cccc99;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.govt-document {
    background-color: #f5f5f5;
    border: 2px solid #333333;
    padding: 20px;
    margin: 20px 0;
}

.govt-header {
    text-align: center;
    border-bottom: 1px solid #333333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.govt-stamp {
    color: #cc0000;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 2px solid #cc0000;
    padding: 5px 15px;
    display: inline-block;
    transform: rotate(-3deg);
}

.classification-level {
    font-size: 11px;
    color: #cc0000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.access-denied {
    text-align: center;
    padding: 50px 20px;
}

.access-denied h1 {
    color: #cc0000;
    font-size: 28px;
    border: none;
}

.access-denied .tracking-info {
    font-family: "Courier New", monospace;
    font-size: 12px;
    color: #666666;
    margin-top: 30px;
    padding: 15px;
    background-color: #f5f5f5;
    border: 1px solid #cccccc;
}

.warning-box {
    background-color: #fff5e5;
    border: 1px solid #cc9933;
    border-left: 4px solid #cc9933;
    padding: 15px;
    margin: 15px 0;
}

.warning-box.severe {
    background-color: #ffeeee;
    border-color: #cc0000;
}

.loading-bar-container {
    width: 300px;
    margin: 30px auto;
    text-align: center;
}

.loading-bar {
    height: 20px;
    background-color: #cccccc;
    border: 1px solid #999999;
    position: relative;
}

.loading-bar-fill {
    height: 100%;
    background-color: #336699;
    width: 73%;
}

.loading-text {
    font-family: "Courier New", monospace;
    font-size: 11px;
    color: #666666;
    margin-top: 5px;
}

.reveal-page {
    text-align: center;
    padding: 40px 20px;
}

.reveal-page h1 {
    font-size: 28px;
    border: none;
    color: #333333;
}

.reveal-quote {
    font-style: italic;
    font-size: 18px;
    color: #666666;
    margin: 30px 0;
    padding: 20px;
    border-left: 3px solid #336699;
    text-align: left;
}

.signup-form {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f5f5f0;
    border: 1px solid #cccccc;
}

.signup-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #999999;
    font-family: Georgia, serif;
    font-size: 14px;
}

.signup-form button {
    width: 100%;
    padding: 12px;
    background-color: #336699;
    color: #ffffff;
    border: none;
    font-family: Georgia, serif;
    font-size: 14px;
    cursor: pointer;
}

.signup-form button:hover { background-color: #4477aa; }

.hidden { display: none !important; }

.dynamic-content { transition: opacity 0.3s ease; }

.fade-in { animation: fadeIn 1s ease-in; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.return-banner {
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    margin-bottom: 20px;
}

.return-banner a { color: #99ccff; }

@media screen and (max-width: 600px) {
    body { padding: 10px; }
    .container { padding: 15px; }
    .nav-bar a {
        display: block;
        padding: 8px;
        border-right: none;
        border-bottom: 1px solid #5588bb;
    }
    .gallery-item { width: calc(50% - 8px); }
    .newspaper-body { column-count: 1; }
    .handwritten.margin-note { margin-left: 0; max-width: 100%; }
    table { font-size: 11px; }
    th, td { padding: 5px; }
}

/* === ANNOTATOR VOICES === */

/* Margaret Blackthorn (MB) - 1976-1999 */
/* Last family guardian, elegant educated script */
.voice-mb {
  font-family: 'Dancing Script', cursive;
  color: #2653a3; /* Elegant blue ink */
  font-size: 0.95em;
  line-height: 1.5;
  font-style: italic;
}
.voice-mb::before {
  content: '[Elegant blue script] ';
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 0.85em;
  color: #666;
}

/* James Reed (JR) - 1984-1992 */
/* Investigative journalist, disappeared 1992 */
.voice-jr {
  font-family: 'Kalam', cursive;
  color: #1a1a1a; /* Black ballpoint */
  font-size: 0.9em;
  line-height: 1.4;
}
.voice-jr::before {
  content: '[Messy black ballpoint] ';
  font-family: Georgia, serif;
  font-size: 0.85em;
  color: #666;
}

/* Eliza Winston (EW) - 1995-2006 */
/* Structural engineer, precise technical analysis */
.voice-ew {
  font-family: 'Architects Daughter', cursive;
  color: #c41e3a; /* Red pen */
  font-size: 0.9em;
  line-height: 1.4;
}
.voice-ew::before {
  content: '[Precise red pen] ';
  font-family: Georgia, serif;
  font-size: 0.85em;
  color: #666;
}

/* Simon Wells (SW) - May-June 2024 */
/* Current researcher, found Walter's journal */
.voice-sw {
  font-family: 'Caveat', cursive;
  color: #4a4a4a; /* Hurried pencil */
  font-size: 0.95em;
  line-height: 1.5;
}
.voice-sw::before {
  content: '[Hurried pencil] ';
  font-family: Georgia, serif;
  font-size: 0.85em;
  color: #666;
}

/* Detective Sharma - July 2024 */
/* Police investigation, official notes */
.voice-detective {
  font-family: 'Patrick Hand', cursive;
  color: #228b22; /* Green ink */
  font-size: 0.9em;
  line-height: 1.4;
}
.voice-detective::before {
  content: '[Detective\'s green ink] ';
  font-family: Georgia, serif;
  font-size: 0.85em;
  color: #666;
}

/* Dr. E. Chambers - Department 8 */
/* Government official, classified documents */
.voice-dept8 {
  font-family: 'Courier Prime', monospace;
  color: #1a1a1a;
  font-size: 0.85em;
  line-height: 1.3;
  background: rgba(0,0,0,0.03);
  padding: 8px;
  border-left: 2px solid #333;
}
.voice-dept8::before {
  content: '[Black fountain pen] ';
  font-family: Georgia, serif;
  font-size: 0.85em;
  color: #666;
}

/* Department 8 Classified Addendum - 2026 */
.voice-classified {
  font-family: 'Courier Prime', monospace;
  color: #008080; /* Teal digital ink */
  font-size: 0.85em;
  background: rgba(0,128,128,0.05);
  padding: 10px;
  border: 1px solid #008080;
}
.voice-classified::before {
  content: '[Teal digital ink] ';
  font-family: Georgia, serif;
  font-size: 0.85em;
  color: #666;
}

/* THE WATCHERS - Supernatural entity voice */
.voice-watchers {
  font-family: 'Cinzel', serif;
  color: #8b0000;
  font-size: 1.1em;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(139,0,0,0.3);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Additional annotation styles */
.annotation {
  margin: 15px 0;
  padding: 10px;
  border-left: 3px solid #336699;
  background-color: #f5f5f0;
}

.annotation-page {
  margin: 20px 0;
  padding: 15px;
  background-color: #fafaf9;
  border: 1px solid #ddd;
}

.finch-quote {
  border-left: 3px solid #336699;
  padding-left: 15px;
  margin: 15px 0;
  font-style: italic;
}

.parchment {
  background-color: #f9f6f0;
  border: 2px solid #d4a574;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.agreement-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.agreement-text {
  font-size: 14px;
  line-height: 1.8;
}

.clause {
  margin: 15px 0;
  padding: 10px;
  background-color: rgba(255,255,255,0.5);
}

.clause-number {
  font-weight: bold;
  color: #8b0000;
  margin-right: 10px;
}

.burned-section {
  background-color: #333;
  color: #333;
  padding: 2px 5px;
  font-family: monospace;
}

.blood-mark {
  color: #8b0000;
  font-weight: bold;
}

.field-note {
  margin: 20px 0;
  padding: 15px;
  background-color: #fffff5;
  border: 1px solid #cccc99;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.field-note.warning {
  border-color: #cc0000;
  background-color: #fff5f5;
}

.incident-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.incident-table th {
  background-color: #336699;
  color: #fff;
  padding: 10px;
  text-align: left;
}

.incident-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.incident-table tr.highlighted {
  background-color: #fff5f5;
}

.letterhead {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

/* Additional styles for Phase 1 enhancements */
.dedication-box {
  background-color: #f5f5f0;
  border: 1px solid #ddd;
  padding: 20px;
  margin: 20px 0;
  font-style: italic;
}

.subtle-hint {
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: help;
}

.document-meta {
  font-style: italic;
  color: #666;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.annotation-context {
  background-color: #f8f8f0;
  border: 1px dashed #999;
  padding: 15px;
  margin: 20px 0;
  font-size: 0.95em;
}

.warning-seal {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  border: 2px solid #8b0000;
  background-color: rgba(139, 0, 0, 0.05);
}

.total-count {
  font-weight: bold;
  margin-top: 20px;
  padding: 10px;
  background-color: #f5f5f0;
  border-left: 3px solid #336699;
}

.restricted-note {
  font-style: italic;
  color: #990000;
  margin-bottom: 10px;
}

.context-note {
  background-color: #f8f8f0;
  border: 1px dashed #999;
  padding: 20px;
  margin: 20px 0;
  font-size: 0.95em;
}

.unknown-script {
  font-style: italic;
  color: #5c4a32;
  letter-spacing: 3px;
}

.damaged-text {
  opacity: 0.5;
  text-decoration: line-through;
}

.signature-area {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #8b7355;
}

.signature {
  font-family: 'Brush Script MT', cursive;
  font-size: 1.5em;
  margin: 15px 0;
}

.sig-note {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
}

.redaction-block {
  background-color: #000;
  color: #000;
  padding: 15px;
  margin: 15px 0;
  min-height: 30px;
  user-select: none;
  font-family: monospace;
  letter-spacing: 2px;
}

.book-reveal {
  text-align: center;
  padding: 30px;
  background-color: #f5f5f0;
  border: 2px solid #336699;
  margin: 30px 0;
}

.book-reveal h2 {
  font-size: 1.8em;
  color: #333;
  border: none;
  margin-bottom: 10px;
}

.book-reveal .subtitle {
  font-size: 1.2em;
  color: #666;
  font-style: italic;
  margin-bottom: 10px;
}

.book-reveal .author {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 10px;
}

.book-reveal .tagline {
  font-size: 1em;
  color: #666;
  font-style: italic;
}

.reveal-content {
  margin: 20px 0;
}

.signup-section {
  background-color: #f5f5f0;
  border: 2px solid #336699;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
}

.signup-form {
  max-width: 400px;
  margin: 20px auto;
}

.signup-form input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #999;
  font-size: 14px;
}

.signup-form button {
  width: 100%;
  padding: 12px;
  background-color: #336699;
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.signup-form button:hover {
  background-color: #4477aa;
}

.privacy-note {
  font-size: 0.85em;
  color: #666;
  font-style: italic;
  margin-top: 15px;
}

.guestbook-footer {
  margin-top: 40px;
  text-align: center;
}

/* Image optimization helpers */
img {
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Lazy loading support */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Prevent layout shift from images */
img:not([width]):not([height]) {
  aspect-ratio: attr(width) / attr(height);
}

@media print {
    .nav-bar, .visitor-counter, .signup-form { display: none; }
    .container { box-shadow: none; border: none; }
    a { color: #000000; text-decoration: none; }
}
