:root {
  --bg: #e8edec;
  --surface: #ffffff;
  --ink: #142321;
  --muted: #5d6f6c;
  --line: #d3dcda;
  --brand: #0e6f68;
  --brand-ink: #ffffff;
  --like: #e4572e;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a { color: var(--brand); }
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 2rem 0 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: 640px; margin: 0 auto; padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-header nav { display: flex; align-items: center; gap: 0.5rem; }
.site-header form { margin: 0; }
.brand {
  font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em;
  color: var(--brand); text-decoration: none;
}
.who { color: var(--muted); font-size: 0.95rem; }

/* Layout */
.column { max-width: 640px; margin: 0 auto; padding: 1rem 1rem 4rem; }
.column--narrow { max-width: 420px; }

/* Buttons */
.btn {
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-block; padding: 0.5rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink);
}
.btn:hover { filter: brightness(1.1); }
.btn--quiet { background: transparent; color: var(--brand); border-color: transparent; }
.btn--quiet:hover { background: rgba(14, 111, 104, 0.08); filter: none; }

/* Composer */
.composer { background: var(--surface); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.composer textarea {
  width: 100%; border: 0; resize: vertical; font: inherit; color: inherit;
  background: transparent; min-height: 4.5rem;
}
.composer textarea:focus { outline: none; }
.composer__row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.file { color: var(--brand); font-weight: 600; cursor: pointer; }
.file input { max-width: 11rem; font-size: 0.85rem; color: var(--muted); }
.file span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Feed: one white column, posts divided by hairlines rather than separate cards */
.post { background: var(--surface); padding: 1rem; border-top: 1px solid var(--line); }
.post:first-of-type { border-top: 0; border-radius: var(--radius) var(--radius) 0 0; }
.post:last-of-type { border-radius: 0 0 var(--radius) var(--radius); }
.post:only-of-type { border-radius: var(--radius); }
.post__meta { display: flex; align-items: baseline; gap: 0.75rem; }
.post__meta time { color: var(--muted); font-size: 0.85rem; }
.post__body { margin: 0.35rem 0 0.75rem; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 65ch; }
.post__image { display: block; max-width: 100%; max-height: 480px; border-radius: 6px; margin: 0.5rem 0 0.75rem; }

/* Like */
.like-form { margin: 0; }
.like {
  font: inherit; display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: 0; padding: 0.25rem 0.5rem 0.25rem 0; cursor: pointer; color: var(--muted);
}
.like svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.like:hover { color: var(--like); }
.like.is-liked { color: var(--like); }
.like.is-liked svg { fill: currentColor; animation: pop 220ms ease-out; }
@keyframes pop { 50% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .like.is-liked svg { animation: none; } }

/* Forms */
.auth { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.5rem; }
.auth label { font-weight: 600; }
.auth input {
  font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px;
}
.auth .btn { margin-top: 0.75rem; }
.hint { margin: 0; color: var(--muted); font-size: 0.85rem; }
.error { color: #b42318; margin: 0.5rem 0 0; font-weight: 600; }
.notice, .empty { color: var(--muted); }
.empty { text-align: center; padding: 2rem 0; }
