/* RESET */
*, ::before, ::after {
  /* outline: .1px solid red; */
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

html:not(:focus-within) {
  scroll-behavior: auto;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, select, textarea, button {
  font: inherit;
  color: inherit;
}
input:disabled, select:disabled, textarea:disabled, button:disabled {
  opacity: 0.3;
}

textarea {
  resize: vertical;
}

hr, input, select, textarea {
  border: 2px solid rgba(0, 0, 0, 0.1);
}

hr {
  border-width: 0 0 2px 2px;
  align-self: stretch;
}

/* BASE */
@font-face {
  font-display: swap;
  font-family: "Inter V";
  font-style: oblique 0deg 20deg;
  font-weight: 100 900;
  src: url("/fonts/inter.var.woff2") format("woff2 supports variations"), url("/fonts/inter.var.woff2") format("woff2-variations");
}
:root {
  --radius: 6px;
  --radius: clamp(0px, (100vw - 100%) * 9999, 6px);
  --radius-full: 9999px;
  --shadow: 0px 4px 4px rgba(0, 0, 0, 0.20);
  --shadow-2: 0px 4px 6px rgba(0, 0, 0, 0.25);
  --color-primary: #FCD47D;
  --icon-color: #1F1F1F;
  --icon-color-hover: var(--color-primary);
}

* {
  line-height: calc(1em + 0.4rem);
}

:focus-visible {
  outline: 3px solid #04f;
  outline-offset: 0px;
  transition: outline-width 0.2s;
}

html {
  font-family: "Inter V", sans-serif;
  font-optical-sizing: auto;
  text-size-adjust: none;
  background-color: #fff;
}
html, html body {
  min-width: 360px;
}
html.noscroll {
  overflow-y: hidden;
}
html.noscroll > body {
  overflow-y: scroll;
}

a {
  color: currentColor;
}
a:not(p a) {
  text-decoration: none;
}

button {
  display: block;
  background-color: rgba(0, 0, 0, 0);
  border: none;
  border-radius: 0;
  user-select: none;
  cursor: pointer;
}

.link {
  font-variation-settings: "wght" 400, "slnt" 0;
  transition-property: color, background-color, font-variation-settings, letter-spacing;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}
.link.hover-link:is(:hover, .active) {
  color: #fff;
  background-color: var(--color-primary);
}
.link.hover-link:hover {
  font-variation-settings: "wght" 400, "slnt" -10;
}
.link.hover-link.active {
  font-variation-settings: "wght" 700, "slnt" -10;
}
.link.click-link:hover {
  font-variation-settings: "wght" 700, "slnt" -10;
}
.link.click-link.active {
  font-variation-settings: "wght" 700, "slnt" 0;
  color: #fff;
  background-color: var(--color-primary);
}

h1, h2, h3, h4 {
  font-weight: 400;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

b {
  font-weight: 500;
}

.sr-only {
  clip: rect(1px, 1px, 1px, 1px) !important;
  border: 0 !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  user-select: none !important;
  white-space: nowrap !important;
  width: 1px !important;
}

body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(100%, 1500px);
  padding: clamp(15px, 3vw, 50px);
  margin: auto;
}
@media (min-width: 768px) {
  body {
    grid-template-columns: 160px 1fr;
  }
}
@media (min-width: 1200px) {
  body {
    grid-template-columns: 160px 1fr 160px;
  }
}
@media (max-width: 500px) {
  body {
    padding: 0;
  }
}

header#site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 30px;
}
@media (min-width: 768px) {
  header#site-header {
    grid-column: 1/3;
  }
}
header#site-header > :first-child {
  flex: 1;
  max-width: 630px;
  display: flex;
  align-items: center;
  gap: clamp(15px, 4%, 30px);
  padding: clamp(15px, 4%, 30px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
header#site-header > :first-child > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
header#site-header > :first-child #mob-menu {
  display: none;
}
header#site-header > :first-child > div:last-child {
  width: fit-content;
  min-width: 280px;
}
@media (max-width: 500px) {
  header#site-header > :first-child > div:last-child {
    min-width: auto;
  }
}
header#site-header > :first-child a {
  display: block;
}
header#site-header > :first-child img {
  min-width: 90px;
  width: 90px;
  height: 90px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-full);
  border: 3px solid #FCD47D;
}
header#site-header > :first-child strong {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 12px;
}
header#site-header > :first-child nav {
  display: flex;
  width: calc(100% - 10px);
}
header#site-header > :first-child nav a {
  flex: 1;
  font-size: 15px;
  letter-spacing: 1px;
  border-top: 3px solid;
  transition: color 0.3s ease-out, background-color 0.3s ease-out;
}
header#site-header > :first-child nav a:not(:empty):hover {
  color: #FFF;
  background-color: var(--icon-color-hover);
}
@media (max-width: 450px) {
  header#site-header > :first-child nav a {
    letter-spacing: 0;
  }
}
header#site-header > :first-child nav a:nth-child(1) {
  border-color: #A2EF44;
}
header#site-header > :first-child nav a:nth-child(2) {
  border-color: #31AA75;
}
header#site-header > :first-child nav a:nth-child(3) {
  border-color: #FCD47D;
}
header#site-header > :first-child nav a:nth-child(4) {
  border-color: #B23256;
}

.social-icons {
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  gap: 30px;
  padding: 5px;
}
.social-icons a {
  color: var(--icon-color);
  transition: color 0.3s ease-out;
}
.social-icons a:hover {
  color: var(--icon-color-hover);
}
.social-icons svg {
  width: 24px;
  height: 24px;
}

body > .social-icons {
  margin: 0 auto 20px;
}

@media (min-width: 500px) {
  body > .social-icons {
    display: none;
  }
}
@media (max-width: 500px) {
  header#site-header > :first-child img {
    min-width: 80px;
    width: 80px;
    height: 80px;
  }
  header#site-header > :first-child #mob-menu {
    display: block;
    width: 60px;
  }
  header#site-header > :first-child strong {
    font-size: 34px;
    display: block;
    position: relative;
  }
  header#site-header > :first-child strong::before {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    display: block;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, #A2EF44 25%, #31AA75 25%, #31AA75 50%, #FCD47D 50%, #FCD47D 75%, #B23256 75%);
  }
  header#site-header > :first-child nav {
    display: none;
  }
  header#site-header > .social-icons {
    display: none;
  }
}
footer#site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
}
@media (min-width: 768px) {
  footer#site-footer {
    grid-column: 2/3;
  }
}
footer#site-footer > img:first-child {
  opacity: 0;
}
footer#site-footer > * {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
footer#site-footer div {
  text-align: center;
  font-size: 15px;
}
@media (max-width: 950px) {
  footer#site-footer {
    flex-direction: column;
    gap: 40px;
  }
  footer#site-footer > img:first-child {
    opacity: 1;
  }
  footer#site-footer > img:last-child {
    display: none;
  }
}

aside#sidebar {
  grid-column: 1/2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 768px) {
  aside#sidebar {
    grid-column: 1/2;
  }
}
@media (max-width: 500px) {
  aside#sidebar {
    display: none;
  }
  aside#sidebar.active {
    display: flex;
  }
}
aside#sidebar > div {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
aside#sidebar > div:first-child {
  gap: 5px;
  padding: 15px 45px;
  font-size: 12px;
}
aside#sidebar > div#tag-list {
  overflow: hidden;
  transition: background-color 0.3s ease-out;
}
aside#sidebar > div#tag-list:hover {
  background-color: var(--icon-color-hover);
}
aside#sidebar > div#tag-list.active {
  background-color: #fff;
}
aside#sidebar > div#tag-list.active div {
  visibility: visible;
}
aside#sidebar > div#tag-list #tag-list-toggle {
  font-size: 15px;
  padding: 8px 8px 0;
  border-radius: var(--radius);
  letter-spacing: 1px;
  background-color: rgba(0, 0, 0, 0) !important;
}
aside#sidebar > div#tag-list #tag-list-toggle.active:hover {
  color: #000 !important;
}
aside#sidebar > div#tag-list #tag-list-toggle.active {
  color: #000 !important;
  letter-spacing: 5px;
  font-variation-settings: "wght" 400, "slnt" -10;
}
aside#sidebar > div#tag-list div {
  height: 0;
  padding: 0 30px 8px;
  visibility: hidden;
  transition: height 0.2s ease-out, visibility 0.2s ease-out;
}
aside#sidebar > div .link {
  font-size: 12px;
  width: 100%;
  /* text-transform: capitalize; */
}

main section {
  padding: 15px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
main section + section {
  margin-top: 10px;
}
main .post-meta {
  margin-bottom: 20px;
}
main p + p {
  margin-top: 1em;
}

#post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
@media (max-width: 1000px) {
  .post-card {
    grid-template-columns: 1fr;
  }
}
.post-card .post-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}
.post-card .post-meta h2 {
  font-size: 20px;
}
.post-card .post-meta a {
  align-self: end;
  margin-top: auto;
  padding: 2px 6px;
}
.post-card .post-media {
  display: flex;
  gap: 20px;
  overflow: auto;
}
.post-card .post-media > * {
  flex: 1;
}
.post-card img {
  aspect-ratio: 1;
  max-width: 160px;
  object-fit: cover;
}

section.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: min(8%, 100px);
  padding: 30px;
}
@media (max-width: 768px) {
  section.image-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
  }
}
section.image-grid img {
  object-fit: cover;
}

.post-content::after {
  content: "";
  display: block;
  clear: both;
}
.post-content img {
  float: left;
  width: clamp(250px, 40%, 350px);
  margin: 0 20px 20px 0;
}
@media (max-width: 550px) {
  .post-content img {
    width: 100%;
  }
}
