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

:root {
  --black: #111111;
  --white: #ffffff;
  --grey: #f5f5f5;
  --mid-grey: #888888;
  --blue: #1a56db;
  --border: #e8e8e8;
}

html { scroll-behavior: smooth; }

#home { display: block; }
#about, #contact { display: none; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--mid-grey);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--black); }

/* HOMEPAGE HEADER - LEFT ALIGNED */
.home-header {
  padding: 6rem 2rem 4rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: left; /* Changed back to left */
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.home-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.home-header p {
  color: var(--mid-grey);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 500px;
}

/* POSTS */
.posts-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

div.post-card {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.5s ease forwards;
}

div.post-card:hover {
  opacity: 0.8;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--mid-grey);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--black);
  transition: color 0.3s ease;
}

.post-excerpt {
  font-size: 1rem;
  color: #666;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SPECIFIC BUTTON STYLING */
button {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--black);
  border: 1px solid var(--black);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  cursor: pointer;
}

button:hover {
  background: var(--black);
  color: var(--white);
}

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

/* ABOUT PAGE */
#about { max-width: 780px; margin: 0 auto; padding: 4rem 2rem 6rem; scroll-behavior: smooth; }
.hero-banner-container { width: 100%; margin-bottom: 2rem; overflow: hidden; border-radius: 4px; }
.hero-banner-container img { width: 100%; height: auto; display: block; object-fit: cover; }
.about-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; margin-bottom: 3rem; opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards; }
.about-content { display: grid; grid-template-columns: 1fr 140px; gap: 3rem; align-items: start; margin-bottom: 4rem; opacity: 0; animation: fadeUp 0.6s ease 0.2s forwards; }
.about-text h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; }
.about-text p { font-size: 0.95rem; color: #444; line-height: 1.75; margin-bottom: 1rem; }
.about-logo { width: 140px; height: 140px; object-fit: contain; border-radius: 4px; }
.about-logo-placeholder { width: 140px; height: 140px; background: var(--grey); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--mid-grey); }
.works-section { opacity: 0; animation: fadeUp 0.6s ease 0.3s forwards; }
.works-section h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 2rem; letter-spacing: -0.02em; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.series-item { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; align-items: start; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.series-cover { width: 80px; height: 110px; object-fit: cover; border-radius: 2px; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.series-cover-placeholder { width: 80px; height: 110px; background: var(--grey); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--mid-grey); text-align: center; padding: 0.5rem; flex-shrink: 0; }
.series-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.series-desc { font-size: 0.88rem; color: var(--mid-grey); line-height: 1.6; }

/* CONTACT PAGE */
#contact { max-width: 560px; margin: 0 auto; padding: 4rem 2rem 6rem; scroll-behavior: smooth; }
#contact h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; opacity: 0; animation: fadeUp 0.5s ease 0.05s forwards; }
#contact p.sub { color: var(--mid-grey); margin-bottom: 2.5rem; font-size: 0.95rem; opacity: 0; animation: fadeUp 0.5s ease 0.1s forwards; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; opacity: 0; animation: fadeUp 0.5s ease 0.15s forwards; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mid-grey); }
.form-group input, .form-group textarea { border: 1px solid var(--border); border-radius: 3px; padding: 0.75rem 1rem; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--black); background: var(--white); transition: border-color 0.2s; outline: none; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--black); }
.form-group textarea { min-height: 140px; }
.submit-btn { background: var(--black); color: var(--white); border: none; padding: 0.85rem 2rem; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; cursor: pointer; border-radius: 3px; align-self: flex-start; transition: opacity 0.2s; }
.submit-btn:hover { opacity: 0.75; }

/* FOOTER AND BUTTONS */
footer { text-align: center; padding: 2rem; margin-top: 4rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--mid-grey); letter-spacing: 0.02em; }
.button-container { margin: 3rem 0; text-align: center; }
#see-more-btn { background: var(--white); border: 1px solid var(--black); color: var(--black); padding: 0.8rem 2.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; cursor: pointer; transition: all 0.3s ease; }
#see-more-btn:hover { background: var(--black); color: var(--white); }

#about, #contact { animation: pageFadeIn 0.6s ease-out forwards; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* POST VIEWER */
#viewer-container { padding: 4rem 2rem; }
#story-content { max-width: 800px; margin: 0 auto; line-height: 1.6; }
.close-viewer-btn { 
    display: inline-block; 
    margin-bottom: 2rem; 
    cursor: pointer; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    color: var(--mid-grey); 
    border: none; 
    background: none; 
}
.close-viewer-btn:hover { color: var(--black); }

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
