/* Sena Koleva, Ph.D. — styles reproduced from the original Squarespace theme
   Type: Cabin. Accent: #ff8c00. Text: #272727. Content column: 800px. */

:root {
  --text: #272727;
  --text-soft: #6b6b6b;
  --title: #121212;
  --accent: #ff8c00;
  --rule: #e4e4e4;
  --bg: #ffffff;
  --measure: 800px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Cabin, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px 100px;
}

/* ---------- Header ---------- */

.site-header {
  text-align: center;
  padding: 56px 24px 0;
}

.site-title {
  margin: 0;
  font-size: clamp(2.2rem, 6.2vw, 4rem);
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.4;
}

.site-title a { color: var(--title); text-decoration: none; }
.site-title a:hover { color: var(--accent); }

.site-tagline {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  letter-spacing: 1px;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--text);
}

.site-description {
  margin: 10px auto 0;
  max-width: 640px;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-soft);
}

/* ---------- Navigation ---------- */

.site-nav {
  margin: 34px auto 0;
  max-width: var(--measure);
  padding: 0 24px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 18px 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--accent); }

/* ---------- Content ---------- */

main { padding-top: 46px; }

main h1, main h2 {
  font-weight: 700;
  line-height: 1.3;
  margin: 2.2em 0 0.6em;
}

main h1 { font-size: 1.5rem; }
main h2 { font-size: 1.25rem; }
main > :first-child, main h2:first-child { margin-top: 0; }

p { margin: 0 0 1.4em; }

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

ul { padding-left: 1.25em; margin: 0 0 1.4em; }
li { margin-bottom: 0.5em; }
li > ul { margin-top: 0.5em; }
li p { margin: 0 0 0.6em; }

/* Floated portrait, as in the original layout */
.portrait {
  float: right;
  width: 42%;
  max-width: 320px;
  margin: 6px 0 24px 32px;
}

.portrait img { display: block; width: 100%; height: auto; }

figure { margin: 0 0 1.6em; }
figure img { display: block; width: 100%; height: auto; }

figcaption {
  margin-top: 8px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.figure-left {
  float: left;
  width: 44%;
  max-width: 330px;
  margin: 6px 30px 20px 0;
}

.clearfix::after { content: ""; display: block; clear: both; }

.connect {
  clear: both;
  margin-top: 2.4em;
  text-align: center;
  font-weight: 700;
}

/* ---------- Footer ---------- */

.site-footer {
  clear: both;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 26px 24px 60px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--text-soft);
}

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

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header { padding-top: 40px; }
  .portrait, .figure-left {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
  }
  .site-nav ul { gap: 20px; }
}
