/*
COLORS
yellow text and box shadow: #fcd707
yellow background: rgba(252, 215, 9, 0.7)
dark blue background: #003366
white text: rgba(248, 248, 248, 0.8);
white background: rgba(248, 248, 248, 0.7);
black text: #0b2027
*/

:root {
  font-family: Inter, sans-serif;
}

@font-face {
  font-family: Raleway;
  src: url("https://thriftmac.com/fonts/Raleway/Raleway-VariableFont_wght.ttf")
    format("truetype");
}
@font-face {
  font-family: Barlow;
  src: url("https://thriftmac.com/fonts/Barlow_Condensed/BarlowCondensed-Medium.ttf")
    format("truetype");
}

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

.hidden {
  display: none;
}

/* BODY */

body {
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  padding: 3em 0;
  color: rgba(248, 248, 248, 0.8);
  background: #003366;
  background-image: url("/images/cloud-solid-full-3.png");
  background-repeat: no-repeat;
  background-size: 75%;
  background-position: top center;
}

@media (max-width: 65em) {
  body {
    padding: 1em 0 5em 0;
  }
}

/* MAIN */

main {
  width: 95%;
  max-width: 800px;
  margin: 20px auto;
}

/* NAV */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem; /* optional spacing between items */
}

@media (max-width: 720px) {
  nav {
    display: block;
  }
  .nav-links {
    padding-left: 0;
  }
  .nav-links a:first-child {
    margin-left: 0;
  }
}

ul.nav-links li {
  padding-right: 0;
}

ul.nav-links li a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  border-bottom: none;
}

.nav-links a:hover {
  color: #fcd707;
}

/* HEADER title */

h1 {
  /* text-transform: uppercase; */
  font-weight: 300;
  font-size: 4rem;
  color: #fcd707;
  margin-top: -30px;
  margin-bottom: 0;
  line-height: 1.2;
}

@media (max-width: 402px) {
  h1 {
    font-size: 4rem;
    margin-top: 0;
  }
  h1 .fa-sun {
    display: none;
  }
}

h1 .fa-sun {
  color: #fcd707;
  text-shadow:
    0 0 7px #fff,
    0 0 10px #fff,
    0 0 21px #fff,
    0 0 42px #fcd707;
}

h1:hover .fa-sun {
  color: #fcd707;
  text-shadow:
    0 0 7px #fff,
    0 0 10px #fff,
    0 0 21px #fff,
    0 0 42px #fcd707,
    0 0 82px #fcd707,
    0 0 92px #fcd707;
}

h1 a {
  color: #fcd707;
  text-decoration: none;
}

header h2 {
  font-weight: 300;
  margin-top: 40px;
  margin-bottom: 1em;
  font-size: 1.6rem;
  text-wrap: balance;
}

@media (max-width: 402px) {
  header h2 {
    margin-bottom: 20px;
    font-size: 1rem;
    width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 500px) {
  .scrimpy {
    display: none;
  }
}

/* HEADER button group */

.header-button-group {
  display: flex;
  column-gap: 10px;
}

.header-button {
  flex: 1 1 auto;
  box-shadow: 0 0 2px #fff;
}

/* HEADER lists */

header ul {
  list-style-type: none;
  padding-right: 20px;
  padding-left: 0;
  margin-top: 1rem;
  margin-bottom: 0;
}

header ul li {
  font-size: 1.05rem;
  display: inline;
  padding-right: 12px;
  white-space: nowrap;
}

header ul li a {
  color: rgba(248, 248, 248, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 248, 248, 0.6);
}

header ul li a:hover {
  border-bottom: 1px solid #fcd707;
}

.current-category {
  border-bottom: 1px solid #fcd707;
}

.category_list li {
  font-size: 13px;
  line-height: 2.2;
  font-family: "Barlow";
  text-transform: uppercase;
  text-shadow: 0 0 6px #003366;
}

article small {
  font-size: 14px;
  font-family: "Barlow";
  text-transform: uppercase;
}

summary {
  cursor: pointer;
}

/* HEADER details for mobile */

details > summary {
  list-style: none;
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::before {
  content: "\f0a4";
  font-family: "Font Awesome 6 Free";
  color: #fcd707;
  font-weight: 900;
  margin-right: 10px;
  display: inline-block;
}

details {
  background-color: #003366;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 0 2px #fff;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-top: 20px;
}

details > ul {
  margin-top: 0;
  margin-bottom: 0;
}

/* HEADER input */

label {
  text-transform: uppercase;
  font-size: 0.8rem;
  border: none;
  text-align: left;
  margin-top: 1rem;
  border-radius: 10px;
  background-color: #003366;
  width: auto;
  padding: 10px 20px;
  box-shadow: 0 0 2px #fff;
  display: inline-block;
}

label:hover {
  cursor: pointer;
}

fieldset {
  border: none;
  padding: 0;
}

@media (max-width: 65em) {
  label {
    display: none;
  }
}

input {
  width: 100%;
  padding: 0.4rem 0 0.4rem 1rem;
  height: 2.6rem;
  font-size: 1rem;
  font-family: Inter, sans-serif;
  font-weight: bold;
  border-radius: 10px;
  border: 2px solid rgba(248, 248, 248, 0.6);
  margin-top: 0;
  margin-bottom: 0;
  background-color: rgba(248, 248, 248, 0.6);
  outline: 0;
  -webkit-background-clip: padding-box; /* for Safari */
  background-clip: padding-box; /* Firefox 4+, Opera, Chrome */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

input:focus {
  border-radius: 10px;
  border: 2px solid #fcd707;
  background-color: rgba(248, 248, 248, 0.6);
  outline: none;
}

.search_input {
  margin-bottom: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
}

#clearButton {
  position: absolute;
  right: 8px;
  top: 60%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ARTICLES */

article {
  margin: 0;
  padding: 2rem;
  background-color: rgba(248, 248, 248, 0.7);
  color: #0b2027;
  border-radius: 10px;
  border: 1px solid rgba(248, 248, 248, 0.5);
  box-shadow: 0 0 8px #fcd707;
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 8fr;
  column-gap: 20px;
  row-gap: 0;
  align-items: start;
}

figure {
  grid-column: 1;
  grid-row: 1 / -1; /* Starts at row 1, ends at the last row */
}

article header,
article p,
article footer {
  grid-column: 2;
  margin: 0;
}

article p {
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

@media (max-width: 402px) {
  article {
    margin-bottom: 2rem;
    display: block;
  }
}

article h2 {
  font-weight: 900;
  margin-top: 10px;
  margin-bottom: 4px;
  text-wrap: balance;
}

article h2 p {
  margin-top: 4px;
}

article.heading {
  background: rgba(252, 215, 9, 0.7);
  display: block;
  padding: 1rem 2rem 2rem 2rem;
}

article.heading h2,
article.heading p {
  margin-top: 0;
}

main header.scrimpy-nav {
  padding: 20px !important;
}

@media (max-width: 402px) {
  main header.scrimpy-nav {
    display: none !important;
  }
}

main header:nth-of-type(2) {
  margin: 0;
  background-color: rgba(248, 248, 248, 0.7);
  color: #0b2027;
  border-radius: 10px;
  border: 1px solid rgba(248, 248, 248, 0.5);
  box-shadow: 0 0 8px #fcd707;
  backdrop-filter: blur(10px);
  margin-bottom: 30px;
  background: rgba(252, 215, 9, 0.7);
  display: block;
  padding: 0 0 0 20px;
}

main header:nth-of-type(2) h2 {
  font-weight: 900;
  margin-bottom: 4px;
  margin-top: 0;
}

main header:nth-of-type(2) p {
  margin-top: 0;
}

article .fa-bolt-lightning,
article .fa-hand-point-right,
.fa-angle-left,
.fa-angle-right {
  color: #fcd707;
}

article a {
  color: #0b2027;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(252, 215, 9, 0.7);
}

article figure img {
  margin: -6px 0 0 -6px;
}

figure.blog {
  border-radius: 20px;
  text-align: center;
  height: 90px;
  width: 90px;
  padding: 10px;
  box-shadow: 0 0 2px #000;
  box-shadow: 0 0 4px rgba(124, 124, 124, 0.3);
  background-color: rgba(248, 248, 248, 0.3);
  color: rgba(0, 0, 0, 0.8);
  display: grid;
  align-items: center;
  margin-left: -5px;
  grid-column: 1;
  grid-row: 1 / -1; /* Starts at row 1, ends at the last row */
}

@media (max-width: 402px) {
  figure.blog {
    display: none;
  }
}

small {
  text-transform: uppercase;
}

small a {
  color: #0b2027;
  text-decoration: none;
  border-bottom: 1px solid #0b2027;
}

small a:hover {
  border-bottom: 1px solid #fcd707;
}

.button {
  border: none;
  text-align: center;
  margin-top: 1rem;
  border-radius: 20px;
  background-color: #3f5160;
  background-color: #003366;
  width: 200px;
  flex: 1 1 auto;
  box-shadow: 0 0 2px #fff;
}

a.button {
  text-transform: uppercase;
  font-family: "Raleway", sans-serif;
  display: block;
  text-decoration: none;
  padding: 6px 8px 5px 8px;
  color: rgba(248, 248, 248, 0.7);
  font-size: 0.8rem;
}

a.button:hover {
  color: #fcd707;
}

a.button:hover .fa-bolt-lightning {
  font-size: 110%;
}

a.button:hover .fa-hand-point-right {
  font-size: 110%;
}

figure {
  margin: 0;
}

@media (max-width: 402px) {
  figure {
    display: none;
  }
}

/* FOOTER */

footer {
  width: 95%;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 2rem;
}

footer ul {
  list-style-type: none;
  padding-right: 20px;
  padding-left: 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

footer ul li {
  font-size: 1.1rem;
  display: inline;
  padding-right: 30px;
  white-space: nowrap;
}

footer ul li a {
  color: rgba(248, 248, 248, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 248, 248, 0.6);
}

footer ul li a:hover {
  border-bottom: 1px solid #fcd707;
}

footer ul li a:active {
  border-bottom: 2px solid #fcd707;
  color: #0b2027;
}

/* CATEGORY ICONS */

small::before {
  font-family: "Font Awesome 6 Free";
  margin-right: 4px;
  content: "\f0da";
  font-weight: 900;
}

main header:nth-of-type(2) h2::before {
  font-family: "Font Awesome 6 Free";
  font-size: 200%;
  display: inline;
  margin-right: 10px;
  font-weight: 900;
}

main header:nth-of-type(2).search-heading h2::before {
  content: "\f002";
}

main header:nth-of-type(2).AI h2::before {
  content: "\f544";
}

main header:nth-of-type(2).Animation h2::before {
  content: "\f303";
}

main header:nth-of-type(2).Audio h2::before {
  content: "\f028";
}

main header:nth-of-type(2).Automation h2::before {
  content: "\f544";
}

main header:nth-of-type(2).Awake h2::before {
  content: "\f0f4";
}

main header:nth-of-type(2).Backup h2::before {
  content: "\f574";
}

main header:nth-of-type(2).Calculator h2::before {
  content: "\f1ec";
}

main header:nth-of-type(2).Calendar h2::before {
  content: "\f073";
}

main header:nth-of-type(2).Clipboard h2::before {
  content: "\f328";
}

main header:nth-of-type(2).Clock h2::before {
  content: "\f017";
}

main header:nth-of-type(2).Code h2::before {
  content: "\f121";
}

main header:nth-of-type(2).Compression h2::before {
  content: "\f1c6";
}

main header:nth-of-type(2).Converter h2::before {
  content: "\f362";
}

main header:nth-of-type(2).Database h2::before {
  content: "\f1c0";
}

main header:nth-of-type(2).Deletion h2::before {
  content: "\f2ed";
}

main header:nth-of-type(2).Dictation h2::before {
  content: "\f10d";
}

main header:nth-of-type(2).Display h2::before {
  content: "\e163";
}

main header:nth-of-type(2).Dock h2::before {
  content: "\f13d";
}

main header:nth-of-type(2).Drawing h2::before {
  content: "\f5ae";
}

main header:nth-of-type(2).Education h2::before {
  content: "\f19d";
}

main header:nth-of-type(2).Email h2::before {
  content: "\f0e0";
}

main header:nth-of-type(2).Entertainment h2::before {
  content: "\f26c";
}

main header:nth-of-type(2).FTP h2::before {
  content: "\f382";
}

main header:nth-of-type(2).Finance h2::before {
  content: "\f53d";
}

main header:nth-of-type(2).Finder h2::before {
  content: "\f07c";
}

main header:nth-of-type(2).Functionality h2::before {
  content: "\f544";
}

main header:nth-of-type(2).Health h2::before {
  content: "\f21e";
}

main header:nth-of-type(2).Image h2::before {
  content: "\f302";
}

main header:nth-of-type(2).Internet h2::before {
  content: "\f0ac";
}

main header:nth-of-type(2).Journal h2::before {
  content: "\f02d";
}

main header:nth-of-type(2).Launcher h2::before {
  content: "\f135";
}

main header:nth-of-type(2).latest h2::before {
  content: "\f86d";
}

main header:nth-of-type(2).Music h2::before {
  content: "\f001";
}

main header:nth-of-type(2).Maintenance h2::before {
  content: "\f51a";
}

main header:nth-of-type(2).Markdown h2::before {
  content: "\23";
}

main header:nth-of-type(2).Media h2::before {
  content: "\f87c";
}

main header:nth-of-type(2).Menu h2::before {
  content: "\f03a";
}

main header:nth-of-type(2).Messaging h2::before {
  content: "\f7cd";
}

main header:nth-of-type(2).Miscellaneous h2::before {
  content: "\f86d";
}

main header:nth-of-type(2).News h2::before {
  content: "\f1ea";
}

main header:nth-of-type(2).Notes h2::before {
  content: "\f303";
}

main header:nth-of-type(2).Outliner h2::before {
  content: "\f542";
}

main header:nth-of-type(2).Painting h2::before {
  content: "\f1fc";
}

main header:nth-of-type(2).PDF h2::before {
  content: "\f1c1";
}

main header:nth-of-type(2).Photo h2::before {
  content: "\f083";
}

main header:nth-of-type(2).Playful h2::before {
  content: "\f25a";
}

main header:nth-of-type(2).Pomodoro h2::before {
  content: "\f017";
}

main header:nth-of-type(2).Presentation h2::before {
  content: "\e53d";
}

main header:nth-of-type(2).Screen h2::before {
  content: "\f108";
}

small .scrimpys-picks::before {
  content: "\f005";
  font-weight: 900;
}

main header:nth-of-type(2).Search h2::before {
  content: "\f002";
}

main header:nth-of-type(2).Security h2::before {
  content: "\f023";
}

main header:nth-of-type(2).Select h2::before {
  content: "\f11b";
}

main header:nth-of-type(2).Sharing h2::before {
  content: "\f15b";
}

main header:nth-of-type(2).Sync h2::before {
  content: "\f2f1";
}

main header:nth-of-type(2).System h2::before {
  content: "\f3fd";
}

main header:nth-of-type(2).Terminal h2::before {
  content: "\f120";
}

main header:nth-of-type(2).Text h2::before {
  content: "\f1dd";
}

main header:nth-of-type(2).Three h2::before {
  content: "\f1b3";
}

main header:nth-of-type(2).thriftmac h2::before {
  content: "\f1ea";
}

main header:nth-of-type(2).Timer h2::before {
  content: "\f1da";
}

main header:nth-of-type(2).To-Do h2::before {
  content: "\f560";
}

main header:nth-of-type(2).Tool h2::before {
  content: "\f7d9";
}

main header:nth-of-type(2).Utilities h2::before {
  content: "\f566";
}

main header:nth-of-type(2).Video h2::before {
  content: "\f03d";
}

main header:nth-of-type(2).Wallpaper h2::before {
  content: "\f03e";
}

main header:nth-of-type(2).Weather h2::before {
  content: "\f185";
}

main header:nth-of-type(2).Web h2::before {
  content: "\f717";
}

main header:nth-of-type(2).Window h2::before {
  content: "\f2d2";
}

main header:nth-of-type(2).Word h2::before {
  content: "\f15c";
}

main header:nth-of-type(2).Workflow h2::before {
  content: "\f0e8";
}

main header:nth-of-type(2).Writing h2::before {
  content: "\f5ad";
}

body.default- a.header-button[href="/"] {
  color: #fcd707;
}

body.default-scrimpys-picks a.header-button[href="/category/scrimpys-picks"] {
  color: #fcd707;
}

body.default-articles a.header-button[href="/category/articles"] {
  color: #fcd707;
}
