/* THE MUSE JOURNAL — desktop edition.
   Original plum, rose, parchment and gold palette; reference-inspired window chrome. */
:root {
  --ink: #2a1512;
  --plum: #4b214b;
  --gold: #b98b44;
  --paper: #fff7e3;
  --edge: #6c4417;
  --chrome: #e3c7a5;
  --highlight: #fffdf6;
  --window: radial-gradient(circle at top left, #fffef7 0%, #f5e6ff 40%, #f2ddff 70%, #ffe7f3 100%);
  --bevel: inset 1px 1px #fffdf6, inset -1px -1px #946b43, 3px 3px 0 #05030866;
}
  
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 100px 28px 80px 130px;
  color: var(--ink);
  font: 13px/1.65 'Courier New', monospace;
  background: radial-gradient(circle at top left, #4a2c5f 0, #1a0b17 45%, #050308 100%) fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .12;
  background: repeating-linear-gradient(0deg, #fff4e240 0 1px, transparent 1px 3px);
}

[hidden],
.d-none {
  display: none !important;
}

a {
  color: #4f245c;
  text-underline-offset: 3px;
}

a:hover {
  color: #8d387f;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: wait;
}

button,
.button,
.desktop-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 2px solid;
  border-color: #fffdf6 #6c4417 #6c4417 #fffdf6;
  border-radius: 0;
  background: radial-gradient(circle at top, #fff8e8 0%, #f3e0c7 40%, #e3c7a5 70%, #c39564 100%);
  color: #422218;
  text-decoration: none;
  box-shadow: 1px 1px 0 #24162e55;
}

button:hover,
.button:hover {
  background: #fff7e3;
  color: #4b214b;
}

button:active,
.button:active {
  border-color: #6c4417 #fffdf6 #fffdf6 #6c4417;
  transform: translate(1px, 1px);
}

:focus-visible {
  outline: 2px dashed #833bba;
  outline-offset: 4px;
}

.primary {
  background: linear-gradient(120deg, #471f62, #8d387f);
  color: #fff7e3;
  border-color: #ce9cca #24162e #24162e #ce9cca;
}

.primary:hover {
  background: #4b214b;
  color: #fff7e3;
}

.ghost {
  background: linear-gradient(180deg, #fffdf9, #f6e9dd, #f2e3ff);
}

.danger,
.error,
.field-error,
.alert-danger {
  color: #8c183b;
}

.small {
  font-size: 11px;
  padding: 5px 10px;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 15px;
  background: white;
  z-index: 100;
  padding: 10px;
}
/* Wallpaper and shortcuts are decorative extensions, not replacements for navigation. */
.desktop-wallpaper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background: repeating-linear-gradient(90deg, transparent 0 79px, #fff7e308 80px 81px);
}

.desktop-wallpaper span {
  position: absolute;
  color: #b98b44;
  opacity: .16;
  font: 300px Georgia, serif;
  transform: rotate(18deg);
}

.desktop-wallpaper span:nth-child(1) { left: 14%; top: -120px; }
.desktop-wallpaper span:nth-child(2) { right: -80px; top: 20%; font-size: 440px; }
.desktop-wallpaper span:nth-child(3) { left: -65px; bottom: -110px; font-size: 400px; }
.desktop-wallpaper span:nth-child(4) { left: 50%; bottom: -130px; }

.desktop-shortcuts {
  position: absolute;
  left: 20px;
  top: 33px;
  display: grid;
  gap: 24px;
  width: 86px;
  text-align: center;
}

.desktop-shortcuts a,
.desktop-shortcuts button {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 5px;
  border: 0;
  background: none;
  box-shadow: none;
  color: #f3e3ff;
  font-size: 11px;
  text-decoration: none;
}

.desktop-shortcuts b {
  font: 34px/1.2 Georgia, serif;
  color: #e3c7a5;
  text-shadow: 2px 2px #471f62;
}

.desktop-shortcuts a:hover,
.desktop-shortcuts button:hover {
  outline: 1px dotted #e3c7a5;
  background: #f5e6ff18;
}

.desktop-label {
  position: absolute;
  right: 30px;
  top: 25px;
  color: #e3c7a5;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-align: right;
}

.desktop-label span {
  letter-spacing: 0;
  color: #c7a3c6;
}

.desktop-shell {
  max-width: 1060px;
  margin: auto;
  border: 2px solid;
  border-color: #fff7e3 #6c4417 #6c4417 #fff7e3;
  padding: 3px;
  background: var(--chrome);
  box-shadow: 1px 1px #050308, 7px 7px 0 #05030855;
}

.desktop-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 4px 7px;
  background: linear-gradient(120deg, #24162e 0%, #471f62 30%, #8d387f 65%, #e1a353 100%);
  color: #fff7e3;
  font-size: 12px;
}

.window-controls {
  flex-shrink: 0;
  background: #e3c7a5;
  color: #422218;
  border: 1px outset #fff7e3;
  padding: 0 5px;
  line-height: 19px;
}
/* Menubar */
.main-nav {
  position: relative;
  z-index: 10;
  padding: 7px 10px;
  background: linear-gradient(180deg, #fff8e8, #e3c7a5);
  border-bottom: 1px solid #a77737;
}

.menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu > li { position: relative; }

.menu a,
.sub-toggle {
  display: block;
  text-decoration: none;
  font-size: 12px;
  padding: 6px 12px;
  color: #422218;
}

.menu > li > a { border: 1px solid transparent; }

.menu > li > a:hover,
.menu a[aria-current=page] {
  border: 1px inset #fff7e3;
  background: #f5e6ff;
}

.sub-toggle { padding: 5px 12px; }

.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 190px;
  padding: 4px;
  list-style: none;
  background: #f3e0c7;
  border: 2px outset #fff7e3;
  box-shadow: 4px 4px #24162e44;
  z-index: 20;
}

.submenu a:hover { background: #4b214b; color: #fff7e3; }
.nav-toggle { display: none; }
/* Window interior */
.site-hero {
  position: relative;
  padding: 38px 36px;
  background: var(--window);
  border-bottom: 1px solid #b98b44;
  overflow: hidden;
}

.site-hero::before {
  content: '✧';
  position: absolute;
  right: 30px;
  top: -30px;
  font: 230px Georgia, serif;
  color: #b98b44;
  opacity: .13;
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-title,
h1 {
  font: normal clamp(32px, 4.4vw, 57px)/1.08 Georgia, 'Times New Roman', serif;
  letter-spacing: -1.5px;
  color: #4b214b;
  margin: 0 0 18px;
}

.hero-lead { font-size: 14px; margin: 0 0 16px; max-width: 620px; }
.hero-meta { max-width: 660px; font-size: 10px; color: #6e4a45; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-decor { display: none; }

main {
  padding: 30px 36px 36px;
  background: linear-gradient(110deg, #fffdf6, #f3e3ff 70%, #ffe7f3);
  min-width: 0;
}

main > article { min-width: 0; }

h2 {
  font: normal 28px/1.2 Georgia, serif;
  letter-spacing: -.5px;
  color: #4b214b;
  margin: 0 0 20px;
}

h3 { font: normal 22px/1.3 Georgia, serif; color: #4b214b; margin: 0 0 12px; }
h4 { font-size: 13px; margin: 18px 0 7px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
section + section { margin-top: 30px; }
img, video { max-width: 100%; height: auto; }
audio { max-width: 100%; }

.Sitemap_diagram {
  display: block;
  max-height: 560px;
  object-fit: contain;
  background: #fffdf9;
  border: 2px inset #e3c7a5;
  padding: 8px;
  margin: 15px auto 28px;
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 25px;
}

.sitemap-list ul { margin-top: 8px; }

.desktop-shell > footer {
  padding: 7px;
  background: linear-gradient(180deg, #f4e1c7, #ccb090);
  font-size: 10px;
}

.desktop-shell > footer p {
  margin: 0;
  border: 1px inset #fff7e3;
  padding: 4px 8px;
}
/* Reusable inset windows, retaining the original pastel shading. */
.card-grid,
.creators-grid,
.roles-grid,
.motivation-grid,
.contact-grid,
.logout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.roles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card,
.creator-card,
.roles-card,
.motivation-card,
.contact-card,
.logout-card,
.explore-card,
.result-card {
  min-width: 0;
  padding: 20px;
  border: 2px solid;
  border-color: #fffdf6 #a77737 #a77737 #fffdf6;
  background: var(--window);
  box-shadow: var(--bevel);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.card > h3:first-child,
.creator-name,
.roles-card > h3:first-child,
.motivation-card > h3:first-child,
.contact-card > h3:first-child {
  margin: -17px -17px 18px;
  padding: 5px 9px;
  background: linear-gradient(90deg, #471f62, #8d387f);
  color: #fff7e3;
  font: 12px/1.5 'Courier New', monospace;
  letter-spacing: .3px;
}

.creator-photo {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 2px inset #b98b44;
  margin-bottom: 18px;
}

.creator-name { margin: 0; font-size: 13px; }

.card-meta,
.result-meta,
.post-meta,
.post-author,
.comment-date,
.field-help,
.post-tags-help,
.report-help,
.results-hint {
  font-size: 11px;
  color: #6e4a45;
}

.results-list,
.explore-posts { padding: 0; list-style: none; }

.post-header,
.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.post-header-text,
.comment-header-text { display: flex; flex-direction: column; }

.post-avatar,
.comment-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px outset #b98b44;
  flex-shrink: 0;
}

.comment-avatar { width: 32px; height: 32px; }
.placeholder { display: inline-flex; align-items: center; justify-content: center; background: var(--window); font-size: 25px; }
.avatar-image { max-width: 150px; max-height: 150px; object-fit: cover; border: 3px outset #b98b44; }

.post-media-image,
.post-media-video,
.post-media img,
.post-media video {
  display: block;
  max-height: 580px;
  object-fit: contain;
  margin: 15px 0;
  border: 2px inset #e3c7a5;
}

.post-media-audio { width: 100%; margin: 15px 0; }

.post-actions,
.post-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.post-excerpt,
.result-excerpt { white-space: pre-wrap; }

.tag-pill {
  display: inline-block;
  padding: 3px 8px;
  margin: 3px 3px 3px 0;
  border: 1px solid #b98b44;
  background: linear-gradient(180deg, #fef9ff, #e8d5ff);
  color: #3f2765;
  font-size: 11px;
  text-decoration: none;
}

.like-button.liked { background: #d28ad9; }
.comment-list { list-style: none; padding: 0; }
.comment-item { background: #fffdf980; border: 1px inset #e3c7a5; padding: 14px; margin: 12px 0; }
.comments { margin-top: 20px; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.inline-delete-form { display: inline; margin: 0; }
.empty,
.error { padding: 15px; border: 1px inset #e3c7a5; background: #fffdf980; }
/* Forms and tables */
form label { display: block; margin: 15px 0 6px; }

input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
textarea,
select,
.form-control {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid;
  border-color: #946b43 #fffdf6 #fffdf6 #946b43;
  border-radius: 0;
  color: #2a1512;
  background: linear-gradient(180deg, #fffdf9, #f6e9dd 50%, #f2e3ff);
  box-shadow: none;
  font: 13px/1.6 'Courier New', monospace;
}

input[type=checkbox],
input[type=radio] { accent-color: #833bba; width: 16px; height: 16px; vertical-align: middle; }
textarea { resize: vertical; min-height: 130px; }
form button[type=submit] { margin-top: 18px; }
fieldset { border: 1px solid #b98b44; padding: 12px 15px; margin: 20px 0; }
legend { width: auto; float: none; font-size: 12px; padding: 0 8px; }

.search-filters,
.tags-options { display: flex; flex-wrap: wrap; gap: 10px 20px; }

.search-filters label,
.tags-options label { display: inline-flex; align-items: center; gap: 7px; margin: 0; }

.tags-options label { padding: 7px 10px; border: 1px outset #fff7e3; background: #f5e6ff; }
.tags-options label:has(input:checked) { background: #e3c7a5; border-style: inset; }
.search-bar { display: flex; gap: 12px; }
.search-bar button[type=submit] { margin: 0; }
.search-bar input { flex: 1; }
.field-group { margin-bottom: 22px; }
.report-table-wrapper { overflow: auto; }

table { width: 100%; border-collapse: collapse; background: #fffdf9; font-size: 12px; }
th, td { text-align: left; padding: 12px; border: 1px solid #b98b44; }
th { background: #4b214b; color: #fff7e3; }
tr:nth-child(even) { background: #f5e6ff; }
.print-controls { margin: 18px 0; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.gap-2 { gap: 8px; }
.mb-2 { margin-bottom: 8px; }
.alert { padding: 14px; margin: 15px 0; border: 1px solid #8c183b; }

/* Persistent desktop taskbar */
.desktop-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  align-items: center;
  height: 46px;
  padding: 5px;
  background: linear-gradient(180deg, #f4e1c7, #ccb090);
  border-top: 2px solid #fff7e3;
  box-shadow: 0 -1px #6c4417;
  font-size: 11px;
}

.desktop-start { padding: 3px 14px; font-weight: bold; }

.desktop-task {
  border: 2px inset #fff7e3;
  background: #f5e6ff;
  padding: 4px 12px;
  min-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-task.secondary { background: #e3c7a5; border-style: outset; }

.desktop-tray {
  margin-left: auto;
  border: 1px inset #fff7e3;
  padding: 4px 12px;
  white-space: nowrap;
}

.desktop-tray time { margin-left: 10px; }

@media(min-width:1500px){
  body{padding-top:140px}
  .desktop-shell{max-width:1120px}}
  
@media(max-width:1000px){
  body{padding-left:112px;
    padding-right:20px}
    .roles-grid{grid-template-columns:1fr}
    .site-hero,main{padding:26px}
    .card-grid,.creators-grid{gap:16px}
    .menu a,.sub-toggle{padding:6px 8px}}

@media(max-width:650px){
  body{padding:125px 12px 70px}
  .desktop-shortcuts{
    display:flex;
    top:14px;
    left:15px;
    width:auto;
    gap:20px}

  .desktop-shortcuts b{font-size:27px}
  .desktop-label{display:none}
  .desktop-titlebar{font-size:10px}
  .desktop-titlebar>span:first-child{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap}
    
  .site-hero,main{padding:24px 18px}
  .hero-title,h1{font-size:38px}
  .card-grid,
  .creators-grid,
  .motivation-grid,
  .contact-grid,
  .logout-grid,
  .sitemap-list{grid-template-columns:1fr}
  .nav-toggle{display:flex;padding:4px 8px}
  .menu{display:none;margin-top:8px;align-items:stretch}
  .menu.is-open{display:flex;flex-direction:column}
  .submenu{position:static;box-shadow:none;margin:5px 0}
  .menu>li,
  .sub-toggle{width:100%}
  .search-bar{flex-wrap:wrap}
  .search-bar button{width:100%}
  .desktop-taskbar{gap:5px}
  .desktop-task{min-width:0;flex:1;padding:4px 6px}
  .desktop-task
  .secondary{display:none}
  .desktop-tray{padding:4px 6px}
  .desktop-start{padding:3px 8px}
  .creator-photo{height:280px}
  .card,
  .result-card,
  .explore-card{padding:16px}
  .card>h3:first-child{margin:-13px -13px 16px}
  .hero-meta{font-size:10px}}
  

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{animation:none!important;transition:none!important}}
  
  
@media print{
  body{padding:0;background:white;color:black}
  .desktop-shortcuts,
  .desktop-label,
  .desktop-wallpaper,
  .desktop-titlebar,
  .main-nav,
  .desktop-taskbar,
  .print-controls,
  body::after{display:none!important}
  .desktop-shell{border:0;box-shadow:none;padding:0;max-width:none}
  main{padding:0;background:white}
  .report-table-wrapper{overflow:visible}
  th{background:#eee;color:black}
  tr{break-inside:avoid}
  .desktop-shell>footer{background:white}}

/* Desktop v2: live window controls and authentication-aware shortcuts. */
.desktop-shortcuts {
  position: fixed;
  top: 24px;
  bottom: 60px;
  overflow-y: auto;
  gap: 16px;
  width: 100px;
  align-content: start;
  z-index: 1;
}

.desktop-shortcuts a { font-size: 11px; line-height: 1.35; gap: 8px; }
.desktop-shortcuts svg { width: 34px; height: 34px; color: #e3c7a5; filter: drop-shadow(2px 2px 0 #471f62); }
.window-controls { display: flex; gap: 4px; border: 0; padding: 0; background: none; }

.window-controls button {
  width: 25px;
  height: 23px;
  min-height: 0;
  padding: 0;
  font: 16px/1 'Courier New', monospace;
  background: #e3c7a5;
  color: #422218;
}

.window-controls button:hover { background: #fff7e3; }
.window-controls #window-close:hover { background: #8d387f; color: #fff7e3; }

.desktop-task {
  font: 11px/1.5 'Courier New', monospace;
  justify-content: flex-start;
  max-width: calc(100vw - 110px);
  text-overflow: ellipsis;
  display: block;
  box-shadow: none;
}

.desktop-task.is-minimized { border-style: outset; background: #e3c7a5; }

.desktop-start-menu {
  position: fixed;
  bottom: 47px;
  left: 5px;
  z-index: 45;
  width: 260px;
  max-height: calc(100svh - 60px);
  overflow-y: auto;
  padding: 4px;
  background: #e3c7a5;
  border: 2px outset #fff7e3;
  box-shadow: 4px -4px 0 #05030855;
}

.start-menu-title { 
  background: linear-gradient(90deg, #471f62, #8d387f);
  color: #fff7e3; padding: 8px 12px; margin-bottom: 4px; }

.desktop-start-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: #422218;
  text-decoration: none;
}

.desktop-start-menu a:hover,
.desktop-start-menu a:focus-visible { background: #4b214b; color: #fff7e3; }
.desktop-start-menu svg { width: 24px; height: 24px; flex-shrink: 0; }
body.window-maximized:not(.window-minimized) { overflow: hidden; }

.window-maximized .desktop-shell {
  position: fixed;
  inset: 0 0 46px;
  max-width: none;
  margin: 0;
  overflow: auto;
  z-index: 25;
  display: flex;
  flex-direction: column;
}

.window-maximized .desktop-shell[hidden] { display: none !important; }
.window-maximized .desktop-titlebar { position: sticky; top: 0; z-index: 30; flex-shrink: 0; }
.window-maximized main { flex: 1; }

@media(max-width:650px){
  body{padding-top:210px}
  .desktop-shortcuts{
    position:absolute;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    top:14px;
    left:12px;
    right:12px;
    bottom:auto;
    width:auto;
    gap:14px 12px;
    overflow:visible}
  .desktop-shortcuts svg{width:28px;height:28px}
  .desktop-shortcuts a{font-size:10px}
  .desktop-shortcuts a[hidden]{display:none!important}
  .desktop-titlebar{gap:5px}
  .window-controls{gap:3px}
  .window-controls button{width:25px;height:25px}
  .desktop-task{flex:0 1 auto;min-width:0}}

@media print{
  .desktop-start-menu{display:none!important}
  .window-maximized 
  .desktop-shell{position:static;overflow:visible;display:block}
  .desktop-shell[hidden]{display:block!important}}

/* Readability adjustment requested with the original font. */
main,
.site-hero{
  color:#2a1512;
  font-weight:700;
  text-shadow:-.6px -.6px 0 currentColor,.6px -.6px 0 currentColor,-.6px .6px 0 currentColor,.6px .6px 0 currentColor}

.card-meta,
.result-meta,
.post-meta,
.post-author,
.comment-date,
.field-help,
.post-tags-help,
.report-help,
.results-hint,
.hero-meta{color:#51352f}

/* Improve readability while keeping the original font */
main,
.site-hero {
  color: #2a1512;
  font-weight: 300;
  text-shadow:
    -0.1px -0.1px 0 currentColor,
     0.2px -0.1px 0 currentColor,
    -0.1px  0.1px 0 currentColor,
     0.1px  0.1px 0 currentColor;
}

/* Make secondary text darker, too */
.card-meta,
.result-meta,
.post-meta,
.post-author,
.comment-date,
.field-help,
.post-tags-help,
.report-help,
.results-hint,
.hero-meta {
  color: #51352f;
}

/* Gentle movement without revealing a dark background through the window. */
.desktop-shell {
  animation: window-enter 180ms ease-out both;
}

@keyframes window-enter {
  from {
    opacity: 1;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keep maximized windows stationary */
body.window-maximized .desktop-shell {
  animation: none;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .desktop-shell {
    animation: none;
  }
}

/* Show the window immediately on browser refresh */
html.is-reloading .desktop-shell {
  animation: none;
  opacity: 1;
  transform: none;
}

/* Homepage */
.home-description,
.home-introduction,
.home-creator {
  max-width: 70ch;
}

.home-description,
.home-introduction p,
.home-creator p,
.home-features p {
  line-height: 1.85;
}

.home-description {
  margin-bottom: 24px;
}

.home-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-features .card {
  margin-bottom: 0;
}

.home-creator {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #b98b44;
}

.creator-signature {
  margin-top: 20px;
  color: #4b214b;
  font-style: italic;
}

@media (max-width: 800px) {
  .home-features {
    grid-template-columns: 1fr;
  }
}

/* About the Platform */
.about-platform > .page-header {
  margin-bottom: 32px;
}

.about-platform > section + section {
  margin-top: 36px;
}

.about-platform p {
  max-width: 75ch;
  line-height: 1.85;
}

.about-values {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-values .card {
  margin-bottom: 0;
}

.about-creator,
.about-platform .contact-section {
  padding-top: 28px;
  border-top: 1px solid #b98b44;
}

.about-creator-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.about-creator-photo {
  display: block;
  width: 160px;
  height: 190px;
  object-fit: cover;
  border: 2px inset #b98b44;
}

@media (max-width: 650px) {
  .about-values,
  .about-creator-layout {
    grid-template-columns: 1fr;
  }
}

/* Stack reactions above the comments */
.post-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.post-footer > .post-actions {
  margin-top: 0;
  justify-content: flex-start;
}

/* Give comments the full available width */
.post-footer > .comments {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid #b98b4460;
}

.comments .comment-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.comments .comment-list:empty {
  display: none;
}

/* More compact, evenly spaced comment cards */
.comments .comment-item {
  margin: 0;
  padding: 16px 18px;
}

.comments .comment-header {
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comments .comment-header-text {
  min-width: 0;
}

.comments .comment-body {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Writing area, with the Post button below on the right */
.comments .comment-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 0;
}

.comments .comment-form textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}

.comments .comment-form button[type="submit"] {
  align-self: flex-end;
  margin-top: 0;
}

/* Make account card links readable on their purple title bars */
.account-grid .card > h3 a {
  display: block;
  color: #fff7e3;
  font: inherit;
  text-decoration: none;
  text-shadow: none;
}

.account-grid .card > h3 a:hover {
  color: #fff7e3;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.account-grid .card > h3 a:focus-visible {
  outline: 2px dashed #fff7e3;
  outline-offset: 3px;
}

.account-grid .card > p {
  margin: 0;
  color: #422218;
  line-height: 1.65;
}

/* Remove the title-bar styling around account links */
.account-grid .card > h3:first-child {
  margin: 0 0 18px;
  padding: 0;
  background: none;
}

/* Style the links as raised buttons */
.account-grid .card > h3 a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 10px 18px;

  border: 3px solid;
  border-color: #fffdf6 #6c4417 #6c4417 #fffdf6;
  background: linear-gradient(
    180deg,
    #fff8e8 0%,
    #f3e0c7 50%,
    #c39564 100%
  );
  box-shadow: 2px 2px 0 #24162e55;

  color: #422218;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
}

.account-grid .card > h3 a::after {
  content: "→";
  font-size: 20px;
  line-height: 1;
}

.account-grid .card > h3 a:hover {
  background: #fff7e3;
  color: #4b214b;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.account-grid .card > h3 a:active {
  border-color: #6c4417 #fffdf6 #fffdf6 #6c4417;
  box-shadow: none;
  transform: translate(2px, 2px);
}

.account-grid .card > h3 a:focus-visible {
  outline: 2px dashed #471f62;
  outline-offset: 5px;
}