/* ============================================
   부산비비기 부비 - 부산 가볍게 읽는 가이드북
   Shared stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700;900&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --c-ink: #0f1d2e;
  --c-ink-soft: #2d3e54;
  --c-paper: #faf6ef;
  --c-paper-warm: #f3ebda;
  --c-sea: #1a4d7a;
  --c-sea-deep: #0a2b47;
  --c-sea-light: #3d7eb0;
  --c-sand: #d9c19a;
  --c-coral: #d8613c;
  --c-coral-deep: #b34928;
  --c-rule: rgba(15, 29, 46, 0.12);
  --c-muted: #6b7a8c;

  --f-serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --f-sans: 'Noto Sans KR', system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --maxw-text: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  font-weight: 400;
  background: var(--c-paper);
  color: var(--c-ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-sea); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-coral); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p { margin-bottom: 1em; }

/* ============================================
   TOP STRIP (announcement bar)
   ============================================ */
.topstrip {
  background: var(--c-sea-deep);
  color: var(--c-paper-warm);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 9px 24px;
  text-align: center;
}
.topstrip strong { color: #fff; letter-spacing: 0.04em; }
.topstrip a { color: var(--c-sand); text-decoration: underline; text-underline-offset: 3px; }
.topstrip a:hover { color: #fff; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-rule);
  padding: 22px 0;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(6px);
  background-color: rgba(250, 246, 239, 0.95);
}
.site-header .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  font-family: var(--f-serif);
  font-weight: 900;
  font-size: 22px;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  flex-shrink: 0;
}
.brand a { color: inherit; }
.brand small {
  display: block;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.08em;
  margin-top: 3px;
  text-transform: uppercase;
}

.mainnav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  flex-wrap: wrap;
}
.mainnav a {
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.mainnav a:hover, .mainnav a.is-active {
  color: var(--c-coral);
  border-bottom-color: var(--c-coral);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(26, 77, 122, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(216, 97, 60, 0.06) 0%, transparent 50%),
    var(--c-paper);
  padding: 88px 24px 72px;
  border-bottom: 1px solid var(--c-rule);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M0 40c10-10 20-10 30 0s20 10 30 0 20-10 30 0' stroke='%231a4d7a' stroke-width='0.5' fill='none' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--c-coral);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid var(--c-coral);
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--c-sea-deep);
}
.hero h1 em {
  font-style: normal;
  color: var(--c-coral);
  position: relative;
}
.hero .lede {
  max-width: 640px;
  margin: 0 auto 20px;
  font-size: 17px;
  color: var(--c-ink-soft);
  line-height: 1.8;
}
.hero .lede + .lede { margin-top: 0; font-size: 15px; color: var(--c-muted); }

.hero-cta {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary {
  background: var(--c-sea-deep);
  color: var(--c-paper);
  border-color: var(--c-sea-deep);
}
.btn-primary:hover {
  background: var(--c-coral);
  color: #fff;
  border-color: var(--c-coral);
}
.btn-ghost {
  background: transparent;
  color: var(--c-sea-deep);
  border-color: var(--c-sea-deep);
}
.btn-ghost:hover {
  background: var(--c-sea-deep);
  color: var(--c-paper);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 24px;
  border-bottom: 1px solid var(--c-rule);
}
.section .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .kicker {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--c-coral);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 14px;
}
.section-head p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--c-muted);
  font-size: 15px;
}

/* ============================================
   CATEGORY GRID (main page)
   ============================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--c-rule);
  padding: 36px 30px;
  border-radius: 6px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--c-coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 29, 46, 0.08);
  border-color: var(--c-coral);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card .num {
  font-family: var(--f-serif);
  font-size: 14px;
  color: var(--c-coral);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}
.cat-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--c-ink);
}
.cat-card p {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 18px;
}
.cat-card .arrow {
  color: var(--c-sea);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.cat-card:hover .arrow { color: var(--c-coral); }

/* ============================================
   AREA STRIP (Haeundae / Gwangalli / Nampo)
   ============================================ */
.areas {
  background: var(--c-paper-warm);
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.area {
  background: #fff;
  padding: 32px 28px;
  border-radius: 6px;
  border-left: 4px solid var(--c-sea);
}
.area:nth-child(2) { border-left-color: var(--c-coral); }
.area:nth-child(3) { border-left-color: var(--c-sand); }
.area h3 {
  font-size: 24px;
  margin-bottom: 6px;
}
.area .tag {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.area p { font-size: 14.5px; line-height: 1.8; color: var(--c-ink-soft); }
.area .more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-sea);
  border-bottom: 1px solid var(--c-sea);
  padding-bottom: 1px;
}
.area .more:hover { color: var(--c-coral); border-color: var(--c-coral); }

/* ============================================
   QUOTE / PULL
   ============================================ */
.pull {
  background: var(--c-sea-deep);
  color: var(--c-paper);
  padding: 80px 24px;
  text-align: center;
}
.pull blockquote {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.5;
  color: #fff;
  font-weight: 400;
}
.pull blockquote::before { content: '“'; font-size: 60px; line-height: 0; vertical-align: -0.3em; color: var(--c-coral); margin-right: 8px; }
.pull blockquote::after { content: '”'; font-size: 60px; line-height: 0; vertical-align: -0.5em; color: var(--c-coral); margin-left: 6px; }

/* ============================================
   CONTENT PAGE (sub-page article)
   ============================================ */
.article-hero {
  background:
    linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-warm) 100%);
  padding: 64px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--c-rule);
}
.article-hero .crumbs {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 18px;
}
.article-hero .crumbs a { color: var(--c-muted); }
.article-hero .crumbs a:hover { color: var(--c-coral); }
.article-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  max-width: 880px;
  margin: 0 auto 18px;
  color: var(--c-sea-deep);
}
.article-hero .lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--c-ink-soft);
  font-size: 16.5px;
  line-height: 1.85;
}

.article {
  max-width: var(--maxw-text);
  margin: 0 auto;
  padding: 64px 24px 32px;
}
.article h2 {
  font-size: 28px;
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-rule);
  color: var(--c-sea-deep);
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--c-ink);
}
.article p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--c-ink-soft);
  margin-bottom: 1.1em;
}
.article ul, .article ol {
  margin: 0 0 1.2em 1.4em;
  color: var(--c-ink-soft);
}
.article li { margin-bottom: 0.5em; line-height: 1.8; }
.article a { font-weight: 500; border-bottom: 1px solid currentColor; }

.callout {
  background: var(--c-paper-warm);
  border-left: 4px solid var(--c-coral);
  padding: 22px 28px;
  margin: 36px 0;
  border-radius: 0 4px 4px 0;
}
.callout strong { color: var(--c-coral-deep); display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ============================================
   RELATED LINKS (internal linking module)
   ============================================ */
.related {
  background: var(--c-paper-warm);
  padding: 72px 24px;
  border-top: 1px solid var(--c-rule);
}
.related .wrap { max-width: var(--maxw); margin: 0 auto; }
.related h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 8px;
}
.related .sub {
  text-align: center;
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.related-card {
  background: #fff;
  padding: 24px 22px;
  border-radius: 5px;
  border: 1px solid var(--c-rule);
  transition: all .2s;
  text-decoration: none;
}
.related-card:hover {
  border-color: var(--c-coral);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 29, 46, 0.06);
}
.related-card .num {
  font-family: var(--f-serif);
  color: var(--c-coral);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.related-card h4 {
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.4;
  margin-bottom: 4px;
}
.related-card p {
  font-size: 12.5px;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--c-sea-deep);
  color: var(--c-paper-warm);
  padding: 64px 24px 32px;
}
.site-footer .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.foot-brand {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.foot-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(243, 235, 218, 0.7);
}
.foot-col h5 {
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-sand);
  margin-bottom: 16px;
  font-weight: 700;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 9px; }
.foot-col a {
  color: rgba(243, 235, 218, 0.75);
  font-size: 13.5px;
  transition: color .2s;
}
.foot-col a:hover { color: #fff; }

.foot-bottom {
  border-top: 1px solid rgba(243, 235, 218, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(243, 235, 218, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 780px) {
  .site-header .wrap { flex-direction: column; gap: 14px; align-items: flex-start; }
  .mainnav ul { gap: 16px 18px; }
  .mainnav a { font-size: 13px; }
  .hero { padding: 56px 20px 48px; }
  .section { padding: 56px 20px; }
  .pull { padding: 56px 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article { padding: 40px 20px 24px; }
  .article-hero { padding: 44px 20px 40px; }
}

@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .section-head { margin-bottom: 36px; }
}
