@import url('https://fonts.googleapis.com/css2?family=Comic+Relief:wght@400;700&display=swap');

/* Base styles */
:root {
  --bg-color: #fdf0db;
  --link-color: #EA5165;
  --visited-color: #BA5C65;
  --text-color: #1d3557;
  --header-color: #457b9d;
  --container-bg: #ffffff;
  --border-color: #a8dadc;
}

html {
  background-image: url('/https/www.transmutrix.com/images/dots.gif');

  /* font-family: 'berkeley_mono', monospace; */

  font-family: Georgia, 'Gelasio', 'Times New Roman', Times, serif;
  line-height: 1.2;

  /* font-family: "Comic Relief", system-ui; */
  /* line-height: 1.6; */

  background-color: var(--bg-color);
  color: var(--text-color);
}

body {
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--header-color);
  border-bottom: 2px dotted var(--border-color);
  /* padding-bottom: 0.5rem; */
  /* margin-top: 2rem; */
  margin-bottom: 1rem;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
  text-decoration: underline;
  /* transition: color 0.0s, background-color 0.0s, transform 0.3s; */
  padding-left: 2px;
  padding-right: 2px;
  margin-left: -2px;
  margin-right: -2px;
  /* border-bottom: 2px dotted var(--link-color); */
}

a:visited {
  color: var(--visited-color);
}

a:hover:not(.img) {
  /* text-decoration: underline; */
  /* transform: scale(110%) rotate(5deg); */
  color: var(--container-bg);
  background-color: var(--link-color);
  border-radius: 2px;
  /* transform: rotate(5deg); */
}

/* Layout */
.container {
  max-width: 600px;
  margin: 2rem auto;
  background-color: var(--container-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px dotted var(--border-color);
}

/* Header */
.top {
  /* border: 2px dotted lightblue; */
  border-bottom: 2px dotted lightblue;
  margin-bottom: 0.25rem;
  /* background-color: #fef6e4; */
  /* min-height: 3.5rem; */
  /* border-radius: 8px; */
  /* margin-bottom: 2rem; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.title {
  font-size: 1.4rem;
  font-weight: bold;
}

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

.title a:hover {
  color: var(--link-color);
  background-color: transparent;
}

.socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.socials a {
  /* color: var(--text-color); */
  font-weight: bold;
}

.socials a img {
  height: 32px;
}

/* .socials a:hover { */
  /* color: var(--bg-color);*/
  /* text-decoration: underline; */
  /* background-color: transparent; */
  /* background-color: black;
  color: white; */
  /* color: var(--header-color); */
/* } */

/* Content */
.projects p {
  margin-left: 1.5rem;
}

.indent {
  margin-left: 2rem;
}

/* Code blocks */
code {
  font-family: 'berkeley_mono_noligs', monospace;
  font-size: 0.9rem;
  background-color: #f1f1f1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.codeblock {
  line-height: 1.2;
  background-color: #f1f1f1;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
}

.codeblock code {
  color: #333;
  background: none;
  padding: 0;
}

/* Misc */
hr {
  border: none;
  border-top: 2px dotted var(--border-color);
  margin: 2rem 0;
}

.duck {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  border-radius: 4px;
}

.portrait {
  float: left;
  margin-right: 10px;
  border-radius: 4px;
  /* border: 2px solid var(--text-color); */
  box-shadow: 0 0px 6px rgba(0, 0, 0, 0.1);
  transition-duration: .3s;
}

.portrait:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: rotate(-5deg) scale(110%);
  background-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

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

  .socials {
    margin-top: 1rem;
  }
}

.pasted-code {
  overflow: auto;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-left: -1rem;
  margin-right: -1rem;
}

@media (min-width: 30em) {
  .row { width: 100%; display: table; table-layout: fixed; }
  .col { display: table-cell; }

  /* .pasted-code {
    margin-left: -4rem;
    margin-right: -4rem;
  } */
}

@media (max-width: 30em) {
  .row { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .col { display: table-cell; }
  .portrait { width: auto; }
}

/* Posts */
.projects li {
  border-bottom: 2px dotted #ddd;
  margin-left: -1rem;
}

.projects li .date {
  color: #555;
  font-size: 90%;
  float:right;
}

.links {
  text-align: center;
  margin-top: 10px;
  padding: 8px;
  border: 2px dotted lightblue;
  border-radius: 0.5em;
}

.links img {
  height: 2rem;
}

.social-icon {
  transition-duration: .1s;
}

.social-icon:hover {
  transform: rotate(10deg) scale(125%);
  background-color: transparent;
}

.article img {
  max-width: 100%;
  text-align: center;
  border-radius: 4px;
}

.project-button {
  margin-right: 10px;
  border-radius: 4px;
  /* border: 2px solid var(--text-color); */
  box-shadow: 0 0px 6px rgba(0, 0, 0, 0.1);
}

/* Only animate on hover when wrapped in an <a> — i.e., when it's a clickable preview */
a .project-button {
  transition-duration: .3s;
}

a:hover .project-button {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg) scale(110%);
  background-color: transparent;
  color: transparent;
}

.footer {
  border-top: 2px dotted var(--border-color);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* Audio player (used on projects/raw and any other page that drops in a .player block) */
.player {
  border: 2px dotted var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  background-color: var(--container-bg);
  margin: 1rem 0;
}

.player-now {
  margin-bottom: 0.5rem;
}

.player-now-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  font-family: 'berkeley_mono_noligs', monospace;
}

.player-now-title {
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--header-color);
  line-height: 1.2;
}

.player-now-artist {
  font-size: 0.9rem;
  color: #555;
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0 0.75rem;
}

.player-progress-bar {
  flex: 1;
  height: 10px;
  background: var(--bg-color);
  border: 1px dotted var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--link-color);
}

.player-time {
  font-size: 0.8rem;
  font-family: 'berkeley_mono_noligs', monospace;
  color: #555;
  min-width: 5.5em;
  text-align: right;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.player-controls button {
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-color);
  /* border: 2px dotted var(--border-color); */
  border: 1px dotted var(--border-color);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  color: var(--text-color);
  line-height: 1;
}

.player-controls button:hover {
  background: var(--link-color);
  color: var(--container-bg);
  border-color: var(--link-color);
}

.player-volume {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #555;
}

.player-volume input {
  width: 80px;
}

.player-tracks {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  border-top: 2px dotted var(--border-color);
}

.player-track {
  display: flex;
  align-items: stretch;
  border-bottom: 1px dotted #ddd;
}

.player-track:last-child {
  border-bottom: none;
}

.player-track-play {
  flex: 1;
  display: grid;
  grid-template-columns: 1.75rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  padding: 0.5rem 0.4rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
  color: var(--text-color);
}

.player-track-play:hover {
  background: var(--bg-color);
}

.player-track-num {
  color: #888;
  font-size: 0.85rem;
  font-family: 'berkeley_mono_noligs', monospace;
}

.player-track-title {
  color: var(--text-color);
}

.player-track-artist {
  color: #888;
  font-size: 0.85rem;
}

.player-track.is-current .player-track-title {
  color: var(--link-color);
  font-weight: bold;
}

.player-track.is-current .player-track-num {
  color: var(--link-color);
}

.player-track-download {
  display: flex;
  align-items: center;
  padding: 0 0.7rem;
  color: var(--link-color);
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
}

.player-track-download:hover {
  background: var(--link-color);
  color: var(--container-bg);
}

/* RSS icon — inherits link color, sized like the PNG socials */
.rss-link {
  display: inline-flex;
  align-items: center;
  color: var(--link-color);
  line-height: 0;
}

.rss-icon {
  width: 32px;
  height: 32px;
  transition-duration: .1s;
}

.rss-link:hover {
  background-color: transparent;
}

.rss-link:hover .rss-icon {
  transform: rotate(10deg) scale(125%);
}

/* "Currently:" line under the bio */
.now-line {
  font-size: 0.95rem;
  color: #555;
  border-left: 3px dotted var(--border-color);
  padding-left: 0.75rem;
  margin-top: -0.25rem;
}

.now-label {
  color: var(--header-color);
  font-weight: bold;
  letter-spacing: 0.02em;
}

/* Project cards (used on projects/index.html + homepage WIP list) */
.project-card {
  margin: 1.25rem 0 2rem;
}

.project-card-title {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  border-bottom: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.project-card-status {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  font-weight: bold;
  font-family: 'berkeley_mono_noligs', monospace;
}

.project-card-status--wip {
  color: var(--link-color);
}

.project-card-tagline {
  margin: 0 0 0.6rem;
  color: var(--text-color);
}

/* Blog post cards (used on blog.html + homepage "from the blog") */
.archive-month {
  margin-top: 1.5rem;
}

.post-date {
  display: block;
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.04em;
  margin: -0.5rem 0 1.5rem;
}

.post-card {
  margin: 0.75rem 0 1.25rem;
  padding: 0;
}

.post-card-date {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.post-card-title {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  border-bottom: none;
  color: var(--text-color);
}

.post-card-title a {
  color: var(--header-color);
}

.post-card-desc {
  margin: 0.2rem 0 0;
  color: var(--text-color);
  font-size: 0.95rem;
}

.latest-posts .post-card {
  border-bottom: 1px dotted var(--border-color);
  padding-bottom: 0.75rem;
}

.latest-posts .post-card:last-child {
  border-bottom: none;
}

.latest-posts-more {
  text-align: right;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Floating sidebar shortcuts (hidden on narrow viewports — top header still has nav) */
/* Anchored to the right edge of the centered .container (max-width 600 + 2rem padding each side = 332px half-width) */
.sidebar {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(calc(-100% - 332px - 1rem));
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 50;
  padding: 0.6rem 0.9rem;
  border: 2px dotted var(--border-color);
  border-radius: 0.5em;
  background-color: var(--container-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.sidebar a {
  color: var(--header-color);
  font-weight: bold;
  text-decoration: none;
  padding: 2px 4px;
  margin: 0 -4px;
  border-radius: 2px;
}

.sidebar a:hover {
  color: var(--container-bg);
  background-color: var(--link-color);
}

/* Tab is the pull-out drawer handle — only visible on narrow viewports */
.sidebar-tab { display: none; }

@media (max-width: 1024px) {
  /* On narrow viewports, the sidebar becomes a slide-in drawer anchored to the left edge */
  .sidebar {
    top: 2rem;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-tab {
    display: block;
    position: absolute;
    top: 0.5rem;
    left: 100%;
    background: var(--container-bg);
    border: 2px dotted var(--border-color);
    border-left: none;
    border-radius: 0 0.5em 0.5em 0;
    padding: 0.45rem 0.6rem;
    font: inherit;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--header-color);
    cursor: pointer;
  }

  .sidebar-tab:hover {
    color: var(--container-bg);
    background-color: var(--link-color);
  }
}

video {
  border-radius: 6px;
}