/*
Theme Name: Lucky 7 Night Garage
Theme URI: https://www.lucky7cruisers.com/
Author: Lucky 7 Shows & Cruise-Ins
Description: The "Night Garage" look for Lucky 7 Shows & Cruise-Ins: dark background, safety yellow, tall narrow Oswald headings in capitals, Barlow body text and 4px corners. Made to go with the Lucky 7 Shows & Cruise-Ins plugin.
Version: 0.1.3
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: lucky7-night-garage
*/

/* Colors and fonts are set in theme.json. This file only holds the header, menu and footer,
   which need a few things theme.json can't do on its own. */

:root {
  --ng-bg: #15171a;
  --ng-surface: #1f2226;
  --ng-head: #0e0f11;
  --ng-ink: #ecebe6;
  --ng-muted: #a0a5ad;
  --ng-line: #353a41;
  --ng-accent: #f2c230;
  --ng-accent-ink: #15171a;
  --ng-display: "Oswald", "Arial Narrow", sans-serif;
  --ng-body: "Barlow", system-ui, sans-serif;
}

body { background: var(--ng-bg); color: var(--ng-ink); color-scheme: dark; }
:where(body) :focus-visible { outline: 3px solid var(--ng-accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.ng-head { background: var(--ng-head); border-bottom: 1px solid var(--ng-line); }
.ng-head-in {
  max-width: 1120px; margin: 0 auto;
  padding: 14px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
}
.ng-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ng-accent); }
.ng-seven {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--ng-accent); color: var(--ng-accent-ink); border: 3px solid var(--ng-accent);
  box-shadow: inset 0 0 0 2px var(--ng-head);
  font-family: var(--ng-display); font-weight: 700; font-size: 1.5rem; line-height: 1;
}
.ng-name { font-family: var(--ng-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 1.2rem; line-height: 1.05; }
.ng-name small { display: block; font-family: var(--ng-body); text-transform: none; letter-spacing: 0; font-size: .78rem; color: var(--ng-muted); font-weight: 400; margin-top: 3px; }

.ng-nav { margin-left: auto; }
.ng-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.ng-nav a { color: var(--ng-ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.ng-nav a:hover, .ng-nav a[aria-current="page"] { border-bottom-color: var(--ng-accent); color: var(--ng-accent); }
.ng-nav a.ng-btn {
  background: var(--ng-accent); color: var(--ng-accent-ink); border: 0; border-radius: 4px;
  padding: 7px 14px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700;
}
.ng-nav a.ng-btn:hover { filter: brightness(1.08); color: var(--ng-accent-ink); }

/* Phone menu: a "Menu" button that opens the list (works without JavaScript). */
.ng-menu > summary {
  display: none; list-style: none; cursor: pointer; color: var(--ng-ink); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; border: 2px solid var(--ng-line); border-radius: 4px; padding: 6px 12px;
}
.ng-menu > summary::-webkit-details-marker { display: none; }

/* Wide screens show the link row; phones show the Menu button instead. */
.ng-narrow { display: none; }
@media (max-width: 860px) {
  .ng-wide { display: none; }
  .ng-narrow { display: block; margin-left: auto; }
  .ng-menu > summary { display: inline-block; }
  .ng-narrow:has(.ng-menu[open]) { width: 100%; margin-left: 0; }
  .ng-menu > ul { flex-direction: column; align-items: stretch; gap: 0; margin-top: 10px; border-top: 1px solid var(--ng-line); }
  .ng-menu > ul li { border-bottom: 1px solid var(--ng-line); }
  .ng-menu > ul a { display: block; padding: 12px 2px; border-bottom: 0; }
  .ng-menu > ul a.ng-btn { margin: 12px 0; text-align: center; }
}
@media (max-width: 480px) {
  .ng-head-in { flex-wrap: nowrap; gap: 10px; }
  .ng-head-in:has(.ng-menu[open]) { flex-wrap: wrap; }
  .ng-logo { min-width: 0; gap: 8px; }
  .ng-name { font-size: .95rem; }
  .ng-name small { font-size: .7rem; }
  .ng-seven { width: 34px; height: 34px; font-size: 1.2rem; }
  .ng-menu > summary { padding: 5px 10px; font-size: .85rem; }
}

/* ---------- Footer ---------- */
.ng-foot { border-top: 1px solid var(--ng-line); background: var(--ng-surface); color: var(--ng-muted); margin-top: 48px; }
.ng-foot-in {
  max-width: 1120px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9rem; align-items: center;
}
.ng-foot a { color: var(--ng-ink); }
.ng-foot a:hover { color: var(--ng-accent); }

/* ---------- Page body ---------- */
.ng-main { max-width: 1120px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-left, 0px)) 24px; }
.ng-main .wp-block-post-title { margin: 0 0 18px; }
/* The plugin's dark boxes sit on an already-dark page, so give them a little less framing. */
.ng-main .l7 { padding-left: 0; padding-right: 0; background: transparent; }
.ng-main .l7.l7-sponsors { padding: 16px 0; border-top: 1px solid var(--ng-line); border-bottom: 1px solid var(--ng-line); border-radius: 0; }

/* Links in regular page text */
.ng-main .wp-block-post-content a:not(.l7-btn):not(.l7-card):not(.l7-ci):not(.l7-far-card):not(.l7-spon) { color: var(--ng-accent); }

/* Home page: the "Home" title is hidden from view but still read out by screen readers. */
.home .ng-main > .wp-block-post-title {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; margin: 0;
}

/* Short pages: keep the footer at the bottom of the screen. */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > .ng-main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }

/* Home page layout: the page sits inside a list wrapper; drop the bullets and indent. */
.ng-main .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
