/* Tartaria Lives: library pages (posts, pages, tags, authors) */
:root {
  --night: #05030a;
  --ink: #f4ecdc;
  --gold: #e6bd6e;
  --paper: #f3e7cf;
  --paper-2: #faf1de;
  --paper-ink: #261d14;
  --paper-dim: #6d5b45;
  --paper-rule: #d6c29c;
  --accent: #8c3a1c;
  --display: var(--gh-font-heading, "Cinzel", Georgia, serif);
  --serif: var(--gh-font-body, "Cormorant Garamond", Georgia, serif);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --measure: 720px;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--paper-ink); font-family: var(--serif); font-size: 21px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; background-image: radial-gradient(rgba(120,80,30,.07) 1px, transparent 1px); background-size: 5px 5px; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--night); }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px 28px; background: var(--night); color: var(--ink); }
.mark { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--display); letter-spacing: .32em; font-size: 13px; white-space: nowrap; }
.mark svg { width: 24px; height: 24px; }
.site-nav { flex: 1; overflow-x: auto; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: #c8bba3; text-decoration: none; font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.site-nav a:hover, .site-nav .nav-current a { color: var(--gold); }
.head-actions { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.head-actions a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.head-actions .head-sub { color: var(--night); background: var(--gold); padding: 9px 14px 8px; border-radius: 2px; }

.site-main { position: relative; z-index: 1; padding: 0 22px; }

/* listing pages */
.list-head { max-width: 860px; margin: 0 auto; padding: 84px 0 44px; text-align: center; }
.kicker { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--accent); text-decoration: none; margin: 0 0 12px; }
.list-head h1, .article-head h1, .error-page h1 { font-family: var(--display); font-weight: 600; letter-spacing: .04em; line-height: 1.05; margin: 0 0 14px; }
.list-head h1 { font-size: clamp(40px, 6vw, 80px); }
.dek { color: var(--paper-dim); font-size: clamp(19px, 2vw, 24px); font-style: italic; margin: 0 auto; max-width: 640px; }
.author-head .avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 2px solid var(--paper-rule); }
.author-links { font-family: var(--display); font-size: 12px; letter-spacing: .2em; margin-top: 14px; }

.cards { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding-bottom: 40px; }
.card-link { display: flex; flex-direction: column; height: 100%; color: var(--paper-ink); text-decoration: none; background: var(--paper-2); border: 1px solid var(--paper-rule); border-radius: 3px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.card-link:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(80,50,15,.18); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.card-img-blank { background: radial-gradient(ellipse at 50% 0%, #6b3a7a, var(--night) 75%); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.card-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.card-title { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.2; }
.card-excerpt { color: var(--paper-dim); font-size: 17px; line-height: 1.45; }
.card-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); margin-top: 4px; }

.pagination { max-width: 1160px; margin: 0 auto 80px; display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 13px; letter-spacing: .18em; color: var(--paper-dim); }
.pagination a { text-decoration: none; }

/* articles */
.article { max-width: var(--measure); margin: 0 auto; padding: 80px 0 40px; }
.article-head { text-align: center; margin-bottom: 38px; }
.article-head h1 { font-size: clamp(36px, 5.4vw, 64px); }
.byline { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-dim); margin-top: 18px; }
.byline a { color: inherit; text-decoration: none; }
.feature { margin: 0 0 40px; }
.feature img { width: 100%; border-radius: 2px; }
figcaption { font-size: 16px; color: var(--paper-dim); text-align: center; font-style: italic; margin-top: 10px; }

.gh-content { font-size: 22px; line-height: 1.65; }
.gh-content > * { margin: 0 0 1.1em; }
.gh-content h2, .gh-content h3, .gh-content h4 { font-family: var(--display); font-weight: 600; line-height: 1.2; letter-spacing: .02em; margin: 1.8em 0 .6em; }
.gh-content h2 { font-size: 34px; }
.gh-content h3 { font-size: 26px; }
.gh-content h4 { font-size: 21px; }
.gh-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--accent); font-style: italic; font-size: 25px; }
.gh-content blockquote.kg-blockquote-alt { border: 0; padding: 0; text-align: center; font-size: 30px; }
.gh-content hr { border: 0; height: 1px; background: var(--paper-rule); margin: 2.4em 0; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li { margin: .35em 0; }
.gh-content code { font-family: var(--mono); font-size: .8em; background: var(--paper-2); padding: 2px 6px; border-radius: 2px; }
.gh-content pre { background: var(--night); color: var(--ink); padding: 18px; overflow-x: auto; border-radius: 3px; font-size: 15px; }
.gh-content pre code { background: none; padding: 0; }
.gh-content figure { margin: 1.6em 0; }
.gh-content iframe { max-width: 100%; }
.gh-content .kg-image-card img, .gh-content .kg-gallery-image img { border-radius: 2px; }
.gh-content .kg-width-wide { width: min(1100px, 94vw); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full img { border-radius: 0; }
.kg-width-wide { width: min(1100px, 94vw); }
.kg-width-full { width: 100vw; }

.comments { margin-top: 60px; }

/* end-of-post */
.next-rooms { max-width: 1160px; margin: 0 auto; padding: 40px 0 70px; border-top: 1px solid var(--paper-rule); }
.lib-h { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; display: flex; align-items: center; gap: 16px; }
.lib-h::after { content: ""; flex: 1; height: 1px; background: var(--paper-rule); }

/* error */
.error-page { max-width: 640px; margin: 0 auto; padding: 120px 0; text-align: center; }
.error-page h1 { font-size: clamp(34px, 5vw, 56px); }
.btn { display: inline-block; margin-top: 26px; font-family: var(--display); font-size: 12px; letter-spacing: .24em; text-decoration: none; color: #fff; background: var(--accent); padding: 14px 22px 13px; border-radius: 2px; }

/* footer */
.site-foot { position: relative; z-index: 1; background: var(--night); color: #c8bba3; text-align: center; padding: 46px 22px 54px; font-size: 16px; }
.site-foot .foot-walk { display: inline-block; font-family: var(--display); letter-spacing: .24em; font-size: 13px; color: var(--gold); text-decoration: none; margin-bottom: 18px; }
.site-foot nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; list-style: none; padding: 0; margin: 0 0 16px; }
.site-foot nav a { color: #c8bba3; text-decoration: none; font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.site-foot p { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 19px; }
  .site-head { padding: 12px 16px; gap: 14px; flex-wrap: wrap; }
  .mark span { display: none; }
  .site-nav { order: 3; flex-basis: 100%; }
  .head-actions { margin-left: auto; }
  .gh-content { font-size: 20px; }
  .article { padding-top: 54px; }
  .list-head { padding-top: 56px; }
}
