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

:root {
  --bg: #0c1117;
  --bg-surface: #131920;
  --bg-card: #171e27;
  --bg-card-hover: #1c2430;
  --text: #d8dce6;
  --text-secondary: #8a93a6;
  --text-dim: #4d5568;
  --gold: #c9a84c;
  --gold-dim: #c9a84c22;
  --gold-bright: #e4c76a;
  --blue: #2d6a8a;
  --blue-light: #3a8ab5;
  --border: #1e2736;
  --border-light: #263040;
  --shadow: rgba(0, 0, 0, 0.3);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Source Sans 3', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Ocean gradient overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(45, 106, 138, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.site-header {
  padding: 36px 0 0;
  margin-bottom: 40px;
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.site-title:hover { color: var(--gold-bright); }

.site-nav {
  display: flex;
  gap: 24px;
  align-items: baseline;
}

.site-nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.site-tagline {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ── Category Filter ── */
.category-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.cat-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn:hover { border-color: var(--gold-dim); color: var(--text); }
.cat-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* ── Hero ── */
.hero {
  margin-bottom: 48px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.3s;
}

.hero-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.hero-content {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text);
}

.hero-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-date {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── Section Headers ── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-count {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ── Post Grid ── */
.posts-section { margin-bottom: 48px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}

.post-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.post-card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.post-card-placeholder {
  width: 100%;
  height: 190px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
}

.post-card-body { padding: 18px; }

.post-card-category {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.post-card-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--gold); }

.post-card-excerpt {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-date {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ── Pages ── */
.pages-section { margin-bottom: 48px; }

.page-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  transition: all 0.2s;
}

.page-link:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.page-link-arrow {
  font-size: 11px;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.page-link:hover .page-link-arrow {
  transform: translateX(3px);
  color: var(--gold);
}

/* ── Footer ── */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-text {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── Password (same pattern as rawlly) ── */
.locked { position: relative; }
.post-card.locked a { pointer-events: none; }
.post-card.locked .post-card-image { filter: blur(4px); opacity: 0.4; }

.pw-form { display: flex; gap: 6px; align-items: center; margin-top: 12px; }
.pw-form input {
  font-family: var(--sans); font-size: 12px; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: 2px;
  background: var(--bg-surface); color: var(--text); outline: none; width: 140px;
}
.pw-form input:focus { border-color: var(--gold); }
.pw-form input.pw-error { border-color: #c44; }
.pw-form button {
  font-size: 13px; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 2px; background: var(--bg-card); color: var(--text); cursor: pointer;
}
.pw-form button:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(14px); animation: fadeUp 0.5s ease-out forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.hero { animation-delay: 0.1s; }
.posts-section { animation-delay: 0.15s; }
.pages-section { animation-delay: 0.2s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-header { padding: 24px 0 0; margin-bottom: 28px; }
  .header-inner { flex-direction: column; gap: 12px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-image { min-height: 220px; }
  .hero-content { padding: 24px 20px; }
  .hero-title { font-size: 24px; }
  .post-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .post-card-image, .post-card-placeholder { height: 150px; }
  .category-bar { gap: 6px; }
  .cat-btn { font-size: 10px; padding: 5px 10px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .site-title { font-size: 22px; }
  .post-grid { grid-template-columns: 1fr; }
  .page-list { flex-direction: column; }
  .page-link { width: 100%; }
}
