:root {
  --gh-font-heading: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gh-font-body: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lava: #ff5b00;
  --bg: #f4f1eb;
  --paper: #fffdf8;
  --ink: #1d2426;
  --muted: #5c6669;
  --edge: #d5d1c7;
  --accent: #2f4f5f;
}

html,
body {
  min-height: 100%;
  overflow-x: clip;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--gh-font-body);
  color: var(--ink);
  background: radial-gradient(circle at 20% -10%, #e4ecee 0, var(--bg) 42%);
}

body.menu-open-lock {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--gh-font-heading);
}

.site-header {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.95rem 3vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 2, 2, 0.82);
  backdrop-filter: blur(8px);
}

.menu-home,
.menu-home-placeholder {
  display: inline-block;
  min-width: 2.2rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
}

.menu-home-placeholder {
  opacity: 0;
  pointer-events: none;
}

.site-nav {
  margin-left: 0.9rem;
  flex: 1 1 auto;
  display: flex;
  gap: clamp(0.65rem, 2.4vw, 1.3rem);
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
}

.site-nav a {
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.site-nav a:hover {
  color: var(--lava);
}

.site-gated-link[aria-disabled="true"] {
  opacity: 0.42;
  pointer-events: none;
  cursor: default;
}

.site-nav a.is-active {
  color: var(--lava);
  pointer-events: none;
  cursor: default;
}

.menu-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
  width: 2.5rem;
  height: 2.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  position: relative;
  z-index: 190;
  transition: color 180ms ease;
}

.menu-toggle-bar {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.nav-collapsed {
  position: sticky;
}

.site-header.nav-collapsed .menu-toggle {
  display: inline-flex;
}

.site-header.nav-collapsed .site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.01);
  pointer-events: none;
  z-index: 1500;
}

.site-header.nav-collapsed .site-nav a {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 0.45rem;
  font-size: clamp(1.05rem, 3.6vw, 1.8rem);
  letter-spacing: 0.08em;
  color: #fff;
  text-align: center;
}

.site-header.nav-collapsed .site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--lava);
}

.site-header.nav-collapsed.menu-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.site-header.nav-collapsed.menu-open .menu-toggle {
  position: fixed;
  top: max(0.95rem, env(safe-area-inset-top));
  right: 3vw;
  z-index: 1601;
  color: #fff;
}

.site-header.nav-collapsed.menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(0.32rem) rotate(45deg);
}

.site-header.nav-collapsed.menu-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-collapsed.menu-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-0.32rem) rotate(-45deg);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: calc(100vh - 8.5rem);
  background: var(--bg);
  border: 0;
  border-radius: 0;
  padding: 1.5rem 3vw 2rem;
  box-shadow: none;
}

.site-footer {
  width: 100%;
  max-width: 100%;
  color: var(--muted);
  margin-top: 0;
  padding: 1rem 3vw 2rem;
  background: transparent;
}

.site-footer a[href="/about/"] {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.site-footer a[href="/about/"]:hover {
  color: var(--lava);
}

.home-template .site-footer a[href="/about/"]:hover {
  color: #000;
}

body:not(.home-template) .site-main > * {
  width: min(1600px, 96vw);
  margin-right: auto;
  margin-left: auto;
}

.page-header h1 {
  margin: 0;
}

.page-header p {
  margin: 0.25rem 0 1rem;
  color: var(--muted);
}

.lab-list {
  display: flex;
  flex-direction: column;
}

.lab-row {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(29, 36, 38, 0.2);
}

.lab-row:last-child {
  border-bottom: 1px solid rgba(29, 36, 38, 0.2);
}

.lab-date-cell {
  color: rgba(29, 36, 38, 0.86);
}

.lab-date-cell.is-duplicate {
  visibility: hidden;
}

.lab-date-cell time {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  text-transform: uppercase;
}

.lab-date-day {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.lab-date-month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.lab-entry-title {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.16;
}

.lab-entry-title a {
  color: #111;
}

.lab-entry-title a:hover {
  color: var(--lava);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.lab-entry-excerpt {
  margin: 0.38rem 0 0;
  color: rgba(29, 36, 38, 0.72);
  max-width: 72ch;
  line-height: 1.5;
}

.lab-thumb-link {
  display: block;
  margin-bottom: 0.62rem;
  max-width: min(22rem, 100%);
}

.lab-thumb {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.55rem;
}

.lab-pagination {
  margin-top: 1.2rem;
}

.lab-pagination .pagination {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.lab-pagination a {
  text-decoration: none;
}

.lab-pagination a:hover {
  color: var(--lava);
  text-decoration: none;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.post-card {
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 0.85rem;
  background: #fff;
}

.post-card h2 {
  margin: 0;
  font-size: 1.03rem;
}

.post-card p {
  margin: 0.55rem 0;
  color: var(--muted);
}

.radar-page-header p {
  max-width: 72ch;
}

.radar-app {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.radar-subscribe-form,
.radar-subscriptions-panel,
.radar-feed {
  border: 1px solid rgba(29, 36, 38, 0.1);
  border-radius: 1.1rem;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 20px 48px rgba(18, 22, 24, 0.05);
}

.radar-subscribe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
  padding: 1rem;
}

.radar-subscribe-input {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  min-width: 0;
}

.radar-subscribe-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(29, 36, 38, 0.72);
}

.radar-subscribe-input input {
  width: 100%;
  padding: 0.94rem 1.1rem;
  border: 1px solid rgba(29, 36, 38, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.radar-subscribe-input input::placeholder {
  color: rgba(29, 36, 38, 0.46);
}

.radar-subscribe-input input:focus,
.radar-subscribe-input input:focus-visible {
  outline: 0;
  border-color: rgba(255, 91, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 91, 0, 0.12);
}

.radar-subscribe-button,
.radar-refresh-button,
.radar-subscription-remove {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.radar-subscribe-button {
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #111 0%, #2b3638 100%);
  color: #fff;
  font-weight: 700;
}

.radar-subscribe-button:hover,
.radar-refresh-button:hover,
.radar-subscription-remove:hover {
  filter: brightness(1.03);
}

.radar-subscribe-button:disabled,
.radar-refresh-button:disabled,
.radar-subscription-remove:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  filter: none;
}

.radar-helper {
  margin: -0.3rem 0 0.1rem;
  color: rgba(29, 36, 38, 0.7);
  font-size: 0.92rem;
  line-height: 1.45;
}

.radar-toolbar,
.radar-subscriptions-header,
.radar-feed-header,
.radar-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.radar-toolbar {
  min-height: 1.5rem;
}

.radar-status {
  margin: 0;
  min-height: 1.35rem;
  color: rgba(29, 36, 38, 0.72);
}

.radar-status[data-tone="success"] {
  color: #215f36;
}

.radar-status[data-tone="error"] {
  color: #9f2e00;
}

.radar-status[data-tone="warning"] {
  color: #856000;
}

.radar-refresh-button {
  flex: 0 0 auto;
  padding: 0.55rem 0.92rem;
  border-radius: 999px;
  background: rgba(29, 36, 38, 0.08);
  color: #111;
  font-weight: 700;
}

.radar-subscriptions-panel,
.radar-feed {
  padding: 1rem 1rem 1.05rem;
}

.radar-subscriptions-header h2,
.radar-feed-header h2 {
  margin: 0;
  font-size: 1rem;
}

.radar-subscription-count,
.radar-feed-caption {
  margin: 0;
  color: rgba(29, 36, 38, 0.64);
  font-size: 0.9rem;
}

.radar-subscriptions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.radar-subscription-card,
.radar-subscription-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem 0.45rem 0.8rem;
  border: 1px solid rgba(29, 36, 38, 0.1);
  border-radius: 999px;
  background: #fff;
}

.radar-subscription-empty {
  color: rgba(29, 36, 38, 0.66);
}

.radar-subscription-name {
  font-weight: 700;
  color: #111;
}

.radar-subscription-host {
  color: rgba(29, 36, 38, 0.56);
  font-size: 0.85rem;
}

.radar-subscription-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(29, 36, 38, 0.08);
  color: #111;
  font-size: 1rem;
  line-height: 1;
}

.radar-feed-list {
  margin-top: 0.55rem;
}

.radar-item {
  display: grid;
  grid-template-columns: clamp(6.6rem, 11vw, 8.3rem) minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid rgba(29, 36, 38, 0.12);
}

.radar-item:first-child {
  border-top: 0;
  padding-top: 0.55rem;
}

.radar-item:last-child {
  padding-bottom: 0.15rem;
}

.radar-item-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 91, 0, 0.28) 0, rgba(255, 91, 0, 0) 34%),
    linear-gradient(140deg, #142b35 0%, #44616b 100%);
}

.radar-item-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radar-item-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radar-item-body {
  min-width: 0;
}

.radar-item-title {
  margin: 0;
  font-size: clamp(1.06rem, 1.5vw, 1.42rem);
  line-height: 1.16;
}

.radar-item-title a {
  color: #111;
}

.radar-item-title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.radar-item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: rgba(29, 36, 38, 0.76);
}

.radar-item-link:hover {
  background: rgba(29, 36, 38, 0.08);
  color: #111;
}

.radar-item-link svg {
  width: 1rem;
  height: 1rem;
}

.radar-item-excerpt {
  margin: 0.36rem 0 0.58rem;
  color: rgba(29, 36, 38, 0.76);
  line-height: 1.42;
}

.radar-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  color: rgba(29, 36, 38, 0.76);
  font-size: 0.92rem;
}

.radar-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.radar-meta-item + .radar-meta-item {
  padding-left: 0.6rem;
  position: relative;
}

.radar-meta-item + .radar-meta-item::before {
  content: "/";
  position: absolute;
  left: 0.18rem;
  color: rgba(29, 36, 38, 0.42);
}

.radar-item-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 91, 0, 0.08);
  color: #55301d;
  font-size: 0.84rem;
  font-weight: 700;
}

.radar-item-domain {
  color: rgba(29, 36, 38, 0.58);
}

.radar-empty-state,
.radar-loading-state {
  padding: 1.1rem 0 0.3rem;
  color: rgba(29, 36, 38, 0.66);
}

.radar-loading-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.radar-loading-card {
  display: grid;
  grid-template-columns: clamp(6.6rem, 11vw, 8.3rem) minmax(0, 1fr);
  gap: 0.95rem;
  padding: 0.45rem 0;
}

.radar-loading-media,
.radar-loading-line {
  border-radius: 0.7rem;
  background: linear-gradient(90deg, rgba(29, 36, 38, 0.06), rgba(29, 36, 38, 0.12), rgba(29, 36, 38, 0.06));
  background-size: 200% 100%;
  animation: radar-pulse 1.4s ease infinite;
}

.radar-loading-media {
  aspect-ratio: 16 / 9;
}

.radar-loading-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.18rem;
}

.radar-loading-line {
  height: 0.92rem;
}

.radar-loading-line.is-wide {
  width: 88%;
}

.radar-loading-line.is-medium {
  width: 68%;
}

.radar-loading-line.is-short {
  width: 42%;
}

@keyframes radar-pulse {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-pill {
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: #fff;
}

.content-single {
  max-width: 740px;
}

.post-header {
  margin-bottom: 0.85rem;
}

.post-header h1 {
  margin: 0 0 0.04rem;
}

.post-date {
  display: inline-block;
  margin: 0 0 0.1rem;
}

.post-feature-image {
  margin: 0 0 0.85rem;
}

.post-feature-image img {
  display: block;
  width: 100%;
  border-radius: 0.55rem;
  object-fit: cover;
}

.post-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem 0.58rem;
  margin: 0 0 0.18rem;
}

.post-tag-item {
  display: inline;
  padding: 0;
  border: 0;
  color: rgba(29, 36, 38, 0.9);
  font-size: 0.74rem;
  line-height: 1.2;
  text-transform: lowercase;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.post-tag-item:hover {
  color: var(--lava);
}

.post-tag-item[href*="/tag/notebook/"],
.post-tag-item[href*="/tag/notebook"] {
  color: var(--lava);
}

.all-tags-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.tag-block {
  border-top: 1px solid rgba(29, 36, 38, 0.2);
  padding-top: 0.8rem;
}

.tag-block-title {
  margin: 0 0 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.tag-block-title a {
  color: #111;
}

.tag-block-title a:hover {
  color: var(--lava);
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.tag-block-count {
  font-size: 0.75rem;
  color: rgba(29, 36, 38, 0.68);
}

.tag-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tag-post-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: baseline;
}

.tag-post-item time {
  font-size: 0.68rem;
  color: rgba(29, 36, 38, 0.66);
  white-space: nowrap;
}

.tag-post-item a {
  color: #111;
}

.tag-post-item a:hover {
  color: var(--lava);
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.tag-post-empty {
  margin: 0;
  color: rgba(29, 36, 38, 0.66);
}

.content-body {
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.content-body a {
  color: rgba(29, 36, 38, 0.9);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.content-body a:hover {
  color: var(--lava);
}

.content-body img,
.content-body video,
.content-body iframe {
  max-width: 100%;
  height: auto;
}

.content-body figure,
.content-body .kg-image-card,
.content-body .kg-gallery-card,
.content-body .kg-embed-card,
.content-body .kg-video-card {
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.content-body .kg-gallery-image img,
.content-body .kg-image {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.kg-width-wide,
.kg-width-full {
  position: relative;
  left: 0;
  transform: none;
  width: min(100%, calc(100vw - 2rem));
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.kg-width-wide {
  width: min(1080px, 100%);
  max-width: min(1080px, 100%);
}

.kg-width-full {
  width: min(100%, calc(100vw - 2rem));
  max-width: min(100%, calc(100vw - 2rem));
}

.kg-width-wide img,
.kg-width-wide video,
.kg-width-wide iframe,
.kg-width-full img,
.kg-width-full video,
.kg-width-full iframe {
  width: 100%;
}

.home-template {
  color: #f2f2f2;
  background-color: #030303;
  background-image:
    radial-gradient(120% 78% at 82% 94%, rgba(255, 125, 0, 0.78) 0%, rgba(255, 93, 0, 0.46) 30%, rgba(255, 70, 0, 0.18) 46%, rgba(255, 60, 0, 0) 66%),
    linear-gradient(to top, rgba(255, 112, 0, 0.98) 0%, rgba(245, 83, 0, 0.92) 14%, rgba(196, 45, 0, 0.78) 27%, rgba(109, 19, 0, 0.58) 41%, rgba(45, 7, 0, 0.38) 56%, rgba(10, 10, 10, 0.8) 74%, rgba(3, 3, 3, 1) 100%);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.home-template .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 2, 2, 0.78);
}

.home-template .site-nav {
  justify-content: space-between;
}

.home-template .site-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.home-template .site-nav a:hover {
  color: var(--lava);
}

.home-template .menu-toggle {
  color: rgba(255, 255, 255, 0.95);
}

.home-template .site-header.nav-collapsed .site-nav {
  background: #000;
}

.home-template .site-header.nav-collapsed .site-nav a {
  color: rgba(255, 255, 255, 0.94);
}

.home-template .site-header.nav-collapsed .site-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lava);
}

.home-template .site-main {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.home-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 20% 100%;
  z-index: 0;
}

.home-main::after {
  content: none;
}

.home-hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 9.5rem);
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(0.65rem, 1.2vw, 1.3rem) clamp(2.2rem, 6vw, 4.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: start;
  align-content: end;
}

.home-hero-copy {
  min-width: 0;
}

.home-title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.5rem, 14vw, 11.25rem);
  line-height: 0.86;
  letter-spacing: 0.08rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #f2f2f2;
  word-break: break-word;
}

.home-title-lab {
  display: inline-block;
  margin-left: 0.34rem;
  letter-spacing: 0.32rem;
}

.home-access {
  width: min(100%, 28rem);
  margin-left: auto;
  padding: 0 0 0.3rem;
}

.frontdoor-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.frontdoor-form[hidden],
.frontdoor-auth-pending .frontdoor-form {
  display: none !important;
}

.frontdoor-form[aria-busy="true"] {
  opacity: 0.76;
}

.frontdoor-field {
  display: flex;
  flex-direction: column;
}

.frontdoor-field input {
  width: 100%;
  padding: 0 0 0.72rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  box-shadow: none;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.frontdoor-field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.frontdoor-field input:focus,
.frontdoor-field input:focus-visible {
  outline: 0;
  border-bottom-color: #ffffff;
}

.frontdoor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}

.frontdoor-authenticated .frontdoor-field,
.frontdoor-authenticated .frontdoor-forgot,
.frontdoor-authenticated [data-frontdoor-submit] {
  visibility: hidden;
  pointer-events: none;
}

.frontdoor-logout-button[hidden] {
  display: none;
}

.frontdoor-submit {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  cursor: pointer;
}

.frontdoor-forgot {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.frontdoor-forgot:hover {
  color: #ffffff;
}

.home-template .frontdoor-submit:hover,
.home-template .frontdoor-submit:focus-visible {
  color: #000000;
  text-decoration: none;
}

.frontdoor-submit:hover,
.frontdoor-forgot:hover {
  color: #ffffff;
}

.frontdoor-status {
  margin: 0;
  min-height: 1.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.frontdoor-status[data-tone="success"] {
  color: #ffffff;
}

.frontdoor-status[data-tone="error"] {
  color: #ffd7cb;
}

.home-template .site-footer {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding: 0.75rem 3vw 1.35rem;
  color: rgba(255, 255, 255, 0.84);
}

.home-template .site-footer small {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    width: 100%;
    padding: 0.75rem 3vw;
  }

  .post-list {
    grid-template-columns: 1fr;
  }

  .radar-subscribe-form {
    grid-template-columns: 1fr;
  }

  .radar-subscribe-button,
  .radar-refresh-button {
    width: 100%;
  }

  .radar-toolbar,
  .radar-subscriptions-header,
  .radar-feed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .lab-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .lab-date-cell.is-duplicate {
    display: none;
  }

  .lab-date-cell time {
    flex-direction: row;
    align-items: baseline;
    gap: 0.45rem;
  }

  .content-single {
    max-width: 100%;
  }

  .kg-width-wide,
  .kg-width-full {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
  }

  .home-template .site-header {
    gap: 0.55rem;
  }

  .home-hero {
    min-height: calc(100vh - 9rem);
    padding-top: 1.6rem;
    padding-bottom: 1.8rem;
    grid-template-columns: 1fr;
    align-items: flex-start;
    align-content: end;
  }

  .home-main::before {
    background-size: 25% 100%;
  }

  .home-access {
    width: min(100%, 31rem);
    margin-left: 0;
    padding-top: 0.75rem;
  }

}

@media (max-width: 720px) {
  .radar-item,
  .radar-loading-card {
    grid-template-columns: 5.9rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .radar-item-link {
    display: none;
  }

  .radar-item-title {
    font-size: 1rem;
  }

  .radar-item-excerpt,
  .radar-item-meta {
    font-size: 0.88rem;
  }

  .frontdoor-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .radar-subscribe-form,
  .radar-subscriptions-panel,
  .radar-feed {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .radar-item,
  .radar-loading-card {
    grid-template-columns: 1fr;
  }

  .radar-item-media,
  .radar-loading-media {
    width: min(11rem, 100%);
  }
}

.radar-app {
  gap: 1rem;
}

.radar-subscribe-form,
.radar-subscriptions-panel,
.radar-feed {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.radar-subscribe-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.radar-subscribe-input {
  gap: 0.4rem;
}

.radar-subscribe-input input {
  padding: 0 0 0.72rem;
  border: 0;
  border-bottom: 1px solid rgba(29, 36, 38, 0.72);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.radar-subscribe-input input:focus,
.radar-subscribe-input input:focus-visible {
  border-bottom-color: #111;
  box-shadow: none;
}

.radar-subscribe-button,
.radar-refresh-button,
.radar-subscription-remove {
  min-height: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-weight: 700;
  filter: none;
}

.radar-subscribe-button {
  text-transform: lowercase;
}

.radar-refresh-button {
  font-size: 0.82rem;
  text-transform: lowercase;
}

.radar-subscribe-button:hover,
.radar-refresh-button:hover,
.radar-subscription-remove:hover {
  filter: none;
  color: var(--lava);
  text-decoration: none;
}

.radar-helper {
  margin: 0;
}

.radar-warning {
  margin: 0;
  color: rgba(29, 36, 38, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

.radar-manage-link-row {
  margin: -0.2rem 0 0;
}

.radar-manage-link {
  color: rgba(29, 36, 38, 0.72);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.radar-manage-link:hover {
  color: var(--lava);
}

.radar-toolbar,
.radar-subscriptions-header,
.radar-feed-header {
  gap: 1rem;
}

.radar-subscriptions-header h2,
.radar-feed-header h2 {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radar-subscriptions,
.radar-feed-list {
  margin-top: 0.4rem;
}

.radar-subscriptions {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.radar-subscription-card,
.radar-subscription-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 14rem) auto;
  gap: 1rem;
  padding: 0.58rem 0;
  border: 0;
  border-top: 1px solid rgba(29, 36, 38, 0.72);
  border-radius: 0;
  background: transparent;
}

.radar-subscriptions > *:last-child {
  border-bottom: 1px solid rgba(29, 36, 38, 0.72);
}

.radar-subscription-empty {
  grid-template-columns: 1fr;
}

.radar-subscription-name {
  font-weight: 500;
}

.radar-subscription-host {
  font-size: 0.92rem;
}

.radar-subscription-remove {
  justify-self: end;
  font-size: 0.9rem;
  line-height: 1;
}

.radar-feed-list {
  margin-top: 0.35rem;
}

.radar-item {
  display: grid;
  grid-template-columns: minmax(0, 16rem) 3.4rem minmax(0, 1fr) 8.5rem;
  gap: 1rem;
  align-items: start;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(29, 36, 38, 0.72);
}

.radar-feed-list > *:last-child {
  border-bottom: 1px solid rgba(29, 36, 38, 0.72);
}

.radar-item-feed {
  min-width: 0;
  color: #111;
  font-weight: 500;
}

.radar-item-thumb {
  position: relative;
  display: block;
  width: 3.4rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.radar-item-thumb-fallback {
  position: absolute;
  inset: 0;
  display: block;
  background: url("../images/radar-placeholder.svg") center / cover no-repeat;
}

.radar-item-thumb-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radar-item-body {
  min-width: 0;
}

.radar-item-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.24;
}

.radar-item-excerpt {
  margin: 0.18rem 0 0;
  color: rgba(29, 36, 38, 0.74);
  font-size: 0.95rem;
  line-height: 1.42;
}

.radar-item-date {
  color: rgba(29, 36, 38, 0.72);
  font-size: 0.92rem;
  text-align: right;
  white-space: nowrap;
}

.radar-empty-state,
.radar-loading-state {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(29, 36, 38, 0.72);
}

.radar-loading-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.radar-loading-card {
  display: grid;
  grid-template-columns: minmax(0, 16rem) 3.4rem minmax(0, 1fr) 8.5rem;
  gap: 1rem;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(29, 36, 38, 0.72);
}

.radar-loading-thumb {
  width: 3.4rem;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, rgba(29, 36, 38, 0.06), rgba(29, 36, 38, 0.12), rgba(29, 36, 38, 0.06));
  background-size: 200% 100%;
  animation: radar-pulse 1.4s ease infinite;
}

.radar-loading-copy {
  gap: 0.36rem;
  padding-top: 0;
}

.radar-loading-line,
.radar-loading-media {
  border-radius: 0;
}

.radar-loading-line.is-feed {
  width: 72%;
}

.radar-loading-line.is-date {
  width: 72%;
  justify-self: end;
}

.radar-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}

.radar-pagination-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 0.88rem;
  text-transform: lowercase;
  cursor: pointer;
}

.radar-pagination-button:hover {
  color: var(--lava);
  text-decoration: none;
}

.radar-pagination-button:disabled {
  color: rgba(29, 36, 38, 0.38);
  cursor: not-allowed;
}

.radar-pagination-status {
  margin: 0;
  color: rgba(29, 36, 38, 0.72);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .radar-subscribe-form {
    grid-template-columns: 1fr;
  }

  .radar-subscribe-button,
  .radar-refresh-button {
    width: auto;
  }

  .radar-toolbar,
  .radar-subscriptions-header,
  .radar-feed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .radar-item,
  .radar-loading-card,
  .radar-subscription-card {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .radar-item-thumb,
  .radar-loading-thumb {
    width: 4.2rem;
  }

  .radar-item-date,
  .radar-loading-line.is-date,
  .radar-subscription-remove,
  .radar-item-thumb,
  .radar-loading-thumb {
    justify-self: start;
    text-align: left;
  }

  .radar-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

.moodboard-grid {
  column-count: 4;
  column-gap: 0.72rem;
}

.mood-card {
  break-inside: avoid;
  margin: 0 0 0.72rem;
}

.mood-card-link {
  display: block;
  background: #dcdcdc;
}

.mood-card-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .moodboard-grid {
    column-count: 3;
  }
}

@media (max-width: 840px) {
  .moodboard-grid {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .moodboard-grid {
    column-count: 1;
  }
}

.mood-card-text {
  display: block;
  padding: 1rem 0.8rem;
  color: #111;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #e4e4e4;
}

.mood-card-content {
  display: block;
}

.mood-card-content > .mood-card-image,
.mood-card-content img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.post-tag-item[href*="/tag/notebook/"],
.post-tag-item[href*="/tag/notebook"],
.post-tag-item[href*="/tag/moodboard/"],
.post-tag-item[href*="/tag/moodboard"] {
  color: var(--lava);
}

.mood-card-link {
  position: relative;
  overflow: hidden;
}

.mood-card-hover-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 0.44rem 0.56rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  opacity: 0;
  transform: translateY(0.38rem);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.mood-card-link:hover .mood-card-hover-title,
.mood-card-link:focus-visible .mood-card-hover-title {
  opacity: 1;
  transform: translateY(0);
}

.tag-moodboard-view {
  display: none;
}

.tag-moodboard-mode .tag-lab-view {
  display: none;
}

.tag-moodboard-mode .tag-moodboard-view {
  display: block;
}

@media (hover: none) {
  .mood-card-hover-title {
    opacity: 1;
    transform: none;
  }
}
