/* Tokens from the Omarchy Obsidian theme (dark). */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-700.woff2") format("woff2");
}

:root {
  --bg: #0c1626;
  --bg-deep: #09111e;
  --panel: #17243a;
  --hover: #26364e;
  --text: #d8cbb4;
  --text-strong: #f2e8d5;
  --accent: #d9a862;
  --accent-hover: #8fb0d4;
  --border: rgba(94, 110, 135, 0.35);
  --accent-border: rgba(217, 168, 98, 0.35);
  --radius: 6px;
  --font: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  z-index: 5;
}

.skip:focus {
  top: 0.75rem;
}

.banner {
  margin: 0;
  height: min(56vw, 500px);
  min-height: 230px;
  overflow: hidden;
  background: var(--bg);
}

.banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.wrap {
  width: min(38rem, calc(100% - 2.75rem));
  margin: 0 auto;
  padding: 2.5rem 0 4.5rem;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--accent);
}

.kicker a {
  color: inherit;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 0.18em;
}

.kicker a:hover {
  color: var(--accent-hover);
}

h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.85rem, 4.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.25;
}

.bio {
  margin: 1rem 0 0;
  color: var(--text-strong);
  text-wrap: pretty;
}

.does {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  text-wrap: pretty;
}

h2 {
  margin: 2.5rem 0 0.7rem;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
}

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

.links a {
  display: block;
  padding: 0.45rem 0.7rem 0.45rem 0.85rem;
  border-left: 2px solid var(--accent-border);
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-color: var(--accent-border);
  overflow-wrap: anywhere;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.links a:hover {
  color: var(--accent-hover);
  border-left-color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
  background: var(--panel);
}

#post-slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.post-slot {
  background: var(--panel);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 1rem;
}

.slot-label {
  margin: 0;
  color: var(--accent);
}

.slot-note {
  margin: 0.35rem 0 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.twitter-tweet {
  margin: 0.7rem 0 0 !important;
  max-width: 100%;
}

.post-slot .twitter-tweet-rendered,
.post-slot iframe {
  border-radius: var(--radius) !important;
  overflow: hidden;
  clip-path: inset(0 round var(--radius));
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

@media (max-width: 700px) {
  .banner {
    height: 48vw;
    min-height: 180px;
  }

  .banner img {
    object-position: center 46%;
  }

  .wrap {
    width: min(38rem, calc(100% - 2rem));
    padding-top: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .links a {
    transition: none;
  }
}
