/*
Theme Name: Weekend Local
Author: Staqon
Description: 지역별 주말 나들이 정보를 위한 독립 WordPress 블록 테마.
Version: 0.1.3
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: weekend-local
*/

:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { text-underline-offset: .18em; }
.wp-site-blocks { overflow-x: clip; }
.site-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #e6e8e4; }
.site-header .wp-block-group { align-items: center; }
.site-hero { position: relative; overflow: hidden; border-radius: 28px; background: #e8f1ea; min-height: 380px; }
.site-hero::before { content: ""; position: absolute; width: 48%; height: 100%; right: 0; top: 0; background: url(assets/weekend-note-hero.svg) center / contain no-repeat; }
.site-hero::after { content: ""; position: absolute; width: 440px; height: 170px; right: -5%; bottom: -135px; background: #d5a274; border-radius: 50%; transform: rotate(-20deg); opacity: .55; }
.hero-copy { position: relative; z-index: 1; max-width: 660px; padding: clamp(36px, 6vw, 80px); }
.hero-kicker { color: #2f6b55; font-weight: 700; letter-spacing: .08em; }
.hero-copy h1 { max-width: 12ch; font-size: clamp(2.35rem, 5.2vw, 4.8rem); line-height: 1.12; letter-spacing: -.045em; word-break: keep-all; }
.hero-copy p { max-width: 36rem; }
.home-search { margin: 44px auto 0; }
.home-search .wp-block-search__inside-wrapper { border: 1px solid #ced8cf; border-radius: 14px; overflow: hidden; background: white; }
.home-search .wp-block-search__input { min-width: 0; padding: 16px; border: 0; }
.home-search .wp-block-search__button { margin: 0; border: 0; border-radius: 0; background: #235947; color: white; padding-inline: 24px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; }
.category-card { display: flex; flex-direction: column; min-height: 155px; padding: 23px; border: 1px solid #dfe6de; border-radius: 20px; background: #fff; color: #192f27; text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.category-card:hover, .category-card:focus-visible { transform: translateY(-3px); border-color: #8db59f; box-shadow: 0 12px 24px #22463114; }
.category-card.is-empty { cursor: default; }
.category-card.is-empty:hover { transform: none; box-shadow: none; border-color: #dfe6de; }
.category-card strong { font-size: 1.2rem; }
.category-card span { margin-top: 12px; color: #52615a; line-height: 1.5; }
.category-card b { margin-top: auto; padding-top: 16px; color: #287254; }
.latest-grid .wp-block-post { border: 1px solid #e1e8e2; border-radius: 18px; overflow: hidden; background: #fff; }
.latest-grid .wp-block-post-featured-image { margin: 0; }
.latest-grid .wp-block-post-title, .latest-grid .wp-block-post-excerpt, .latest-grid .wp-block-post-date { margin-left: 18px; margin-right: 18px; }
.latest-grid .wp-block-post-title { margin-top: 18px; }
.latest-grid .wp-block-post-date { margin-bottom: 20px; color: #66726b; }
.latest-section { margin-top: 76px; }
.latest-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.latest-card { overflow: hidden; border: 1px solid #e1e8e2; border-radius: 18px; background: #fff; }
.latest-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.latest-card-copy { padding: 18px; }
.latest-card-copy h3 { margin: 0 0 10px; font-size: 1.16rem; line-height: 1.4; }
.latest-card-copy p { margin: 0 0 12px; color: #52615a; }
.latest-card-copy time { color: #66726b; font-size: .86rem; }
.site-footer { border-top: 1px solid #e6e8e4; margin-top: 80px; }
.site-footer .site-wrap { gap: 22px; }
.site-footer .wp-block-site-title { margin-bottom: 0; }
.site-footer .wp-block-site-title + p { margin-top: 4px; color: #67736b; font-size: .91rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; margin: 0; font-size: .91rem; }
.footer-links a { color: #52615a; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: #235947; text-decoration: underline; }
.about-wrap { width: min(1040px, calc(100vw - 40px)); max-width: none; position: relative; left: 50%; transform: translateX(-50%); margin: 24px 0 0; }
.about-eyebrow { margin: 0 0 14px; color: #39755e; font-size: .82rem; font-weight: 750; letter-spacing: .12em; }
.about-intro { padding: 48px 0 38px; }
.about-intro h2 { margin: 0; max-width: 16ch; font-size: clamp(2.3rem, 5.4vw, 4.5rem); line-height: 1.18; letter-spacing: -.055em; word-break: keep-all; }
.about-intro p:last-child { max-width: 680px; margin: 25px 0 0; color: #4e5c54; font-size: 1.08rem; line-height: 1.82; word-break: keep-all; }
.about-visual { margin: 0; }
.about-visual img { display: block; width: 100%; height: auto; max-height: 530px; object-fit: cover; object-position: 50% 53%; border-radius: 26px; }
.about-visual figcaption { margin-top: 10px; color: #78847b; font-size: .78rem; text-align: right; }
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; padding: 86px 0 70px; border-bottom: 1px solid #dce4dd; }
.about-story h2, .about-method h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.35; letter-spacing: -.035em; word-break: keep-all; }
.about-story-copy p { margin: 0 0 18px; color: #45564b; line-height: 1.9; word-break: keep-all; }
.about-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 46px 0 78px; }
.about-pillar { padding: 24px 20px; background: #edf3eb; border-radius: 17px; }
.about-pillar span { display: block; margin-bottom: 14px; color: #468064; font-size: .83rem; font-weight: 700; }
.about-pillar h3 { margin: 0 0 10px; font-size: 1.1rem; }
.about-pillar p { margin: 0; color: #536259; font-size: .91rem; line-height: 1.7; word-break: keep-all; }
.about-method { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; padding: 48px; background: #e7ede6; border-radius: 24px; }
.about-method p { margin: 0 0 16px; color: #3e5144; line-height: 1.85; word-break: keep-all; }
.about-method p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .latest-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .about-story, .about-method { grid-template-columns: 1fr; gap: 22px; } .about-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .site-wrap { width: min(100% - 28px, 1160px); } .site-hero { min-height: 370px; border-radius: 20px; } .site-hero::before { width: 75%; height: 230px; right: -65px; top: 160px; opacity: .32; } .site-hero::after { right: -130px; } .hero-copy { padding: 28px; } .hero-copy h1 { font-size: clamp(2.15rem, 10vw, 3.3rem); } .category-grid, .latest-cards { grid-template-columns: 1fr; } .category-card { min-height: 110px; } .home-search .wp-block-search__button { padding-inline: 16px; } .about-wrap { width: calc(100vw - 28px); } .about-intro { padding: 26px 0 28px; } .about-intro h2 { font-size: clamp(2.05rem, 9vw, 3.25rem); } .about-intro p:last-child { font-size: 1rem; } .about-visual img { min-height: 240px; border-radius: 18px; } .about-story { padding: 58px 0 38px; } .about-pillars { gap: 10px; padding: 32px 0 54px; } .about-pillar { padding: 17px; } .about-method { padding: 26px; } .footer-links { gap: 18px; } }
