/*
Theme Name: 필포 저널
Theme URI: https://filpo.biz79.com
Author: 작심삼일비디오일기
Description: 필포와 작심삼일비디오일기 홍보 저널. 도구는 필포, 글은 여기.
Version: 1.0.0
Text Domain: filpo-journal
*/

:root {
  --fp-bg: #efe4c4;
  --fp-paper: #fff7e6;
  --fp-ink: #143024;
  --fp-muted: #5c6e58;
  --fp-line: #e0d0a0;
  --fp-red: #0c7a48;
  --fp-gold: #e8a317;
  --fp-night: #143024;
  --fp-radius: 16px;
  --fp-head: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--fp-bg);
  color: var(--fp-ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.fp-skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.fp-skip:focus { left: 12px; z-index: 80; background: #fff; padding: 8px 12px; }
.fp-shell { min-height: 100vh; display: flex; flex-direction: column; }
.fp-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 247, 230, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fp-line);
  box-shadow: inset 0 6px 0 var(--fp-gold);
}
.fp-head-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: var(--fp-head);
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.fp-mark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--fp-ink);
  line-height: 1.05;
}
.fp-mark strong {
  font-size: 22px;
  letter-spacing: -0.06em;
  font-weight: 800;
}
.fp-mark small {
  font-size: 11px;
  color: var(--fp-gold);
  letter-spacing: 0.02em;
  font-weight: 700;
}
.fp-burger {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}
.fp-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fp-ink);
}
.fp-nav { display: none; }
.fp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.fp-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.fp-nav .current-menu-item > a,
.fp-nav a:hover { color: var(--fp-red); }
.fp-tools { display: none; gap: 10px; align-items: center; }
.fp-tools a {
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--fp-ink);
  color: #fff !important;
}
.fp-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 14px 48px;
}
.fp-foot {
  border-top: 1px solid var(--fp-line);
  background: var(--fp-paper);
  padding: 28px 16px 36px;
  color: var(--fp-muted);
}
.fp-foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.fp-foot strong { color: var(--fp-ink); display: block; margin-bottom: 6px; }
.fp-foot p { margin: 0; font-size: 13px; }
.fp-foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.fp-foot a { color: var(--fp-muted); font-size: 13px; font-weight: 700; text-decoration: none; }

.fpj-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-gold);
}
.fpj-hero {
  background: var(--fp-paper);
  border: 1px solid var(--fp-line);
  border-radius: 20px;
  padding: 28px 22px;
  margin-bottom: 22px;
}
.fpj-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}
.fpj-hero p { margin: 0; color: var(--fp-muted); max-width: 42rem; }
.fpj-screen {
  margin: 0 0 22px;
  background: #03150f;
  border-radius: 20px;
  overflow: hidden;
}
.fpj-screen-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.fpj-screen-off {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  color: #fff7e6;
  text-decoration: none;
  background:
    radial-gradient(720px 280px at 50% 35%, rgba(12, 122, 72, 0.45), transparent 62%),
    linear-gradient(165deg, #03150f 0%, #0a5c40 55%, #d97812 140%);
}
.fpj-screen-off span {
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 800;
  color: #f4d03f;
}
.fpj-screen-off strong {
  font-size: clamp(26px, 6vw, 44px);
  letter-spacing: -0.05em;
  line-height: 1.15;
}
.fpj-screen-off em {
  font-style: normal;
  font-size: 14px;
  color: rgba(255, 247, 230, 0.78);
}
.fpj-screen-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 14px 12px;
  color: #fff7e6;
  font-size: 13px;
  font-weight: 700;
}
.fpj-screen-bar b { color: #f4d03f; letter-spacing: 0.12em; font-size: 11px; }
.fpj-screen-bar a { color: #fff7e6; text-decoration: none; }
.fpj-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.fpj-door {
  display: block;
  background: var(--fp-paper);
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  padding: 16px;
  text-decoration: none;
  min-height: 132px;
}
.fpj-door span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--fp-red);
  margin-bottom: 6px;
}
.fpj-door h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.03em; }
.fpj-door p { margin: 0; font-size: 13px; color: var(--fp-muted); }
.fpj-list { display: grid; gap: 12px; }
.fpj-card {
  display: grid;
  gap: 6px;
  background: var(--fp-paper);
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  text-decoration: none;
}
.fpj-card time { font-size: 12px; color: var(--fp-muted); font-weight: 700; }
.fpj-card h3 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.fpj-card .fpj-ex { margin: 0; color: var(--fp-muted); font-size: 14px; }
.fpj-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
}
.fpj-dock a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--fp-line);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.fpj-dock a.primary {
  background: var(--fp-red);
  border-color: var(--fp-red);
  color: #fff;
}
.fpj-note {
  font-size: 13px;
  color: var(--fp-muted);
  margin: 8px 0 0;
}
.fpj-article { max-width: 720px; }
.fpj-article h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.fpj-meta { color: var(--fp-muted); font-size: 13px; font-weight: 700; margin-bottom: 22px; }
.fpj-body { font-size: 17px; }
.fpj-body p { margin: 0 0 1em; }
.fpj-body ul { padding-left: 1.2em; }
.fpj-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.fpj-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--fp-ink);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}
.fpj-cta a.ghost {
  background: #fff;
  color: var(--fp-ink) !important;
  border: 1px solid var(--fp-line);
}
.fpj-src { font-size: 12px; color: var(--fp-muted); }
.fpj-empty { color: var(--fp-muted); }

html.fp-nav-open .fp-nav {
  display: block;
  position: fixed;
  inset: var(--fp-head) 0 0 0;
  background: var(--fp-paper);
  padding: 8px 18px 24px;
  overflow: auto;
  z-index: 39;
}
html.fp-nav-open .fp-nav ul { flex-direction: column; }
html.fp-nav-open, html.fp-nav-open body { overflow: hidden; }

@media (min-width: 901px) {
  .fp-head-inner { grid-template-columns: auto 1fr auto; }
  .fp-burger { display: none; }
  .fp-nav, .fp-tools { display: flex; }
  .fp-nav { position: static; justify-content: center; }
  .fp-main { padding: 32px 24px 72px; }
  .fpj-doors { grid-template-columns: repeat(4, 1fr); }
  .fpj-hero { padding: 36px 32px; }
}
@media (max-width: 560px) {
  .fpj-doors { grid-template-columns: 1fr; }
}
