@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Share+Tech+Mono&display=swap');

:root {
  --bg:         #0e0e0e;
  --bg-raised:  #141414;
  --border:     #1e1e1e;
  --text:       #d4d0c8;
  --text-dim:   #6a6760;
  --accent:     #7eb8a4;
  --accent-dim: #3a6658;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --mono:       'Share Tech Mono', monospace;
}

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

html { font-size: 18px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.8;
  min-height: 100vh;
}

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

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

/* ── HEADER ── */
header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

header .site-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
}

header .site-subtitle {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-dim);
  font-weight: 300;
}

nav {
  margin-top: 1.4rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── POST LIST ── */
.post-list { list-style: none; }

.post-list li {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list li:first-child { border-top: none; }

.post-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.post-list h2 {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.post-list h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

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

.post-excerpt {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.read-more:hover { color: var(--accent); }

/* ── SINGLE POST ── */
.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.9;
}

.post-body p { margin-bottom: 1.4em; }

.post-body p:last-child { margin-bottom: 0; }

.post-body em { font-style: italic; color: var(--text); }

.post-body strong {
  font-weight: 600;
  color: var(--text);
}

.post-body blockquote {
  border-left: 2px solid var(--accent-dim);
  padding-left: 1.5rem;
  margin: 1.8rem 0;
  color: var(--text-dim);
  font-style: italic;
}

/* ── MANIFESTO ── */
.manifesto-body {
  font-size: 1.05rem;
  line-height: 1.9;
}

.manifesto-body h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.5rem 0 1rem;
  font-weight: 400;
}

.manifesto-body p { margin-bottom: 1.4em; }

.manifesto-body em { font-style: italic; }

.manifesto-attribution {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── ABOUT ── */
.about-body {
  font-size: 1.05rem;
  line-height: 1.9;
}

.about-body p { margin-bottom: 1.4em; }

/* ── FOOTER ── */
footer {
  margin-top: 5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--accent); }

/* ── ADMIN ── */
.admin-wrap {
  max-width: 760px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.admin-wrap h1 {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.field {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.field input[type="text"],
.field input[type="password"],
.field textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-dim);
}

.field textarea {
  min-height: 420px;
  line-height: 1.7;
  resize: vertical;
  font-family: var(--serif);
}

.btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--accent-dim);
  color: var(--bg);
}

.msg {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.8rem 1rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
}

.msg.err {
  border-color: #8a4a4a;
  color: #c47a7a;
}

.admin-posts { margin-top: 3rem; }

.admin-posts h2 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.admin-post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.admin-post-item span {
  font-size: 0.9rem;
  color: var(--text);
}

.admin-post-item .actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.admin-post-item .actions a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.admin-post-item .actions a:hover { color: var(--accent); }
.admin-post-item .actions a.del:hover { color: #c47a7a; }

/* ── PULSE ── */
.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.6rem;
  animation: pulse 2.4s ease-in-out infinite;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  header { padding: 2rem 0 1.5rem; }
  .post-header h1 { font-size: 1.6rem; }
}
