/*
Theme Name: NewNew Lilypad
Theme URI: https://www.rosemaryindream.net/
Author: Rosemary in Dream
Description: A quiet text-first seasonal theme for Rosemary in Dream.
Version: 0.1.1
Requires at least: 6.0
Tested up to: 6.9
Text Domain: newnew-lilypad
*/

:root {
  --ink: #262a25;
  --muted-ink: #677065;
  --quiet-ink: #879386;
  --line: rgba(101, 122, 103, 0.2);
  --sage: #667b62;
  --shadow: rgba(56, 67, 55, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #dfece4;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  line-height: 1.82;
  letter-spacing: 0;
  background:
    linear-gradient(rgba(235, 245, 238, 0.08), rgba(244, 238, 226, 0.16)),
    url("assets/season-summer.png") center / cover fixed no-repeat;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 251, 229, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(210, 226, 236, 0.16), transparent 26rem),
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(229, 241, 231, 0.08));
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #496244;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(1080px, calc(100vw - 64px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 54px 0;
  display: flex;
  align-items: flex-start;
}

.glass-page {
  width: 100%;
  min-height: calc(100vh - 108px);
  border: 1px solid rgba(126, 142, 123, 0.26);
  background:
    linear-gradient(110deg, rgba(255, 254, 249, 0.58), rgba(244, 250, 244, 0.36)),
    rgba(255, 253, 247, 0.42);
  box-shadow: 0 22px 64px var(--shadow);
  backdrop-filter: blur(10px) saturate(112%);
}

.site-header {
  min-height: 92px;
  padding: 26px 40px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-size: clamp(1.95rem, 2.7vw, 2.55rem);
  line-height: 1.1;
  font-weight: 400;
}

.brand-subtitle {
  color: var(--muted-ink);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted-ink);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 0.82rem;
}

.icon-button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--sage);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus {
  background: rgba(102, 123, 98, 0.1);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 720px;
}

.post-stream,
.entry-area {
  min-width: 0;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 24px;
  padding: 34px 40px 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 249, 0.08);
}

.post-card.no-thumbnail {
  grid-template-columns: minmax(0, 1fr);
}

.post-copy {
  max-width: 760px;
}

.post-kicker,
.post-card time,
.post-card figcaption,
.link-list span,
.year-list span,
.track-meta span,
.entry-meta {
  color: var(--quiet-ink);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}

.post-kicker {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h1,
.post-card h2,
.entry-title {
  margin: 0;
  line-height: 1.3;
  font-weight: 500;
}

.post-card h1 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
}

.post-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.post-card time {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
}

.post-card p {
  margin: 22px 0 0;
  color: #444d46;
  font-size: 1.02rem;
}

.read-more {
  display: inline-flex;
  margin-top: 24px;
  color: var(--sage);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 0.88rem;
}

.post-image {
  align-self: start;
  margin: 12px 0 0;
}

.post-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(108, 128, 105, 0.12);
  opacity: 0.62;
}

.post-card figcaption {
  margin-top: 8px;
  color: var(--quiet-ink);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 0.68rem;
  text-align: right;
}

.entry-area {
  padding: 42px 48px 56px;
  border-bottom: 1px solid var(--line);
}

.entry-title {
  max-width: 760px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.entry-meta {
  margin-top: 10px;
  font-size: 0.82rem;
}

.entry-content {
  max-width: 760px;
  margin-top: 34px;
  color: #3f4942;
  font-size: 1.04rem;
}

.entry-content p {
  margin: 0 0 1.35em;
}

.entry-content blockquote {
  margin: 2em 0;
  padding-left: 1.2em;
  border-left: 1px solid rgba(102, 123, 98, 0.3);
  color: #566052;
}

.entry-content a {
  color: #4e6d49;
  border-bottom: 1px solid rgba(78, 109, 73, 0.22);
}

.entry-content img {
  margin: 1em 0;
}

.entry-footer {
  max-width: 760px;
  margin-top: 34px;
  color: var(--quiet-ink);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 0.78rem;
}

.pagination {
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--sage);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 0.9rem;
}

.side-panel {
  border-left: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.12);
  padding: 32px 28px;
}

.sidebar-section + .sidebar-section {
  margin-top: 30px;
}

.sidebar-section h2,
.search-box label {
  display: block;
  margin: 0 0 16px;
  color: #4f5f4d;
  font-size: 1rem;
  font-weight: 500;
}

.search-row {
  height: 34px;
  display: grid;
  grid-template-columns: 1fr 28px;
  border-bottom: 1px solid rgba(88, 108, 86, 0.28);
}

.search-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.link-list,
.tag-list,
.year-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-list li {
  margin: 0 0 15px;
}

.link-list a {
  display: block;
  color: #4f584f;
  font-size: 0.92rem;
  line-height: 1.4;
}

.link-list span {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
}

.music-widget {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(102, 123, 98, 0.16);
  border-bottom: 1px solid rgba(102, 123, 98, 0.16);
}

.play-button {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(102, 123, 98, 0.3);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--sage);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.play-button span {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.play-button::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  content: "";
}

.play-button[aria-pressed="true"]::before {
  width: 8px;
  height: 10px;
  margin-left: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.track-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}

.track-meta strong {
  overflow: hidden;
  color: #4b5649;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-meta span {
  font-size: 0.68rem;
}

.progress {
  height: 1px;
  margin-top: 8px;
  background: rgba(102, 123, 98, 0.24);
}

.progress span {
  display: block;
  width: 0;
  height: 1px;
  background: rgba(71, 91, 68, 0.72);
}

.quiet-index {
  color: var(--quiet-ink);
}

.quiet-index h2 {
  margin-bottom: 10px;
  color: #7a8678;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.tag-list a,
.year-list a,
.year-list span {
  color: #7f8a7d;
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-size: 0.74rem;
}

.year-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(102, 123, 98, 0.08);
  padding: 4px 0;
}

.empty-message {
  padding: 42px 48px;
}

.rosemary-music-player[data-rosemary-music-player] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100%, calc(100vw - 24px));
    padding: 18px 0;
  }

  .glass-page {
    min-height: calc(100vh - 36px);
  }

  .site-header {
    padding: 24px 22px 20px;
    gap: 18px;
  }

  .top-nav {
    gap: 14px;
    font-size: 0.78rem;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 178px;
  }

  .post-card,
  .post-card.no-thumbnail {
    grid-template-columns: 1fr;
    padding: 34px 22px;
  }

  .post-card p {
    font-size: 0.96rem;
  }

  .post-image {
    width: 128px;
    margin: 4px 0 0;
  }

  .side-panel {
    padding: 28px 18px;
  }

  .tag-list {
    display: grid;
    gap: 4px;
  }

  .entry-area {
    padding: 34px 24px 44px;
  }
}

@media (max-width: 500px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
