@import url("fonts.css");

:root {
  --fq-blue: #283891;
  --fq-accent: #ccffff;
  --fq-text: #222;
  --fq-muted: #666;
  --fq-bg: #fff;
  --fq-border: #e5e5e5;
  --content-width: 720px;
  --sidebar-width: 260px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  background: var(--fq-bg);
  color: #222;
  color: var(--fq-text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: #283891;
  color: var(--fq-blue);
}

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

.home-button {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 1000;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  color: #283891;
  color: var(--fq-blue);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  -webkit-transition: background 0.2s ease, -webkit-transform 0.2s ease;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-button:hover {
  background: #fff;
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

.page-header {
  background: #283891;
  background: var(--fq-blue);
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: center;
}

.page-header img.logo {
  max-width: 420px;
  max-width: min(420px, 90vw);
  height: auto;
}

.hero {
  width: 100%;
  max-height: 420px;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
}

/* Fallback when object-fit is unsupported */
@supports not (object-fit: cover) {
  .hero {
    height: auto;
    max-height: none;
  }
}

.article-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.article-meta {
  max-width: 720px;
  max-width: var(--content-width);
  margin: 0 auto 2rem;
  text-align: center;
}

.category {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #283891;
  color: var(--fq-blue);
}

.category a {
  color: inherit;
  text-decoration: none;
}

.article-meta h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 100;
  line-height: 1.15;
  color: #283891;
  color: var(--fq-blue);
}

.byline {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #666;
  color: var(--fq-muted);
  font-size: 0.95rem;
}

.byline img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  -o-object-fit: cover;
  object-fit: cover;
}

.byline > * + * {
  margin-left: 0.75rem;
}

@supports (gap: 0.75rem) {
  .byline {
    gap: 0.75rem;
  }

  .byline > * + * {
    margin-left: 0;
  }
}

.byline em {
  font-style: normal;
}

.layout {
  display: block;
}

@supports (display: grid) {
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 2.5rem;
    -webkit-align-items: start;
    align-items: start;
  }
}

.sidebar {
  position: relative;
  padding: 1.25rem;
  background: #f7f8fc;
  border: 1px solid #e5e5e5;
  border: 1px solid var(--fq-border);
  border-radius: 4px;
  margin-bottom: 2rem;
}

@supports (position: sticky) {
  .sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 1.5rem;
    margin-bottom: 0;
  }
}

.sidebar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
}

.sidebar h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.sidebar p {
  margin: 0;
  font-size: 0.92rem;
  color: #666;
  color: var(--fq-muted);
}

.post-content,
.body-fragment .post-content {
  max-width: 720px;
  max-width: var(--content-width);
}

.body-fragment {
  margin: 0;
  padding: 0;
}

blockquote.blockquote-two {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #283891;
  border-left: 4px solid var(--fq-blue);
  background: rgba(40, 56, 145, 0.05);
  font-style: italic;
}

blockquote.blockquote-two p {
  margin: 0;
}

h4.blue {
  color: #283891;
  color: var(--fq-blue);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
}

h4.blue a,
h4.blue span a {
  color: #283891 !important;
  color: var(--fq-blue) !important;
}

.post-content h3 {
  clear: both;
  margin: 2rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  color: var(--fq-text);
}

.post-content p {
  margin: 0 0 1.2rem;
}

figure.wp-caption {
  margin: 0 0 1.25rem 1.25rem;
  max-width: 45%;
}

figure.wp-caption.alignright {
  float: right;
}

figure.wp-caption img {
  display: block;
  width: 100%;
}

figcaption.wp-caption-text {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #666;
  color: var(--fq-muted);
  text-align: left;
}

.article-footer-block {
  clear: both;
  max-width: 720px;
  max-width: var(--content-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
  border-top: 1px solid var(--fq-border);
}

.tags {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.tags span {
  font-weight: 700;
  margin-right: 0.5rem;
}

.author-bio {
  display: block;
  overflow: hidden;
}

@supports (display: grid) {
  .author-bio {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1rem;
    -webkit-align-items: start;
    align-items: start;
  }
}

.author-bio img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  -o-object-fit: cover;
  object-fit: cover;
  float: left;
  margin: 0 1rem 0.5rem 0;
}

@supports (display: grid) {
  .author-bio img {
    float: none;
    margin: 0;
  }
}

.author-bio h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.author-bio p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
  color: var(--fq-muted);
}

.issue-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
  border-top: 1px solid var(--fq-border);
  font-size: 0.92rem;
  color: #666;
  color: var(--fq-muted);
}

.issue-footer h5 {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: 700;
}

@media (max-width: 900px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: static;
    margin-bottom: 2rem;
  }

  figure.wp-caption {
    float: none;
    max-width: 100%;
    margin: 0 auto 1.25rem;
  }
}

@media (min-width: 901px) {
  @supports not (display: grid) {
    .post-content {
      display: inline-block;
      width: calc(100% - 300px);
      vertical-align: top;
    }

    .sidebar {
      display: inline-block;
      width: 260px;
      vertical-align: top;
      margin-left: 2rem;
    }
  }
}
