/* =============================================================
   said.sohow.sg — Blog CSS
   Based on So How brand system
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:ital,wght@0,700;1,700&family=Nunito:wght@400;600&display=swap');

:root {
  --bg:        #fff4e9;
  --surface:   #e7d8c9;
  --text:      #1A1008;
  --muted:     #6b5a48;
  --secondary: #9eab9a;
  --accent:    #8f0000;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;

  --prose-width: 680px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.75;
}

/* =============================================================
   LAYOUT
   ============================================================= */

.site-header {
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--surface);
}

.site-header-inner {
  max-width: var(--prose-width);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.site-wordmark {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.site-wordmark:hover {
  opacity: 0.75;
}

.site-byline {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-main {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: var(--space-7) var(--space-4);
}

.site-footer {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  border-top: 1px solid var(--surface);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.site-footer a {
  color: var(--muted);
}

/* =============================================================
   INDEX PAGE
   ============================================================= */

.index-intro {
  margin-bottom: var(--space-7);
}

.index-intro h1 {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.index-intro p {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
}

.post-list {
  list-style: none;
}

.post-list-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--surface);
}

.post-list-item:first-child {
  border-top: 1px solid var(--surface);
}

.post-list-date {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-2);
}

.post-list-title {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

.post-list-title a {
  color: var(--text);
  text-decoration: none;
}

.post-list-title a:hover {
  color: var(--accent);
}

.post-list-excerpt {
  color: var(--muted);
  font-size: 16px;
}

/* =============================================================
   POST PAGE
   ============================================================= */

.post-header {
  margin-bottom: var(--space-6);
}

.post-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-3);
}

.post-title {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.post-hero {
  margin-bottom: var(--space-6);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  height: auto;
}

/* Prose body */
.post-body h2 {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  margin: var(--space-6) 0 var(--space-3);
}

.post-body h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: var(--space-5) 0 var(--space-2);
}

.post-body p {
  margin-bottom: var(--space-4);
}

.post-body ul,
.post-body ol {
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
}

.post-body li {
  margin-bottom: var(--space-2);
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-4);
  color: var(--muted);
  font-style: italic;
  margin: var(--space-5) 0;
}

.post-body img {
  margin: var(--space-5) 0;
  border-radius: var(--radius-md);
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--surface);
  margin: var(--space-6) 0;
}

.post-body code {
  font-size: 0.875em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.post-body pre {
  background: var(--surface);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-4) 0;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-nav {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--surface);
}

.post-nav a {
  font-size: 14px;
  color: var(--muted);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 720px) {
  .index-intro h1 { font-size: 30px; }
  .post-title { font-size: 28px; }
}
