/*
Theme Name: Naga Photo Archive Theme
Theme URI: https://example.com
Author: Grahesh Parker
Author URI: https://example.com
Description: Minimal starter WordPress theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: naga-photo-archive-theme
*/

:root {
  --content-width: 720px;
  --text-color: #111;
  --bg-color: #fff;
  --muted-color: #666;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

.site-header,
.site-footer,
.site-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title {
  margin-top: 0;
}

.entry-meta {
  color: var(--muted-color);
  font-size: 0.9rem;
}

a {
  color: #0a58ca;
}

.home,
.front-page {
  font-family: 'Work Sans', sans-serif;
}

.sepia-filter {
  filter: sepia(0.2) contrast(1.05);
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.heritage-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 0;
}

.heritage-timeline__line {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: #ddd4cc;
}

.heritage-timeline__row {
  position: relative;
  display: flex;
  align-items: center;
  margin: 34px 0;
  min-height: 116px;
}

.heritage-timeline__row--right {
  justify-content: flex-end;
}

.heritage-timeline__row--left {
  justify-content: flex-start;
}

.heritage-timeline__card {
  width: 330px;
  background: #fff;
  border: 1px solid #dfd5cc;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  padding: 18px 20px 16px;
}

.heritage-timeline__row--right .heritage-timeline__card {
  margin-left: calc(50% + 28px);
}

.heritage-timeline__row--left .heritage-timeline__card {
  margin-right: calc(50% + 28px);
}

.heritage-timeline__year {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #dfd5cc;
  background: #f6f2ee;
  color: #ec7813;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.heritage-timeline__label {
  display: block;
  margin-bottom: 6px;
  color: #ec7813;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.heritage-timeline__title {
  margin: 0 0 8px;
  color: #1a1715;
  font-size: 33px;
  line-height: 1.2;
  font-weight: 800;
}

.heritage-timeline__text {
  margin: 0;
  color: #908780;
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .heritage-timeline__line {
    left: 20px;
    transform: none;
  }

  .heritage-timeline__row,
  .heritage-timeline__row--left,
  .heritage-timeline__row--right {
    justify-content: flex-start;
    margin: 18px 0;
    min-height: 0;
  }

  .heritage-timeline__year {
    left: 20px;
    top: 30px;
    transform: translate(-50%, -50%);
  }

  .heritage-timeline__card,
  .heritage-timeline__row--left .heritage-timeline__card,
  .heritage-timeline__row--right .heritage-timeline__card {
    width: calc(100% - 52px);
    margin: 0 0 0 52px;
  }

  .heritage-timeline__title {
    font-size: 28px;
  }
}

.preserve-section {
  background: #f2f2f2;
}

.preserve-card {
  background: linear-gradient(90deg, #ece1d4 0%, #e7e2dc 100%);
}

.preserve-copy {
  color: #7f7670;
  line-height: 1.55;
}

.preserve-input {
  border: 1px solid #e2d8cf;
  background: #fff;
  color: #54504b;
}

.preserve-input::placeholder {
  color: #9a938d;
}

.preserve-input:focus {
  border-color: #ec7813;
  outline: none;
  box-shadow: 0 0 0 2px rgba(236, 120, 19, 0.15);
}

.preserve-button {
  background: #ec7813;
  color: #fff;
}

.preserve-button:hover {
  filter: brightness(1.06);
}

.page-content h2,
.page-content h3,
.page-content h4 {
  margin: 1.4em 0 0.5em;
  font-weight: 700;
  color: #1b140d;
}

.page-content p {
  margin: 0 0 1em;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1em 1.25em;
}

.protected-archive-image-wrap {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.protected-archive-image {
  pointer-events: auto;
  -webkit-user-drag: none;
  user-drag: none;
}

.protected-archive-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(17, 17, 17, 0.06), rgba(17, 17, 17, 0.06)),
    radial-gradient(circle at top right, rgba(236, 120, 19, 0.12), transparent 24%);
}

.archive-protection-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e7dacf;
  border-radius: 0.75rem;
  background: #fff7f0;
  color: #7a5640;
  font-size: 0.92rem;
  line-height: 1.5;
}

.page-content blockquote {
  margin: 1.2em 0;
  padding: 0.75em 1em;
  border-left: 3px solid #ec7813;
  background: #f8f2ec;
}
