/*
Theme Name: Shift Log
Theme URI: https://shift-log.com
Author: —
Description: A dark, wide theme built for the Shift Log plugin. Pages carrying the log render edge to edge with no container fighting them; everything else gets a comfortable reading column. Matches the plugin's palette and type exactly, including the WordPress login screen.
Version: 2.6.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shift-log-theme
Tags: one-column, full-width-template, custom-menu, custom-logo, translation-ready
*/

/* ==================================================================
   Palette and type, matched to the plugin
   ================================================================== */
:root {
  --slt-void:     #0a0a0b;
  --slt-ink-1:    rgba(255,255,255,.035);
  --slt-ink-2:    rgba(255,255,255,.055);
  --slt-edge:     rgba(201,162,39,.17);
  --slt-edge-lit: rgba(227,195,116,.42);

  --slt-text:   #f4efe6;
  --slt-text-2: #bdb5a8;
  --slt-text-3: #8a8378;

  --slt-gold:      #c9a227;
  --slt-metal: linear-gradient(135deg,
    #f7e7b8 0%, #d9b64f 16%, #b8891f 34%,
    #f0dc9a 52%, #c39a2e 68%, #8a6318 86%, #dcbc65 100%);
  --slt-metal-edge: inset 0 1px 0 rgba(255,246,214,.6), inset 0 -1px 0 rgba(80,55,8,.45);
  --slt-gold-lit:  #e8cd82;
  --slt-gold-deep: #9a7d22;
  --slt-pink:      #e0567f;
  --slt-jade:      #4f9e7f;

  --slt-on-gold: #241a04;

  --slt-display: 'Archivo', system-ui, sans-serif;
  --slt-sans:    'Manrope', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --slt-mono:    'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --slt-glow: 0 0 0 1px var(--slt-edge), 0 18px 46px -22px rgba(0,0,0,.95);
}

/* ==================================================================
   Reset and base
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  /* No horizontal scroll no matter what a wide child does. */
  overflow-x: hidden;
  background-color: var(--slt-void);
  background-image:
    radial-gradient(900px 600px at 12% -8%, rgba(255,78,138,.20) 0%, rgba(255,78,138,0) 62%),
    radial-gradient(800px 620px at 88% 4%, rgba(232,176,75,.22) 0%, rgba(232,176,75,0) 60%);
  background-attachment: fixed;
  color: var(--slt-text);
  font-family: var(--slt-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--slt-gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--slt-gold-lit); }

h1, h2, h3, h4 { font-family: var(--slt-display); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 22px; }
p { margin: 0 0 1.15em; }

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

.slt-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--slt-gold); color: var(--slt-on-gold); padding: 12px 20px; border-radius: 0 0 10px 0;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.slt-skip:focus { left: 0; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ==================================================================
   Shell — the app page gets the whole width, prose gets a column
   ================================================================== */
.slt-shell { display: flex; flex-direction: column; min-height: 100vh; }
.slt-main { flex: 1 0 auto; width: 100%; }

/* Ordinary pages: a readable measure. */
.slt-measure { width: 100%; max-width: 760px; margin: 0 auto; padding: 56px clamp(18px, 4vw, 32px) 72px; }

/* App pages: nothing in the way. The plugin sets its own padding. */
.slt-full { width: 100%; max-width: none; margin: 0; padding: 0; }

/* ==================================================================
   Site header
   ================================================================== */
.slt-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13,9,18,.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--slt-edge);
}
.admin-bar .slt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .slt-header { top: 46px; } }

.slt-headbar {
  width: 100%; max-width: 1800px; margin: 0 auto;
  padding: 14px clamp(18px, 3.4vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.slt-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.slt-brand:hover { color: inherit; }
.slt-mark { flex: none; display: block; filter: drop-shadow(0 2px 5px rgba(23,21,31,.18)); }
.slt-mark { filter: drop-shadow(0 6px 18px rgba(232,176,75,.5)); }
.slt-mark .slt-ring   { stroke: url(#sltMetal); }
.slt-mark .slt-disc   { fill: rgba(255,255,255,.06); }
.slt-mark .slt-letter { stroke: url(#sltMetal); }
.slt-name {
  font-family: var(--slt-display); font-weight: 700; font-size: 23px; line-height: 1; letter-spacing: -.02em;
  background: var(--slt-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.5));
}
.slt-name em { font-style: normal; font-weight: 400; color: var(--slt-pink); }
.slt-tag { font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slt-text-3); margin-top: 6px; }

/* navigation */
.slt-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.slt-nav a {
  display: block; padding: 9px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slt-text-2); text-decoration: none; transition: all .2s ease;
}
.slt-nav a:hover { background: rgba(255,255,255,.08); color: var(--slt-text); }
.slt-nav .current-menu-item > a, .slt-nav .current_page_item > a {
  background: var(--slt-gold); color: var(--slt-on-gold);
  box-shadow: 0 8px 24px -12px rgba(232,176,75,.95);
}

.slt-actions { display: flex; align-items: center; gap: 8px; }
.slt-btn {
  display: inline-flex; align-items: center; height: 42px; padding: 0 22px; border-radius: 999px;
  border: 0;
  background: var(--slt-metal);
  color: var(--slt-on-gold);
  box-shadow: var(--slt-metal-edge); font-family: var(--slt-display); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; box-shadow: 0 12px 32px -12px rgba(232,176,75,.95);
  transition: transform .12s ease, filter .2s ease;
}
.slt-btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: var(--slt-on-gold); }
.slt-btn:active { transform: translateY(1px); box-shadow: inset 0 3px 9px rgba(60,40,6,.55); }
.slt-btn-quiet {
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--slt-edge); color: var(--slt-text-2);
}
.slt-btn-quiet:hover { background: rgba(255,255,255,.12); color: var(--slt-text); }

/* mobile menu */
.slt-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  border: 0; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--slt-edge); cursor: pointer;
}
.slt-toggle span { display: block; width: 18px; height: 1.5px; background: var(--slt-text); position: relative; }
.slt-toggle span::before, .slt-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--slt-text);
}
.slt-toggle span::before { top: -6px; }
.slt-toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .slt-toggle { display: flex; }
  .slt-navwrap {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #111013; border-bottom: 1px solid var(--slt-edge);
    padding: 14px clamp(18px, 4vw, 32px) 20px;
    box-shadow: var(--slt-lift);
  }
  .slt-navwrap.is-open { display: block; }
  .slt-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .slt-nav a { padding: 13px 14px; border-radius: 10px; }
  .slt-navwrap .slt-actions { margin-top: 14px; flex-direction: column; align-items: stretch; }
  .slt-navwrap .slt-btn { justify-content: center; }
  .slt-headbar { position: relative; }
}

/* ==================================================================
   Page content (non-app pages)
   ================================================================== */
.slt-pagehead { margin-bottom: 34px; }
.slt-eyebrow {
  font-family: var(--slt-display); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slt-text-2); margin: 0 0 12px;
}
.slt-pagehead h1 { margin: 0; }
.slt-rule { width: 96px; height: 2px; margin: 20px 0 0; background: var(--slt-metal); }

.slt-prose { font-size: 17px; color: var(--slt-text-2); }
.slt-prose h2, .slt-prose h3 { color: var(--slt-text); margin-top: 1.6em; }
.slt-prose ul, .slt-prose ol { padding-left: 1.3em; }
.slt-prose li { margin-bottom: .4em; }
.slt-prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--slt-gold); font-family: var(--slt-display);
  font-size: 21px; font-weight: 500; color: var(--slt-text);
}
.slt-prose code { font-family: var(--slt-mono); font-size: .9em; background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 6px; }
.slt-prose pre { background: rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px var(--slt-edge); color: #f2ece6; padding: 20px; border-radius: 16px; overflow-x: auto; }
.slt-prose pre code { background: none; color: inherit; padding: 0; }
.slt-prose img { border-radius: 18px; box-shadow: var(--slt-glow); }
.slt-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.slt-prose th, .slt-prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--slt-edge); }
.slt-prose hr { border: 0; height: 1px; background: var(--slt-edge); margin: 2.4em 0; }

.slt-card {
  background: var(--slt-ink-1);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border: 0; border-radius: 26px;
  padding: 34px clamp(20px, 4vw, 38px);
  box-shadow: var(--slt-glow), inset 0 1px 0 rgba(255,255,255,.09);
}

/* WordPress alignment classes */
.alignwide { width: min(100%, 1100px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 13.5px; color: var(--slt-text-3); }

/* ==================================================================
   Footer
   ================================================================== */
.slt-footer {
  flex: none; margin-top: 40px;
  border-top: 1px solid var(--slt-edge);
  background: rgba(0,0,0,.25);
}
.slt-footbar {
  width: 100%; max-width: 1800px; margin: 0 auto;
  padding: 26px clamp(18px, 3.4vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--slt-text-3);
}
.slt-footbar a { color: var(--slt-text-2); }
.slt-privnote { display: inline-flex; align-items: center; gap: 8px; }
.slt-privdot { width: 7px; height: 7px; border-radius: 50%; background: var(--slt-jade); flex: none; box-shadow: 0 0 12px 2px rgba(61,220,151,.7); }

/* ==================================================================
   404 and empty states
   ================================================================== */
.slt-blank { text-align: center; padding: 70px 20px; }
.slt-blank h1 { font-size: clamp(40px, 7vw, 76px); margin-bottom: .2em; }
.slt-blank p { color: var(--slt-text-2); font-size: 17px; }

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