/* UTILITY CLASSES */
.hidden {
  display: none !important;
}

/* RESET & BASE */
body {
  background-color: #faf6ed; /* parchment */
  color: #0a0a0a; /* ink */
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  width: 100%;
  box-sizing: border-box;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, .logo {
  font-family: 'Tiempos Headline', 'GT Sectra', 'Playfair Display', serif;
}

.hairline {
  border: none;
  border-top: 1px solid rgba(10, 10, 10, 0.2);
  margin: 4rem 0;
}

/* HEADER */
.header {
  border-bottom: 1px solid #0a0a0a;
  padding-bottom: 1rem;
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0a0a0a;
}

.header-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: #92400e; /* rust accent */
  text-transform: uppercase;
}

/* HERO SECTION */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: #0a0a0a;
  margin-top: 0;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 0.55em;
  font-weight: 400;
  color: #0a0a0a;
  font-style: italic;
  font-family: 'Tiempos Headline', 'GT Sectra', 'Playfair Display', serif;
}

.microcopy {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  border-left: 2px solid #92400e;
  padding-left: 1rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  border: 1px solid #0a0a0a;
  box-shadow: 12px 12px 0 rgba(10, 10, 10, 0.08);
  object-fit: cover;
  display: block;
}

/* FORM */
.signup-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #0a0a0a;
  padding-bottom: 0.5rem;
  transition: border-color 0.3s ease;
}

.signup-form:focus-within {
  border-bottom-color: #92400e;
  border-bottom-width: 2px;
  padding-bottom: 0.4rem;
}

.signup-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  color: #0a0a0a;
  padding: 0.5rem 0;
  outline: none;
}

.signup-form input::placeholder {
  color: rgba(10, 10, 10, 0.4);
}

.signup-form button {
  background: #0a0a0a;
  color: #faf6ed;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, transform 0.1s ease;
}

.signup-form button:hover {
  background: #92400e;
}

.signup-form button:active {
  transform: scale(0.98);
}

.signup-form button:disabled {
  background: #555;
  cursor: not-allowed;
}

.error-msg {
  color: #92400e;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  font-family: 'Space Mono', monospace;
}

.status-msg {
  font-size: 1.125rem;
  font-style: italic;
  color: #92400e;
}

/* POST ENTRY */
.thank-you-box {
  background: transparent;
  border: 1px solid #0a0a0a;
  padding: 2.5rem 2rem;
  margin-top: 1rem;
}

.thank-you-box h2 {
  font-size: 2rem;
  color: #0a0a0a;
  margin-top: 0;
  margin-bottom: 1rem;
}

.thank-you-box p {
  font-size: 1.05rem;
  color: rgba(10, 10, 10, 0.8);
  margin: 0;
  line-height: 1.6;
}

.share-panel {
  margin-top: 1.5rem;
  border: 1px solid #0a0a0a;
  padding: 1.5rem;
  background: rgba(146, 64, 14, 0.04);
}

.share-panel h3 {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #92400e;
}

.share-panel p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.share-row {
  display: flex;
  gap: 0.5rem;
}

.share-row input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #0a0a0a;
  background: #faf6ed;
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  color: #0a0a0a;
  outline: none;
}

.share-row .btn {
  background: #0a0a0a;
  color: #faf6ed;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.share-row .btn:hover {
  background: #92400e;
}

/* LATEST ISSUES SECTION */
.section-heading {
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  text-transform: uppercase;
  border-bottom: 1px solid #0a0a0a;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  color: #0a0a0a;
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.issue-card {
  display: flex;
  flex-direction: column;
}

.issue-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid #0a0a0a;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.issue-card:hover .issue-img {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(10, 10, 10, 0.08);
}

.issue-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: #92400e;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.issue-title {
  font-size: 1.25rem;
  color: #0a0a0a;
  line-height: 1.4;
  margin: 0;
}

/* QUOTES SECTION */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.quote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid #0a0a0a;
  object-fit: cover;
  margin-bottom: 1.5rem;
  padding: 3px;
  background: #faf6ed;
}

.quote-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #0a0a0a;
  flex-grow: 1;
}

.quote-author {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #92400e;
}

.quote-author::before {
  content: '— ';
}

/* POWERED BY SLOT */
#wbx-powered-by-slot {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 10, 10, 0.2);
  display: flex;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-image {
    grid-row: 1;
  }
  
  .hero-text {
    grid-row: 2;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }

  .issues-grid, .quotes-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .issue-card {
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
  }
  
  .issue-img {
    width: 120px;
    margin-bottom: 0;
  }
  
  .issue-content {
    flex: 1;
  }
}

@media (max-width: 550px) {
  .container {
    padding: 1.5rem 1.5rem 3rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .issue-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .issue-img {
    width: 100%;
    aspect-ratio: 16/9; /* Change aspect on very small screens for better fit */
  }

  .signup-form {
    flex-direction: column;
    align-items: stretch;
    border-bottom: none;
  }
  
  .signup-form input {
    border-bottom: 1px solid #0a0a0a;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
  }
}