/*
Theme Name: Jessica Writing Portfolio
Theme URI: https://example.com/
Author: OpenAI
Description: A polished literary portfolio theme for essays, articles, and short stories.
Version: 1.0.0
Text Domain: jessica-writing
*/

:root {
  --blue-50: #f4f9fc;
  --blue-100: #e6f2f8;
  --blue-200: #cfe6f1;
  --blue-400: #8fbfd5;
  --blue-700: #2f627a;
  --ink: #24323a;
  --muted: #667780;
  --cream: #fff8e8;
  --cream-deep: #f2e5c7;
  --white: #ffffff;
  --line: rgba(47, 98, 122, 0.16);
  --shadow: 0 14px 38px rgba(48, 80, 94, 0.09);
  --radius: 22px;
  --content: 1120px;
  --reading: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--blue-50);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img { max-width: 100%; height: auto; }

.site-header {
  padding: 34px 24px 18px;
  text-align: center;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-logo {
  max-height: 86px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: .02em;
}

.site-title a {
  color: var(--ink);
  text-decoration: none;
}

.site-main {
  min-height: 65vh;
}

.wrap {
  width: min(calc(100% - 36px), var(--content));
  margin: 0 auto;
}

.reading-wrap {
  width: min(calc(100% - 36px), var(--reading));
  margin: 0 auto;
}

.hero {
  margin: 26px auto 54px;
  padding: clamp(44px, 7vw, 86px) clamp(24px, 6vw, 70px);
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.75), transparent 34%),
    linear-gradient(135deg, var(--blue-200), var(--cream));
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero .eyebrow {
  margin: 0 0 10px;
  color: var(--blue-700);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto 16px;
  max-width: 820px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.03;
  font-weight: 500;
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section {
  padding: 28px 0 64px;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.collection-card, .work-card {
  background: rgba(255,255,255,.83);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.collection-card {
  padding: 30px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(48, 80, 94, 0.13);
}

.collection-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 500;
}

.collection-card p {
  margin: 0;
  color: var(--muted);
}

.collection-card .arrow {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue-700);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
  font-weight: 700;
}

.page-hero {
  padding: 44px 0 28px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
}

.page-hero p {
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding-bottom: 70px;
}

.work-card {
  overflow: hidden;
}

.work-card a.card-link {
  display: block;
  padding: 28px;
  color: inherit;
  text-decoration: none;
}

.work-card .meta {
  margin-bottom: 8px;
  color: var(--blue-700);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.work-card h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
}

.work-card p {
  margin: 0;
  color: var(--muted);
}

.entry {
  padding: 44px 0 80px;
}

.entry-header {
  margin-bottom: 34px;
  text-align: center;
}

.entry-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.08;
  font-weight: 500;
}

.entry-meta {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .86rem;
}

.entry-content {
  font-size: 1.08rem;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content h2,
.entry-content h3 {
  line-height: 1.2;
  font-weight: 500;
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.4rem;
  background: var(--cream);
  border-left: 4px solid var(--blue-400);
}

.entry-content img {
  border-radius: 14px;
}

.empty-state {
  padding: 42px;
  margin-bottom: 70px;
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  text-align: center;
}

.site-footer {
  margin-top: 20px;
  padding: 34px 24px 44px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-bottom: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
}

.footer-nav a {
  text-decoration: none;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.wp-block-button__link,
.button {
  background: var(--blue-700);
  border-radius: 999px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

.pagination {
  padding-bottom: 70px;
  text-align: center;
}

@media (max-width: 760px) {
  .collection-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-top: 22px;
  }

  .hero {
    margin-top: 14px;
  }
}
/* HEADER LAYOUT */

.site-header {
  padding: 20px 0;
  background: #f4f9fc;
  border-bottom: 1px solid rgba(47, 98, 122, 0.15);
}

.header-inner {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  gap: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo {
  display: block;
  width: auto;
  max-width: 260px;
  max-height: 72px;
  object-fit: contain;
}

.site-title {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.site-title a {
  color: #24323a;
  text-decoration: none;
}

/* NAVIGATION */

.main-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 20px;
  width: 100%;
}
.site-branding {
  grid-column: 1;
  justify-self: start;
}

.main-nav a {
  color: #0f2740;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #5f91aa;
}

/* MOBILE */

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }

  .site-branding {
    justify-content: center;
  }

  .custom-logo {
    max-width: 220px;
    max-height: 65px;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}
/* =========================
   NAVY + CREAM COLOR THEME
   ========================= */

body {
  background: #0f2740;
  color: #1f2a33;
}

/* Header */
.site-header {
  background: #f7efd8;
  border-bottom: 1px solid rgba(15, 39, 64, 0.18);
}

/* Navigation */
.main-nav a {
  color: #0f2740;
}

.main-nav a:hover {
  color: #b58a2a;
}

/* Main homepage hero box */
.hero {
  background: #f7efd8;
  border: 1px solid rgba(181, 138, 42, 0.22);
}

/* All content boxes/cards */
.collection-card,
.work-card,
.empty-state {
  background: #f7efd8;
  border-color: rgba(181, 138, 42, 0.22);
}

/* Page titles and major text */
.hero h1,
.section-heading h2,
.page-hero h1,
.entry-header h1,
.collection-card h3,
.work-card h2 {
  color: #0f2740;
}

/* Secondary text */
.hero-copy,
.section-heading p,
.page-hero p,
.collection-card p,
.work-card p,
.entry-meta {
  color: #55606a;
}

/* Small labels and accents */
.hero .eyebrow,
.collection-card .arrow,
.work-card .meta {
  color: #b58a2a;
}

/* Normal article/page reading area */
.entry {
  color: #f7efd8;
}

/* About page / essay body text */
.entry-content {
  color: #f7efd8;
}

/* Links inside written pieces */
.entry-content a {
  color: #d8b65a;
}

/* Footer */
.site-footer {
  background: #f7efd8;
  border-top: 1px solid rgba(15, 39, 64, 0.18);
}

.footer-nav a {
  color: #0f2740;
}

.footer-note {
  color: #55606a;
}
/* White background on every page except the homepage */

body:not(.home) {
  background: #ffffff;
  color: #1f2a33;
}

body:not(.home) .entry,
body:not(.home) .entry-content {
  color: #1f2a33;
}

body:not(.home) .page-hero h1,
body:not(.home) .entry-header h1 {
  color: #0f2740;
}
/* Home page spacing adjustments */
.home .section-heading h2 {
  color: #f7efd8;
}
/* Publication / Written For information */

.publication-info {
  margin: 6px 0 0;
  color: #6d7880;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
}

.single-publication {
  margin-top: 10px;
  font-size: 18px;
}

/* =====================================================
   INDIVIDUAL WRITING PAGES
   Articles, Essays & Short Stories
===================================================== */

/* Main reading area */
.single-writing {
    max-width: 850px;
    margin: 60px auto 90px;
    padding: 50px 65px;
    background: #fffdf7;
    border-radius: 18px;
    box-sizing: border-box;
}


/* Title */
.single-writing h1 {
    margin: 0 0 18px;
    font-size: 2.7rem;
    line-height: 1.15;
    color: #172a49;
    font-weight: 600;
}


/* Date / publication / link area */
.single-writing .writing-meta {
    margin-bottom: 38px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(23, 42, 73, 0.18);
    font-size: 1rem;
    line-height: 1.6;
    color: #667085;
}


.single-writing .writing-date {
    font-style: italic;
}


.single-writing .writing-publication {
    margin-top: 2px;
}


.single-writing .writing-original-link {
    margin-top: 7px;
}


.single-writing .writing-original-link a {
    color: #172a49;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Main article / essay / story text */
.single-writing .entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #202938;
}


/* Paragraph spacing */
.single-writing .entry-content p {
    margin: 0 0 1.35em;
}


/* Headings inside a piece */
.single-writing .entry-content h2 {
    margin-top: 2em;
    margin-bottom: 0.7em;
    font-size: 1.65rem;
    line-height: 1.25;
    color: #172a49;
}


.single-writing .entry-content h3 {
    margin-top: 1.7em;
    margin-bottom: 0.6em;
    font-size: 1.3rem;
    color: #172a49;
}


/* Links inside the writing */
.single-writing .entry-content a {
    color: #172a49;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Images inside a piece */
.single-writing .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* Block quotes */
.single-writing .entry-content blockquote {
    margin: 2em 0;
    padding: 0.2em 0 0.2em 1.5em;
    border-left: 3px solid #b58a32;
    font-style: italic;
}


/* Make reading pages comfortable on phones */
@media (max-width: 700px) {

    .single-writing {
        margin: 25px 15px 50px;
        padding: 32px 24px;
        border-radius: 14px;
    }

    .single-writing h1 {
        font-size: 2rem;
    }

    .single-writing .entry-content {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}
/* Short story preview on archive page */

.story-preview {
    margin: 10px 0 0;
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 400;
    color: #667085;
}
/* =====================================================
   WRITING ARCHIVE ORDER
   Display cards left-to-right, then down
===================================================== */

.works-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 24px !important;
}

/* On phones, use one column */
@media (max-width: 700px) {
    .works-grid {
        grid-template-columns: 1fr !important;
    }
}
