/* =========================
   RAY KIM BLOG
   Full CSS Replacement
   Matte Editorial / Business Style
   ========================= */

:root {
  --bg: #f4f1eb;
  --bg-soft: #ebe6dc;
  --bg-deeper: #ded7ca;

  --text: #25211d;
  --muted: #625b50;
  --accent: #8a6f4d;
  --border: #d8d0c2;

  --content-width: 1080px;
  --reading-width: 820px;
  --side-padding: clamp(24px, 7vw, 96px);
}

/* ---------- Reset ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.7;
}

/* ---------- General Text ---------- */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.9rem, 5vw, 4.7rem);
  letter-spacing: -1.3px;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

p {
  max-width: var(--reading-width);
  margin-bottom: 24px;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: 0.25s ease;
}

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

/* ---------- Header ---------- */

header {
  width: 100%;
  padding: 42px var(--side-padding) 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

header h1,
header p,
header nav {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

header h1 {
  margin-bottom: 20px;
}

/* Intro sentence under the title */
header p {
  text-align: left;
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 32px;
}

/* ---------- Navigation ---------- */

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

nav a,
.dropbtn {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  cursor: pointer;
}

nav a:hover,
.dropbtn:hover {
  color: var(--accent);
}

/* ---------- Dropdown ---------- */

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: 0.2s ease;
  z-index: 50;
}

.dropdown-content a {
  display: block;
  height: auto;
  padding: 11px 18px;
  font-size: 0.74rem;
  letter-spacing: 1.4px;
  color: var(--muted);
  white-space: nowrap;
}

.dropdown-content a:hover {
  background: var(--bg-deeper);
  color: var(--text);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
}

/* ---------- Main Layout ---------- */

main {
  width: 100%;
  background: var(--bg);
}

main > section,
main > article,
section,
article {
  width: 100%;
  padding: 48px var(--side-padding) 62px;
  border-bottom: 1px solid var(--border);
}

main > section > *,
main > article > *,
section > *,
article > * {
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
}

/* Removes the huge empty space after the nav */
.hero,
.intro {
  min-height: auto;
  padding-top: 42px;
  padding-bottom: 60px;
}

/* ---------- Article / Blog Body ---------- */

article h1,
.post h1,
.blog-post h1 {
  max-width: var(--reading-width);
  text-align: left;
}

article p,
.post p,
.blog-post p,
section p,
main p {
  font-size: 1.08rem;
  line-height: 1.75;
}

/* ---------- Quotes and Scripture ---------- */

blockquote,
.quote,
.scripture {
  max-width: 760px;
  margin: 42px auto;
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.8;
}

blockquote p,
.quote p,
.scripture p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-style: italic;
}

blockquote cite,
.quote cite,
.scripture cite {
  display: block;
  margin-top: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-style: normal;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
}

.verse-number {
  font-weight: bold;
  font-style: normal;
  color: var(--text);
}

/* ---------- Buttons ---------- */

.blog-button,
button:not(.dropbtn),
input[type="submit"] {
  display: block;
  width: fit-content;
  margin: 36px auto 0;
  padding: 13px 28px;
  border: 1px solid #9b9183;
  background: transparent;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: 0.25s ease;
}

.blog-button:hover,
button:not(.dropbtn):hover,
input[type="submit"]:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---------- Blog List ---------- */

.blog-list,
.posts,
.post-list {
  max-width: var(--reading-width);
  margin: 0 auto;
}

.blog-card,
.post-card,
.blog-preview {
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}

.blog-card:first-child,
.post-card:first-child,
.blog-preview:first-child {
  padding-top: 0;
}

.blog-card:last-child,
.post-card:last-child,
.blog-preview:last-child {
  border-bottom: none;
}

.blog-card h2,
.post-card h2,
.blog-preview h2 {
  margin-bottom: 8px;
}

.blog-card p,
.post-card p,
.blog-preview p {
  color: var(--muted);
}

/* ---------- Images ---------- */

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.blog-image,
.post-image,
article img,
main img {
  max-width: 520px;
  margin: 42px auto;
}

.small-image {
  max-width: 180px;
  margin: 34px auto;
}

/* ---------- Horizontal Lines ---------- */

hr {
  max-width: var(--reading-width);
  margin: 64px auto;
  border: none;
  border-top: 1px solid var(--border);
}

/* ---------- Forms ---------- */

form {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid #cfc6b8;
  background: var(--bg-soft);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------- Footer ---------- */

footer {
  width: 100%;
  padding: 44px var(--side-padding);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  header {
    padding: 38px 24px 28px;
  }

  header h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  header p {
    font-size: 1.05rem;
  }

  nav {
    gap: 20px;
  }

  main > section,
  main > article,
  section,
  article {
    padding: 44px 24px 56px;
  }

  blockquote,
  .quote,
  .scripture {
    font-size: 1.05rem;
    margin: 34px auto;
  }

  .dropdown-content {
    min-width: 210px;
  }

  .blog-button {
    width: 100%;
    max-width: 260px;
  }
}

/* =========================
   Final Image + Button Fix
   ========================= */

/* Makes About image about the size of the button */
.about-image {
  max-width: 100px;
  width: 100%;
  margin: 34px auto 0;
}

.about-image img {
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Makes the homepage button area feel intentional, not awkward */
.button-container {
  width: 100%;
  padding: 30px var(--side-padding) 34px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* Removes the weird extra top spacing from the button */
.button-container .blog-button {
  margin: 0 auto;
}

.reading-section {
  border-bottom: none;
}

/* =========================
   Blog Page Alignment Fix
   ========================= */

.blog-post {
  padding-top: 56px;
  padding-bottom: 56px;
}

.blog-post h2 {
  margin-bottom: 14px;
}

.blog-post p {
  margin-bottom: 0;
}

/* =========================
   Homepage Body Spacing Fix
   Cuts extra vertical space roughly in half
   ========================= */

main > article.blog-entry {
  padding-top: 24px;
  padding-bottom: 28px;
}

.blog-entry > .reading-section {
  padding-top: 24px;
  padding-bottom: 28px;
  border-bottom: none;
}

/* Tighten scripture spacing too */
.scripture {
  margin-top: 26px;
  margin-bottom: 30px;
}

/* Tighten space around the Read Writing button */
.button-container {
  padding-top: 18px;
  padding-bottom: 22px;
}

/* =========================
   About Page Spacing Fix
   Adds a little more breathing room
   ========================= */

.about-entry {
  padding-top: 120px;
}

.about-image {
  margin-top: 60px;
  margin-bottom: 120px;
}