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

:root {
  --amber-pale: #FAEEDA;
  --amber-mid: #EF9F27;
  --amber-deep: #854F0B;
  --amber-text: #633806;
  --ink: #1a1814;
  --ink-mid: #4a4640;
  --ink-light: #8a8480;
  --ink-faint: #c8c4c0;
  --page: #FDFAF6;
  --page-warm: #F5F0E8;
  --border: rgba(0,0,0,0.09);
}

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

html { font-size: 16px; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 10%, rgba(239,159,39,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* NAV */
.site-nav {
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.lamp {
  width: 22px;
  height: 28px;
  position: relative;
  flex-shrink: 0;
}
.lamp-shade {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 14px solid var(--amber-mid);
}
.lamp-glow {
  position: absolute;
  top: 13px; left: 2px;
  width: 18px; height: 4px;
  background: var(--amber-pale);
  border-radius: 50%;
  opacity: 0.9;
}
.lamp-stem {
  position: absolute;
  bottom: 5px; left: 9px;
  width: 3px; height: 12px;
  background: var(--amber-deep);
  border-radius: 1px;
}
.lamp-base {
  position: absolute;
  bottom: 0; left: 4px;
  width: 14px; height: 4px;
  background: var(--amber-deep);
  border-radius: 2px;
}

.logo-wordmark {
  font-family: 'Lora', serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.logo-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber-mid);
  margin-left: 2px;
  vertical-align: super;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* FEATURED POST */
.featured-post {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
  opacity: 0;
}

.entry-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.stamp-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber-mid);
  flex-shrink: 0;
}

.featured-title {
  font-family: 'Lora', serif;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 400;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 560px;
  text-decoration: none;
  display: block;
}

.featured-title:hover { color: var(--amber-deep); }

.featured-excerpt {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-mid);
  max-width: 540px;
  margin-bottom: 1.25rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--amber-deep);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--amber-mid);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}
.read-more:hover { opacity: 0.7; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.25rem;
}

.tag-pill {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--ink-light);
  text-decoration: none;
  transition: all 0.15s;
}

.tag-pill:hover {
  border-color: var(--amber-mid);
  color: var(--amber-text);
}

/* SECTION LABEL */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
  padding-top: 2.5rem;
  margin-bottom: 0;
}

/* POST LIST */
.post-list { margin-bottom: 3rem; }

.post-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}
.post-card:nth-child(1) { animation-delay: 0.15s; }
.post-card:nth-child(2) { animation-delay: 0.22s; }
.post-card:nth-child(3) { animation-delay: 0.29s; }
.post-card:nth-child(4) { animation-delay: 0.36s; }
.post-card:nth-child(5) { animation-delay: 0.43s; }

.post-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.6;
  padding-top: 3px;
}

.post-date strong {
  display: block;
  color: var(--ink-light);
  font-weight: 400;
}

.post-title {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.38;
  transition: color 0.15s;
}

.post-card:hover .post-title { color: var(--amber-deep); }

.post-excerpt {
  font-size: 13.5px;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 10px;
}

.post-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.post-card-tag {
  font-size: 10px;
  color: var(--ink-faint);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 100px;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 2rem;
}

.pagination a {
  font-size: 13px;
  color: var(--amber-deep);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--amber-mid);
  padding-bottom: 1px;
}

.pagination .page-number {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
}

/* SINGLE POST */
.post-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.6s ease forwards 0.05s;
  opacity: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-light);
  text-decoration: none;
  margin-bottom: 2rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.back-link:hover { color: var(--amber-deep); }

.post-header-title {
  font-family: 'Lora', serif;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: 560px;
}

/* POST CONTENT */
.post-content {
  padding: 3rem 0;
  animation: fadeUp 0.6s ease forwards 0.15s;
  opacity: 0;
}

.gh-content {
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-mid);
  max-width: 580px;
}

.gh-content p { margin-bottom: 1.6rem; }
.gh-content p:last-child { margin-bottom: 0; }
.gh-content em { font-style: italic; color: var(--ink); }
.gh-content strong { font-weight: 500; color: var(--ink); }

.gh-content h2 {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.gh-content h3 {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.gh-content blockquote {
  border-left: 2px solid var(--amber-mid);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--ink);
  font-style: italic;
}

.gh-content a {
  color: var(--amber-deep);
  border-bottom: 1px solid var(--amber-mid);
  text-decoration: none;
}
.gh-content a:hover { opacity: 0.7; }

.gh-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* POST FOOTER */
.post-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.5s ease forwards 0.25s;
  opacity: 0;
}

.post-number {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

.post-nav {
  display: flex;
  gap: 1.5rem;
}

.post-nav a {
  font-size: 13px;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.15s;
}
.post-nav a:hover { color: var(--amber-deep); }

/* SUBSCRIBE */
.subscribe-box {
  background: var(--page-warm);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.sub-lamp { width: 36px; height: 44px; position: relative; flex-shrink: 0; }
.sub-lamp-shade { position: absolute; top: 0; left: 0; width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 22px solid var(--amber-mid); }
.sub-lamp-glow { position: absolute; top: 21px; left: 4px; width: 28px; height: 5px; background: var(--amber-pale); border-radius: 50%; }
.sub-lamp-stem { position: absolute; bottom: 7px; left: 16px; width: 4px; height: 18px; background: var(--amber-deep); border-radius: 1px; }
.sub-lamp-base { position: absolute; bottom: 0; left: 7px; width: 22px; height: 6px; background: var(--amber-deep); border-radius: 3px; }

.sub-text { flex: 1; min-width: 160px; }
.sub-title { font-family: 'Lora', serif; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.sub-desc { font-size: 13px; color: var(--ink-light); }

.sub-form { display: flex; gap: 8px; flex-wrap: wrap; }

.sub-form input[type="email"] {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 9px 14px;
  border: 1px solid var(--ink-faint);
  border-radius: 8px;
  background: var(--page);
  color: var(--ink);
  min-width: 180px;
  outline: none;
  transition: border-color 0.15s;
}
.sub-form input[type="email"]:focus { border-color: var(--amber-mid); }

.sub-form button {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--amber-deep);
  background: var(--amber-pale);
  color: var(--amber-text);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.sub-form button:hover { background: #f5dfc0; }

/* ABOUT PAGE */
.about-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.6s ease forwards 0.05s;
  opacity: 0;
}

.page-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-title {
  font-family: 'Lora', serif;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0;
  max-width: 520px;
}

.page-content {
  padding: 3.5rem 0;
  animation: fadeUp 0.6s ease forwards 0.15s;
  opacity: 0;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: var(--ink-light);
  text-decoration: none;
}

.footer-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .nav-links { gap: 1rem; }
  .post-card { grid-template-columns: 72px 1fr; gap: 0 1rem; }
  .subscribe-box { flex-direction: column; }
}

/* Ghost Card Assets — required kg classes */
.kg-canvas {
  display: grid;
  grid-template-columns: [full-start] 0 [wide-start] 0 [main-start] 1fr [main-end] 0 [wide-end] 0 [full-end];
}

.kg-canvas > * {
  grid-column: main;
}

.kg-width-wide {
  grid-column: wide-start / wide-end;
  width: 100%;
}

.kg-width-full {
  grid-column: full-start / full-end;
  width: 100%;
}

/* Bookmark card */
.kg-bookmark-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
  text-decoration: none;
}
.kg-bookmark-content { padding: 1rem; flex: 1; }
.kg-bookmark-title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.kg-bookmark-description { font-size: 13px; color: var(--ink-light); }
.kg-bookmark-thumbnail img { width: 140px; object-fit: cover; }

/* Gallery card */
.kg-gallery-container { margin: 1.5rem 0; }
.kg-gallery-row { display: flex; gap: 8px; margin-bottom: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* Image card captions */
.kg-image-card figcaption {
  font-size: 13px;
  color: var(--ink-light);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Custom fonts support */
:root {
  --gh-font-heading: 'Lora', serif;
  --gh-font-body: 'DM Sans', sans-serif;
}
