/* ==========================================================================
   Leo Paul Marcel — Style
   Love stories for people who don't read love stories.
   ========================================================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

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

/* --- Root variables --- */
:root {
  --bg: #FAF8F5;
  --text: #2C2825;
  --text-secondary: #8A8279;
  --accent: #B5785A;
  --card-bg: #F3F0EB;
  --footer-bg: #EDEBE7;
  --content-width: 680px;
  --page-width: 1080px;
}

/* --- Base --- */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lora', 'Georgia', 'Times New Roman', serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }

p {
  margin-bottom: 1.4rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: none;
}

a:hover {
  text-decoration: underline;
}

em {
  font-style: italic;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--card-bg);
  margin: 3rem 0;
}

/* --- Layout --- */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrap {
  flex: 1;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
.site-nav {
  padding: 2rem 0;
}

.site-nav .container--wide {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.site-name {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-name:hover {
  text-decoration: none;
  color: var(--accent);
}

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

.nav-links a {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* --- Hero Image --- */
.hero-image {
  width: 100%;
  margin-bottom: 2.5rem;
}

.hero-image img {
  width: 100%;
  display: block;
}

/* --- Story Page --- */
.story-header {
  margin-bottom: 2.5rem;
  padding-top: 1rem;
}

.story-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.story-subtitle {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.story-body {
  margin-bottom: 4rem;
}

.story-body h1,
.story-body h2,
.story-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.story-body p {
  margin-bottom: 1.4rem;
}

.story-body img {
  max-width: 100%;
  display: block;
  margin: 2rem 0;
}

/* --- Page Header (About, Start Here) --- */
.page-header {
  padding-top: 3rem;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
}

.page-body {
  margin-bottom: 3rem;
}

/* --- Homepage --- */
.home-intro {
  padding: 5rem 0 3rem;
  text-align: center;
}

.home-intro p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

/* --- Story Cards --- */
.story-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.story-card {
  background: var(--card-bg);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  text-decoration: none;
}

.story-card:hover .story-card__title {
  color: var(--accent);
}

.story-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.story-card__body {
  padding: 1.2rem 1.4rem 1.4rem;
}

.story-card__title {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.story-card__subtitle {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
}

.story-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
  line-height: 1.6;
}

/* --- More Stories --- */
.more-stories {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.more-stories h2 {
  margin-bottom: 1.8rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Email Capture --- */
.email-capture {
  padding: 3.5rem 0;
  text-align: center;
}

.email-capture__intro {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.email-form input {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.92rem;
  padding: 0.7rem 1rem;
  border: 1px solid #D9D5CF;
  background: #fff;
  color: var(--text);
  flex: 1;
  min-width: 160px;
}

.email-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.email-form button {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.7rem 1.6rem;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.email-form button:hover {
  background: #9E674D;
}

.email-form__success,
.email-form__error {
  font-size: 0.95rem;
  margin-top: 1rem;
}

.email-form__success {
  color: var(--text-secondary);
  font-style: italic;
}

.email-form__error {
  color: #C0392B;
}

/* --- Gumroad link --- */
.gumroad-link {
  text-align: center;
  padding: 1rem 0 2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.gumroad-link a {
  color: var(--accent);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--footer-bg);
  padding: 3rem 0;
  text-align: center;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

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

.footer-copy {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .home-intro {
    padding: 3rem 0 2rem;
  }

  .home-intro p {
    font-size: 1.1rem;
  }

  .story-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-header h1 {
    font-size: 1.7rem;
  }

  .site-nav .container--wide {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .email-form {
    flex-direction: column;
  }

  .email-form input,
  .email-form button {
    width: 100%;
  }
}
