/*
Theme Name: 小鈴隨手記
Theme URI: https://ok.meiling412.com/
Author: 小鈴
Description: 以工具評測、服務比較與聯盟行銷文章為主的輕量內容主題。
	Version: 1.3.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: xiaoling-journal
*/

:root {
  --xl-paper: #f6f0e5;
  --xl-paper-light: #fffaf1;
  --xl-paper-deep: #ebe1d1;
  --xl-ink: #27241f;
  --xl-muted: #6e665d;
  --xl-terracotta: #b85f45;
  --xl-terracotta-dark: #91462f;
  --xl-sage: #68775f;
  --xl-sage-soft: #dbe2d3;
  --xl-honey: #dfaa45;
  --xl-blush: #edd2c3;
  --xl-line: rgba(39, 36, 31, 0.13);
  --xl-shadow: 0 24px 70px rgba(75, 57, 39, 0.12);
  --xl-radius: 26px;
  --xl-serif: "Noto Serif TC", "Songti TC", "PMingLiU", "MS PMincho", Georgia, serif;
  --xl-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --xl-window: min(1140px, calc(100% - clamp(56px, 10vw, 160px)));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--xl-ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(223, 170, 69, 0.16), transparent 26rem),
    radial-gradient(circle at 92% 22%, rgba(104, 119, 95, 0.13), transparent 30rem),
    var(--xl-paper);
  font-family: var(--xl-sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--xl-terracotta-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--xl-terracotta);
}

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

.screen-reader-text {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  clip: auto !important;
  width: auto;
  height: auto;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--xl-paper-light);
  color: var(--xl-ink);
  box-shadow: var(--xl-shadow);
}

.xl-wrap {
  width: var(--xl-window);
  margin-inline: auto;
}

.xl-skip {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--xl-ink);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.xl-skip:focus {
  transform: translateY(0);
  color: #fff;
}

.site-header {
  position: relative;
  z-index: 20;
  padding: 24px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--xl-ink);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--xl-ink);
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: rotate(-5deg);
  border: 1px solid rgba(145, 70, 47, 0.2);
  border-radius: 50% 48% 46% 52%;
  background: var(--xl-blush);
  color: var(--xl-terracotta-dark);
  font-family: var(--xl-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 5px 5px 0 var(--xl-paper-deep);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--xl-serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--xl-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  color: var(--xl-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--xl-terracotta);
  content: "";
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid var(--xl-line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.72);
  color: var(--xl-ink);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before {
  position: absolute;
  top: -6px;
}

.menu-toggle-lines::after {
  position: absolute;
  top: 6px;
}

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

.hero {
  padding: 74px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--xl-sage);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--xl-serif);
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.hero h1 em {
  color: var(--xl-terracotta);
  font-style: normal;
}

.hero-lead {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--xl-muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--xl-ink);
  color: #fffaf1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  background: var(--xl-terracotta-dark);
  color: #fff;
}

.button-secondary {
  border-color: var(--xl-line);
  background: transparent;
  color: var(--xl-ink);
}

.button-secondary:hover {
  border-color: var(--xl-ink);
  background: var(--xl-paper-light);
  color: var(--xl-ink);
}

.hero-note {
  position: relative;
  min-height: 480px;
  padding: 45px 38px 34px;
  transform: rotate(1.5deg);
  border: 1px solid rgba(39, 36, 31, 0.11);
  border-radius: 45% 55% 48% 52% / 6% 7% 5% 8%;
  background:
    linear-gradient(rgba(255, 250, 241, 0.93), rgba(255, 250, 241, 0.93)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(104, 119, 95, 0.16) 31px 32px);
  box-shadow: var(--xl-shadow);
}

.hero-note::before {
  position: absolute;
  z-index: -1;
  top: 20px;
  right: -16px;
  bottom: -16px;
  left: 20px;
  border-radius: inherit;
  background: var(--xl-sage-soft);
  content: "";
}

.note-date {
  color: var(--xl-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.note-title {
  margin: 72px 0 22px;
  font-family: var(--xl-serif);
  font-size: clamp(31px, 3.2vw, 43px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.48;
}

.note-title span {
  position: relative;
  white-space: nowrap;
}

.note-title span::after {
  position: absolute;
  z-index: -1;
  right: -3px;
  bottom: 2px;
  left: -3px;
  height: 10px;
  transform: rotate(-1deg);
  background: rgba(223, 170, 69, 0.45);
  content: "";
}

.note-body {
  margin: 0;
  color: var(--xl-muted);
  font-family: var(--xl-serif);
  font-size: 16px;
}

.note-stamp {
  position: absolute;
  right: 34px;
  bottom: 28px;
  display: grid;
  width: 73px;
  height: 73px;
  place-items: center;
  transform: rotate(-12deg);
  border: 2px solid rgba(184, 95, 69, 0.45);
  border-radius: 50%;
  color: var(--xl-terracotta);
  font-family: var(--xl-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
}

.ticker {
  overflow: hidden;
  padding: 16px 0;
  transform: rotate(-1deg) scale(1.01);
  background: var(--xl-ink);
  color: var(--xl-paper-light);
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  white-space: nowrap;
}

.ticker span {
  font-family: var(--xl-serif);
  font-size: 14px;
  letter-spacing: 0.16em;
}

.ticker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--xl-honey);
}

.section {
  padding: 104px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--xl-terracotta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: var(--xl-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-intro {
  max-width: 560px;
  margin: 0 0 8px;
  color: var(--xl-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  border-bottom: 1px solid currentColor;
  color: var(--xl-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

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

.post-card {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--xl-line);
  border-radius: var(--xl-radius);
  background: rgba(255, 250, 241, 0.74);
}

.post-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px;
}

.post-card:nth-child(2) {
  transform: translateY(26px);
  background: rgba(219, 226, 211, 0.72);
}

.post-card:nth-child(3) {
  background: rgba(237, 210, 195, 0.54);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  color: var(--xl-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.post-card h3 {
  margin: 35px 0 16px;
  font-family: var(--xl-serif);
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 600;
  line-height: 1.5;
}

.post-card h3 a {
  color: var(--xl-ink);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--xl-terracotta-dark);
}

.post-excerpt {
  margin: 0 0 28px;
  color: var(--xl-muted);
  font-size: 15px;
  line-height: 1.8;
}

.post-card .text-link {
  width: fit-content;
  margin-top: auto;
}

.empty-posts {
  padding: 40px;
  border: 1px dashed var(--xl-line);
  border-radius: var(--xl-radius);
  color: var(--xl-muted);
  text-align: center;
}

.work-section {
  position: relative;
}

.work-section::before {
  position: absolute;
  z-index: -1;
  top: 9%;
  right: 0;
  width: 38%;
  height: 70%;
  transform: rotate(2deg);
  border-radius: 64% 36% 45% 55%;
  background: rgba(219, 226, 211, 0.45);
  content: "";
}

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

.work-card {
  padding: 34px 30px 32px;
  border-top: 1px solid var(--xl-ink);
}

.work-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: rotate(-4deg);
  border-radius: 50%;
  background: var(--xl-honey);
  color: var(--xl-ink);
  font-family: var(--xl-serif);
  font-size: 12px;
  font-weight: 700;
}

.work-card h3 {
  margin: 28px 0 14px;
  font-family: var(--xl-serif);
  font-size: 25px;
  font-weight: 600;
}

.work-card p {
  margin: 0;
  color: var(--xl-muted);
  font-size: 15px;
}

.recommend-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  overflow: hidden;
  border-radius: 34px;
  background: var(--xl-ink);
  color: var(--xl-paper-light);
  box-shadow: var(--xl-shadow);
}

.recommend-copy {
  padding: clamp(34px, 6vw, 78px);
}

.recommend-copy .section-kicker {
  color: var(--xl-honey);
}

.recommend-copy h2 {
  max-width: 660px;
  margin: 0;
  font-family: var(--xl-serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.35;
}

.recommend-copy p {
  max-width: 620px;
  margin: 24px 0 30px;
  color: rgba(255, 250, 241, 0.72);
}

.recommend-disclosure {
  margin-top: 26px !important;
  font-size: 11px;
  line-height: 1.7;
}

.recommend-card .button {
  background: var(--xl-honey);
  color: var(--xl-ink);
}

.recommend-card .button:hover {
  background: #f2c66d;
  color: var(--xl-ink);
}

.recommend-art {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  background:
    radial-gradient(circle at 25% 24%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 73%, rgba(255, 255, 255, 0.25) 0 2px, transparent 3px),
    linear-gradient(145deg, var(--xl-terracotta) 0 48%, var(--xl-blush) 48% 100%);
  background-size: 42px 42px, 56px 56px, auto;
}

.recommend-art::before {
  display: grid;
  width: 50%;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(7deg);
  border: 1px solid rgba(39, 36, 31, 0.25);
  border-radius: 42% 58% 49% 51%;
  background: var(--xl-paper-light);
  color: var(--xl-ink);
  content: "Fiverr";
  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  box-shadow: 16px 20px 0 rgba(39, 36, 31, 0.13);
}

.about-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}

.about-illustration {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
  overflow: hidden;
  border-radius: 160px 160px 36px 36px;
  background: var(--xl-blush);
}

.about-illustration::before,
.about-illustration::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.about-illustration::before {
  top: 8%;
  right: -12%;
  width: 48%;
  aspect-ratio: 1;
  background: rgba(223, 170, 69, 0.5);
}

.about-illustration::after {
  bottom: 7%;
  left: -10%;
  width: 45%;
  aspect-ratio: 1;
  background: rgba(104, 119, 95, 0.5);
}

.about-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  transform: rotate(-6deg);
  border: 1px solid rgba(39, 36, 31, 0.22);
  border-radius: 46% 54% 43% 57%;
  background: var(--xl-paper-light);
  color: var(--xl-terracotta-dark);
  font-family: var(--xl-serif);
  font-size: 66px;
  font-weight: 700;
  box-shadow: 18px 20px 0 rgba(39, 36, 31, 0.12);
}

.about-copy h2 {
  margin: 0 0 24px;
  font-family: var(--xl-serif);
  font-size: clamp(34px, 4vw, 55px);
  font-weight: 600;
  line-height: 1.4;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--xl-muted);
}

.site-footer {
  margin-top: 30px;
  padding: 62px 0 28px;
  border-top: 1px solid var(--xl-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(130px, 0.45fr));
  gap: 46px;
}

.footer-title {
  margin: 0 0 14px;
  font-family: var(--xl-serif);
  font-size: 29px;
  font-weight: 600;
}

.footer-copy {
  max-width: 440px;
  margin: 0;
  color: var(--xl-muted);
  font-size: 14px;
}

.footer-label {
  margin: 0 0 14px;
  color: var(--xl-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  width: fit-content;
  color: var(--xl-ink);
  font-size: 14px;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--xl-line);
  color: var(--xl-muted);
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

.page-hero {
  padding: 70px 0 64px;
  border-bottom: 1px solid var(--xl-line);
}

.page-hero .eyebrow {
  margin-bottom: 18px;
}

.page-title {
  max-width: 860px;
  margin: 0;
  font-family: var(--xl-serif);
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.single .page-title {
  max-width: 790px;
}

.page-description {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--xl-muted);
  font-size: 18px;
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 30px;
  padding: 70px 0 100px;
}

.content-shell.no-sidebar {
  display: block;
  max-width: 840px;
  margin-inline: auto;
}

.entry-content {
  max-width: 760px;
  font-size: 17px;
}

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

.entry-content h2 {
  margin: 2.2em 0 0.65em;
  font-family: var(--xl-serif);
  font-size: clamp(29px, 3.2vw, 39px);
  font-weight: 600;
  line-height: 1.45;
}

.entry-content h3 {
  margin: 1.8em 0 0.55em;
  font-family: var(--xl-serif);
  font-size: 25px;
  font-weight: 600;
}

.entry-content p,
.entry-content li {
  color: #4d4840;
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 25px 28px;
  border: 0;
  border-left: 3px solid var(--xl-terracotta);
  border-radius: 0 18px 18px 0;
  background: rgba(237, 210, 195, 0.45);
  color: var(--xl-ink);
  font-family: var(--xl-serif);
  font-size: 20px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}

.entry-content a {
  color: var(--xl-terracotta-dark);
  font-weight: 600;
}

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

.entry-content .wp-block-buttons {
  margin-top: 30px;
}

.entry-content .wp-block-button__link {
  background: var(--xl-ink);
}

.entry-content table {
  width: 100%;
  margin: 1.8em 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  padding: 13px 14px;
  border: 1px solid var(--xl-line);
  vertical-align: top;
  text-align: left;
}

.entry-content th {
  background: var(--xl-sage-soft);
  color: var(--xl-ink);
  font-weight: 700;
}

.entry-content tr:nth-child(even) td {
  background: rgba(255, 250, 241, 0.55);
}

.quick-facts,
.affiliate-cta {
  margin: 2em 0;
  padding: 26px 28px;
  border-radius: 20px;
}

.quick-facts {
  border: 1px solid var(--xl-line);
  background: rgba(219, 226, 211, 0.46);
}

.quick-facts h2,
.affiliate-cta h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.quick-facts ul {
  margin-bottom: 0;
}

.affiliate-cta {
  border: 1px solid rgba(145, 70, 47, 0.22);
  background: rgba(237, 210, 195, 0.56);
}

.affiliate-cta p:last-child {
  margin-bottom: 0;
}

.affiliate-cta .wp-block-button {
  margin-top: 18px;
}

.price-note {
  color: var(--xl-muted);
  font-size: 12px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  color: var(--xl-muted);
  font-size: 12px;
}

.entry-sidebar {
  position: sticky;
  top: 28px;
  padding-top: 8px;
}

.entry-sidebar::before {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--xl-terracotta);
  content: "";
}

.sidebar-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--xl-line);
}

.sidebar-section:first-of-type {
  padding-top: 0;
}

.sidebar-title {
  margin: 0 0 14px;
  color: var(--xl-ink);
  font-family: var(--xl-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sidebar-categories,
.sidebar-recent {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-categories li {
  color: var(--xl-muted);
  font-size: 15px;
  line-height: 1.55;
}

.sidebar-categories a,
.sidebar-recent a,
.sidebar-note a {
  color: var(--xl-ink);
  text-decoration: none;
}

.sidebar-categories a:hover,
.sidebar-recent a:hover,
.sidebar-note a:hover {
  color: var(--xl-terracotta);
}

.sidebar-categories .count {
  color: var(--xl-muted);
  font-size: 12px;
}

.sidebar-recent {
  counter-reset: recent-post;
}

.sidebar-recent li {
  counter-increment: recent-post;
  display: grid;
  gap: 4px;
  padding-left: 26px;
  position: relative;
}

.sidebar-recent li::before {
  position: absolute;
  left: 0;
  color: var(--xl-terracotta);
  content: counter(recent-post, decimal-leading-zero);
  font: 700 10px/1.8 var(--xl-sans);
}

.sidebar-recent a {
  font-family: var(--xl-serif);
  font-size: 16px;
  line-height: 1.6;
}

.sidebar-recent time {
  color: var(--xl-muted);
  font-size: 12px;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sidebar-tags a {
  padding: 8px 12px;
  border: 1px solid var(--xl-line);
  border-radius: 999px;
  color: var(--xl-muted);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
}

.sidebar-tags a:hover {
  border-color: var(--xl-terracotta);
  color: var(--xl-terracotta);
}

.sidebar-note {
  border-bottom: 0;
}

.entry-sidebar p {
  margin: 0;
  color: var(--xl-muted);
  font-family: var(--xl-serif);
  font-size: 15px;
  line-height: 1.8;
}

.sidebar-note a {
  display: inline-block;
  margin-top: 12px;
  color: var(--xl-terracotta);
  font-size: 14px;
  font-weight: 700;
}

.sidebar-empty {
  font-size: 12px !important;
}

.disclosure-box {
  margin-top: 46px;
  padding: 24px 26px;
  border: 1px solid var(--xl-line);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.64);
  color: var(--xl-muted);
  font-size: 13px;
  line-height: 1.8;
}

.disclosure-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--xl-ink);
}

.entry-content .editor-note {
  margin-top: 2.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--xl-line);
  color: var(--xl-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.entry-content .editor-note strong {
  color: inherit;
  font-weight: 600;
}

.post-card-image,
.archive-thumb {
  display: block;
  overflow: hidden;
  background: #e8dfd0;
}

.post-card-image {
  aspect-ratio: 16 / 9;
  margin: -26px -26px 24px;
}

.post-card-image img,
.archive-thumb img,
.entry-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.post-card-image img {
  transition: transform 240ms ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.025);
}

.archive-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
}

.archive-thumb img {
  height: 100%;
  object-fit: cover;
}

.entry-hero-media {
  margin: 0 0 2.4rem;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(34, 35, 33, 0.12);
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--xl-line);
}

.post-navigation a {
  color: var(--xl-ink);
  text-decoration: none;
}

.post-navigation span {
  display: block;
  margin-bottom: 7px;
  color: var(--xl-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.post-navigation .nav-next {
  text-align: right;
}

.archive-list {
  display: grid;
  gap: 0;
  padding: 60px 0 90px;
}

.archive-item {
  display: grid;
  grid-template-columns: 120px minmax(150px, 230px) minmax(0, 1fr);
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid var(--xl-line);
}

.archive-item time {
  color: var(--xl-muted);
  font-family: var(--xl-serif);
  font-size: 13px;
}

.archive-item h2 {
  margin: 0 0 10px;
  font-family: var(--xl-serif);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.4;
}

.archive-item h2 a {
  color: var(--xl-ink);
  text-decoration: none;
}

.archive-item p {
  max-width: 720px;
  margin: 0;
  color: var(--xl-muted);
}

.not-found {
  min-height: 62vh;
  padding: 100px 0;
  text-align: center;
}

.not-found-code {
  margin: 0;
  color: var(--xl-blush);
  font-family: var(--xl-serif);
  font-size: clamp(110px, 20vw, 240px);
  font-weight: 700;
  line-height: 1;
}

.not-found h1 {
  margin: -22px 0 20px;
  font-family: var(--xl-serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
}

.not-found p {
  margin: 0 auto 30px;
  color: var(--xl-muted);
}

.recommendations-hero {
  padding-bottom: 30px;
}

.recommendations-note {
  max-width: 830px;
  margin: 0 auto 24px;
  padding: 22px 26px;
  border: 1px solid var(--xl-line);
  border-radius: 18px;
  background: rgba(219, 226, 211, 0.44);
  color: var(--xl-muted);
  font-size: 13px;
}

.wp-block-group,
.wp-block-columns,
.wp-block-media-text {
  margin-top: 1.4em;
  margin-bottom: 1.4em;
}

.wp-block-separator {
  border-color: var(--xl-line);
}

@media (max-width: 980px) {
  :root {
    --xl-window: min(100% - 48px, 780px);
  }

  .site-header {
    padding: 18px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 80px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 20px;
    border: 1px solid var(--xl-line);
    border-radius: 20px;
    background: var(--xl-paper-light);
    box-shadow: var(--xl-shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--xl-line);
  }

  .primary-nav li:last-child {
    border-bottom: 0;
  }

  .primary-nav a {
    display: block;
    padding: 13px 4px;
  }

  .primary-nav a::after {
    display: none;
  }

  .hero {
    padding: 48px 0 82px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-note {
    width: min(100%, 500px);
    min-height: 420px;
    margin-inline: auto;
  }

  .post-grid,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .post-card:nth-child(2) {
    transform: none;
  }

  .post-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .recommend-card,
  .about-strip {
    grid-template-columns: 1fr;
  }

  .recommend-art {
    min-height: 300px;
  }

  .about-illustration {
    min-height: 380px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --xl-window: calc(100% - 32px);
  }

  body {
    font-size: 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .brand-title {
    font-size: 20px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 68px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-note {
    min-height: 370px;
    padding: 34px 25px 28px;
  }

  .note-title {
    margin-top: 52px;
    font-size: 31px;
  }

  .note-stamp {
    right: 22px;
    bottom: 20px;
    width: 62px;
    height: 62px;
    font-size: 11px;
  }

  .ticker {
    padding: 13px 0;
  }

  .ticker-inner {
    justify-content: flex-start;
    padding-inline: 16px;
    animation: xl-marquee 20s linear infinite;
  }

  @keyframes xl-marquee {
    to {
      transform: translateX(-38%);
    }
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    margin-bottom: 30px;
  }

  .post-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    min-height: 315px;
  }

  .post-card:nth-child(3) {
    grid-column: auto;
  }

  .recommend-copy {
    padding: 34px 25px;
  }

  .recommend-art {
    min-height: 240px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 20px;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-grid > :last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .page-hero {
    padding: 48px 0 44px;
  }

  .content-shell {
    display: block;
    padding: 48px 0 76px;
  }

  .entry-sidebar {
    position: static;
    margin-top: 38px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(219, 226, 211, 0.36);
  }

  .archive-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .quick-facts,
  .affiliate-cta {
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
