:root {
  --bg: #f4efe9;
  --paper: #fff9f3;
  --ink: #1e1a16;
  --muted: #6b5d53;
  --accent: #b3472e;
  --accent-2: #2f6f6f;
  --border: #e6d9cc;
  --shadow: 0 18px 40px rgba(30, 26, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 15%, #fff7ec 0%, #f4efe9 55%, #ede4d8 100%);
  min-height: 100vh;
}

a {
  color: var(--accent-2);
}

.hero {
  padding: 64px 24px 32px;
  text-align: center;
}

.hero h1 {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  margin: 0 0 12px;
}

.hero p {
  margin: 0 auto 24px;
  max-width: 700px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
}

.toolbar {
  border-radius: 12px 12px 0 0;
}

#editor {
  background: #fff;
  border-radius: 0 0 12px 12px;
  min-height: 340px;
}

button.primary {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  width: fit-content;
}

button.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 140px;
  align-self: start;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.sticky-publish {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255, 249, 243, 0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.sticky-publish .note {
  margin: 0;
}

.page,
body {
  padding-bottom: 72px;
}

.page {
  padding: 48px 24px 64px;
}

.paper {
  max-width: 880px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 40px 52px;
  box-shadow: var(--shadow);
}

.paper-header h1 {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  margin: 8px 0 4px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 12px 0;
}

.content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--muted);
  margin-left: 0;
}

.view-minimal {
  background: #000;
  color: #fff;
  min-height: 100vh;
  font-family: "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
}

.view-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.view-title {
  font-size: clamp(3rem, 8vw, 9rem);
  line-height: 0.95;
  margin: 0 0 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.view-content {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 900px;
}

.view-content a {
  color: #fff;
}

.view-content img {
  max-width: 100%;
}

@media (max-width: 720px) {
  .paper {
    padding: 28px 22px;
  }
}
