/* ==========================================================
   KEEPSAKE JOURNAL
   Editorial styles
   ========================================================== */


/* ==========================================================
   DESIGN TOKENS
   ========================================================== */

:root {
  --evergreen:        #2E7D5E;
  --evergreen-dark:   #1f5a43;
  --evergreen-light:  #e8f5ef;
  --evergreen-mid:    #c2e0d2;

  --warm-fawn:        #D1B478;
  --thistle:          #B7ADCF;

  --bg:               #faf8f5;
  --bg-card:           #ffffff;
  --bg-muted:          #f2efe9;

  --border:            rgba(0,0,0,0.07);
  --border-mid:        rgba(0,0,0,0.12);

  --text:              #1a1a1a;
  --text-mid:          #4a4a4a;
  --text-muted:        #6e6e6e;
  --text-faint:        #999;

  --font-display:      'Playfair Display', Georgia, serif;
  --font-body:         'Lato', -apple-system, sans-serif;

  --max-w:             1040px;

  --radius:            16px;
  --radius-lg:         24px;
}


/* ==========================================================
   RESET
   ========================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}


/* ==========================================================
   BACKGROUND
   ========================================================== */

body::before {
  content: '';
  position: fixed;
  inset: 0;

  background:
    radial-gradient(
      ellipse 70% 50% at 0% 0%,
      rgba(209,180,120,0.08),
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 60% at 100% 80%,
      rgba(183,173,207,0.07),
      transparent 60%
    );

  pointer-events: none;
  z-index: 0;
}


/* ==========================================================
   PAGE STRUCTURE
   ========================================================== */

.page {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}


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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(250,248,245,0.92);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;

  padding: 12px 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;

  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-link {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;

  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--evergreen);
  text-decoration: none;
}


/* ==========================================================
   LABELS
   ========================================================== */

.section-label {
  font-size: 11px;
  font-weight: 700;

  letter-spacing: .12em;
  text-transform: uppercase;

  color: var(--evergreen);

  margin-bottom: 12px;
}


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

.journal-hero {

  padding: 80px 28px;

  max-width: var(--max-w);
  margin: 0 auto;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 56px;

  align-items: center;
}

.journal-hero h1 {

  font-family: var(--font-display);

  font-size: clamp(38px, 5vw, 58px);

  line-height: 1.15;

  letter-spacing: -0.025em;

  margin-bottom: 24px;
}

.journal-hero h1 em {

  font-style: italic;

  color: var(--evergreen);
}

.hero-intro {

  font-size: 18px;

  font-weight: 300;

  color: var(--text-mid);

  line-height: 1.7;
}


.journal-hero-image {

  border-radius: var(--radius-lg);

  overflow: hidden;

  background: var(--bg-muted);

  aspect-ratio: 4 / 5;

  box-shadow:
    0 20px 50px rgba(0,0,0,.12);
}


.journal-hero-image img {

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* ==========================================================
   FEATURED ARTICLE
   ========================================================== */

.featured-section {

  padding: 80px 0;

  border-top: 1px solid var(--border);
}

.featured-link {
  display: inline-block;
  margin-top: 16px;

  font-size: 14px;
  font-weight: 700;

  color: var(--evergreen);
}

.featured-link:hover {
  color: var(--evergreen-dark);
  text-decoration: none;
}

.featured-card {

  background: var(--bg-card);

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  padding: 48px;

}


.featured-content {

  max-width: 640px;
}


.featured-card h2 {

  font-family: var(--font-display);

  font-size: clamp(28px,4vw,40px);

  line-height: 1.2;

  margin-bottom: 20px;
}


.featured-card p {

  color: var(--text-mid);

  font-size: 17px;

  line-height: 1.7;

  margin-bottom: 16px;
}


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

.articles-section {

  padding: 80px 0;

  border-top: 1px solid var(--border);
}


.articles-section > .container > h2 {

  font-family: var(--font-display);

  font-size: 36px;

  margin-bottom: 36px;
}


.article-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}


.article-card {

  background: var(--bg-card);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  overflow: hidden;

}


.article-image {

  height: 180px;

  background: var(--bg-muted);
}


.article-image.placeholder {

  background:
    linear-gradient(
      135deg,
      #f2efe9,
      #e8f5ef
    );
}


.article-body {

  padding: 24px;
}


.article-category {

  font-size: 11px;

  font-weight: 700;

  letter-spacing: .08em;

  text-transform: uppercase;

  color: var(--evergreen);

  margin-bottom: 10px;
}


.article-body h3 {

  font-family: var(--font-display);

  font-size: 21px;

  line-height: 1.3;

  margin-bottom: 12px;
}


.article-body p {

  font-size: 14px;

  color: var(--text-muted);

  line-height: 1.6;

}

/* ==========================================================
   JOURNAL CARD
   ========================================================== */

.journal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.journal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.journal-card a {
    text-decoration:none;
    color:inherit;
}

.journal-card-image {
    aspect-ratio: 16 / 9;
    overflow:hidden;
}

.journal-card-image img {
    width:100%;
    height:100%;
    object-fit:cover;
}


.journal-card-content {
    padding:28px;
}


.journal-card-category {
    font-size:11px;
    font-weight:700;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:var(--evergreen);
    margin-bottom:12px;
}


.journal-card h2 {
    font-family:var(--font-display);
    font-size:26px;
    line-height:1.25;
    margin-bottom:14px;
}


.journal-card p {
    color:var(--text-mid);
    line-height:1.7;
}


.journal-card-link {
    display:inline-block;
    margin-top:20px;
    font-weight:700;
    color:var(--evergreen);
}


/* ==========================================================
   STATUS
   ========================================================== */

.coming-soon {

  display: inline-block;

  margin-top: 18px;

  font-size: 12px;

  font-weight: 700;

  color: var(--text-muted);

  text-transform: uppercase;

  letter-spacing: .06em;
}


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

.journal-cta {

  padding: 90px 0;

  border-top: 1px solid var(--border);

  text-align: center;
}


.journal-cta h2 {

  font-family: var(--font-display);

  font-size: clamp(32px,5vw,48px);

  line-height: 1.15;

  max-width: 650px;

  margin: 0 auto 20px;
}


.journal-cta h2 em {

  color: var(--evergreen);

  font-style: italic;
}


.journal-cta p {

  max-width: 460px;

  margin: 0 auto 36px;

  color: var(--text-muted);

}


.appstore-btn {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  justify-content: center;
}

.appstore-btn img {
  display: block;
  height: 80px;
}


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

.footer {

  padding: 40px 0 60px;

  border-top: 1px solid var(--border);

  text-align: center;

  color: var(--text-faint);

  font-size: 13px;
}


.footer-links {

  display: flex;

  justify-content: center;

  gap: 20px;

  margin-top: 14px;

}


.footer-links a {

  color: var(--text-muted);

}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 800px) {


  .journal-hero {

    grid-template-columns: 1fr;

    padding-top: 56px;

  }


  .journal-hero-image {

    order: -1;

  }


  .article-grid {

    grid-template-columns: 1fr;

  }


  .featured-card {

    padding: 32px 24px;

  }

}


@media (max-width: 480px) {


  .site-nav-inner {

    padding: 10px 20px;

  }


  .container {

    padding: 0 20px;

  }


  .journal-hero {

    padding-left: 20px;
    padding-right: 20px;

  }

}