/*
Theme Name: Velvet Journal
Theme URI: https://example.com
Author: Satellite
Description: Editorial lifestyle magazine theme with a dream dictionary section.
Version: 1.0.0
Text Domain: velvet-journal
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL v2 or later
*/

:root {
  --page: #f7f2f5;
  --paper: #fffafc;
  --ink: #22171f;
  --muted: #7f6a77;
  --line: #eadce5;
  --rose: #c75f86;
  --plum: #4b2447;
  --wine: #8f315b;
  --aqua: #2f7b83;
  --sun: #e8b557;
  --soft: #f2e2ea;
  --shadow: 0 24px 60px rgba(75, 36, 71, .12);
  --radius: 8px;
  --container: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 252, .92), rgba(247, 242, 245, .96) 460px),
    var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 252, .92);
  backdrop-filter: blur(18px);
}

.topline {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand {
  display: grid;
  gap: 6px;
  text-align: center;
  color: var(--ink);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: 0;
}

.brand-desc {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-toggle {
  position: absolute;
  right: 0;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--ink);
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.navline {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 22px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  background: var(--plum);
  color: #fff;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-field {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.search-field:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(199, 95, 134, .12);
}

.search-submit,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-weight: 850;
  white-space: nowrap;
}

.search-submit:hover,
.button:hover {
  background: var(--rose);
  color: #fff;
}

.button--light {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--plum);
}

.button--light:hover {
  border-color: var(--rose);
  background: var(--soft);
  color: var(--plum);
}

.dream-index {
  border-bottom: 1px solid var(--line);
  background: rgba(242, 226, 234, .72);
}

.dream-index ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
}

.dream-index a,
.letter-grid a {
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 95, 134, .26);
  border-radius: 999px;
  background: var(--paper);
  color: var(--plum);
  font-size: .86rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.dream-index a:hover,
.letter-grid a:hover {
  background: var(--wine);
  color: #fff;
}

.site-main {
  flex: 1;
}

.mag-hero {
  padding: 54px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.cover-card,
.index-panel,
.article-card,
.comments-area,
.empty-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(255, 250, 252, .92);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(26px, 5vw, 60px);
  display: grid;
  align-content: center;
}

.kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--wine);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-copy h1,
.archive-title,
.entry-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: 0;
}

.single .entry-title,
.page .entry-title {
  font-size: clamp(2.05rem, 4vw, 4.2rem);
}

.hero-copy p,
.archive-description,
.not-found p {
  max-width: 670px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.cover-card {
  min-height: 100%;
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 14px;
  grid-template-rows: auto auto auto;
  position: relative;
  overflow: hidden;
}

.cover-card::before {
  content: "Dream notes";
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(199, 95, 134, .22), rgba(47, 123, 131, .16)),
    radial-gradient(circle at 70% 20%, rgba(232, 181, 87, .35), transparent 9rem);
  color: rgba(75, 36, 71, .78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: .95;
  text-align: center;
}

.cover-image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  background: var(--soft);
  position: relative;
  z-index: 1;
}

.cover-card--has-image::before {
  display: none;
}

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

.cover-card span {
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--plum);
  font-size: .98rem;
  font-weight: 700;
}

.cover-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  line-height: 1.05;
}

.section {
  padding: 36px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-head h2,
.index-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
}

.section-head p,
.index-panel p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-card {
  min-height: 100%;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.story-card:first-child {
  grid-column: span 2;
}

.story-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.story-card:first-child .story-image {
  aspect-ratio: 16 / 9;
}

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

.story-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.story-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.story-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.52rem;
  font-weight: 500;
  line-height: 1.08;
}

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

.section--index {
  padding-block: 44px;
}

.index-panel {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
}

.letter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.letter-grid a {
  min-width: 44px;
  min-height: 44px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-strip a {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.category-strip strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.category-strip span {
  color: var(--muted);
}

.content-wrap,
.article-wrap,
.not-found {
  padding: 46px 0 70px;
}

.archive-header {
  margin-bottom: 24px;
}

.article-card,
.comments-area,
.empty-card {
  max-width: 940px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 56px);
}

.article-header {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.article-image {
  overflow: hidden;
  margin: 0 0 28px;
  border-radius: var(--radius);
}

.article-image img {
  width: 100%;
}

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

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.65em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
}

.entry-content img {
  border-radius: var(--radius);
}

.comments-area {
  margin-top: 26px;
}

.comment-list {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.comment-body {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .86rem;
}

.comment-author {
  color: var(--ink);
  font-weight: 850;
}

.comment-author .avatar {
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
}

.reply a,
.comment-edit-link {
  color: var(--wine);
  font-weight: 850;
}

.comment-list .children {
  display: grid;
  gap: 14px;
  margin: 14px 0 0 22px;
  padding: 0;
  list-style: none;
}

.comment-form {
  display: grid;
  gap: 14px;
}

.comment-form label {
  font-weight: 850;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.comment-form .submit {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-weight: 850;
}

.pagination {
  margin-top: 28px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--plum);
  color: #fff;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--plum);
  color: #fff;
}

.footer-grid {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a,
.site-footer a {
  color: #fff;
}

@media (max-width: 1040px) {
  .navline,
  .hero-grid,
  .index-panel {
    grid-template-columns: 1fr;
  }

  .header-search {
    padding-bottom: 12px;
  }

  .editorial-grid,
  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-card:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .topline {
    min-height: 76px;
    justify-content: flex-start;
  }

  .brand {
    text-align: left;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    right: 0;
  }

  .navline {
    display: block;
    min-height: 0;
    padding: 0 0 14px;
    border-top: 0;
  }

  .header-search {
    margin-top: 8px;
    padding-bottom: 0;
  }

  .site-nav {
    position: fixed;
    inset: 76px 12px auto;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .menu-open .site-nav {
    display: block;
  }

  .site-nav ul {
    display: grid;
    justify-content: stretch;
  }

  .site-nav a {
    width: 100%;
  }

  .search-form,
  .section-head,
  .footer-grid {
    display: grid;
    align-items: start;
  }

  .cover-card {
    align-content: start;
  }

  .cover-card span {
    min-height: auto;
  }

  .dream-index ul {
    gap: 6px;
  }

  .dream-index a {
    min-width: 34px;
    min-height: 34px;
    font-size: .8rem;
  }

  .mag-hero {
    padding-top: 30px;
  }

  .editorial-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .article-meta {
    display: flex;
  }
}
