/* core.css — shared HUD chrome for every page */

:root {
  --primary: #0A2540;
  --primary-deep: #1E3A8A;
  --accent: #00BFA5;
  --accent-bright: #22D3EE;
  --background: #000000;
  --background-alt: #0F172A;
  --surface: #1E2937;
  --surface-2: #243044;
  --line: #334155;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --success: #4ADE80;
  --warning: #FACC15;
  --error: #F87171;
  --radius: 14px;
  --radius-sm: 12px;
  --content-width: 880px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: #000000;
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

::selection {
  background: var(--accent);
  color: #000000;
}

body::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--accent) 55%,
    var(--accent-bright) 100%
  );
}

.site_shell {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
  min-height: calc(100vh - 2px);
}

.site_shell::before,
.site_shell::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.55;
}

.site_shell::before {
  top: 16px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.site_shell::after {
  top: 16px;
  right: 8px;
  border-width: 1px 1px 0 0;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.masthead {
  margin-bottom: 36px;
  padding-bottom: 0;
  border-bottom: none;
}

.masthead_row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--surface);
}

.masthead_home {
  display: grid;
  width: 112px;
  height: 112px;
  border-radius: var(--radius);
  overflow: hidden;
}

.masthead_avatar {
  width: 112px;
  height: 112px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
}

.masthead_copy {
  display: grid;
  gap: 8px;
}

.masthead_brand {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

.masthead_brand:hover,
.masthead_home:hover .masthead_avatar {
  color: var(--accent-bright);
  border-color: var(--accent);
}

.masthead_subtitle {
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--accent);
  text-transform: lowercase;
}


.site_nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.nav_tab {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
}

.nav_tab:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav_tab[aria-current="page"] {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
}

.nav_tab[aria-current="page"]:hover {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
}

.search_input {
  width: 100%;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
}

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

.search_input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.16);
  outline: none;
}


.site_footer {
  display: grid;
  gap: 20px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--surface);
}

.social_row {
  display: grid;
  grid-template-columns: repeat(auto-fill, 40px);
  gap: 8px;
  align-items: center;
}

.social_link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.social_link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.social_link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.status_note {
  margin: 12px 0 20px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.status_note[data-kind="error"] {
  color: var(--error);
  border: 1px solid var(--error);
}

.status_note[data-kind="empty"] {
  border: 1px dashed var(--line);
}

.status_note[data-kind="ok"] {
  color: var(--success);
  border: 1px solid var(--success);
}

.article_pencil,
.file_trash,
.publish_new {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.article_pencil svg,
.file_trash svg {
  width: 18px;
  height: 18px;
}

.article_pencil:hover,
.publish_new:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.file_trash:hover {
  border-color: var(--error);
  color: var(--error);
}

.publish_new {
  justify-self: start;
  font-weight: 650;
  color: #04251f;
  background: var(--accent);
  border: 0;
}

.publish_new:hover {
  background: var(--accent-bright);
  color: #04251f;
}

.file_dropzone {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.file_dropzone[data-active="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.file_drop_list {
  display: grid;
  gap: 8px;
}

.file_drop_item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--background-alt);
  border: 1px solid var(--surface-2);
}

.file_drop_name {
  word-break: break-all;
  color: var(--text);
}

.home_link {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.home_link:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .masthead_brand {
    font-size: 32px;
    letter-spacing: 0.2em;
  }

  .masthead_avatar,
  .masthead_home {
    width: 96px;
    height: 96px;
  }

  .site_shell {
    padding: 32px 16px 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}


.storage_off_note {
  margin: 8px 0 4px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--warning);
  border: 1px dashed var(--warning);
  font-size: 14px;
}

.file_dropzone_off {
  cursor: default;
  opacity: 0.75;
}

.publish_thumb_row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.publish_thumbnail_path {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
