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

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

:root {
  --ink: #1a1a1a;
  --ink-light: #555;
  --ink-muted: #999;
  --paper: #faf9f7;
  --paper-off: #f2f0ec;
  --accent: #2a5298;
  --accent-light: #e8eef7;
  --border: #e0ddd8;
  --radius: 6px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

header nav { display: flex; gap: 1.5rem; }

header nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.15s;
}

header nav a:hover, header nav a.active { color: var(--accent); }

/* LAYOUT */
.page-wrap {
  flex: 1;
  display: flex;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 2rem;
}

.main-content { flex: 1; padding-right: 3rem; }

.sidebar {
  width: 220px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

/* TYPOGRAPHY */
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--ink);
}

h3 {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 1rem;
}

/* UPLOAD ZONE */
.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: white;
  margin: 1.5rem 0 1rem;
}

.upload-zone:hover { border-color: var(--accent); background: var(--accent-light); }
.upload-zone.drag-over { border-color: var(--accent); background: var(--accent-light); }

.upload-icon {
  width: 36px; height: 36px;
  margin: 0 auto 0.75rem;
  color: var(--ink-muted);
}

.upload-zone strong { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.25rem; }
.upload-zone span { font-size: 0.8rem; color: var(--ink-muted); }
.upload-zone input { display: none; }

.file-selected {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.5rem;
  justify-content: center;
}

/* EMAIL + SUBMIT */
.form-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.form-row input[type="email"] {
  flex: 1;
  height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: white;
  transition: border-color 0.15s;
  outline: none;
}

.form-row input[type="email"]:focus { border-color: var(--accent); }

.btn-submit {
  height: 42px;
  padding: 0 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}

.btn-submit:hover { background: #1e3d7a; }
.btn-submit:active { transform: scale(0.98); }

.form-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.success-msg {
  display: none;
  background: #edf7ed;
  border: 1px solid #b7ddb7;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #2e6b2e;
  margin-top: 0.75rem;
}

/* SIDEBAR NAV */
.sidebar h3 { margin-bottom: 1rem; }

.sidebar-nav { list-style: none; }

.sidebar-nav li { border-bottom: 1px solid var(--border); }
.sidebar-nav li:first-child { border-top: 1px solid var(--border); }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  font-size: 0.88rem;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.15s;
}

.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--accent); }

.sidebar-nav a svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.5; }
.sidebar-nav a:hover svg, .sidebar-nav a.active svg { opacity: 1; }

.sidebar-box {
  margin-top: 2rem;
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 1rem;
}

.sidebar-box p { font-size: 0.8rem; line-height: 1.6; margin: 0; color: var(--ink-light); }

/* CONTENT PAGES */
.content-section { margin-bottom: 2.5rem; }
.content-section p:last-child { margin-bottom: 0; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

footer a { color: var(--ink-muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* FADE IN */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-wrap { animation: fadeUp 0.4s ease both; }

/* RESPONSIVE */
@media (max-width: 700px) {
  .page-wrap { flex-direction: column-reverse; padding: 1.5rem 1rem; }
  .main-content { padding-right: 0; }
  .sidebar { width: 100%; border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 1.5rem; }
  header nav { display: none; }
  h1 { font-size: 1.7rem; }
}
