/*
  stuup.com — static archive stylesheet.
  Colours, type and layout are a simplified, hand-written recreation of the
  original "Writr" WordPress.com theme this blog used until 2014 — same
  teal palette, uppercase Montserrat headings and card-style entry titles,
  but as plain responsive CSS instead of the theme's jQuery-driven
  off-canvas sidebar (see README for why that was dropped).
*/

/* Montserrat, self-hosted (SIL OFL 1.1 — see /assets/fonts/OFL.txt). */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-700-normal.woff2") format("woff2");
}

:root {
  --teal: #0d7560; /* darkened from the theme's #1abc9c so header text meets WCAG AA (5.6:1) */
  --teal-dark: #0a5c4c; /* was #16a085 */
  --link: #0e7c66; /* darker than the theme's teal so body links meet WCAG AA (5.1:1) */
  --ink: #303030;
  --muted: #656565;
  --hairline: #f5f5f5;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.site-header :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

a:hover,
a:focus {
  color: var(--ink);
}

h1, h2, h3 {
  line-height: 1.25;
}

img {
  max-width: 100%;
  height: auto;
}

#page {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */

.site-header {
  background: var(--teal);
  color: #fff;
  padding: 24px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.site-logo img {
  display: block;
  border-radius: 6px;
}

.site-branding {
  flex: 1 1 260px;
}

.site-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-description {
  margin: 0 0 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: normal;
}

.main-navigation {
  width: 100%;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.main-navigation a {
  display: block;
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.main-navigation a:hover,
.main-navigation .current a {
  background: var(--teal-dark);
  color: #fff;
}

/* Layout */

#content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  padding: 32px 24px;
}

.content-area {
  flex: 3 1 480px;
  min-width: 0;
}

.widget-area {
  flex: 1 1 260px;
  max-width: 300px;
}

@media (max-width: 700px) {
  .widget-area {
    max-width: none;
  }
}

/* Entries */

.hentry {
  margin: 0 0 48px;
}

.entry-title {
  margin: 0 0 20px;
  padding: 14px 20px;
  background: var(--hairline);
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.entry-title a {
  color: var(--ink);
  text-decoration: none;
}

.entry-thumbnail {
  margin: 0 0 20px;
}

.entry-thumbnail img {
  display: block;
  border-radius: 4px;
}

.entry-content {
  font-size: 17px;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin: 0 0 1.2em;
}

.entry-content blockquote {
  margin-left: 0;
  padding-left: 1em;
  border-left: 4px solid var(--hairline);
  color: var(--muted);
}

.entry-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 4px double var(--hairline);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.entry-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Pagination */

.paging-navigation ul,
.paging-navigation {
  display: flex;
  justify-content: space-between;
  margin: 32px 0 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.page-title {
  margin: 0 0 24px;
  padding: 14px 20px;
  background: var(--hairline);
  font-size: 20px;
  text-transform: uppercase;
}

/* Comments */

.comments-area {
  margin-top: 40px;
}

.comments-title {
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 20px;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-body {
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-author img {
  border-radius: 50%;
}

.comment-author .fn {
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.comment-content p {
  margin: 0 0 0.8em;
}

.comment-metadata {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.comments-closed-note {
  margin-top: 24px;
  padding: 14px 20px;
  background: var(--hairline);
  color: var(--muted);
  font-size: 14px;
}

/* Widgets */

.widget {
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 4px double var(--teal-dark);
  font-size: 14px;
}

.widget-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li {
  margin: 0 0 8px;
}

/* Footer */

.site-footer {
  padding: 20px 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 480px) {
  .site-title {
    font-size: 18px;
  }

  .site-description {
    font-size: 12px;
  }
}
