/*
Theme Name: Newbie Warm Journal
Theme URI: https://newbie.wedding/
Description: 為「婚禮新手村」設計的溫暖雜誌感 Twenty Twenty-Five 子主題，聚焦婚禮攻略與婚禮素材商店。
Author: Wedding Newbie
Author URI: https://newbie.wedding/
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: newbie-warm-journal
*/

:root {
  --nw-ink: #2f2925;
  --nw-paper: #fbf7f1;
  --nw-cream: #f1e5d5;
  --nw-terracotta: #a7523f;
  --nw-wine: #71372f;
  --nw-gold: #bd8a4d;
  --nw-line: #dbcdbd;
}

html { scroll-behavior: smooth; }

body {
  background: var(--nw-paper);
  color: var(--nw-ink);
  text-rendering: optimizeLegibility;
}

a { text-underline-offset: .18em; }

.wp-site-blocks { overflow: hidden; }

.nw-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.nw-topline {
  border-bottom: 1px solid var(--nw-line);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nw-header {
  background: color-mix(in srgb, var(--nw-paper) 94%, transparent);
  border-bottom: 1px solid var(--nw-line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nw-wordmark { line-height: .9; }
.nw-wordmark a { text-decoration: none; }
.nw-wordmark small {
  display: block;
  font-family: var(--wp--preset--font-family--sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  margin-top: .5rem;
  text-transform: uppercase;
}

.nw-nav .wp-block-navigation-item__content {
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.nw-hero {
  border-bottom: 1px solid var(--nw-line);
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.nw-hero::before {
  background:
    radial-gradient(circle at 86% 18%, rgba(189,138,77,.26), transparent 27%),
    linear-gradient(135deg, transparent 48%, rgba(113,55,47,.08) 48% 49%, transparent 49%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.nw-issue {
  border-block: 1px solid var(--nw-line);
  color: var(--nw-wine);
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  padding: .5rem 0;
  text-transform: uppercase;
}

.nw-display {
  font-size: clamp(3.2rem, 8vw, 7rem) !important;
  letter-spacing: -.055em;
  line-height: .93 !important;
  max-width: 920px;
}

.nw-display em { color: var(--nw-terracotta); font-weight: 400; }

.nw-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.85; max-width: 660px; }

.nw-button .wp-block-button__link {
  border: 1px solid var(--nw-ink);
  box-shadow: 5px 5px 0 var(--nw-gold);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .06em;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nw-button .wp-block-button__link:hover { box-shadow: 2px 2px 0 var(--nw-gold); transform: translate(3px,3px); }

.nw-section { padding-block: clamp(4rem, 8vw, 7rem); }
.nw-section-kicker { color: var(--nw-terracotta); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.nw-rule-title { align-items: end; border-bottom: 1px solid var(--nw-line); padding-bottom: 1.2rem; }
.nw-rule-title h2 { margin: 0; }

.nw-post-grid .wp-block-post {
  border-top: 1px solid var(--nw-line);
  padding-top: 1.25rem;
}
.nw-post-grid .wp-block-post-featured-image { aspect-ratio: 4/3; overflow: hidden; }
.nw-post-grid .wp-block-post-featured-image img { height: 100%; object-fit: cover; transition: transform .5s ease; }
.nw-post-grid .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.025); }
.nw-post-grid .wp-block-post-title { line-height: 1.25; }
.nw-post-grid .wp-block-post-title a { text-decoration: none; }
.nw-post-grid .wp-block-post-date,
.nw-post-grid .wp-block-post-terms { color: #766b62; font-size: .76rem; letter-spacing: .06em; }

.nw-shop-panel {
  background: var(--nw-wine);
  color: #fffaf3;
  min-height: 430px;
  overflow: hidden;
  position: relative;
}
.nw-shop-panel::after {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  content: "";
  height: 430px;
  position: absolute;
  right: -100px;
  top: -165px;
  width: 430px;
}
.nw-shop-number { color: var(--nw-gold); font-family: var(--wp--preset--font-family--serif); font-size: 5rem; line-height: 1; }

.nw-category-row .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--nw-line);
  color: var(--nw-ink);
  font-size: .84rem;
}

.nw-footer { background: #2f2925; color: #f8efe4; }
.nw-footer a { color: inherit; }

.nw-content { max-width: 760px; }
.nw-content > * + * { margin-block-start: 1.5em; }

@media (max-width: 781px) {
  .nw-shell { width: min(100% - 28px, 1180px); }
  .nw-topline { display: none; }
  .nw-header { position: relative; }
  .nw-hero { min-height: auto; }
  .nw-display { font-size: clamp(3rem, 17vw, 5rem) !important; }
  .nw-post-grid .wp-block-post-template { grid-template-columns: 1fr !important; }
  .nw-rule-title { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
