/* Template 27 - Vintage Typewriter / Nostalgic Retro */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --paper-aged: #f4f1e8;
  --paper-cream: #faf8f2;
  --ink-black: #2c2416;
  --ink-faded: #5c5040;
  --ink-light: #8a8070;
  --typewriter-red: #c43c3c;
  --coffee-stain: rgba(139, 90, 43, 0.08);
  --ribbon-blue: #2d4a6f;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Courier Prime', 'Courier New', monospace;
  line-height: 1.9;
  color: var(--ink-black);
  background: var(--paper-aged);
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(0, 0, 0, 0.03) 28px
    );
  font-size: 17px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, var(--coffee-stain) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, var(--coffee-stain) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Header - Typewriter Style */
.site-header {
  background: var(--paper-cream);
  padding: 2rem 0 1.5rem;
  border-bottom: 3px double var(--ink-black);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.site-logo a {
  font-family: 'Special Elite', cursive;
  font-size: 2.5rem;
  color: var(--ink-black);
  text-decoration: none;
  letter-spacing: 0.15em;
  position: relative;
  transition: all 0.3s ease;
}

.site-logo a::before {
  content: '>';
  position: absolute;
  left: -2rem;
  color: var(--typewriter-red);
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.site-logo a:hover {
  color: var(--typewriter-red);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav li::after {
  content: ' / ';
  color: var(--ink-light);
  margin-left: 0.5rem;
}

.site-nav li:last-child::after {
  content: none;
}

.site-nav a {
  color: var(--ink-faded);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  padding: 0.25rem 0;
  border-bottom: 1px dashed transparent;
}

.site-nav a:hover {
  color: var(--ink-black);
  border-bottom-color: var(--typewriter-red);
}

/* Hero Section */
.section.head {
  padding: 6rem 0;
  text-align: left;
  position: relative;
}

.section.head::before {
  content: '---';
  display: block;
  font-family: 'Special Elite', cursive;
  font-size: 2rem;
  color: var(--ink-light);
  margin-bottom: 2rem;
  letter-spacing: 0.5em;
}

.section.head h1 {
  font-family: 'Special Elite', cursive;
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--ink-black);
  line-height: 1.3;
  position: relative;
  max-width: 800px;
}

.section.head h1::first-letter {
  font-size: 4.5rem;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.1em;
  color: var(--typewriter-red);
}

.section.head p {
  font-size: 1.1rem;
  color: var(--ink-faded);
  max-width: 700px;
  font-family: 'Lora', serif;
  font-style: italic;
}

/* Section Styling */
.section {
  padding: 4rem 0;
  position: relative;
}

.section::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink-light) 0px,
    var(--ink-light) 5px,
    transparent 5px,
    transparent 10px
  );
  margin-bottom: 3rem;
}

.section header {
  text-align: left;
  margin-bottom: 3rem;
}

.section header h2 {
  font-family: 'Special Elite', cursive;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--ink-black);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section header h2::before {
  content: '## ';
  color: var(--typewriter-red);
}

.section header p {
  font-size: 1rem;
  color: var(--ink-faded);
  font-family: 'Lora', serif;
  max-width: 600px;
}

body:not(.faq) h3,
:not(section.faq) h3 {
  font-family: 'Special Elite', cursive;
  font-size: 1.4rem;
  color: var(--ink-black);
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: left;
}

body:not(.faq) h3::before,
:not(section.faq) h3::before {
  content: '> ';
  color: var(--ribbon-blue);
}

/* Footer */
.footer {
  background: var(--paper-cream);
  padding: 3rem 0 2rem;
  border-top: 3px double var(--ink-black);
  margin-top: 4rem;
  position: relative;
}

.footer::before {
  content: '- THE END -';
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper-cream);
  padding: 0 2rem;
  font-family: 'Special Elite', cursive;
  font-size: 0.9rem;
  color: var(--ink-light);
  letter-spacing: 0.3em;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-about {
  flex: 1;
  max-width: 400px;
}

.footer-tagline {
  color: var(--ink-faded);
  font-family: 'Lora', serif;
  font-style: italic;
  line-height: 1.8;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-faded);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  position: relative;
}

.footer-links a::before {
  content: '[';
  margin-right: 0.25rem;
  color: var(--ink-light);
}

.footer-links a::after {
  content: ']';
  margin-left: 0.25rem;
  color: var(--ink-light);
}

.footer-links a:hover {
  color: var(--typewriter-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px dashed var(--ink-light);
}

.copyright a {
  color: var(--ink-light);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* Animations */
@keyframes typeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  opacity: 0;
  animation: typeIn 0.5s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
