/* marinarosa.net — org mode inspired style */
:root {
  --font-serif: "Droid Serif", Cambria, "Big Caslon", "Lucida Bright", Georgia, "DejaVu Serif", serif;
  --color-text: #333;
  --color-heading: #3d6a6a;
  --color-link: #3d6a6a;
  --color-link-hover: #2a4a4a;
  --color-muted: #666;
  --color-border: #ddd;
  --max-width: 48rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  line-height: 1.6;
}

body {
  font-family: var(--font-serif);
  color: var(--color-text);
  background: #fff;
  margin: 0;
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

.title {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--color-muted);
  font-size: 1rem;
  font-style: italic;
  margin-top: 0;
}

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

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

/* paragraphs */
p {
  margin: 1rem 0;
}

/* lists */
ul, ol {
  padding-left: 1.5rem;
}

li {
  margin: 0.5rem 0;
}

/* code */
code {
  font-family: "Fira Code", "Source Code Pro", Consolas, monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
}

pre code {
  background: none;
  padding: 0;
}

/* preamble (nav + updated) */
#preamble {
  margin-bottom: 2rem;
  text-align: center;
}

#preamble nav a {
  font-size: 0.9rem;
}

#updated {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* centered header */
.title {
  text-align: center;
}

/* profile image */
img.profile {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
  display: block;
  margin: 1rem auto;
}

/* postamble (footer) */
#postamble {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-muted);
}

#postamble hr {
  display: none;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.generated {
  font-size: 0.8rem;
}

/* responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }
  
  body {
    padding: 1rem;
  }
  
  footer {
    flex-direction: column;
  }
}
