/* ============================================
   Reemerweb — Stylesheet
   ============================================ */

:root {
  /* Color palette — warm dark theme */
  --color-bg:       #1a1714;
  --color-text:     #e0d5c7;
  --color-accent:   #c4a46e;
  --color-link:     #d4a76a;
  --color-link-hover: #e8c48a;
  --color-border:   #3a332b;
  --color-muted:    #8a7e6e;
  --color-warm-bg:  #241f1a;
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  padding: 2.5rem 1.25rem 2rem;
}

/* Layout — single centered column */
.container {
  max-width: 680px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--color-accent);
}

p {
  margin-bottom: 1rem;
}

/* Lead paragraph — the greeting */
.lead {
  font-size: 1.15em;
  color: var(--color-accent);
  line-height: 1.75;
}

/* Links */
a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 2px;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
  background-color: var(--color-warm-bg);
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0;
  padding-bottom: 1rem;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.site-header h1 a:hover {
  color: inherit;
  background-color: transparent;
}

.site-header .tagline {
  color: var(--color-muted);
  font-style: italic;
  font-size: 1rem;
}

/* Site navigation */
.site-nav {
  margin-top: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.site-nav a {
  color: var(--color-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
  background-color: transparent;
}

.site-nav .current {
  color: var(--color-text);
}

.site-nav .nav-dot {
  margin: 0 0.3rem;
  color: var(--color-border);
}

/* Decorative header rule */
.header-rule {
  border: none;
  text-align: center;
  margin-bottom: 1.5rem;
}

.header-rule::before {
  content: '\2022\2009\2022\2009\2022';
  color: var(--color-border);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

/* Decorative section dividers */
.site-main > hr {
  border: none;
  text-align: center;
  margin: 1.25rem 0;
}

.site-main > hr::before {
  content: '\2022\2009\2022\2009\2022';
  color: var(--color-border);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

/* Main content */
.site-main {
  margin-bottom: 2rem;
}

.site-main section {
  margin-bottom: 0;
}

/* Portrait photo */
.photo-portrait {
  margin: 0 0 1rem;
}

.photo-portrait img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 3px solid var(--color-border);
}

@media (min-width: 480px) {
  .photo-portrait {
    float: right;
    width: 50%;
    margin: 0.2rem 0 0.75rem 1.25rem;
  }
}

/* Contact section — warm aside */
.contact-section {
  background-color: var(--color-warm-bg);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
}

.contact-section p:last-child {
  margin-bottom: 0;
}

/* Contact links — inline, like a handwritten note */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-links a {
  display: inline-block;
}

/* Last updated timestamp */
.last-updated {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 1.5rem;
}

/* Link lists */
.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--color-border);
}

.link-list li:last-child {
  border-bottom: none;
}

/* Blog — post list */
.post-summary {
  margin-bottom: 1.5rem;
}

.post-summary h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.post-summary h3 a {
  text-decoration: none;
}

.post-summary h3 a:hover {
  text-decoration: underline;
}

.post-summary .p-summary {
  color: var(--color-muted);
  margin-bottom: 0;
}

.post-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

/* Blog — single post */
.post-header {
  margin-bottom: 1.5rem;
}

.post-header h2 {
  border-left: none;
  padding-left: 0;
  margin-bottom: 0.25rem;
}

.post-header .post-date {
  margin-top: 0.15rem;
}

/* Footer */
.site-footer {
  border-top: 1px dashed var(--color-border);
  padding-top: 1.5rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
}
