/* ================================================
   style.css - the base look for the whole site
   change the colours here and every page updates
   made by jakedravioli - jakedravioli.vecshift.co.uk
   ================================================ */

/* theming */
:root {
  --base: 17, 17, 17;    
  --accent: 70, 130, 180;  
  --bg: 0, 96, 176;        
  --text: 235, 235, 235;  

  --font-title: "Michroma", sans-serif;
  --font-body: "Quantico", sans-serif;

  --border: 4px;
}

/* body */
body {
  background-color: rgb(var(--base));
  color: rgb(var(--text));
  font-family: var(--font-body);
  margin: 0;
  min-height: 100vh;
}

/* grid (stole from vecShift website lol) */
.grid-bg {
  background-color: rgb(var(--base));
  background-image:
    radial-gradient(circle at center, rgba(var(--bg), 0.35) 0%, transparent 65%),
    linear-gradient(rgba(var(--accent), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent), 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
}

/* text setup */
h1,
h2,
.title,
.subtitle {
  font-family: var(--font-title);
}

.title {
  font-size: clamp(1rem, 4vw, 1.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle {
  font-size: 0.85rem;
  color: rgb(var(--accent));
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

p {
  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  color: rgb(var(--accent));
}

a:hover {
  color: rgb(var(--text));
}

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(var(--base), 0.85);
  backdrop-filter: blur(8px);
  border-bottom: var(--border) solid rgb(var(--accent));
}

/* the synthware cc logo text */
.logo {
  font-family: var(--font-title);
  font-size: clamp(0.8rem, 3.5vw, 1rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--text));
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: rgb(var(--accent));
}

/* blinking block (stole from vecShift again) */
.logo::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.3em;
  vertical-align: -0.1em;
  background-color: rgb(var(--accent));
  animation: blink 1s steps(1) infinite;
}

/* topbar links */
.nav-link {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(var(--text));
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border: var(--border) solid transparent;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.nav-link::before { content: "[ "; color: rgb(var(--accent)); }
.nav-link::after  { content: " ]"; color: rgb(var(--accent)); }

.nav-link:hover {
  background-color: rgb(var(--accent));
  color: rgb(var(--base));
  border-color: rgb(var(--accent));
}

.nav-link:hover::before,
.nav-link:hover::after {
  color: rgb(var(--base));
}

/* square icon button (used for the github link) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: var(--border) solid rgb(var(--accent));
  color: rgb(var(--text));
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  background-color: rgb(var(--accent));
  color: rgb(var(--base));
}

/* card */
.card {
  border: var(--border) solid rgb(var(--accent));
  background-color: rgba(var(--base), 0.9);
}

/* profile page */
.avatar {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border: var(--border) solid rgb(var(--accent));
}

/* avatar focus effect + tooltip */
.avatar-wrap {
  position: relative;
  width: 7.5rem;
  outline: none;
  cursor: default;
}

/* four corner brackets, like a camera locking focus */
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -0.75rem;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.3);
  transition: transform 0.25s ease-out, opacity 0.2s;

  --c: rgb(var(--accent));
  --len: 1rem;
  --thick: 3px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--len) var(--thick) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--thick) var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--len) var(--thick) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--thick) var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--len) var(--thick) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--thick) var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--len) var(--thick) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--thick) var(--len) no-repeat;
}

.avatar-wrap:hover::before,
.avatar-wrap:focus::before {
  opacity: 1;
  transform: scale(1);
}

.avatar {
  transition: filter 0.25s;
}

.avatar-wrap:hover .avatar,
.avatar-wrap:focus .avatar {
  filter: brightness(1.12) saturate(1.1);
}

/* tooltip above the avatar */
.tooltip {
  position: absolute;
  bottom: calc(100% + 1.1rem);
  left: 50%;
  z-index: 10;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  white-space: nowrap;
  color: rgb(var(--text));
  background-color: rgb(var(--base));
  border: var(--border) solid rgb(var(--accent));
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 0.4rem);
  transition: opacity 0.2s, transform 0.2s;
}

/* little square pointer under the tooltip */
.tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  background-color: rgb(var(--base));
  border-right: var(--border) solid rgb(var(--accent));
  border-bottom: var(--border) solid rgb(var(--accent));
  transform: translateX(-50%) rotate(45deg);
}

.avatar-wrap:hover .tooltip,
.avatar-wrap:focus .tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* no sliding for people who turned motion off */
@media (prefers-reduced-motion: reduce) {
  .avatar-wrap::before,
  .tooltip,
  .avatar {
    transition: none;
  }
}

/* small line of info, like the location */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(var(--text), 0.8);
}

.chip i {
  color: rgb(var(--accent));
}

/* social link tiles */
.tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  text-align: left;
  text-decoration: none;
  color: rgb(var(--text));
  border: var(--border) solid rgb(var(--accent));
  transition: background-color 0.15s, color 0.15s;
}

.tile i {
  font-size: 1.6rem;
  color: rgb(var(--accent));
  transition: color 0.15s;
}

/* the "* heya." line */
.quote.sans {
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  color: #fff;
}

.quote.sans::after {
  background-color: #fff;
}

/* secret page links */
.secret-sigil {
  display: inline-flex;
}

.secret-sigil img {
  width: 1.4rem;
  height: 1.4rem;
  opacity: 0.4;
  filter: drop-shadow(0 0 0.3rem rgba(255, 50, 32, 0.35));
  transition: opacity 0.25s, filter 0.25s;
}

.secret-sigil:hover img,
.secret-sigil:focus-visible img {
  opacity: 1;
  filter: drop-shadow(0 0 0.5rem rgba(255, 50, 32, 0.9));
}

.secret-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  text-decoration: none;
  color: rgba(var(--text), 0.5);
  border: var(--border) solid rgba(var(--accent), 0.45);
  transition: background-color 0.15s, color 0.15s;
}

.secret-btn:hover {
  background-color: rgb(var(--accent));
  color: rgb(var(--base));
}

/* small link under the cards */
.legacy {
  margin: 0;
  text-align: center;
}

.legacy a {
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(var(--text), 0.6);
  transition: color 0.15s;
}

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

.legacy i {
  margin-right: 0.35rem;
}

/* link inside a paragraph */
.link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* featured project card */
.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  color: rgb(var(--text));
  text-decoration: none;
  background-color: rgba(var(--base), 0.9);
  border: var(--border) solid rgb(var(--accent));
  transition: background-color 0.15s, color 0.15s;
}

.feature-logo {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border: var(--border) solid rgb(var(--accent));
}

.feature-text {
  flex: 1;
  min-width: 0;
}

.feature-title {
  display: block;
  margin: 0.25rem 0;
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.feature-meta {
  display: block;
  font-size: 0.85rem;
  color: rgba(var(--text), 0.6);
}

.feature-arrow {
  flex-shrink: 0;
  margin-right: 0.5rem;
  font-size: 1.1rem;
  color: rgb(var(--accent));
}

.feature:hover {
  background-color: rgb(var(--accent));
  color: rgb(var(--base));
}

.feature:hover .feature-meta,
.feature:hover .feature-arrow {
  color: rgb(var(--base));
}

.feature:hover .feature-logo {
  border-color: rgb(var(--base));
}

/* tiles that are buttons (click to copy) need a few resets */
button.tile {
  width: 100%;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

/* little "copy" text on the right of a tile */
.tile-hint {
  margin-left: auto;
  font-family: var(--font-title);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.6;
}

.tile .tile-hint i {
  font-size: inherit;
  color: inherit;
}

/* dropdown for the extra account */
.more {
  margin-top: 0.75rem;
}

.more summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--text), 0.7);
  border: var(--border) solid rgba(var(--accent), 0.45);
  transition: background-color 0.15s, color 0.15s;
}

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

.more summary:hover {
  background-color: rgba(var(--accent), 0.2);
  color: rgb(var(--text));
}

.more summary i {
  transition: transform 0.2s;
}

.more[open] summary i {
  transform: rotate(180deg);
}

.more-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(var(--text), 0.6);
}

.tile svg {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  color: rgb(var(--accent));
  transition: color 0.15s;
}

.tile:hover svg {
  color: rgb(var(--base));
}

.tile-label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tile-name {
  display: block;
  font-size: 0.95rem;
}

.tile:hover {
  background-color: rgb(var(--accent));
  color: rgb(var(--base));
}

.tile:hover i {
  color: rgb(var(--base));
}

/* random typewriter line */
.quote {
  min-height: 1.6em;
  color: rgb(var(--accent));
}

/* blinking block after the text */
.quote::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 0.2em;
  vertical-align: -0.15em;
  background-color: rgb(var(--accent));
  animation: blink 1s steps(1) infinite;
}

/* footer */
.footer {
  border-top: var(--border) solid rgb(var(--accent));
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--text), 0.6);
  background-color: rgba(var(--base), 0.85);
}

/* anims */
@keyframes blink {
  50% { opacity: 0; }
}

/* motion thing for ppl who don't like the motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
  }
}
