:root {
  --bg-1: #03081c;
  --bg-2: #0a1b4a;
  --bg-3: #173f7a;
  --gold: #ffd98a;
  --coral: #ff7a6b;
  --text: #f3eee3;
  --text-dim: rgba(243, 238, 227, 0.72);
  --text-faint: rgba(243, 238, 227, 0.5);
  --line: rgba(255, 255, 255, 0.14);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Pretendard", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  background-attachment: fixed;
}

h1, h2, h3 {
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--gold);
}

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

.text-shadow {
  text-shadow:
    0 1.5px 4px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(0, 0, 0, 0.5);
}

/* 상단 내비게이션 */
.site-nav-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 8, 28, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.site-nav .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav .links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.site-nav .links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
}

.site-nav .links a:hover {
  color: var(--gold);
}

/* 히어로 */
.hero {
  position: relative;
  padding: 90px 24px 110px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("background.jpg") center 30% / cover no-repeat;
  opacity: 0.55;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 8, 28, 0.55) 0%,
    rgba(3, 8, 28, 0.75) 60%,
    var(--bg-3) 100%
  );
  z-index: -1;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero .sub {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 17px;
}

.quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 4px;
}

/* 섹션 공통 */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head .kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
}

.section-head p {
  color: var(--text-dim);
  font-size: 15px;
}

/* 기능 카드 그리드 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.feature-card .icon {
  font-size: 26px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

/* 명언 캐러셀 카드 */
.quote-sample {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 0 0 22px;
}

.quote-sample p {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.quote-sample span {
  color: var(--text-faint);
  font-size: 13px;
}

/* 알림 신청 폼 */
.signup {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 44px 32px;
  text-align: center;
}

.signup h2 {
  font-size: 24px;
}

.signup p {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 440px;
  margin: 0 auto 26px;
}

.signup-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 15px;
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-faint);
}

.signup-form button,
.btn {
  padding: 13px 22px;
  border-radius: 12px;
  border: none;
  background: var(--gold);
  color: #1b1305;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.signup-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 14px;
}

.form-success {
  display: none;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
}

/* 블로그 목록 */
.post-grid {
  display: grid;
  gap: 20px;
}

.post-card {
  display: block;
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.post-card:hover {
  border-color: var(--gold);
}

.post-card .date {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
}

.post-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.post-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

/* 블로그 글 본문 */
.post-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 20px;
  text-align: center;
}

.post-header .date {
  color: var(--text-faint);
  font-size: 13px;
  display: block;
  margin-bottom: 14px;
}

.post-header h1 {
  font-size: clamp(26px, 4vw, 38px);
}

.post-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  font-size: 16.5px;
  color: var(--text-dim);
}

.post-body h2 {
  color: var(--text);
  font-size: 22px;
  margin-top: 1.8em;
}

.post-body .quote-sample p {
  color: var(--text);
}

.post-body a {
  color: var(--gold);
}

.post-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

/* 푸터 */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-inner .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--text-faint);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--gold);
}

@media (max-width: 640px) {
  .hero {
    padding: 70px 20px 80px;
  }

  .section {
    padding: 48px 20px;
  }

  .signup-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
