
/*
Theme Name: Fold List Blog
Theme URI: https://example.com/themes/fold-list-blog
Author: You
Author URI: https://example.com
Description: A minimalist, editorial WordPress theme inspired by Fold — list-first layout, big headlines, generous whitespace, subtle dividers. No build step.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: fold-list-blog
Tags: blog, one-column, two-columns, minimal, accessibility-ready
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
  --bg: #ffffff;
  --text: #0b0f14;
  --muted: #6b7280;
  --border: #e5e7eb;
  --link: #0b0f14;
  --link-hover: #0ea5e9;
  --note: #0ea5e9;
  --maxw: 860px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2732;
    --link: #e5e7eb;
    --link-hover: #38bdf8;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  line-height: 1.7;
  font-size: 18px;
}

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

.wrap { width: min(var(--maxw), 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 0; }
.brand a { font-weight: 800; letter-spacing: -0.02em; font-size: clamp(22px, 2.6vw, 28px); }
.tagline { color: var(--muted); font-size: 13px; margin-top: 2px; }
.nav { display: flex; gap: 12px; }
.nav a { padding: 6px 10px; border-radius: 10px; }
.nav a:hover { background: rgba(14,165,233,0.08); text-decoration: none; }

/* Hero (latest) */
.hero { padding: 28px 0 18px; border-bottom: 1px solid var(--border); }
.hero .kicker { color: var(--note); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; letter-spacing: -0.02em; margin: 10px 0 12px; }
.hero .meta { color: var(--muted); font-size: 14px; }
.hero .excerpt { color: var(--muted); font-size: 18px; max-width: 60ch; }
.hero figure { margin: 18px 0 0; }
.hero img { width: 100%; height: auto; border-radius: 12px; }

/* List feed */
.feed { padding: 10px 0 40px; }
.post-row { display: grid; grid-template-columns: 1fr 260px; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.post-row:last-child { border-bottom: none; }
.post-row .title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin: 0 0 8px; }
.post-row .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.post-row .excerpt { color: var(--muted); margin: 0; }
.thumb { display: block; border-radius: 12px; overflow: hidden; height: 160px; background: #f3f4f6; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .post-row { grid-template-columns: 1fr; }
  .thumb { height: 200px; }
}

/* Post page */
.article { padding: 18px 0 60px; }
.entry-header { padding: 26px 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.entry-header .kicker { color: var(--note); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.entry-header h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; margin: 8px 0 12px; letter-spacing: -0.02em; }
.entry-header .meta { color: var(--muted); font-size: 14px; }
.entry-content { font-size: 19px; }
.entry-content h2 { margin-top: 2rem; font-size: 28px; }
.entry-content h3 { margin-top: 1.4rem; font-size: 22px; }
.entry-content p { margin: 0 0 1rem; }
.entry-content blockquote { border-left: 3px solid var(--note); padding: 10px 14px; background: rgba(14,165,233,0.06); border-radius: 8px; }
.entry-content img { width: 100%; height: auto; border-radius: 10px; }
.share { margin-top: 32px; display: flex; gap: 10px; font-size: 14px; color: var(--muted); }

/* Sidebar (optional) */
.sidebar { border-left: 1px solid var(--border); padding-left: 18px; }
.sidebar .widget { margin: 0 0 18px; }
.widget-title { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.widget a { color: var(--link); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-inner { padding: 18px 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pagination { display: flex; gap: 8px; align-items: center; }
.pagination .page-numbers { border: 1px solid var(--border); padding: 6px 10px; border-radius: 10px; }
.pagination .current { background: rgba(14,165,233,.08); border-color: var(--note); }

/* Utilities */
.kicker { color: var(--note); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hidden { display: none; }
.screen-reader-text { position: absolute; left: -9999px; }
