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

:root {
  --bg: #0c0c0c;
  --text: #d4d0c8;
  --muted: #555;
  --accent: #8c7355;
  --max-width: 680px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  background-color: var(--bg);
  border-bottom: 1px solid #1e1e1e;
  z-index: 100;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  text-decoration: none;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--text);
}

/* Sections */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid #1a1a1a;
}

section:last-child {
  border-bottom: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 8rem 0 4rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 2;
  margin-top: 1.5rem;
}

/* Explainer */
.explainer {
  text-align: center;
  padding: 4rem 2rem;
}

.explainer p {
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
  line-height: 2;
  max-width: 520px;
  margin: 0 auto;
}

/* Headings */
h2 {
  font-size: 0.8rem;
  font-weight: normal;
  margin-bottom: 2rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

p {
  color: var(--muted);
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.photo-grid img:hover {
  filter: grayscale(0%);
}

#posts {
  padding-top: 2rem;
}

.section-label {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 3rem;
  text-align: center;
}

/* Post Form */
.post-form {
  margin-bottom: 4rem;
}

.post-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-top: 1px solid #2a2a2a;
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.8;
  padding: 1.5rem 0;
  resize: none;
  outline: none;
  min-height: 100px;
}

.post-form textarea::placeholder {
  color: #333;
}

.post-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #2a2a2a;
  padding-top: 1rem;
}

.post-form-footer select {
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  outline: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
}

.post-form-footer select option {
  background: var(--bg);
  color: var(--text);
}

.post-form-footer button {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.post-form-footer button:hover {
  border-color: var(--muted);
  color: var(--text);
}

/* Post List */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.post-body {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.post-meta {
  color: #333;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.post-actions {
  margin-left: 1rem;
}

.post-action {
  background: none;
  border: none;
  color: #2a2a2a;
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0;
  margin-right: 0.75rem;
  transition: color 0.2s;
}

.post-action:hover {
  color: var(--muted);
}

.edit-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.8;
  padding: 0.75rem;
  resize: none;
  outline: none;
  min-height: 80px;
  margin-bottom: 0.75rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem;
  color: #2a2a2a;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
