/* ════════════════════════════════════════════════════════════════
   ByComposition Ghost Theme - Main Styles
   Matching the new coming soon page aesthetic
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:wght@400&family=Playfair+Display:ital,wght@0,400;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --white: #FAFAF8;
  --charcoal: #141412;
  --mid: #6B6A67;
  --light: #C8C5BF;
  --max-width: 720px;
}

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

html, body {
  background: var(--white);
  color: var(--charcoal);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

/* Noise texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 0;
}

/* ════════════════════════════════════════════════════════════════
   Typography
   ════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

h1 { 
  font-size: clamp(32px, 5vw, 48px); 
  letter-spacing: -0.01em; 
  font-style: italic;
}

h2 { 
  font-size: clamp(24px, 4vw, 36px); 
  letter-spacing: -0.01em; 
}

h3 { 
  font-size: clamp(20px, 3vw, 28px); 
}

h4 { 
  font-size: clamp(18px, 2.5vw, 24px); 
}

p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

em {
  font-style: italic;
  color: var(--mid);
}

strong {
  font-weight: 400;
  color: var(--charcoal);
}

a {
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--light);
  transition: border-color 0.2s, opacity 0.2s;
}

a:hover {
  opacity: 0.6;
}

/* ════════════════════════════════════════════════════════════════
   Header / Navigation
   ════════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(20, 20, 18, 0.08);
  padding: 32px 48px;
  z-index: 100;
  text-align: center;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  margin: 0;
}

.site-title a {
  border: none;
  display: flex;
  align-items: baseline;
  gap: 0.28em;
}

.logo-by {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.logo-comp {
  font-family: 'Playfair Display SC', serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--charcoal);
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  font-family: 'Playfair Display SC', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  border: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--charcoal);
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════
   Main Content Container
   ════════════════════════════════════════════════════════════════ */

.site-main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 48px 120px;
  text-align: center;
}

/* ════════════════════════════════════════════════════════════════
   Post List (Homepage / Archive)
   ════════════════════════════════════════════════════════════════ */

.post-feed {
  display: grid;
  gap: 80px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.post-card-image-link {
  display: block;
  overflow: hidden;
  border: none;
}

.post-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s;
}

.post-card:hover .post-card-image {
  transform: scale(1.02);
  opacity: 0.9;
}

.post-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.post-card-tags {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.post-card-tag {
  font-family: 'Playfair Display SC', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  border: none;
}

.post-card-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-style: italic;
  letter-spacing: -0.01em;
  margin: 0;
}

.post-card-title a {
  border: none;
}

.post-card-excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--mid);
  margin: 0;
  max-width: 520px;
}

.post-card-meta {
  font-family: 'Playfair Display SC', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
}

/* ════════════════════════════════════════════════════════════════
   Single Post
   ════════════════════════════════════════════════════════════════ */

.article {
  position: relative;
}

.article-header {
  margin-bottom: 60px;
  text-align: center;
}

.article-tag {
  font-family: 'Playfair Display SC', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 24px;
  display: inline-block;
  border: none;
}

.article-title {
  margin-bottom: 32px;
}

.article-meta {
  font-family: 'Playfair Display SC', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 48px;
}

.article-image {
  width: 100%;
  height: auto;
  margin-bottom: 60px;
}

.article-content {
  font-family: 'Cormorant Garamond', serif;
  text-align: left;
}

.article-content img {
  width: 100%;
  height: auto;
  margin: 48px 0;
}

.article-content blockquote {
  margin: 48px 0;
  padding-left: 32px;
  border-left: 1px solid rgba(20, 20, 18, 0.1);
  font-style: italic;
  color: var(--mid);
}

.article-content ul,
.article-content ol {
  margin: 32px 0;
  padding-left: 32px;
  text-align: left;
}

.article-content li {
  margin-bottom: 16px;
}

.article-content hr {
  margin: 60px auto;
  width: 32px;
  border: none;
  border-top: 1px solid var(--charcoal);
  opacity: 0.2;
}

/* ════════════════════════════════════════════════════════════════
   Footer
   ════════════════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid rgba(20, 20, 18, 0.08);
  padding: 32px 48px;
  text-align: center;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-nav a {
  font-family: 'Playfair Display SC', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  border: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--charcoal);
  opacity: 1;
}

.copyright {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--light);
}

/* ════════════════════════════════════════════════════════════════
   Newsletter Subscription
   ════════════════════════════════════════════════════════════════ */

.newsletter-box {
  margin: 80px 0;
  padding: 48px;
  border: 1px solid rgba(20, 20, 18, 0.08);
  text-align: center;
}

.newsletter-title {
  font-family: 'Playfair Display SC', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form > div:first-child {
  flex: 1;
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 2px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--light);
}

.newsletter-form button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Playfair Display SC', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-left: 20px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  opacity: 0.4;
}

/* ════════════════════════════════════════════════════════════════
   Ghost Editor Width Classes
   ════════════════════════════════════════════════════════════════ */

.kg-width-wide {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-width-full img {
  width: 100%;
}

/* ════════════════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .site-header {
    padding: 24px 28px;
  }
  
  .site-main {
    padding: 60px 28px 100px;
  }
  
  .site-nav {
    gap: 20px;
  }
  
  .post-feed {
    gap: 60px;
  }
  
  .footer-nav {
    gap: 20px;
  }
  
  .newsletter-box {
    padding: 32px 24px;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 20px;
  }
}
