:root {
  --bg-desktop: oklch(0.95 0.03 15);
  --bg-window: oklch(0.88 0.06 15);
  --bg-content: oklch(0.98 0.01 15);

  --border: oklch(0.4 0.08 15);
  --divider: oklch(0.7 0.08 15);

  --shadow-drop: oklch(0.2 0.08 15 / 0.75);
  --shadow-highlight: oklch(1 0 0 / 0.75);
  --shadow-inset: oklch(0.6 0.1 15 / 0.67);

  --text-main: oklch(0.25 0.04 15);
  --text-dark: oklch(0.3 0.04 15);
  --text-muted: oklch(0.5 0.1 15);
  --text-faded: oklch(0.6 0.1 15);

  --title: oklch(0.3 0.08 15);
  --heading: oklch(0.4 0.15 15);
  --subheading: oklch(0.4 0.12 15);
  --accent-bunny: oklch(0.5 0.15 15);
}

* {
  box-sizing: border-box;
}

.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1.75rem;
  background: var(--bg-content);
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 1px 0 0 var(--shadow-highlight);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  font-family: "ChicagoFLF", "M PLUS 1 Code", sans-serif;
  font-size: 0.75rem;
  color: var(--text-dark);
  z-index: 100;
  user-select: none;
}

.menubar-leading,
.menubar-trailing {
  display: flex;
  align-items: center;
  gap: 0;
}

.menubar-item {
  padding: 0 8px;
  height: 1.75rem;
  display: flex;
  align-items: center;
  cursor: default;
}

.menubar-item:hover {
  background-color: var(--accent-bunny);
  color: var(--bg-content);
}

body {
  background-color: var(--bg-desktop);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-size='48' opacity='0.15' transform='rotate(-15 60 60)'%3E🐰%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  margin: 0;
  padding: calc(1.75rem + 16px) 16px 16px;
}

.window {
  font-family: "M PLUS 1 Code", sans-serif;
  background-color: var(--bg-window);
  color: var(--text-dark);
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--border);
  box-shadow:
    2px 2px 0px var(--shadow-drop),
    inset 1px 1px 0 0 var(--shadow-highlight),
    inset -1px -1px 0 0 var(--shadow-inset);
  padding: 4px;
}

.title-bar {
  height: 1rem;
  color: var(--text-dark);
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "ChicagoFLF", "M PLUS 1 Code", sans-serif;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.title-bar .leading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.title-bar .center {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.title-bar .trailing {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.title-bar > span {
  padding: 0;
  margin: 0;
  line-height: 1;
}

.window-body {
  background-color: var(--bg-content);
  color: var(--text-main);
  line-height: 1.5;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow:
    -1px -1px 0 0 var(--shadow-inset),
    1px 1px 0 0 var(--shadow-highlight);
}

h1 {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "ChicagoFLF", "M PLUS 1 Code", sans-serif;
  color: var(--heading);
}

footer {
  border-top: 1px dashed var(--divider);
  margin-top: 20px;
  padding-top: 12px;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.footer-bunny {
  font-size: 1rem;
  margin-bottom: 5px;
}

header {
  text-align: center;
  padding: 10px 0 18px;
  border-bottom: 1px dashed var(--divider);
}

.bunny {
  font-family: monospace;
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 12px 0;
  color: var(--accent-bunny);
  white-space: pre;
}

header h1 {
  font-family: "ChicagoFLF", "M PLUS 1 Code", sans-serif;
  font-size: 2rem;
  margin: 8px 0 4px;
  color: var(--title);
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.tiny-note {
  font-size: 0.7rem;
  color: var(--text-faded);
  margin-top: 12px;
}

section {
  padding: 20px 0 4px;
}

section + section {
  border-top: 1px dashed var(--divider);
  margin-top: 16px;
}

section > h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-family: "ChicagoFLF", "M PLUS 1 Code", sans-serif;
  font-size: 1rem;
  color: var(--subheading);
}

section > h2::before {
  content: ">";
}

p {
  margin: 9px 0;
  font-size: 0.8rem;
}

a {
  color: var(--accent-bunny);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--heading);
  text-decoration-style: solid;
}

.back-btn {
  font-family: "ChicagoFLF", "M PLUS 1 Code", sans-serif;
  font-size: 0.7rem;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0 3px;
  border: 1px solid var(--border);
  box-shadow:
    -1px -1px 0 0 var(--shadow-inset),
    1px 1px 0 0 var(--shadow-highlight),
    inset -1px -1px 0 0 var(--shadow-inset),
    inset 1px 1px 0 0 var(--shadow-highlight);
}

.back-btn:hover {
  background-color: var(--accent-bunny);
  color: var(--bg-content);
}

blockquote {
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent-bunny);
  background-color: oklch(from var(--bg-window) l c h / 0.5);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.6;
  box-shadow:
    inset 1px 1px 0 0 var(--shadow-highlight),
    inset -1px -1px 0 0 var(--shadow-inset);
}

blockquote p {
  margin: 0;
}

cite {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  font-style: normal;
  color: var(--text-faded);
  text-align: right;
}

.app-card {
  margin-top: 12px;
  padding: 14px;
  background-color: var(--bg-window);
  border: 1px solid var(--border);
  box-shadow:
    inset 1px 1px 0 0 var(--shadow-highlight),
    inset -1px -1px 0 0 var(--shadow-inset);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.app-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  image-rendering: auto;
}

.app-card-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-name {
  font-family: "ChicagoFLF", "M PLUS 1 Code", sans-serif;
  font-size: 1.1rem;
  color: var(--heading);
  line-height: 1;
}

.app-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.app-screenshots {
  display: flex;
  gap: 8px;
  margin: 14px 0 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--divider) transparent;
}

.app-screenshot {
  height: 200px;
  width: auto;
  flex-shrink: 0;
  border: 1px solid var(--border);
  box-shadow:
    1px 1px 0 0 var(--shadow-drop),
    inset 1px 1px 0 0 var(--shadow-highlight);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--divider);
}

.app-link {
  font-size: 0.75rem;
}

.my-button-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 10px;
  background-color: var(--bg-window);
  border: 1px solid var(--border);
  box-shadow:
    inset 1px 1px 0 0 var(--shadow-highlight),
    inset -1px -1px 0 0 var(--shadow-inset);
}

.button-code {
  flex: 1;
  min-width: 0;
  font-family: "M PLUS 1 Code", monospace;
  font-size: 0.7rem;
  color: var(--text-dark);
  background-color: var(--bg-content);
  border: 1px solid var(--border);
  padding: 5px 8px;
  box-shadow:
    inset 1px 1px 0 0 var(--shadow-inset),
    inset -1px -1px 0 0 var(--shadow-highlight);
  outline: none;
  cursor: pointer;
}

.button-code:focus {
  border-color: var(--accent-bunny);
}

.friends-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pixel-button {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.friends-buttons a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.1s ease, filter 0.15s ease;
}

.friends-buttons a:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (max-width: 480px) {
  .my-button-card {
    flex-direction: column;
    align-items: stretch;
  }
}
