/* =========================================================
   THEME.CSS — Minimal Blogger Theme Styles
   Built on top of Normalize.css
   ========================================================= */

/* Document */
html {
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  background: #fff;
  color: #222;
}

/* Sections */
main {
  display: block;
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 1rem;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  /* margin: 1.5rem 0 0.8rem; */
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Grouping Content */
hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2rem 0;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}
p {
  margin: 0 0 1rem;
}
ul, ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid #ddd;
  color: #555;
  font-style: italic;
}

/* Text-level semantics */
a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
abbr[title] {
  text-decoration: underline dotted;
}
b, strong {
  font-weight: 600;
}
code, kbd, samp {
  font-family: monospace, monospace;
  font-size: 0.95em;
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}
small {
  font-size: 80%;
}
sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub { bottom: -0.25em; }
sup { top: -0.5em; }

/* Embedded content */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
video, iframe {
  max-width: 100%;
  display: block;
}

/* Forms */
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.4;
  margin: 0;
}
button, input {
  overflow: visible;
}
button, select {
  text-transform: none;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
  /* Use the standard 'appearance' property with vendor fallbacks
     so the stylesheet doesn't rely on a single vendor-only property. */
  -webkit-appearance: button;
  -moz-appearance: button;
  appearance: button;
  cursor: pointer;
}

fieldset {
  border: 1px solid #ddd;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}
legend {
  font-weight: 600;
  padding: 0 0.5rem;
}
textarea {
  overflow: auto;
  width: 100%;
  min-height: 120px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
[type="checkbox"], [type="radio"] {
  margin-right: 0.4rem;
}
[type="search"] {
  /* Normalize search inputs across browsers; keep textfield look with fallbacks. */
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
  outline-offset: -2px;
}

/* Remove WebKit-specific decorations (clear/cancel buttons) when desired */
[type="search"]::-webkit-search-decoration,
[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* Interactive */
details {
  margin: 1rem 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}

/* Misc */
[hidden] {
  display: none !important;
}

/* =========================================================
   Blogger-specific Elements
   ========================================================= */

/* Header */
.site-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  border-bottom: 1px solid #eee;
}
.site-header .site-title a {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
}
.site-header .site-description {
  font-size: 1rem;
  color: #666;
  margin-top: 0.3rem;
}

/* Navigation (Pages widget) */
.pages .page-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.pages .page-list li a {
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.pages .page-list li a:hover {
  background: #f5f5f5;
}

/* Blog Posts */
article {
  margin-bottom: 2.5rem;
}
.post-header h1,
.post-header h2 {
  margin: 0 0 0.5rem;
}
.post-date {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

/* Pager */
.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
.pager a {
  padding: 0.5rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fafafa;
  transition: background 0.2s;
}
.pager a:hover {
  background: #f0f0f0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #eee;
  margin-top: 3rem;
}
