/* ==========================================================================
   Turngren Philately — Hugo port of the Casper 5 look
   Palette lifted from the live Ghost theme's built stylesheet.
   ========================================================================== */

@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/cardo-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/cardo-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-darkgrey: #15171a;
  --color-midgrey: #738a94;
  --color-lightgrey: #f1f1f1;
  --color-border: #e1e1e1;
  --color-wash: #e5eff5;
  --color-white: #fff;
  --ghost-accent-color: #206a2a;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --font-serif: Cardo, Georgia, Times, serif;
  --content-width: 720px;
  --container-width: 1200px;
  --gap: max(4vmin, 20px);
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.6em;
  color: var(--color-darkgrey);
  background: var(--color-white);
}

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

a { color: var(--color-darkgrey); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ghost-accent-color); }

.inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* --------------------------------------------------------------- header -- */

.site-header { padding: 2.4rem 0; }
.site-header .inner {
  max-width: var(--container-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.site-logo img { height: 10rem; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2.4rem; }
.site-nav a {
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-midgrey);
}
.site-nav a:hover, .site-nav a.nav-current { color: var(--color-darkgrey); }

/* ------------------------------------------------------------------ home -- */

.hero { max-width: var(--container-width); margin: 0 auto 6rem; padding: 0 var(--gap); }
.hero img { width: 100%; }

.post-feed { padding-bottom: 4rem; }

.post-card { padding: 0 0 3.2rem; margin-bottom: 3.2rem; border-bottom: 1px solid var(--color-border); }
.post-card:last-child { border-bottom: 0; }
.post-card-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.2em;
  margin: 0 0 1rem;
  font-weight: 400;
}
.post-card-title a { text-decoration: none; }
.post-card-meta {
  font-size: 1.3rem;
  color: var(--color-midgrey);
  margin: 0 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.post-card-meta .sep { color: var(--color-border); }
.tag { text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.2rem; color: var(--color-midgrey); }
.tag:hover { color: var(--ghost-accent-color); }
.post-card p {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1.5em;
  color: var(--color-midgrey);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-title { font-family: var(--font-serif); font-size: 3.4rem; font-weight: 400; margin: 0 0 4rem; }

/* ---------------------------------------------------------------- article -- */

.article { padding-bottom: 6rem; }
.article-image { margin: 0 auto 5rem; max-width: var(--container-width); padding: 0 var(--gap); }
.article-header { margin-bottom: 4rem; text-align: left; }
.article-title {
  font-family: var(--font-serif);
  font-size: 4.4rem;
  line-height: 1.15em;
  font-weight: 400;
  margin: 0 0 2rem;
}
.article-byline { display: flex; align-items: center; gap: 1.2rem; font-size: 1.3rem; color: var(--color-midgrey); }

.gh-content { font-size: 1.8rem; line-height: 1.7em; }
.gh-content p { margin: 0 0 1.5em; }
.gh-content h2, .gh-content h3, .gh-content h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3em;
  margin: 2em 0 0.6em;
}
.gh-content h2 { font-size: 2.8rem; }
.gh-content h3 { font-size: 2.3rem; }
.gh-content h4 { font-size: 2rem; }
.gh-content ul, .gh-content ol { margin: 0 0 1.5em; padding-left: 1.6em; }
.gh-content li { margin-bottom: 0.4em; }
.gh-content blockquote {
  margin: 2em 0;
  padding-left: 1.6em;
  border-left: 3px solid var(--ghost-accent-color);
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-style: italic;
  color: var(--color-midgrey);
}
.gh-content figure { margin: 2.4em 0; }
.gh-content figcaption {
  font-size: 1.3rem;
  color: var(--color-midgrey);
  text-align: center;
  margin-top: 0.8em;
}
.gh-content img { margin: 0 auto; }
.gh-content hr { border: 0; border-top: 1px solid var(--color-border); margin: 3em 0; }
.gh-content code { font-size: 0.9em; background: var(--color-lightgrey); padding: 0.1em 0.3em; }
.gh-content pre { background: var(--color-lightgrey); padding: 1.6rem; overflow-x: auto; font-size: 1.4rem; }

/* placeholder for media that only ever existed on the dead WordPress host */
.missing-media {
  display: block;
  border: 1px dashed var(--color-border);
  background: #fafafa;
  padding: 2.4rem 1.6rem;
  margin: 2.4em 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.3rem;
  color: var(--color-midgrey);
}
.missing-media .mm-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  color: #b0563f;
  margin-bottom: 0.6rem;
}
.missing-media code { background: none; padding: 0; font-size: 1.3rem; color: var(--color-darkgrey); }
.missing-media .alt { display: block; margin-top: 0.4rem; font-style: italic; }
.missing-media .dims { display: block; opacity: 0.6; }

.article-footer { margin-top: 4rem; border-top: 1px solid var(--color-border); padding-top: 2.4rem; }
.article-tags { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 2.4rem; }
.post-nav { display: flex; justify-content: space-between; gap: 2rem; font-size: 1.4rem; }
.post-nav a { text-decoration: none; max-width: 48%; }
.post-nav .next { text-align: right; margin-left: auto; }

/* ----------------------------------------------------------------- pager -- */

.pager { display: flex; align-items: center; justify-content: space-between; padding: 3rem var(--gap) 6rem; font-size: 1.4rem; }
.pager a { text-decoration: none; font-weight: 600; }
.pager-info { color: var(--color-midgrey); }

/* ---------------------------------------------------------------- footer -- */

.site-footer { border-top: 1px solid var(--color-border); padding: 3rem 0; font-size: 1.3rem; color: var(--color-midgrey); }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.site-footer .sep { color: var(--color-border); }
.site-footer a { color: var(--color-midgrey); }

@media (max-width: 700px) {
  html { font-size: 58%; }
  .site-logo img { height: 7rem; }
  .site-nav { gap: 1.6rem; }
  .article-title { font-size: 3.4rem; }
  .post-card-title { font-size: 2.6rem; }
  .hero { margin-bottom: 4rem; }
}
