@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --font-size: 16px;
  --color-text: #101010;
  --color-text-secondary: #666;
  --color-text-tertiary: #999;
  --color-text-white: #fff;
  --color-bg: #ededed;
  --color-border: rgba(0, 0, 0, 0.1);
  --accent-color: #b9fd8e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background-color: var(--accent-color);
  color: var(--color-text);
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--font-size);
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-text-secondary);
}

html {
  background-color: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding: 2rem 4em;
}

body {
  font-size: 0.875rem;
  margin: 0 auto;
  max-width: 25rem;
  width: 100%;
}

section {
  margin: 1rem 0 2rem 0;
}

#recent-posts {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 1rem;
}

#recent-posts h2 a {
  color: inherit;
  text-decoration: none;
}

#recent-posts h2 a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.1;
}

h1 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 0.875rem;
}

p {
  margin-bottom: 1rem;
}

.intro {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

a {
  color: var(--color-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header.home {
  position: relative;
  padding-top: 0;
  margin-bottom: 2rem;
  transition: padding-top 180ms ease;
}

header.home.has-logo-joke {
  padding-top: 3rem;
}

.header-icon {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  width: 4.25rem;
  min-width: 4.25rem;
  max-width: 4.25rem;
  height: 4.25rem;
  min-height: 4.25rem;
  max-height: 4.25rem;
  margin-left: -4.75rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-icon::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.header-icon:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 0.25rem;
}

.header-logo {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  max-width: 4.25rem;
  max-height: 4.25rem;
  object-fit: contain;
  border-radius: inherit;
  flex: 0 0 4.25rem;
}

.logo-joke {
  position: absolute;
  left: -4.5rem;
  top: 0;
  z-index: 2;
  width: fit-content;
  max-width: min(18rem, 100%);
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 10px 24px rgba(31, 31, 31, 0.08);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
}

.logo-joke::before {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 2.25rem;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  transform: rotate(45deg);
}

ul {
  list-style: none;
}

.recent-posts {
  list-style: disc;
  padding-left: 1.25rem;
}

.recent-posts .post-item {
  white-space: normal;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-item {
  border: none;
  padding: 0;
  background: transparent;
}

.stack-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--color-text);
  font-weight: 600;
  padding: 0.5rem 0;
}

.stack-item summary::-webkit-details-marker {
  display: none;
}

.stack-leader {
  height: 2px;
  background-image: radial-gradient(
    circle,
    var(--color-border) 1px,
    transparent 1px
  );
  background-size: 6px 2px;
  background-repeat: repeat-x;
  background-position: center;
}

.stack-item summary::after {
  content: "▾";
  display: inline-block;
  color: var(--color-text-tertiary);
  transition: transform 0.2s ease;
}

.stack-item[open] summary::after {
  transform: rotate(180deg);
}

.stack-children {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1rem;
}

.cert-meta {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding-left: 1rem;
}

.stack-child {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.stack-logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-text);
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
}

.stack-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.logo-yubikey {
  border-color: var(--color-border);
}

.logo-bitwarden {
  border-color: var(--color-border);
}

.logo-hyperv {
  padding: 0.15rem;
}

.logo-hubitat {
  padding: 0.15rem;
}

.stack-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.stack-name {
  color: var(--color-text);
  font-weight: 600;
}

.stack-desc {
  color: var(--color-text-tertiary);
  font-size: 0.8rem;
  white-space: nowrap;
}

footer {
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (width < 480px) {
  html {
    padding: 1.5rem 1.25rem;
  }

  .header-icon {
    margin-left: -0.5rem;
  }

  header.home {
    padding-top: 0;
  }

  header.home.has-logo-joke {
    padding-top: 3rem;
  }

  .logo-joke {
    left: 0;
    max-width: 100%;
  }

  .logo-joke::before {
    left: 2rem;
  }

  .intro {
    padding-left: 0.75rem;
  }

  .stack-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .stack-desc {
    white-space: normal;
  }
}
.stack-icon {
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}
