/* Florian Ulrich Jehn: site style (Japandi / Bauhaus / a hint of Art Deco).
   Overrides Beautiful Jekyll. Tokens follow the personal style guidelines. */

:root {
  --paper: #F7F4EF;
  --tint: #EFE7E9;
  --ink: #2E2A2B;
  --muted: #6E6668;
  --hairline: #D9D2CF;
  --aubergine: #5D2A42;
  --berry: #8E5A74;
  --rose: #CC8FA0;
  --mauve: #C9B1BD;
  --font: "Century Gothic", "Didact Gothic", "URW Gothic", "Questrial", sans-serif;
  --chamfer: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  --octagon: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%,
                     70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
}

/* --- Angles over curves, no shadows --- */
*, *::before, *::after {
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* --- Base --- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
p { line-height: 1.6; margin: 1.25rem 0; }
b, strong { font-weight: 400; color: var(--aubergine); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--aubergine);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-top: 4rem; }
h2 { font-size: 1.625rem; margin-top: 3rem; }
h3 { font-size: 1.25rem; margin-top: 2rem; }
h4 { font-size: 1.0625rem; margin-top: 1.75rem; }

/* Title rule: short rose rule ending in a small aubergine octagon mark.
   One SVG so rule and octagon always share the same centre line. */
h2::after {
  content: "";
  display: block;
  width: 3.75rem;
  height: 0.5rem;
  margin-top: 0.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8'%3E%3Cline x1='0' y1='4' x2='52.5' y2='4' stroke='%23CC8FA0' stroke-width='2'/%3E%3Cpolygon points='54.34,0 57.66,0 60,2.34 60,5.66 57.66,8 54.34,8 52,5.66 52,2.34' fill='%235D2A42'/%3E%3C/svg%3E") left center / 100% 100% no-repeat;
}

a, h1 a, h2 a, h3 a, h4 a {
  color: var(--berry);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--mauve);
}
a:hover, a:focus { color: var(--aubergine); text-decoration-color: var(--aubergine); }
h2 a, h3 a, h4 a { color: var(--aubergine); }
h2 a { text-decoration: none; }
h2 a:hover { text-decoration: underline; }
h2 a:hover, h3 a:hover, h4 a:hover { color: var(--berry); }

blockquote {
  font-style: normal;
  color: var(--muted);
  border-left: 3px solid var(--mauve);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

hr { border: 0; border-top: 1px solid var(--hairline); }

::selection { background: var(--aubergine); color: var(--paper); }

/* Small labels in letter-spaced capitals */
.label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.card { background: var(--tint); clip-path: var(--chamfer); padding: 1.5rem; }
.octagon { clip-path: var(--octagon); }

/* Square bullets in berry; second level an en dash */
ul { list-style: none; padding-left: 1.25rem; }
ul > li { position: relative; }
ul > li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.68em;
  width: 0.36rem;
  height: 0.36rem;
  background: var(--berry);
}
ul ul > li::before {
  content: "–";
  width: auto; height: auto;
  background: none;
  color: var(--berry);
  top: 0;
}
.navbar ul > li::before,
footer ul > li::before,
.pagination li::before,
.blog-tags li::before,
.list-inline > li::before,
#search-results-container li::before { content: none; }
.navbar ul, footer ul, .list-inline { padding-left: 0; }

/* --- Navbar: paper with a hairline, aubergine name, spaced-caps links --- */
.navbar-custom {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font);
  letter-spacing: 0;
}
.navbar-custom .navbar-brand {
  font-weight: 400;
  color: var(--aubergine);
  letter-spacing: 0.01em;
}
.navbar-custom .navbar-nav .nav-link {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus { color: var(--aubergine); }
.navbar-custom .navbar-brand { text-decoration: none; }
.navbar-custom .navbar-toggler { border-color: var(--hairline); }
.navbar-custom .dropdown-menu { background: var(--paper); border: 1px solid var(--hairline); }

/* Avatar (if enabled): octagon with a mauve hairline echo, never a circle */
.navbar-custom .avatar-container .avatar-img-border {
  background: var(--mauve);
  clip-path: var(--octagon);
  padding: 1px;
}
.navbar-custom .avatar-container .avatar-img {
  clip-path: var(--octagon);
  border: 0;
}

/* --- Footer: double rule (aubergine hairline over a thinner mauve one) --- */
footer {
  background: var(--paper);
  border-top: 1px solid var(--aubergine);
  position: relative;
  margin-top: 5rem;
}
footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 3px;
  border-top: 1px solid var(--mauve);
  opacity: 0.8;
}
footer .copyright,
footer .theme-by {
  font-size: 0.72rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted) !important;
}
footer .theme-by a, footer .copyright a { color: var(--muted); }
footer a { text-decoration: none; }

/* Social icons: octagons instead of circles */
footer .footer-links .fa-stack .fa-stack-2x { display: none; }
footer .footer-links .fa-stack {
  background: var(--berry);
  clip-path: var(--octagon);
  width: 2.25em;
  height: 2.25em;
  line-height: 2.25em;
}
footer .footer-links .fa-stack .fa-stack-1x { color: var(--paper); line-height: 2.25em; }
footer .footer-links a:hover .fa-stack,
footer .footer-links a:focus .fa-stack { background: var(--aubergine); }

/* --- Home page: single calm text column --- */
.home {
  max-width: 42rem;
  margin: 0 auto 2rem;
}
.home > div > h1:first-child { margin-top: 1rem; }
.home h3 a, .home h4 a { text-decoration-color: var(--hairline); }
.home h3 + p, .home h4 + p { margin-top: 0.5rem; }

/* Year headings are small labels */
.home h3.year {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
}

/* Talks and podcasts as plain hairline-separated lists */
.home ul { padding-left: 1.25rem; margin-bottom: 0; }
.home ul > li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline);
}
.home ul > li:last-child { border-bottom: 0; }
.home ul > li::before { top: calc(0.55rem + 0.68em); }

/* --- Blog and pages --- */
.intro-header .page-heading h1,
.intro-header .post-heading h1 { color: var(--aubergine); font-weight: 400; }
.intro-header .page-heading .page-subheading,
.intro-header .post-heading .post-subheading { color: var(--muted); font-weight: 400; }
.intro-header .page-heading hr.small { border-color: var(--rose); border-width: 1px; }
.post-preview { border-bottom: 1px solid var(--hairline); }
.post-preview a { color: var(--aubergine); }
.post-preview .post-subtitle { font-weight: 400; color: var(--muted); }
.post-preview .post-read-more { font-weight: 400; }
.post-preview .post-meta,
.post-heading .post-meta,
#full-tags-list .tag-entry .entry-date {
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.blog-tags a { color: var(--berry); }
.blog-tags a:hover { border-color: var(--berry); color: var(--aubergine); }

/* Buttons: rectangular outlines with spaced-caps labels */
.btn, .pagination .page-link, .pager li a {
  background: transparent;
  border: 1px solid var(--aubergine) !important;
  color: var(--aubergine) !important;
  font-weight: 400 !important;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn:hover, .pagination .page-link:hover, .pager li a:hover {
  background: var(--aubergine) !important;
  color: var(--paper) !important;
}

code, pre { background: var(--tint); border: 0; color: var(--ink); }
table { border-collapse: collapse; }
th { color: var(--aubergine); font-weight: 400; border-bottom: 1px solid var(--hairline); }
td { border-bottom: 1px solid var(--hairline); }

/* --- Search overlay --- */
#beautifuljekyll-search-overlay { background: rgba(46, 42, 43, 0.92); }

@media (max-width: 575px) {
  h1 { font-size: 1.875rem; margin-top: 3rem; }
  h2 { font-size: 1.4rem; }
  .home { padding: 0 0.25rem; }
}
