/* prototypic.dev - Retro-futuristic + Zen Contemplative */
/* Colors: #fdf8f0 #c8a227 #7a6a8a #c8a87a #1a1a14 #8a8a8a #4a5a7a #f5edd6 */
/* Fonts: Spectral, Source Sans 3, DM Serif Display */

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

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

body {
  background-color: #fdf8f0;
  color: #1a1a14;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Page Wrapper - Single Column */
.page-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* Botanical Top Decoration */
.botanical-top {
  text-align: center;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInSlow 1.5s ease 0.3s forwards;
}

.leaf-branch {
  width: 200px;
  height: 60px;
}

@keyframes fadeInSlow {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.site-header {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeInSlow 1.2s ease 0.5s forwards;
}

.header-ornament {
  font-size: 1.4rem;
  color: #c8a227;
  margin-bottom: 16px;
  letter-spacing: 0.2em;
}

.site-title {
  font-family: 'DM Serif Display', serif;
  font-size: 3.2rem;
  font-weight: 400;
  color: #1a1a14;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.title-dot {
  color: #c8a227;
}

.site-subtitle {
  font-family: 'Spectral', serif;
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: #7a6a8a;
  margin-bottom: 32px;
}

/* Header/Footer Rule */
.header-rule,
.footer-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.rule-line {
  display: block;
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, #c8a87a, transparent);
}

.rule-ornament {
  color: #c8a227;
  font-size: 0.9rem;
}

/* Section Dividers */
.section-divider {
  text-align: center;
  color: #c8a87a;
  font-size: 1rem;
  letter-spacing: 0.5em;
  margin: 0;
  padding: 20px 0;
  opacity: 0.6;
}

/* Content Sections */
.content-section {
  position: relative;
  margin-bottom: 80px;
  padding: 40px 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated Borders with Chrome Shimmer */
.section-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.border-line {
  position: absolute;
  background: linear-gradient(90deg, #c8a87a, #c8a227, #c8a87a);
}

.border-top {
  top: 0;
  left: 0;
  height: 1px;
  width: 0;
  transition: width 0.8s ease;
}

.border-bottom {
  bottom: 0;
  right: 0;
  height: 1px;
  width: 0;
  transition: width 0.8s ease;
}

.border-left {
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, #c8a87a, #c8a227, #c8a87a);
  transition: height 0.8s ease 0.3s;
}

.border-right {
  bottom: 0;
  right: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, #c8a87a, #c8a227, #c8a87a);
  transition: height 0.8s ease 0.3s;
}

.content-section.is-visible .border-top,
.content-section.is-visible .border-bottom {
  width: 100%;
}

.content-section.is-visible .border-left,
.content-section.is-visible .border-right {
  height: 100%;
}

/* Chrome shimmer effect on borders */
.border-shimmer .border-top,
.border-shimmer .border-bottom {
  background: linear-gradient(90deg, #c8a87a 0%, #c8a227 30%, #f5edd6 50%, #c8a227 70%, #c8a87a 100%);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

.border-shimmer .border-left,
.border-shimmer .border-right {
  background: linear-gradient(180deg, #c8a87a 0%, #c8a227 30%, #f5edd6 50%, #c8a227 70%, #c8a87a 100%);
  background-size: 100% 200%;
  animation: shimmerV 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shimmerV {
  0%, 100% { background-position: 50% 0%; }
  50% { background-position: 50% 100%; }
}

/* Section Inner Content */
.section-inner {
  position: relative;
  z-index: 1;
}

/* Chapter Headings */
.chapter-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.chapter-number {
  font-family: 'DM Serif Display', serif;
  font-size: 0.85rem;
  color: #c8a227;
  letter-spacing: 0.1em;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #1a1a14;
  letter-spacing: -0.01em;
}

/* Body Text */
.body-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #1a1a14;
  margin-bottom: 16px;
}

/* Marginal Notes */
.marginal-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 20px;
  background-color: #f5edd6;
  border-left: 2px solid #c8a227;
}

.note-marker {
  color: #c8a227;
  font-size: 1.2rem;
  line-height: 1.4;
}

.note-text {
  font-family: 'Spectral', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #4a5a7a;
  line-height: 1.6;
}

/* Botanical Exit */
.botanical-exit {
  text-align: center;
  margin-top: 28px;
}

.botanical-exit svg {
  width: 120px;
  height: 30px;
}

/* Approach Pillars */
.approach-pillars {
  margin: 28px 0;
}

.pillar {
  padding: 20px 0;
  border-bottom: 1px solid #f5edd6;
}

.pillar:last-child {
  border-bottom: none;
}

.pillar-icon {
  color: #c8a227;
  font-size: 0.8rem;
  margin-right: 8px;
}

.pillar-title {
  font-family: 'Spectral', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #4a5a7a;
  margin-bottom: 6px;
  display: inline;
}

.pillar-desc {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: #8a8a8a;
  line-height: 1.6;
  margin-top: 6px;
}

/* Craft Showcase */
.craft-showcase {
  margin: 28px 0;
}

.craft-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.craft-label {
  font-family: 'Spectral', serif;
  font-size: 0.9rem;
  color: #4a5a7a;
  min-width: 110px;
  text-align: right;
}

.craft-bar {
  flex: 1;
  height: 6px;
  background-color: #f5edd6;
  border-radius: 3px;
  overflow: hidden;
}

.craft-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c8a87a, #c8a227);
  border-radius: 3px;
  transition: width 1.2s ease;
}

/* Signal Entries */
.signal-entries {
  margin: 24px 0;
}

.signal-entry {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #f5edd6;
  transition: background-color 0.3s ease;
}

.signal-entry:hover {
  background-color: #f5edd6;
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
}

.signal-entry:last-child {
  border-bottom: none;
}

.signal-date {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  color: #8a8a8a;
  letter-spacing: 0.05em;
  min-width: 60px;
  font-variant-numeric: tabular-nums;
}

.signal-title {
  font-family: 'Spectral', serif;
  font-size: 1rem;
  color: #4a5a7a;
  font-weight: 400;
}

/* Connect Links */
.connect-links {
  margin-top: 24px;
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  color: #4a5a7a;
  border-bottom: 1px solid #f5edd6;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.connect-link:hover {
  color: #c8a227;
  padding-left: 8px;
}

.connect-link:last-child {
  border-bottom: none;
}

.link-ornament {
  color: #c8a227;
  font-size: 0.7rem;
}

.link-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
}

/* Footer */
.site-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 40px;
}

.footer-ornament {
  margin-bottom: 24px;
}

.leaf-branch-footer {
  width: 160px;
  height: 40px;
}

.footer-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: #8a8a8a;
  margin-top: 20px;
}

.footer-dingbat {
  color: #c8a87a;
  font-size: 1.2rem;
  margin-top: 16px;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 720px) {
  .page-wrapper {
    padding: 40px 16px 60px;
  }

  .site-title {
    font-size: 2.4rem;
  }

  .content-section {
    padding: 28px 20px;
    margin-bottom: 60px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .craft-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .craft-label {
    text-align: left;
    min-width: auto;
  }

  .craft-bar {
    width: 100%;
  }

  .signal-entry {
    flex-direction: column;
    gap: 4px;
  }
}
