/*
 * Styles for anderycks.net.
 */

@font-face {
  font-family: "Montserrat";
  font-display: swap;
  src: url(/fonts/Montserrat-VariableFont_wght.ttf) format("truetype");
}

@font-face {
  font-family: "Archivo Black";
  font-display: swap;
  src: url(/fonts/ArchivoBlack-Regular.ttf) format("truetype");
}

:root {
  --panel: #ffffff;
  --ink: #201d22;
  --muted: #6e6e6d;
  --line: #979388;
  --accent: #5499cf;
  --accent-hover: #df9242;
  --accent-secondary: #6fbde7;
}

@media (max-width: 860px) {
  header {
    padding-top: 10px;
  }

  header img {
    height: 50px;
  }

  .content {
    display: flex;
    flex-direction: column;
  }

  .content p {
    font-size: 1em;
  }

  .post-media {
    width: 100%;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
  }

  .post-image {
    margin: 0 auto 1em;
  }

  .connect {
    margin: 0 auto;
  }
}

/*
 * Base elements.
 */
body {
  background: #5499cf;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat";
  font-weight: 400;
  font-style: normal;
  color: var(--ink);
}
h1 {
  font-family: "Archivo Black";
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}
h2 {
  font-family: "Archivo Black";
  font-weight: 600;
}
a:link {
  color: var(--accent);
  text-decoration: none;
}
a:visited {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
  text-decoration: none;
  border-bottom: 1px dotted;
}

/*
 * Global sections.
 */
header {
  max-width: 1220px;
  width: min(94vw, 1220px);
  margin: 0 auto;
  box-sizing: border-box;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--panel);
  min-height: 82px;
  padding: 1em 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
header img {
  display: block;
  height: 58px;
}
header a:link {
  border-bottom: none;
}
main {
  max-width: 1220px;
  width: min(94vw, 1220px);
  margin: 0 auto;
  box-sizing: border-box;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 0 10px;
  flex: 1;
  overflow: hidden;
}
footer {
  max-width: 1220px;
  width: min(94vw, 1220px);
  margin: auto auto 0;
  box-sizing: border-box;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--panel);
  min-height: 50px;
  padding: 20px 10px;
  text-align: center;
  color: var(--muted);
}

/*
 * Homepage elements.
 */
.content {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
  padding: 0 2em;
}
.post-list {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 70ch;
}

.content p {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

p.summary {
  font-family: "Archivo Black";
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.post-media {
  flex: 0 0 clamp(250px, 30vw, 360px);
  min-width: 250px;
}

.post-image {
  display: block;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  background: var(--panel);
  padding: 0.24rem;
}

.connect {
  width: 100%;
  max-width: 360px;
  margin: 0;
  padding: 0;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-link:link,
.social-link:visited {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  padding: 0.52rem 0;
}

.social-link:hover {
  background: #FFF;
  color: var(--accent-hover);
  border: none;
}

.social-link img {
  width: 1.5rem;
}

/*
 * Constrain embedded content to its container.
 */
.post-list img,
.post-list video,
.post-list iframe,
.post-list embed,
.post-list object,
.page-body img,
.page-body video,
.page-body iframe,
.page-body embed,
.page-body object,
.post-body img,
.post-body video,
.post-body iframe,
.post-body embed,
.post-body object {
  max-width: 100%;
  height: auto;
}
