
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #090b14;
  --panel: #131827;
  --line: #293147;
  --text: #f5f6fb;
  --muted: #929bb1;
  --purple: #9875ff;
  --blue: #55b8ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

.app-hidden {
  display: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  padding: 30px 20px;
  background: #0d101b;
  border-right: 1px solid #252c40;
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.sidebar h2 {
  font: 700 28px 'Space Grotesk';
  letter-spacing: -1px;
  margin-bottom: 5px;
  background: linear-gradient(90deg, #b99aff, #65baff);
  color: transparent;
  background-clip: text;
}

.sidebar p {
  color: #78839d;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.sidebar button {
  text-align: left;
  border: 0;
  padding: 14px;
  margin: 4px 0;
  color: #aab3c8;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
}

.sidebar button:hover {
  background: #20253a;
  color: white;
}

.sidebar-bottom {
  margin-top: auto;
  font-size: 9px;
  color: #65708a;
  letter-spacing: 1px;
}

main {
  margin-left: 245px;
  padding: 0 45px 50px;
}

header {
  height: 75px;
  border-bottom: 1px solid #252c40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #929bb1;
  font-size: 12px;
}

header b {
  color: white;
}

.status {
  color: #65d9a5;
}

section {
  padding-top: 40px;
}

.eyebrow {
  color: #8e78ce;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: bold;
}

h1 {
  font: 700 clamp(30px, 5vw, 46px) 'Space Grotesk';
  letter-spacing: -2px;
  margin: 10px 0;
}

h1 span {
  background: linear-gradient(100deg, #b99aff, #69baff);
  color: transparent;
  background-clip: text;
}

.muted {
  color: var(--muted);
}

.panel {
  background: linear-gradient(145deg, #151b2b, #101421);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  margin-top: 24px;
  max-width: 850px;
  box-shadow: 0 15px 40px #0002;
}

.panel h2 {
  font: 600 19px 'Space Grotesk';
  margin-top: 0;
}

label {
  display: block;
  font-size: 12px;
  color: #aab3c8;
  margin: 20px 0 8px;
}

textarea, select {
  display: block;
  width: 100%;
  background: #0b0f1a;
  border: 1px solid #303951;
  color: white;
  padding: 13px;
  border-radius: 9px;
  outline: none;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

textarea:focus, select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #9875ff20;
}

button.primary {
  background: linear-gradient(100deg, #8b68ec, #568fe9);
  color: white;
  border: 0;
  border-radius: 9px;
  padding: 14px 20px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: .2s;
}

button.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

#output {
  color: #b8c1d5;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#projects {
  min-height: 70vh;
}

[hidden] {
  display: none !important;
}

@media(max-width:700px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 12px 18px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .sidebar h2 {
    font-size: 22px;
    margin: 0 15px 0 0;
  }

  .sidebar p, .sidebar-bottom {
    display: none;
  }

  .sidebar button {
    padding: 10px;
    font-size: 11px;
  }

  main {
    margin-left: 0;
    padding: 0 17px 30px;
  }

  header {
    height: 55px;
  }

  section {
    padding-top: 25px;
  }

  .panel {
    padding: 18px;
  }

  h1 {
    font-size: 32px;
  }
}
