/* Francesco Feston - Personal Publishing Site */
/* Interpreter booth meets European literary journal */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Lora:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== RESET & BASE ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.7;
  color: #F0EDE6;
  background-color: #0C0C0A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: #F0EDE6;
}

.display-font {
  font-family: 'Playfair Display', serif;
}

.mono-font {
  font-family: 'JetBrains Mono', monospace;
}

/* ===== COLORS ===== */

:root {
  --bg-primary: #0C0C0A;
  --bg-surface: #141412;
  --border: #222220;
  --text-primary: #F0EDE6;
  --text-secondary: #888882;
  --accent: #C8A84B;
  --accent-hover: #B8983B;
}

/* ===== LAYOUT ===== */

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

.content-narrow {
  max-width: 740px;
}

.content-medium {
  max-width: 680px;
}

main {
  min-height: calc(100vh - 200px);
}

/* ===== NAVIGATION ===== */

nav {
  position: sticky;
  top: 0;
  background-color: #0C0C0A;
  z-index: 1000;
  transition: all 200ms ease;
  padding: 24px 0;
}

nav.scrolled {
  padding: 16px 0;
  border-bottom: 1px solid #222220;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: #F0EDE6;
  text-decoration: none;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #888882;
  text-decoration: none;
  position: relative;
  transition: color 200ms ease;
}

.nav-links a:hover {
  color: #C8A84B;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #C8A84B;
  transition: width 300ms ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: #F0EDE6;
  transition: all 200ms ease;
}

.nav-links.mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav-links.desktop {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links.mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #141412;
    border-bottom: 1px solid #222220;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
  }
  
  .nav-links.mobile.active {
    display: flex;
  }
  
  .nav-links.mobile a {
    padding: 12px 0;
    border-bottom: 1px solid #222220;
  }
  
  .nav-links.mobile a:last-child {
    border-bottom: none;
  }
}

/* ===== SECTIONS ===== */

section {
  padding: 80px 0;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #C8A84B;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: block;
}

/* ===== HERO SECTION ===== */

.hero {
  position: relative;
  padding: 120px 0 100px;
  opacity: 0;
  animation: fadeUp 600ms ease-out forwards;
  animation-delay: 100ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  position: relative;
  padding-left: 40px;
}

.hero-rule {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 80px;
  background-color: #C8A84B;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  color: #F0EDE6;
  margin-bottom: 24px;
}

.hero-subline {
  font-size: 18px;
  color: #888882;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-links a {
  font-size: 15px;
  color: #C8A84B;
  text-decoration: none;
  transition: color 200ms ease;
}

.hero-links a:hover {
  color: #B8983B;
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-subline {
    font-size: 16px;
  }
}

/* ===== ARTICLE CARDS ===== */

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.article-card {
  background-color: #141412;
  border: 1px solid #222220;
  border-radius: 4px;
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: border-color 200ms ease;
  opacity: 0;
  animation: fadeUp 600ms ease-out forwards;
}

.article-card:nth-child(1) {
  animation-delay: 200ms;
}

.article-card:nth-child(2) {
  animation-delay: 350ms;
}

.article-card:nth-child(3) {
  animation-delay: 500ms;
}

.article-card:nth-child(4) {
  animation-delay: 650ms;
}

.article-card:nth-child(5) {
  animation-delay: 800ms;
}

.article-card:nth-child(6) {
  animation-delay: 950ms;
}

.article-card:hover {
  border-color: #C8A84B;
}

.article-card.featured {
  grid-column: 1 / -1;
}

.article-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #C8A84B;
  margin-bottom: 12px;
  display: block;
}

.article-card h3 {
  font-size: 22px;
  color: #F0EDE6;
  margin-bottom: 12px;
}

.article-card.featured h3 {
  font-size: 24px;
}

.article-excerpt {
  font-size: 15px;
  color: #888882;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-link {
  font-size: 14px;
  color: #C8A84B;
  text-decoration: none;
}

.more-link {
  text-align: center;
  margin-top: 32px;
}

.more-link a {
  font-size: 14px;
  color: #888882;
  text-decoration: none;
  transition: color 200ms ease;
}

.more-link a:hover {
  color: #C8A84B;
}

@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .article-card.featured {
    grid-column: 1;
  }
}

/* ===== ABOUT STRIP ===== */

.about-strip {
  background-color: #141412;
  border-top: 1px solid #222220;
  border-bottom: 1px solid #222220;
  padding: 48px 0;
}

.about-strip-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
}

.about-strip-left {
  font-size: 17px;
  color: #F0EDE6;
  line-height: 1.8;
  max-width: 420px;
}

.about-strip-right {
  font-size: 15px;
  color: #888882;
  line-height: 1.8;
  max-width: 380px;
}

.about-strip-right a {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: #C8A84B;
  text-decoration: none;
  transition: color 200ms ease;
}

.about-strip-right a:hover {
  color: #B8983B;
}

@media (max-width: 768px) {
  .about-strip-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===== CTA SECTION ===== */

.cta-section {
  background-color: #0C0C0A;
  padding: 80px 0;
  text-align: center;
}

.cta-content {
  max-width: 560px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 16px;
  color: #888882;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-button {
  display: inline-block;
  background-color: #C8A84B;
  color: #0C0C0A;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 200ms ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #B8983B;
}

.cta-note {
  font-size: 12px;
  color: #888882;
  margin-top: 12px;
}

/* ===== PAGE HEADER ===== */

.page-header {
  padding: 80px 0 60px;
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.page-header-subline {
  font-size: 16px;
  color: #888882;
  line-height: 1.7;
  max-width: 600px;
}

@media (max-width: 768px) {
  .page-header {
    padding: 60px 0 40px;
  }
  
  .page-header h1 {
    font-size: 32px;
  }
}

/* ===== ARTICLE PAGE ===== */

.article-back {
  display: inline-block;
  font-size: 14px;
  color: #888882;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 200ms ease;
}

.article-back:hover {
  color: #C8A84B;
}

.article-header {
  margin-bottom: 48px;
}

.article-header h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.article-body {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.85;
  color: #F0EDE6;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 24px;
}

.article-body h3 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 32px;
}

.article-body li {
  margin-bottom: 12px;
}

.article-footer {
  background-color: #141412;
  border-top: 1px solid #222220;
  border-bottom: 1px solid #222220;
  padding: 32px;
  margin-top: 64px;
  text-align: center;
}

.article-footer p {
  font-size: 15px;
  color: #888882;
  margin-bottom: 12px;
}

.article-footer a {
  font-size: 15px;
  color: #C8A84B;
  text-decoration: none;
  transition: color 200ms ease;
}

.article-footer a:hover {
  color: #B8983B;
}

@media (max-width: 768px) {
  .article-header h1 {
    font-size: 32px;
  }
  
  .article-body {
    font-size: 16px;
  }
}

/* ===== TOPIC CARDS ===== */

.topic-card {
  background-color: #141412;
  border: 1px solid #222220;
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 24px;
}

.topic-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.topic-card p {
  font-size: 15px;
  color: #888882;
  line-height: 1.7;
  margin-bottom: 16px;
}

.topic-duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #888882;
}

/* ===== CONTACT STRIP ===== */

.contact-strip {
  background-color: #141412;
  border-top: 1px solid #222220;
  border-bottom: 1px solid #222220;
  padding: 40px 0;
  text-align: center;
}

.contact-strip p {
  font-size: 17px;
  color: #F0EDE6;
  margin-bottom: 12px;
}

.contact-strip a {
  font-size: 16px;
  color: #C8A84B;
  text-decoration: none;
  transition: color 200ms ease;
}

.contact-strip a:hover {
  color: #B8983B;
}

/* ===== FORM ===== */

.contact-form {
  max-width: 600px;
  margin: 48px 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: #141412;
  border: 1px solid #222220;
  border-radius: 4px;
  padding: 14px 16px;
  font-family: 'Lora', serif;
  font-size: 16px;
  color: #F0EDE6;
  transition: border-color 200ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #C8A84B;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888882;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: 13px;
  color: #888882;
  margin-top: 24px;
  text-align: center;
}

.form-note a {
  color: #C8A84B;
  text-decoration: none;
}

/* ===== DIVIDER ===== */

.divider {
  height: 1px;
  background-color: #222220;
  margin: 48px 0;
}

.link-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.link-row a {
  font-size: 15px;
  color: #C8A84B;
  text-decoration: none;
  transition: color 200ms ease;
}

.link-row a:hover {
  color: #B8983B;
}

/* ===== FOOTER ===== */

footer {
  border-top: 1px solid #1A1A18;
  padding: 24px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 13px;
  color: #888882;
}

.footer-right {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #888882;
}

.footer-right a {
  color: #888882;
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-right a:hover {
  color: #C8A84B;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
