/*
Theme Name: Vizune Custom - Dreaming Arcadia
Author: Vizune
Description: A custom pastel WordPress theme.
Version: 1.0
Text Domain: dreaming-arcadia
*/

:root {
  --ink: #4f5a95;
  --ink-soft: #7f89bb;
  --line: rgba(170, 184, 240, 0.36);
  --panel: #fff;
  --shadow: 0 12px 34px rgba(128, 143, 194, 0.13);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(199, 232, 255, 0.42), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(255, 213, 237, 0.45), transparent 25%),
    radial-gradient(circle at 50% 78%, rgba(220, 205, 255, 0.33), transparent 35%),
    #f8f9ff;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
.comment-count,
.comment-text {
  font-family: "Cormorant Garamond", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 22px auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(172, 188, 240, 0.42);
  border-radius: 32px;
  background:
    linear-gradient(rgba(255,255,255,0.54), rgba(255,255,255,0.78)),
    url("assets/background-texture.webp") center / cover no-repeat;
  box-shadow: 0 20px 70px rgba(105, 123, 176, 0.14);
}

.decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: url('assets/background.png') top center no-repeat;
}

.decor::before,
.decor::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.45;
}

.decor::before {
  top: -130px;
  left: -100px;
  background: radial-gradient(circle, rgba(178, 230, 255, 0.65), transparent 64%);
}

.decor::after {
  top: -110px;
  right: -110px;
  background: radial-gradient(circle, rgba(255, 210, 235, 0.64), transparent 64%);
}

.hero {
  position: relative;
  min-height: 430px;
  padding: 56px 36px 24px;
  height: 800px;
}

.hero-character {
  width: 100%;
  position: absolute;
  pointer-events: none;
}

.hero-character.top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-character.left {
  width: 499px;
  height: 530px;
  left: 22px;
  bottom: -69px;
  z-index: 3;
}

.hero-character.right {
  width: 460px;
  height: 635px;
  right: 0;
  bottom: -175px;
  z-index: 3;
}

.hero-center {
  text-align: center;
  padding-top: 230px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.hero-pillar {
  position: absolute;
  top: 0;
}

.hero-pillar.left {
  left: 134px;
}

.hero-pillar.right {
  right: 134px;
}

.moon-decoration {
  margin: 0 auto;
  max-width: 120px;
}

.logo {
  width: min(465px, 100%);
  margin: 0 auto 18px;
}

.nav-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}

.nav-item {
  width: 150px;
}

.nav-item img {
  width: 200px;
  aspect-ratio: 1;
  object-fit: contain;

  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.nav-item:hover img {
  transform: translate3D(0, -3px, 0) scale(1.03);
  filter: drop-shadow(0 8px 12px rgba(137, 147, 224, .2));
}

.nav-item p {
  position: relative;
  z-index: 2;

  margin: -8px 0 0;
  padding: 5px 16px;

  transform: none;

  border: 1px solid rgba(190, 180, 240, 0.65);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);

  color: #625ca0;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;

  box-shadow: 0 4px 12px rgba(75, 63, 140, 0.15);

  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
    display: inline-block;
}

.nav-item:hover p {
  background: #f0eaff;
  color: #7765ca;

  box-shadow:
    0 4px 16px rgba(145, 125, 220, 0.28);
}

main {
  position: relative;
  z-index: 2;
  padding: 0 46px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-section {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 18px;
  padding: 40px 40px 40px 100px;

  border: 1px solid rgba(180, 194, 237, 0.32);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
}

.page-section--oneCol {
  display: flex;
  flex-direction: column;
}

.page-section::before,
.page-section::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;

  background: url("assets/corner.png") no-repeat;
  background-size: contain;

  pointer-events: none;
  z-index: 1;
}

.page-section::before {
  top: -55px;
  left: -55px;
}

.page-section::after {
  right: -55px;
  bottom: -55px;
  transform: rotate(180deg);
}

.page-section + .page-section {
  margin-top: 32px;
}

.post-copy h2 {
  margin: 0 0 7px;
  font-weight: 500;
  font-size: clamp(22px, 2vw, 31px);
  letter-spacing: -0.02em;
  color: #4a4f7c;
}


/* -------------------------
   Post page content
------------------------- */

.page-copy {
  min-width: 0;
}

.page-copy--center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-copy h1 {
  margin: 0 0 10px;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  color: #4a4f7c;
}

.page-copy > p {
  margin: 0 0 1.25em;
  color: #6f789f;
  font-size: 15px;
  line-height: 1.8;
}

.page-copy a:not(.tag, .dream-button),
.site-footer a {
  color: #756bc7;
  text-decoration: none;

  background-image: linear-gradient(
    to right,
    rgba(117, 107, 199, 0.35),
    rgba(157, 145, 235, 0.55)
  );

  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;

  transition:
    color 0.2s ease,
    background-size 0.2s ease,
    text-shadow 0.2s ease;
}

.page-copy a:not(.tag, .dream-button):hover,
.site-footer a:hover {
  color: #8a7fe0;

  background-size: 100% 2px;

  text-shadow:
    0 0 8px rgba(155, 145, 235, 0.2);
}

.page-copy a:focus-visible {
  outline: 2px solid rgba(138, 127, 224, 0.7);
  outline-offset: 3px;
  border-radius: 3px;
}

.page-copy figure a {
  background-image: none!important;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(173, 188, 237, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.posts-panel {
  border-radius: var(--radius-xl);
  padding: 40px 18px;
}

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 18px;
  padding: 40px;
  border: 1px solid rgba(180, 194, 237, 0.32);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
}

.post-card::before,
.post-card::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;

  background: url("assets/small-corner.png") no-repeat;
  background-size: contain;

  pointer-events: none;
  z-index: 1;
}

.post-card::before {
  top: -11px;
  left: -8px;
}

.post-card::after {
  right: -8px;
  bottom: -11px;
  transform: rotate(180deg);
}

.post-card + .post-card {
  margin-top: 32px;
}

.post-copy h2 {
  margin: 0 0 7px;
  font-weight: 500;
  font-size: clamp(22px, 2vw, 31px);
  letter-spacing: -0.02em;
  color: #4a4f7c;
}

.post-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.meta {
  margin: 0;
  font-size: 14px;
  color: #9aa2c9;
}

.excerpt {
  margin: 0 0 14px;
  line-height: 1.55;
  color: #7882ab;
  font-size: 15px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 14px;
  margin-top: 20px;

  border: 1px solid rgba(171, 185, 235, 0.45);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.72);
  color: #6874ad;

  font-size: 14px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.read-more:hover {
  transform: translateY(-2px);
  border-color: rgba(150, 150, 230, 0.7);
  color: #7d72d8;

  box-shadow:
    0 6px 18px rgba(140, 135, 220, 0.16),
    0 0 12px rgba(190, 175, 255, 0.18);
}

.read-more:active {
  transform: translateY(0);
}

.read-more .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.read-more:hover .arrow {
  transform: translateX(4px);
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;

  padding: 5px 12px;
  border-radius: 999px;

  background: rgba(244, 244, 255, 0.92);
  border: 1px solid rgba(190, 197, 232, 0.36);

  font-size: 12px;
  color: #8a92ba;

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.tag:hover {
  transform: translateY(-1px);

  background: rgba(238, 232, 255, 0.98);
  border-color: rgba(169, 155, 225, 0.6);

  color: #756bc7;

  box-shadow:
    0 4px 10px rgba(130, 120, 200, 0.12),
    0 0 8px rgba(190, 175, 255, 0.12);
}

.tag:active {
  transform: translateY(0);
}

.comment-badge {
  position: relative;
  width: 120px;
  aspect-ratio: 1;
  display: inline-block;
  flex-shrink: 0;
}

.comment-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.comment-count,
.comment-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #8a7fe0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  pointer-events: none;
  text-align: center;
}

.comment-count {
  top: 33%;
  font-size: 2rem;
}

.comment-text {
  top: 60%;
  font-size: 0.7rem;
}

.profile-frame {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin: 30px auto 40px;
}

/* Michelle's portrait */

.profile-photo {
  position: absolute;
  top: 52%;
  left: 51%;
  width: 68%;
  height: 84%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  clip-path: ellipse(46% 48% at 50% 50%);

  z-index: 1;
}

/* Decorative frame */

.profile-frame-decoration {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: contain;

  pointer-events: none;
  z-index: 2;
}

.dream-button {
  min-width: 220px;
  min-height: 64px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 34px;

  border: 0;
  background:
    url("assets/button.png")
    center / 100% 100%
    no-repeat;

  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 500;

  cursor: pointer;

  filter:
    drop-shadow(0 5px 10px rgba(120, 110, 210, 0.16));

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.dream-button:hover {
  transform: translateY(-2px);

  filter:
    brightness(1.05)
    saturate(1.08)
    drop-shadow(0 8px 16px rgba(122, 112, 220, 0.24))
    drop-shadow(0 0 10px rgba(194, 181, 255, 0.28));
}

.dream-button:active {
  transform: translateY(0) scale(0.98);
}

.dream-button:focus-visible {
  outline: 2px solid #8a7fe0;
  outline-offset: 4px;
}


/* Dreaming Arcadia blockquotes */

.page-copy blockquote,
.wp-block-quote {
  position: relative;
  margin: 32px 0;
  padding: 42px 38px 30px;

  border: 1px solid rgba(180, 169, 234, 0.55);
  border-left: 3px solid #b5a5ed;
  border-radius: 16px;

  background: linear-gradient(
    135deg,
    rgba(253, 251, 255, 0.96),
    rgba(239, 235, 255, 0.85)
  );

  box-shadow:
    0 8px 24px rgba(138, 127, 224, 0.08),
    inset 0 0 25px rgba(255, 255, 255, 0.5);

  color: #676399;
}

/* Small decorative sparkle */

.page-copy blockquote::after,
.wp-block-quote::after {
  content: "✧";
  position: absolute;
  right: 16px;
  bottom: 9px;

  font-size: 22px;
  color: #aaa0e6;
}

/* Quoted text */

.page-copy blockquote p,
.wp-block-quote p {
  position: relative;
  margin: 0 0 12px;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 500;
  line-height: 1.45;

  color: #605c9b;
}

.page-copy blockquote cite::before,
.wp-block-quote cite::before {
  content: "✧ ";
}

/* -------------------------
   Comment form
------------------------- */

.comments-section {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  padding: 48px 52px 42px;
  border: 1px solid rgba(173, 188, 237, 0.5);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 12px 34px rgba(128, 143, 194, 0.1),
    inset 0 0 40px rgba(225, 222, 255, 0.12);
  backdrop-filter: blur(12px);
}

.comments-heading,
.comment-form {
  position: relative;
  z-index: 2;
}

.comments-heading {
  margin-bottom: 30px;
}

.comments-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  color: #6069ad;
}

.comments-heading h2 span {
  font-size: 18px;
  color: #9d92ef;
}

.comment-notes {
  margin: 0;
  color: #7983ae;
  font-size: 14px;
  line-height: 1.6;
}

.required {
  color: #8a7fe0;
}

.comments-moon {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 0;
  width: clamp(170px, 22vw, 270px);
  max-width: 30%;
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
}

.comment-form {
  width: min(100%, 850px);
}

.form-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.form-row-comment {
  align-items: start;
}

.form-row > label {
  color: #636dad;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.2;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(155, 159, 238, 0.5);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92),
      rgba(246, 244, 255, 0.82)
    );
  color: #596392;
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow:
    inset 0 1px 5px rgba(155, 150, 220, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  height: 52px;
  padding: 0 18px;
}

.comment-form textarea {
  min-height: 180px;
  padding: 18px;
  resize: vertical;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: #a4acd0;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: rgba(133, 125, 225, 0.82);
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 0 0 4px rgba(173, 164, 242, 0.1),
    0 5px 18px rgba(130, 122, 210, 0.08);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  color: #747da9;
  font-size: 14px;
  line-height: 1.5;
}

.comment-form-cookies-consent input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #9185df;
  cursor: pointer;
}

.comment-form-cookies-consent label {
  cursor: pointer;
}

.form-submit {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

/* -------------------------
   Submitted comments
------------------------- */

.comments-list {
  margin-top: 36px;
}

.commentbox {
  position: relative;

  padding: 28px 32px;
  margin-bottom: 24px;

  border: 1px solid rgba(173, 188, 237, 0.45);
  border-radius: var(--radius-lg);

  background: rgba(255, 255, 255, 0.78);

  box-shadow:
    0 10px 28px rgba(128, 143, 194, 0.09),
    inset 0 0 30px rgba(225, 222, 255, 0.1);

  backdrop-filter: blur(10px);
}


/* Comment header */

.commentinfo {
  display: flex;
  align-items: center;
  gap: 18px;

  margin-bottom: 18px;
}

.avatar {
  flex: 0 0 auto;
}

.avatar img {
  width: 72px;
  height: 72px;

  border-radius: 50%;
  object-fit: cover;

  border: 3px solid rgba(187, 177, 242, 0.45);

  box-shadow:
    0 4px 14px rgba(130, 120, 205, 0.12),
    0 0 12px rgba(195, 180, 255, 0.14);
}


/* Comment metadata */

.comment-meta {
  margin: 0;

  color: #9299bf;
  font-size: 13px;
  line-height: 1.6;
}

.comment-meta .author,
.comment-meta .author a {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;

  color: #756bc7;
}

.comment-meta a {
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.comment-meta a:hover {
  color: #8a7fe0;
  text-shadow: 0 0 8px rgba(155, 145, 235, 0.2);
}


/* Actual comment */

.comment-content {
  padding-left: 90px;

  color: #68739f;
  font-size: 14px;
  line-height: 1.75;
}

.comment-content p {
  margin: 0 0 12px;
}

.comment-content p:last-child {
  margin-bottom: 0;
}


/* Comment links */

.comment-content a {
  color: #756bc7;
  text-decoration: underline;
  text-decoration-color: rgba(117, 107, 199, 0.35);
  text-underline-offset: 3px;

  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.comment-content a:hover {
  color: #8a7fe0;
  text-decoration-color: #8a7fe0;
}


/* Moderation notice */

.comment-awaiting-moderation {
  margin: 0 0 16px 90px;
  padding: 8px 12px;

  width: fit-content;

  border-radius: 999px;
  border: 1px solid rgba(191, 178, 236, 0.38);

  background: rgba(244, 241, 255, 0.9);

  color: #8a7fe0;
  font-size: 12px;
}


/* Comment navigation */

.comment-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;

  margin-top: 28px;
}

.comment-navigation a {
  display: inline-flex;

  padding: 8px 14px;

  border: 1px solid rgba(171, 185, 235, 0.45);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.72);

  color: #6874ad;
  font-size: 13px;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.comment-navigation a:hover {
  transform: translateY(-2px);

  border-color: rgba(150, 150, 230, 0.7);
  color: #7d72d8;

  box-shadow:
    0 6px 18px rgba(140, 135, 220, 0.12),
    0 0 12px rgba(190, 175, 255, 0.14);
}


/* Comments closed */

.no-comments {
  margin-top: 28px;

  text-align: center;

  color: #9299bf;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
}

.dream-button .button-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.dream-button:hover .button-arrow {
  transform: translateX(4px);
}

.post-signature {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
  padding-right: 20px;
}

.post-signature img {
  width: min(260px, 65%);
  height: auto;
}

.site-footer {
  position: relative;
  z-index: 6;
  margin: 0 auto 10px;
  width: fit-content;
  padding: 7px 20px;
  border-radius: 999px;
  border: 1px solid rgba(183, 194, 232, 0.42);
  background: rgba(255,255,255,0.78);
  color: #9aa1c6;
  font-size: 13px;
  text-align: center;
}

/* -------------------------
   Responsive layout
------------------------- */

/* Laptop / small desktop */
@media (max-width: 1300px) {
  .site-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
  }

  .hero {
    height: 690px;
    min-height: 0;
    padding-inline: 24px;
  }

  .hero-character.left {
    width: 410px;
    height: auto;
    left: 3px;
    bottom: -58px;
  }

  .hero-character.right {
    width: 405px;
    height: auto;
    right: -18px;
    bottom: -154px;
  }

  .hero-pillar {
    display: none;
  }

  .hero-center {
    top: 20px;
    padding-top: 106px;
  }

  .logo {
    width: min(410px, 100%);
  }

  .nav-icons {
    gap: 12px;
    margin-top: 28px;
  }

  .nav-item {
    width: 125px;
  }

  .nav-item img {
    width: 150px;
  }

  main {
    max-width: 1050px;
    padding: 0 28px 40px;
  }

  .posts-panel {
    padding: 28px 16px 48px;
  }

  .post-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    padding: 30px;
  }

  .page-section {
    grid-template-columns: minmax(0, 1fr) 104px;
    padding: 34px 34px 34px 82px;
  }

  .comment-badge {
    width: 104px;
  }

  .post-card::before,
  .post-card::after {
    width: 160px;
    height: 160px;
  }

  .page-section::before,
  .page-section::after {
    width: 280px;
    height: 280px;
  }
}

/* Tablet */
@media (max-width: 1000px) {
  .hero {
    height: 600px;
  }

  .hero-character.top {
    width: 115%;
    max-width: none;
  }

  .hero-character.left {
    width: 330px;
    left: -8px;
    bottom: -46px;
  }

  .hero-character.right {
    width: 335px;
    right: -28px;
    bottom: -127px;
  }

  .hero-center {
    top: 10px;
    width: min(460px, 56vw);
    padding-top: 110px;
  }

  .moon-decoration {
    max-width: 90px;
  }

  .logo {
    width: min(360px, 100%);
  }

  .nav-icons {
    gap: 8px;
    margin-top: 22px;
  }

  .nav-item {
    width: 105px;
  }

  .nav-item img {
    width: 120px;
  }

  .nav-item p {
    font-size: 14px;
  }

  main {
    padding: 0 20px 40px;
  }

  .post-card,
  .page-section {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 14px;
  }

  .post-card {
    padding: 26px;
  }

  .page-section {
    padding: 32px 28px 32px 66px;
  }

  .post-info {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .comment-badge {
    width: 92px;
  }

  .comment-count {
    font-size: 1.55rem;
  }

  .comments-section {
    padding: 38px 34px;
  }

  .comments-moon {
    width: 190px;
    max-width: none;
    opacity: 0.3;
  }

  .comment-form {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 16px;
  }

  .footer-decoration {
    width: 115%;
    max-width: none;
    left: -7%;
    bottom: -105px;
  }
}

/* Mobile */
@media (max-width: 800px) {
  .hero {
    height: auto;
    min-height: 580px;
    padding: 0 14px 34px;
  }

  .hero-pillar {
    display: none;
  }

  .hero-character.left,
  .hero-character.right {
    width: 220px;
  }

  .hero-character.left {
    bottom: -31px;
  }

  .hero-character.right {
    bottom: -84px;
  }

  .hero-character.top {
    display: block;
    width: 145%;
    max-width: none;
    left: 50%;
    top: 0;
  }

  .hero-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding-top: 150px;
  }

  .moon-decoration {
    max-width: 72px;
  }

  .logo {
    width: min(310px, 82vw);
    margin-bottom: 8px;
  }

  .nav-icons {
    gap: 0;
    margin-top: 0;
  }

  .nav-item {
    width: 86px;
  }

  .nav-item img {
    width: 96px;
    margin-inline: auto;
  }

  .nav-item p {
    font-size: 12px;
    padding: 3px 9px;
  }

  main {
    width: 100%;
    padding: 0 10px 40px;
  }

  .posts-panel {
    padding: 10px;
    border-radius: 20px;
  }

  .post-card,
  .page-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .post-card {
    padding: 28px 22px 22px;
  }

  .page-section {
    padding: 32px 22px 26px;
  }

  .post-card::before,
  .post-card::after {
    width: 115px;
    height: 115px;
  }

  .post-card::before {
    top: -5px;
    left: -4px;
  }

  .post-card::after {
    right: -4px;
    bottom: -5px;
  }

  .page-section::before,
  .page-section::after {
    width: 165px;
    height: 165px;
  }

  .page-section::before {
    top: -26px;
    left: -26px;
  }

  .page-section::after {
    right: -26px;
    bottom: -26px;
  }

  .post-copy,
  .page-copy {
    min-width: 0;
  }

  .page-copy {
    order: 2;
  }

  .post-copy h2 {
    font-size: 25px;
    line-height: 1.1;
  }

  .page-copy h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .post-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .meta {
    font-size: 12px;
  }

  .excerpt,
  .page-copy > p {
    font-size: 14px;
  }

  .comment-badge {
    width: 86px;
    justify-self: end;
    order: 1;
  }

  .comment-count {
    font-size: 1.45rem;
  }

  .comment-text {
    font-size: 0.62rem;
  }

  .read-more {
    margin-top: 12px;
  }

  .comments-section {
    margin-top: 24px;
    padding: 32px 20px 28px;
    border-radius: 20px;
  }

  .comments-heading {
    margin-bottom: 24px;
  }

  .comments-heading h2 {
    font-size: 34px;
  }

  .comment-notes {
    max-width: 85%;
    font-size: 13px;
  }

  .comments-moon {
    top: 8px;
    right: -20px;
    width: 145px;
    opacity: 0.18;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .form-row > label {
    font-size: 18px;
  }

  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"] {
    height: 48px;
    padding-inline: 14px;
  }

  .comment-form textarea {
    min-height: 150px;
    padding: 14px;
  }

  .comment-form-cookies-consent {
    font-size: 13px;
  }

    .commentbox {
    padding: 22px 18px;
  }

  .commentinfo {
    align-items: flex-start;
    gap: 12px;
  }

  .avatar img {
    width: 54px;
    height: 54px;
  }

  .comment-content {
    padding-left: 0;
  }

  .comment-awaiting-moderation {
    margin-left: 0;
  }

  .comment-navigation {
    flex-direction: column;
    align-items: flex-start;
  }

  .dream-button {
    min-width: 200px;
    min-height: 58px;
    padding: 12px 28px;
    font-size: 20px;
  }

  .footer-decoration {
    width: 145%;
    max-width: none;
    left: -22%;
    bottom: -55px;
    transform: none;
  }

  .site-footer {
    max-width: calc(100% - 24px);
    padding: 7px 14px;
    font-size: 11px;
    line-height: 1.4;
  }

  .page-copy blockquote,
  .wp-block-quote {
    margin: 24px 0;
    padding: 36px 22px 24px;
  }

  .page-copy blockquote::before,
  .wp-block-quote::before {
    left: 14px;
    font-size: 68px;
  }

  .profile-frame {
    width: min(100%, 320px);
    margin: 24px auto 32px;
  }
}

/* Small mobile */
@media (max-width: 500px) {
  .hero {
    min-height: 560px;
  }

  .hero-character.top {
    width: 175%;
  }

  .hero-center {
    padding-top: 120px;
  }

  .moon-decoration {
    display: none;
  }

  .logo {
    width: min(222px, 86vw);
  }

  .nav-item img {
    width: 84px;
  }

  .post-card,
  .page-section {
    border-radius: 16px;
  }

  .post-card {
    padding: 24px 18px 20px;
  }

  .page-section {
    padding: 28px 18px 22px;
  }

  .tags {
    gap: 6px;
  }

  .tag {
    padding: 4px 9px;
    font-size: 11px;
  }

  .comment-badge {
    width: 78px;
  }

  .comments-section {
    padding: 28px 16px 24px;
  }

  .comments-heading h2 {
    font-size: 31px;
  }

  .comment-notes {
    max-width: 100%;
  }

  .comments-moon {
    width: 110px;
    opacity: 0.12;
  }

  .comment-form-cookies-consent {
    align-items: flex-start;
  }

  .dream-button {
    width: 100%;
    min-width: 0;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
