/* ==========================================================================
   myspace.css: Jack's Space, a 2006 profile page.

   Two layers, the way a customised profile really was. Underneath is the
   platform: navy chrome, pale blue tables, orange section headers, Arial at
   twelve pixels, square corners, links underlined. On top, switched by
   [data-skin="eunni"] on <html>, is the CSS Jack pasted into his profile:
   the pressed-blossom colours from the rest of eunni.dev, a branch tiled
   behind everything, Trebuchet headings, and a music player painted to
   match. The chrome, the network line and the contact table stay default in
   both, because pasted CSS never quite reached those.

   Nothing here loads a font from anywhere or references media/: every
   image is in index.html so scripts/stamp-assets.py can give it a token.
   The one url() below points at skin-tile.svg beside this file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   The page
   -------------------------------------------------------------------------- */

html {
  background: #ffffff;
  /* The skin's colour is here as well as on the body, so the page is green
     to the edges of a tall window rather than white below the tile. */
}

body {
  margin: 0;
  color: #000000;
  background: #ffffff;
  font: 12px/1.45 Arial, Helvetica, sans-serif;
}

.site {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 8px 16px;
  box-sizing: border-box;
}

a:link { color: #0033cc; }
a:visited { color: #0033cc; }
a { text-decoration: underline; }
a:hover { background: #d5e8fb; }

b, strong { font-weight: bold; }

h1, h2, h3, p, ul, ol, dl { margin: 0; }

ul, ol { padding: 0; list-style: none; }

.tiny {
  font: 10px/1.4 Verdana, Geneva, sans-serif;
  margin-top: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: #ff6600;
  color: #000000;
  padding: 6px 10px;
  border: 2px solid #000000;
  font-weight: bold;
}

.skip-link:focus { top: 8px; }

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Focus rings stay, in a colour that clears 3:1 on every surface. */
:focus-visible {
  outline: 3px solid #c24e00;
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   The platform chrome
   -------------------------------------------------------------------------- */

.chrome {
  background: #003399;
  color: #ffffff;
  border-bottom: 3px solid #ff6600;
  font-family: Verdana, Geneva, sans-serif;
}

.chrome-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 8px 10px 6px;
}

.wordmark {
  color: #ffffff;
  text-decoration: none;
  font: bold 26px/1 Arial, Helvetica, sans-serif;
  letter-spacing: -1px;
  white-space: nowrap;
}

.wordmark:hover { background: none; text-decoration: underline; }

.wm-dot { color: #ff6600; }
.wm-eunni { color: #ffffff; }

.wm-tag {
  font: 11px/1 Verdana, Geneva, sans-serif;
  color: #c5d3f0;
  letter-spacing: 0;
  margin-left: 8px;
}

.chrome-search {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.chrome-search label { color: #ffffff; }

.chrome-search input {
  font: 12px Arial, Helvetica, sans-serif;
  width: 130px;
  padding: 2px 4px;
  border: 1px solid #6699cc;
  background: #ffffff;
  color: #000000;
  border-radius: 0;
}

.chrome-search-note { color: #c5d3f0; }

.chrome-nav {
  background: #d5e8fb;
  border-top: 1px solid #6699cc;
  padding: 4px 10px;
  font-size: 11px;
  color: #6699cc;
  text-align: center;
}

.chrome-nav a {
  color: #003399;
  font-weight: bold;
  margin: 0 3px;
}

.network {
  margin: 8px 0;
  padding: 6px 8px;
  border: 1px solid #6699cc;
  background: #ffffff;
  /* Explicit, because the skin turns the body's text cream and this line
     stays platform white in both. */
  color: #000000;
  text-align: center;
  font-size: 13px;
}

.profile-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font: 11px Verdana, Geneva, sans-serif;
}

.profile-tools button {
  font: bold 11px Verdana, Geneva, sans-serif;
  padding: 3px 8px;
  background: #d5e8fb;
  border: 1px solid #6699cc;
  color: #003399;
  cursor: pointer;
}

.profile-tools button[aria-pressed="true"] {
  background: #003399;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   The two columns
   -------------------------------------------------------------------------- */

.profile {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.col-left {
  flex: 0 0 300px;
  min-width: 0;
}

.col-right {
  flex: 1 1 auto;
  min-width: 0;
}

.module {
  margin-bottom: 10px;
  background: #ffffff;
}

/* Left column headers: white on navy, the bar that every table had. */
.module-head {
  background: #003399;
  color: #ffffff;
  font: bold 12px/1.2 Arial, Helvetica, sans-serif;
  padding: 4px 6px;
  border: 1px solid #6699cc;
}

.module-head + .module-head { margin-top: 10px; }

/* Right column headers: the famous orange, darkened just enough to be
   readable on white, over a thin blue rule. */
.module-head-r {
  color: #c24e00;
  font: bold 15px/1.2 Arial, Helvetica, sans-serif;
  padding: 2px 0 3px;
  margin-bottom: 6px;
  border-bottom: 2px solid #6699cc;
}

/* --------------------------------------------------------------------------
   Who this is
   -------------------------------------------------------------------------- */

.module-summary h1 {
  font: bold 18px/1.2 Arial, Helvetica, sans-serif;
  margin: 2px 0 2px;
}

.tagline {
  font-style: italic;
  font-size: 11px;
  margin-bottom: 8px;
}

.summary-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.profile-photo {
  flex: none;
  display: block;
  width: 120px;
  height: 120px;
  border: 1px solid #0033cc;
  padding: 1px;
  background: #ffffff;
  image-rendering: pixelated;
}

.summary-details {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
}

.summary-details div { margin-bottom: 5px; }
.summary-details dt { font-weight: bold; }
.summary-details dd { margin: 0; }

.online {
  color: #146614;
  font-weight: bold;
  white-space: nowrap;
}

.online-dot {
  width: 10px;
  height: 10px;
  vertical-align: -1px;
  margin-right: 3px;
  color: #22aa22;
}

.summary-links {
  margin-top: 8px;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Contacting Jack. Stays pale blue in both skins.
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #d5e8fb;
  border: 1px solid #6699cc;
  border-top: 0;
  padding: 6px;
}

.contact-grid a,
.contact-grid button,
.contact-grid summary {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
  padding: 3px 4px;
  text-align: left;
  font: 11px/1.3 Arial, Helvetica, sans-serif;
  color: #0033cc;
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

.contact-grid a:hover,
.contact-grid button:hover,
.contact-grid summary:hover { background: #b1d0f0; }

.contact-grid button:disabled {
  color: #556680;
  text-decoration: none;
  cursor: default;
}

.contact-grid button:disabled:hover { background: none; }

.contact-grid button[aria-pressed="true"] { color: #146614; }

.ico {
  flex: none;
  width: 12px;
  height: 12px;
  color: #003399;
}

.contact-details summary { list-style: none; }
.contact-details summary::-webkit-details-marker { display: none; }

.contact-details p {
  margin: 4px 4px 4px 21px;
  font-size: 11px;
}

.contact-status {
  min-height: 0;
  margin: 4px 0 0;
  font: 11px/1.4 Verdana, Geneva, sans-serif;
}

.contact-status:empty { display: none; }

/* --------------------------------------------------------------------------
   The profile song
   -------------------------------------------------------------------------- */

.player {
  border: 1px solid #6699cc;
  border-top: 0;
  padding: 6px;
  background: #d5e8fb;
}

.player-screen {
  background: #1a1a1a;
  color: #ffcc66;
  border: 2px inset #808080;
  padding: 6px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.player-title { color: #ffffff; }
.player-label { color: #ffcc66; }
.player-artist { color: #c5d3f0; }
.player-artist::before { content: "by "; }

.player-readout {
  margin-top: 3px;
  letter-spacing: 1px;
}

.player-state {
  margin-left: 8px;
  color: #a6ff8c;
  text-transform: uppercase;
}

.player-bar {
  height: 6px;
  margin-top: 6px;
  background: #333333;
  border: 1px solid #555555;
}

.player-fill {
  width: 0;
  height: 100%;
  background: #ff6600;
}

/* Eight little bars that only move while the song does. */
.player-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-top: 6px;
}

.player-eq span {
  flex: 1 1 0;
  height: 2px;
  background: #ff6600;
}

.playing .player-eq span { animation: eq 0.9s ease-in-out infinite alternate; }
.playing .player-eq span:nth-child(2) { animation-duration: 0.7s; animation-delay: 0.1s; }
.playing .player-eq span:nth-child(3) { animation-duration: 1.1s; animation-delay: 0.2s; }
.playing .player-eq span:nth-child(4) { animation-duration: 0.8s; animation-delay: 0.05s; }
.playing .player-eq span:nth-child(5) { animation-duration: 1s; animation-delay: 0.3s; }
.playing .player-eq span:nth-child(6) { animation-duration: 0.75s; animation-delay: 0.15s; }
.playing .player-eq span:nth-child(7) { animation-duration: 0.95s; animation-delay: 0.25s; }
.playing .player-eq span:nth-child(8) { animation-duration: 0.65s; animation-delay: 0.35s; }

@keyframes eq {
  from { height: 2px; }
  to { height: 14px; }
}

.player-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.player-button {
  font: bold 11px Arial, Helvetica, sans-serif;
  padding: 4px 8px;
  background: #ff6600;
  color: #000000;
  border: 2px outset #ffb380;
  cursor: pointer;
  min-height: 26px;
}

.player-button:active { border-style: inset; }

.player-button:disabled {
  background: #cccccc;
  border-color: #e6e6e6;
  color: #555555;
  cursor: default;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font: 11px Verdana, Geneva, sans-serif;
}

.player-volume input {
  width: 70px;
  margin: 0;
  accent-color: #ff6600;
}

.player-note {
  margin-top: 6px;
  font: 10px/1.4 Verdana, Geneva, sans-serif;
}

/* --------------------------------------------------------------------------
   Interests and details: the blue two-tone table
   -------------------------------------------------------------------------- */

.detail-table {
  border: 1px solid #6699cc;
  border-top: 0;
  font-size: 11px;
}

.detail-table div {
  display: grid;
  grid-template-columns: 78px 1fr;
  border-top: 1px solid #ffffff;
}

.detail-table div:first-child { border-top: 0; }

.detail-table dt {
  background: #b1d0f0;
  color: #003399;
  font-weight: bold;
  padding: 4px 6px;
}

.detail-table dd {
  margin: 0;
  background: #d5e8fb;
  padding: 4px 6px;
}

/* --------------------------------------------------------------------------
   Jack across the web
   -------------------------------------------------------------------------- */

.time-list {
  border: 1px solid #6699cc;
  border-top: 0;
  padding: 6px;
  font-size: 11px;
}

.time-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0 6px;
  padding: 3px 0;
  border-top: 1px dotted #6699cc;
}

.time-list li:first-child { border-top: 0; }

.time-year {
  font: bold 10px/1.5 "Courier New", Courier, monospace;
  color: #003399;
}

.time-note {
  grid-column: 2;
  font-size: 10px;
  color: #444444;
}

/* --------------------------------------------------------------------------
   Blurbs and blog
   -------------------------------------------------------------------------- */

.module-blurbs h3 {
  font: bold 12px/1.3 Arial, Helvetica, sans-serif;
  color: #c24e00;
  margin: 6px 0 2px;
}

.module-blurbs p { margin-bottom: 4px; }

.blog-entry {
  padding: 4px 0;
  border-bottom: 1px dotted #6699cc;
}

.blog-date {
  display: inline-block;
  min-width: 140px;
  font: 11px "Courier New", Courier, monospace;
  color: #444444;
}

.blog-tag {
  font-size: 10px;
  color: #444444;
}

.blog-more,
.friends-more {
  margin-top: 6px;
  font-size: 11px;
  text-align: right;
}

.search-note {
  margin-top: 6px;
  font: 11px Verdana, Geneva, sans-serif;
  color: #444444;
}

/* --------------------------------------------------------------------------
   The Top 8
   -------------------------------------------------------------------------- */

.friends-count { margin-bottom: 4px; }

.top8-title {
  font: bold 12px/1.3 Arial, Helvetica, sans-serif;
  color: #c24e00;
  margin: 4px 0 6px;
}

.top8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 6px;
}

.friend {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 4px;
  border: 1px solid #ffffff;
}

.friend.hit { border-color: #ff6600; background: #fff3e6; }
.friend.miss { display: none; }

.friend-name {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.friend-pic-link { display: block; line-height: 0; }
.friend-pic-link:hover { background: none; }

.friend-pic {
  display: block;
  width: 90px;
  height: 90px;
  max-width: 100%;
  image-rendering: pixelated;
  border: 1px solid #6699cc;
}

.friend-online {
  font-size: 10px;
  margin-top: 4px;
}

.friend-info {
  font-size: 10px;
  margin-top: 4px;
  max-width: 100%;
}

.friend-info summary {
  cursor: pointer;
  color: #0033cc;
  text-decoration: underline;
}

.friend-info summary:hover { background: #d5e8fb; }

.friend-info p {
  text-align: left;
  margin-top: 4px;
  padding: 4px;
  background: #d5e8fb;
  border: 1px solid #6699cc;
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */

.comments-count {
  font-size: 11px;
  margin-bottom: 6px;
}

.comment {
  display: grid;
  grid-template-columns: 132px 1fr;
  border: 1px solid #6699cc;
  margin-bottom: 4px;
}

.comment-who {
  background: #d5e8fb;
  padding: 6px;
  font-size: 11px;
  text-align: center;
}

.comment-who img {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 4px;
  image-rendering: pixelated;
  border: 1px solid #6699cc;
}

.comment-who b { display: block; overflow-wrap: anywhere; }

.comment-date {
  display: block;
  font: 10px "Courier New", Courier, monospace;
  color: #444444;
  margin-top: 2px;
}

.comment-body {
  padding: 8px;
  align-self: center;
}

.add-comment {
  margin-top: 8px;
  text-align: right;
}

.add-comment button,
.msgbox button {
  font: bold 11px Arial, Helvetica, sans-serif;
  padding: 4px 10px;
  background: #d5e8fb;
  border: 1px solid #6699cc;
  color: #003399;
  cursor: pointer;
}

.add-comment button:disabled {
  color: #556680;
  cursor: default;
}

/* --------------------------------------------------------------------------
   The message box
   -------------------------------------------------------------------------- */

.msgbox {
  padding: 0;
  border: 2px solid #003399;
  background: #ffffff;
  color: #000000;
  max-width: min(380px, 90vw);
  font: 12px/1.45 Arial, Helvetica, sans-serif;
}

.msgbox::backdrop { background: rgba(0, 51, 153, 0.5); }

.msgbox-title {
  background: #003399;
  color: #ffffff;
  font: bold 12px/1.3 Arial, Helvetica, sans-serif;
  padding: 4px 8px;
}

.msgbox-text { padding: 12px 10px 4px; }

.msgbox-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 10px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #6699cc;
  text-align: center;
  font: 10px/1.5 Verdana, Geneva, sans-serif;
  color: #444444;
}

.foot-links {
  font-size: 11px;
  margin-bottom: 6px;
  color: #6699cc;
}

.foot-links a { margin: 0 2px; }

.foot-note {
  max-width: 620px;
  margin: 0 auto 4px;
}

.foot-copy { margin-top: 6px; }

/* ==========================================================================
   Jack's skin. What he pasted into the "About Me" box in 2006, tidied.
   ========================================================================== */

[data-skin="eunni"] {
  background: #183128;
}

[data-skin="eunni"] body {
  background: #183128 url("./skin-tile.svg") repeat;
  color: #eef1e9;
}

[data-skin="eunni"] a:link,
[data-skin="eunni"] a:visited { color: #9bc2ad; }
[data-skin="eunni"] a:hover { background: #29463a; }

[data-skin="eunni"] :focus-visible { outline-color: #e7a6ba; }

[data-skin="eunni"] .profile-tools { color: #eef1e9; }

[data-skin="eunni"] .module {
  background: #1d2d25;
  border: 1px solid #405448;
  padding: 0 0 6px;
}

[data-skin="eunni"] .module-summary,
[data-skin="eunni"] .module-blurbs,
[data-skin="eunni"] .module-blog,
[data-skin="eunni"] .module-friends,
[data-skin="eunni"] .module-comments { padding: 8px; }

[data-skin="eunni"] .module-head {
  background: #29463a;
  color: #f2c8d4;
  font: bold 14px/1.2 "Trebuchet MS", Tahoma, Arial, sans-serif;
  border: 0;
  border-bottom: 1px solid #e7a6ba;
}

[data-skin="eunni"] .module-head + .module-head { margin-top: 12px; }

[data-skin="eunni"] .module-head-r {
  color: #e7a6ba;
  font: bold 19px/1.2 "Trebuchet MS", Tahoma, Arial, sans-serif;
  border-bottom: 1px solid #e7a6ba;
}

[data-skin="eunni"] .module-summary h1 {
  font: bold 24px/1.2 "Trebuchet MS", Tahoma, Arial, sans-serif;
  color: #f2c8d4;
}

[data-skin="eunni"] .tagline { color: #c9d6cc; }

[data-skin="eunni"] .profile-photo {
  border: 2px solid #e7a6ba;
  padding: 0;
  background: #183128;
}

[data-skin="eunni"] .online { color: #85b79c; }
[data-skin="eunni"] .online-dot { color: #85b79c; }

/* The contact table is the one thing the pasted CSS never reached. */
[data-skin="eunni"] .module-contact {
  background: #ffffff;
  color: #000000;
  padding: 0;
  border-color: #6699cc;
}

[data-skin="eunni"] .module-contact .module-head {
  background: #003399;
  color: #ffffff;
  font: bold 12px/1.2 Arial, Helvetica, sans-serif;
  border-bottom: 0;
}

[data-skin="eunni"] .module-contact a:link,
[data-skin="eunni"] .module-contact a:visited { color: #0033cc; }
[data-skin="eunni"] .module-contact a:hover { background: #b1d0f0; }
[data-skin="eunni"] .module-contact .contact-status { padding: 0 6px 6px; }
[data-skin="eunni"] .module-contact :focus-visible { outline-color: #c24e00; }

[data-skin="eunni"] .player {
  background: #183128;
  border: 0;
  border-top: 1px solid #405448;
}

[data-skin="eunni"] .player-screen {
  background: #0f1f18;
  color: #f2c8d4;
  border: 1px solid #405448;
}

[data-skin="eunni"] .player-title { color: #eef1e9; }
[data-skin="eunni"] .player-label { color: #e7a6ba; }
[data-skin="eunni"] .player-artist { color: #9bc2ad; }
[data-skin="eunni"] .player-state { color: #9bc2ad; }
[data-skin="eunni"] .player-bar { background: #29463a; border-color: #405448; }
[data-skin="eunni"] .player-fill { background: #e7a6ba; }
[data-skin="eunni"] .player-eq span { background: #e7a6ba; }

[data-skin="eunni"] .player-button {
  background: #e7a6ba;
  color: #183128;
  border: 1px solid #f2c8d4;
}

[data-skin="eunni"] .player-button:disabled {
  background: #405448;
  border-color: #405448;
  color: #c9d6cc;
}

[data-skin="eunni"] .player-volume input { accent-color: #e7a6ba; }

[data-skin="eunni"] .detail-table,
[data-skin="eunni"] .time-list { border: 0; }

[data-skin="eunni"] .detail-table div { border-top-color: #1d2d25; }
[data-skin="eunni"] .detail-table dt { background: #29463a; color: #f2c8d4; }
[data-skin="eunni"] .detail-table dd { background: #223830; }
[data-skin="eunni"] .time-list li { border-top-color: #405448; }
[data-skin="eunni"] .time-year { color: #e7a6ba; }
[data-skin="eunni"] .time-note,
[data-skin="eunni"] .blog-date,
[data-skin="eunni"] .blog-tag,
[data-skin="eunni"] .comment-date,
[data-skin="eunni"] .search-note { color: #c9d6cc; }

[data-skin="eunni"] .module-blurbs h3,
[data-skin="eunni"] .top8-title {
  color: #e7a6ba;
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
}

[data-skin="eunni"] .blog-entry { border-bottom-color: #405448; }

[data-skin="eunni"] .friend { border-color: #1d2d25; }
[data-skin="eunni"] .friend.hit { border-color: #e7a6ba; background: #29463a; }
[data-skin="eunni"] .friend-pic { border: 1px solid #e7a6ba; }
[data-skin="eunni"] .friend-info summary { color: #9bc2ad; }
[data-skin="eunni"] .friend-info summary:hover { background: #29463a; }

[data-skin="eunni"] .friend-info p {
  background: #223830;
  border-color: #405448;
}

[data-skin="eunni"] .comment { border-color: #405448; }
[data-skin="eunni"] .comment-who { background: #223830; }
[data-skin="eunni"] .comment-who img { border-color: #e7a6ba; }

[data-skin="eunni"] .add-comment button {
  background: #29463a;
  border-color: #9bc2ad;
  color: #eef1e9;
}

[data-skin="eunni"] .add-comment button:disabled {
  color: #c9d6cc;
  border-color: #405448;
}

[data-skin="eunni"] .foot {
  color: #c9d6cc;
  border-top-color: #405448;
}

[data-skin="eunni"] .foot-links { color: #405448; }

/* The switch itself moves with the skin, gently, so the two states are
   readable as before and after rather than a flash. */
.module,
.module-head,
.module-head-r,
.detail-table dt,
.detail-table dd,
.friend-pic,
.player,
.player-screen,
.player-button,
.comment,
.comment-who,
.foot {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* --------------------------------------------------------------------------
   Narrow screens. One column, in the order the brief asks for: the columns
   dissolve (display: contents) and each module takes a number.
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .profile { display: flex; flex-direction: column; }
  .col-left, .col-right { display: contents; }

  .module-summary { order: 1; }
  .module-contact { order: 2; }
  .module-song { order: 3; }
  .module-blurbs { order: 4; }
  .module-blog { order: 5; }
  .module-friends { order: 6; }
  .module-comments { order: 7; }
  .module-details { order: 8; }
  .module-time { order: 9; }

  .module { width: 100%; box-sizing: border-box; }

  .chrome-top { justify-content: center; text-align: center; }
  .chrome-search { flex-wrap: wrap; justify-content: center; }
  .top8 { grid-template-columns: repeat(2, 1fr); }
  .comment { grid-template-columns: 90px 1fr; }
  .blog-date { display: block; }
}

@media (max-width: 400px) {
  .site { padding: 0 4px 12px; }
  .summary-row { flex-direction: column; }
  .comment { grid-template-columns: 1fr; }
  .comment-who { text-align: left; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .comment-who img { margin: 0; }
  .comment-who b { display: inline; }
  .comment-date { flex-basis: 100%; }
}

/* --------------------------------------------------------------------------
   Reduced motion: the switch snaps, the bars hold still. myspace.js reads
   the same query before it animates anything of its own.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .module, .module-head, .module-head-r, .detail-table dt, .detail-table dd,
  .friend-pic, .player, .player-screen, .player-button, .comment, .comment-who, .foot {
    transition: none;
  }
  .playing .player-eq span { animation: none; height: 8px; }
}

@media (forced-colors: active) {
  .player-fill, .player-eq span { background: CanvasText; }
  .friend.hit { outline: 2px solid Highlight; }
}
