/*
Theme Name: Rowans Itda
Theme URI: https://rowans.kr/
Author: Rowans
Author URI: https://rowans.kr/
Description: 로완스의 블로그 스킨, 홈페이지 디자인, 워드프레스 제작을 위한 라일락 에디토리얼 테마입니다.
Version: 3.0.2
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rowans-itda
*/

:root {
  --rw-ink: #211b35;
  --rw-ink-soft: #5c5673;
  --rw-violet: #5e55df;
  --rw-blue: #4664dc;
  --rw-lilac: #aaa3f3;
  --rw-lilac-soft: #ebe8fa;
  --rw-line: #d9d5ed;
  --rw-paper: #f7f5fb;
  --rw-card: #ffffff;
  --rw-white: #ffffff;
  --rw-dark: #171322;
  --rw-shadow: 0 24px 70px rgba(34, 26, 63, .11);
  --rw-radius: 20px;
  --rw-serif: "Noto Serif KR", "Apple Myungjo", Batang, Georgia, serif;
  --rw-sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rw-paper);
  color: var(--rw-ink);
  font-family: var(--rw-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
.serif { font-family: var(--rw-serif); }
.wrap { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.narrow-wrap { width: min(820px, calc(100% - 56px)); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 1000; top: 14px; left: 14px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--rw-card); border-radius: 8px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--rw-violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--rw-white); background: linear-gradient(135deg, var(--rw-violet), var(--rw-blue)); box-shadow: 0 14px 30px rgba(74, 81, 214, .23); }
.btn-ghost { color: var(--rw-ink); border-color: var(--rw-line); background: rgba(255, 255, 255, .34); }
.btn-ghost:hover { color: var(--rw-violet); border-color: var(--rw-violet); }
.btn-light { color: var(--rw-ink); background: var(--rw-white); }
.text-link, .card-link, .back-link { color: var(--rw-violet); font-size: 14px; font-weight: 700; }
.text-link:hover, .card-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--rw-paper) 88%, transparent);
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--rw-line); box-shadow: 0 10px 35px rgba(30, 23, 51, .05); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(1240px, calc(100% - 48px)); min-height: 78px; margin-inline: auto; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark-name { font-size: 20px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.wordmark-sub { margin-top: 7px; color: var(--rw-ink-soft); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.custom-logo-link img { width: auto; max-height: 42px; }
.main-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 30px; flex: 1; }
.primary-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-menu li { position: relative; }
.primary-menu a { display: inline-flex; padding: 8px 0; color: var(--rw-ink-soft); font-size: 14px; font-weight: 600; }
.primary-menu a:hover { color: var(--rw-violet); }
.primary-menu .sub-menu { display: none; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.write-link { display: inline-flex; align-items: center; gap: 4px; color: var(--rw-violet); font-size: 13px; font-weight: 700; }
.menu-toggle { display: none; align-items: center; gap: 10px; padding: 8px 0; border: 0; color: var(--rw-ink); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.menu-toggle i, .menu-toggle i::before { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .2s ease; }
.menu-toggle i { position: relative; }
.menu-toggle i::before { content: ""; position: absolute; top: -6px; }
.menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::before { top: 0; transform: rotate(90deg); }

/* Shared sections */
.section { padding: 112px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.3; font-weight: 600; }
.split-head { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: end; max-width: none; }
.split-head > p { margin: 0 0 4px; color: var(--rw-ink-soft); }
.recent-head { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 32px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 84px; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; top: -260px; right: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(94, 85, 223, .18), transparent 68%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 70px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(42px, 5.4vw, 68px); line-height: 1.22; font-weight: 600; letter-spacing: -.035em; }
.hero .lead { max-width: 44em; margin: 26px 0 34px; color: var(--rw-ink-soft); font-size: 18px; line-height: 1.8; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; color: var(--rw-ink-soft); font-size: 12px; }
.hero-note span { color: var(--rw-violet); font-family: var(--rw-serif); font-weight: 700; }
.hero-art { position: relative; min-height: 470px; }
.art-orbit { position: absolute; width: 390px; height: 390px; top: 22px; right: 22px; border: 1px solid var(--rw-line); border-radius: 50%; }
.art-orbit::before, .art-orbit::after { content: ""; position: absolute; inset: 45px; border: inherit; border-radius: inherit; }
.art-orbit::after { inset: 105px; }
.mock { position: absolute; overflow: hidden; border: 1px solid var(--rw-line); border-radius: 18px; background: var(--rw-card); box-shadow: var(--rw-shadow); }
.mock-browser { width: 72%; left: 0; top: 10px; transform: rotate(-3deg); }
.mock-top { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--rw-line); }
.mock-top span { width: 7px; height: 7px; border-radius: 50%; background: var(--rw-line); }
.mock-layout { padding: 22px; }
.mock-kicker { width: 80px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--rw-violet), var(--rw-blue)); }
.mock-title { width: 86%; height: 14px; margin-top: 18px; border-radius: 5px; background: var(--rw-lilac-soft); }
.mock-title.short { width: 58%; margin-top: 8px; }
.mock-image { height: 152px; margin-top: 22px; border-radius: 12px; background: linear-gradient(135deg, #dcd8f8, #7870e6); }
.mock-card { width: 58%; right: 0; bottom: 42px; padding: 26px; transform: rotate(4deg); background: linear-gradient(145deg, var(--rw-violet), var(--rw-blue)); color: #fff; }
.mock-label { font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.mock-lines { display: grid; gap: 8px; margin-top: 54px; }
.mock-lines i { display: block; width: 100%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.35); }
.mock-lines i:nth-child(2) { width: 78%; }
.mock-lines i:nth-child(3) { width: 45%; }
.art-badge { position: absolute; top: 210px; right: 10px; display: grid; place-items: center; width: 98px; height: 98px; border-radius: 50%; color: var(--rw-violet); background: var(--rw-card); box-shadow: var(--rw-shadow); font-size: 10px; font-weight: 800; line-height: 1.25; text-align: center; letter-spacing: .12em; }

/* Services */
.services-section { background: var(--rw-card); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card { position: relative; min-height: 360px; padding: 34px 30px; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); background: var(--rw-paper); transition: transform .2s ease, box-shadow .2s ease; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--rw-shadow); }
.svc-card.featured { color: #fff; border-color: transparent; background: linear-gradient(155deg, var(--rw-violet), var(--rw-blue)); }
.card-num { display: block; margin-bottom: 74px; color: var(--rw-violet); font-family: var(--rw-serif); font-size: 14px; font-weight: 700; }
.featured .card-num { color: rgba(255,255,255,.75); }
.svc-card h3 { margin-bottom: 12px; font-size: 22px; }
.svc-card p { color: var(--rw-ink-soft); font-size: 14px; }
.featured p, .featured .svc-list { color: rgba(255,255,255,.78); }
.svc-list { display: grid; gap: 7px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rw-line); color: var(--rw-ink-soft); list-style: none; font-size: 13px; }
.featured .svc-list { border-color: rgba(255,255,255,.22); }
.svc-list li::before { content: "·"; margin-right: 8px; color: var(--rw-violet); font-weight: 900; }
.featured .svc-list li::before { color: #fff; }

/* Process */
.process-section { background: var(--rw-lilac-soft); }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.proc-grid li { min-height: 220px; padding: 28px 26px; border-top: 1px solid var(--rw-line); border-right: 1px solid var(--rw-line); }
.proc-grid li:last-child { border-right: 0; }
.proc-grid span { color: var(--rw-violet); font-family: var(--rw-serif); font-size: 13px; font-weight: 700; }
.proc-grid h3 { margin: 52px 0 8px; font-size: 18px; }
.proc-grid p { margin: 0; color: var(--rw-ink-soft); font-size: 14px; }

/* Portfolio */
.portfolio-grid, .recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card, .post-card { overflow: hidden; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); background: var(--rw-card); }
.work-visual, .post-card .thumb { display: grid; overflow: hidden; place-items: center; aspect-ratio: 4/3; background: linear-gradient(145deg, var(--rw-lilac-soft), #c9c4f4); }
.work-visual img, .post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.work-card:hover img, .post-card:hover .thumb img { transform: scale(1.035); }
.work-visual > span, .thumb-letter { color: rgba(94, 85, 223, .7); font-family: var(--rw-serif); font-size: 80px; font-weight: 700; }
.work-body { padding: 22px 24px 26px; }
.work-body p { margin-bottom: 7px; color: var(--rw-violet); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.work-body h2, .work-body h3 { margin: 0; font-size: 20px; }
.portfolio-empty { display: grid; grid-template-columns: 280px 1fr; gap: 54px; align-items: center; padding: 55px; border: 1px dashed var(--rw-line); border-radius: 28px; background: var(--rw-card); }
.empty-mark { display: grid; place-items: center; aspect-ratio: 1; border-radius: 24px; color: var(--rw-white); background: linear-gradient(145deg, var(--rw-violet), var(--rw-blue)); font-family: var(--rw-serif); font-size: 90px; }
.portfolio-empty h3 { margin: 0 0 14px; font-size: clamp(25px, 3vw, 38px); }
.portfolio-empty p:last-child { margin: 0; color: var(--rw-ink-soft); }

/* Journal cards */
.insight-section { background: var(--rw-card); }
.post-card .thumb { aspect-ratio: 16/10; }
.post-card .body { padding: 24px; }
.post-card .meta { margin: 0 0 10px; color: var(--rw-violet); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.post-card h2, .post-card h3 { margin: 0; font-size: 20px; line-height: 1.45; }
.post-card .excerpt { margin: 13px 0 18px; color: var(--rw-ink-soft); font-size: 14px; }
.post-card .admin-edit-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; padding: 9px 14px; border: 1px solid rgba(94, 85, 223, .28); border-radius: 999px; color: var(--rw-violet); background: rgba(94, 85, 223, .08); font-size: 13px; font-weight: 700; line-height: 1; }
.post-card .admin-edit-link:hover, .post-card .admin-edit-link:focus-visible { border-color: var(--rw-violet); color: #fff; background: var(--rw-violet); }

/* Principle */
.principle-section { color: #fff; background: var(--rw-dark); }
.principle-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.principle-section .eyebrow { color: var(--rw-lilac); }
.principle-section h2 { margin: 0; font-size: clamp(32px, 4.3vw, 50px); line-height: 1.3; }
.principle-list article { display: grid; grid-template-columns: 46px 190px 1fr; gap: 20px; align-items: start; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.16); }
.principle-list span { color: var(--rw-lilac); font-family: var(--rw-serif); font-size: 13px; }
.principle-list h3 { margin: 0; font-size: 17px; }
.principle-list p { margin: 0; color: rgba(255,255,255,.65); font-size: 14px; }

/* Contact and footer */
.contact-section { padding-bottom: 80px; }
.cta-band { position: relative; overflow: hidden; padding: 80px 40px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, var(--rw-violet), var(--rw-blue)); text-align: center; }
.cta-band::before { content: ""; position: absolute; width: 360px; height: 360px; top: -220px; right: -80px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.06), 0 0 0 110px rgba(255,255,255,.04); }
.cta-band .eyebrow { justify-content: center; color: rgba(255,255,255,.75); }
.cta-band h2 { position: relative; margin: 0; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.28; }
.cta-band > p:not(.eyebrow) { position: relative; max-width: 560px; margin: 20px auto 28px; color: rgba(255,255,255,.8); }
.cta-band .btn { position: relative; }
.site-footer { padding: 64px 0 36px; background: var(--rw-card); }
.foot-top { display: flex; justify-content: space-between; gap: 60px; padding-bottom: 38px; border-bottom: 1px solid var(--rw-line); }
.foot-brand p { max-width: 36ch; margin: 20px 0 0; color: var(--rw-ink-soft); font-size: 14px; }
.foot-cols { display: flex; gap: 70px; }
.foot-col h2 { margin: 0 0 14px; color: var(--rw-ink-soft); font-size: 12px; letter-spacing: .1em; }
.foot-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.foot-col a:hover { color: var(--rw-violet); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; color: var(--rw-ink-soft); font-size: 12px; }

/* Archives and single content */
.content-area { min-height: 60vh; padding: 88px 0 110px; }
.archive-header { max-width: 720px; margin-bottom: 52px; }
.archive-header .page-title { margin: 0 0 16px; }
.archive-header > p:last-child { color: var(--rw-ink-soft); }
.page-title { font-size: clamp(36px, 5vw, 58px); line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.single-post .entry-header { margin-bottom: 42px; }
.single-post .entry-meta { margin: 22px 0 14px; color: var(--rw-violet); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.entry-deck { margin: 20px 0 0; color: var(--rw-ink-soft); font-size: 18px; line-height: 1.75; }
.featured-image { overflow: hidden; margin: 0 0 44px; border-radius: 24px; }
.featured-image img { width: 100%; }
.entry-content { color: var(--rw-ink); font-size: 17px; line-height: 1.9; }
.entry-content > * { max-width: 70ch; }
.entry-content h2, .entry-content h3 { margin: 2em 0 .7em; line-height: 1.45; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 21px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.3em; }
.entry-content a { color: var(--rw-violet); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 2em 0; padding: 20px 24px; border-left: 3px solid var(--rw-violet); background: var(--rw-lilac-soft); }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--rw-line); font-size: 13px; font-weight: 700; }
.post-navigation div:last-child { text-align: right; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { display: inline-grid; min-width: 38px; min-height: 38px; place-items: center; padding: 6px 10px; border: 1px solid var(--rw-line); border-radius: 8px; font-size: 13px; }
.pagination .current { color: #fff; border-color: var(--rw-violet); background: var(--rw-violet); }
.empty-state, .not-found { padding: 64px; border: 1px dashed var(--rw-line); border-radius: 24px; background: var(--rw-card); text-align: center; }
.not-found { max-width: 720px; margin: 0 auto; }
.not-found h1 { margin-bottom: 16px; font-size: clamp(34px, 5vw, 56px); }
.not-found > p:not(.eyebrow) { margin-bottom: 28px; color: var(--rw-ink-soft); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-art { width: min(620px, 100%); margin-inline: auto; }
  .split-head { grid-template-columns: 1fr; gap: 24px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 0; }
  .card-num { margin-bottom: 34px; }
  .portfolio-grid, .recent-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid { grid-template-columns: 1fr; gap: 50px; }
  .principle-list article { grid-template-columns: 40px 180px 1fr; }
}

@media (max-width: 900px) {
  .nav-wrap { min-height: 70px; }
  .menu-toggle { display: inline-flex; }
  .main-navigation { position: fixed; inset: 70px 0 auto; display: none; max-height: calc(100vh - 70px); padding: 32px 28px 38px; overflow-y: auto; border-top: 1px solid var(--rw-line); background: var(--rw-paper); }
  .main-navigation.is-open { display: block; }
  .primary-menu { display: grid; gap: 0; }
  .primary-menu li { border-bottom: 1px solid var(--rw-line); }
  .primary-menu a { display: block; padding: 15px 0; font-size: 17px; }
  .nav-actions { margin-top: 28px; flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
}

@media (max-width: 760px) {
  .wrap, .narrow-wrap { width: min(100% - 36px, 1180px); }
  .section { padding: 82px 0; }
  .hero { padding: 66px 0 56px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero .lead { font-size: 16px; }
  .hero-art { min-height: 390px; }
  .art-orbit { width: 310px; height: 310px; }
  .mock-browser { width: 78%; }
  .mock-card { width: 62%; bottom: 24px; }
  .art-badge { top: 185px; width: 82px; height: 82px; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .proc-grid li:nth-child(2) { border-right: 0; }
  .portfolio-grid, .recent-grid, .post-grid { grid-template-columns: 1fr; }
  .portfolio-empty { grid-template-columns: 1fr; padding: 28px; }
  .empty-mark { max-width: 220px; }
  .principle-list article { grid-template-columns: 36px 1fr; }
  .principle-list article p { grid-column: 2; }
  .cta-band { padding: 64px 24px; }
  .foot-top { flex-direction: column; }
  .foot-cols { gap: 44px; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation div:last-child { text-align: left; }
}

@media (max-width: 520px) {
  .nav-wrap { width: calc(100% - 32px); }
  .wordmark-sub { display: none; }
  .hero-cta .btn { width: 100%; }
  .hero-art { min-height: 320px; }
  .mock-layout { padding: 16px; }
  .mock-image { height: 105px; }
  .mock-card { padding: 20px; }
  .mock-lines { margin-top: 35px; }
  .art-badge { display: none; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-grid li { border-right: 0; }
  .recent-head { align-items: start; flex-direction: column; }
  .foot-cols, .foot-bottom { flex-direction: column; }
  .empty-state, .not-found { padding: 42px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
