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

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

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --border: #e8e5df;
  --text-primary: #1a1916;
  --text-secondary: #6b6760;
  --text-muted: #9e9b95;
  --accent: #2d5be3;
  --accent-light: #edf0fd;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.06);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

/* ── BACK BUTTON BAR ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.back-btn:hover {
  color: var(--text-primary);
  border-color: #c8c4bc;
  background: var(--bg);
}

/* ── IFRAME SUBPAGE ── */
.iframe-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.iframe-page .topbar { flex-shrink: 0; }

.iframe-page iframe {
  flex: 1;
  border: none;
  width: 100%;
  background: var(--bg);
}

/* ── CUSTOM CONTENT SUBPAGE ── */
.content-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.page-header {
  padding: 44px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
}

/* Content blocks */
.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.info-block h2 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.info-block p, .info-block li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

.info-block ul {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-block a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
}

.info-block a:hover { text-decoration: underline; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

/* Fade in */
.fade-in {
  animation: fadeIn 0.25s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
