:root {
  --bg: #fff3e8;
  --text: #2a1a0e;
  --text-muted: #7a5c44;
  --link: #d63f7a;
  --border: #e8cdb5;
  --accent: #d63f7a;
  --code-bg: #f5e6d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1030;
    --text: #ede0f5;
    --text-muted: #a98bc2;
    --link: #f472b0;
    --border: #3d2555;
    --accent: #f472b0;
    --code-bg: #2d1f45;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 8px;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 8px;
}

p {
  margin-bottom: 12px;
}

ul, ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

li {
  margin-bottom: 4px;
}

li ul {
  margin-top: 4px;
  margin-bottom: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 2px 5px;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
  font-size: 1em;
}

img {
  max-width: 100%;
}

details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary h2 {
  display: inline;
}

details summary h2::after {
  content: ' ›';
  font-size: 0.9em;
}

details[open] summary h2::after {
  content: ' ⌄';
}

details > :not(summary) {
  margin-top: 16px;
}

/* index.html */
header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

header img {
  border-radius: 50%;
  flex-shrink: 0;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0;
}

.links {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.links span {
  margin: 0 4px;
}

section {
  margin-bottom: 28px;
}

.job {
  margin-bottom: 20px;
}

.job-header {
  margin-bottom: 6px;
}

.job-title {
  font-weight: 600;
}

.job-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project {
  margin-bottom: 16px;
}

.screenshots {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.screenshots img {
  border-radius: 8px;
}

.gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 8px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.gallery img {
  height: 180px;
  width: auto;
  flex-shrink: 0;
  border-radius: 8px;
}

/* recipe pages — override Paprika's inline styles via source order */
.name {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: inherit;
}

.subhead {
  color: var(--accent);
  font-weight: bold;
  font-size: 0.85rem;
  font-family: inherit;
  text-transform: uppercase;
  margin: 10px 0;
}

.categories {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: inherit;
  font-style: italic;
}

.rating {
  color: var(--accent);
  font-size: 0.9rem;
  font-family: inherit;
}

.metadata {
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-muted);
}

.photoswipe {
  border: 1px solid var(--border);
}

.infobox p {
  margin: 0;
  line-height: 1.5;
}

.ingredients p {
  margin: 4px 0;
}

.text {
  line-height: 1.6;
}
