/*
Theme Name: Matrix Under Construction
Theme URI: https://example.com/matrix-under-construction
Author: Your Name
Author URI: https://example.com
Description: A single-screen under construction page with a Matrix-style character rain, a terminal readout and a running clock. No external fonts, scripts or trackers. Headline, message, terminal lines and links are editable in Appearance to Customize.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matrix-construction
Tags: one-column, full-width-template, custom-colors
*/

:root{
  --bg:#000000;
  --green:#00ff41;
  --green-dim:#0a8f2a;
  --green-ghost:rgba(0,255,65,.28);
  --mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", "Liberation Mono", Menlo, Consolas, monospace;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  background:var(--bg);
  color:var(--green);
  font-family:var(--mono);
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
}

/* WordPress admin bar would break the full-screen layout */
body.admin-bar{overflow:auto}
#wpadminbar{opacity:.85}

/* character rain */
#matrix{
  position:fixed;
  inset:0;
  display:block;
  z-index:0;
}

/* scanlines and vignette */
.overlay{
  position:fixed;
  inset:0;
  z-index:3;
  pointer-events:none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.85) 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,.35) 3px,
      rgba(0,0,0,.35) 4px
    );
}

.wrap{
  position:relative;
  z-index:2;
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.panel{
  width:min(640px, 100%);
  border:1px solid var(--green-ghost);
  background:rgba(0,10,2,.72);
  backdrop-filter:blur(2px);
  padding:28px 30px 26px;
  box-shadow:0 0 40px rgba(0,255,65,.08), inset 0 0 60px rgba(0,255,65,.04);
}

.bar{
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:12px;
  letter-spacing:.06em;
  color:var(--green-dim);
  border-bottom:1px solid var(--green-ghost);
  padding-bottom:10px;
  margin-bottom:22px;
}
.bar span:last-child{white-space:nowrap}

.panel h1{
  margin:0 0 4px;
  font-size:clamp(30px, 8vw, 58px);
  font-weight:700;
  line-height:1.02;
  letter-spacing:-.01em;
  text-shadow:0 0 14px rgba(0,255,65,.55), 0 0 40px rgba(0,255,65,.2);
}

.sub{
  margin:0 0 26px;
  font-size:clamp(14px,2.4vw,17px);
  line-height:1.65;
  max-width:52ch;
  color:#9dffb6;
}

.term{
  font-size:14px;
  line-height:1.9;
  min-height:5.7em;
  margin-bottom:24px;
  color:var(--green);
}
.term .p{color:var(--green-dim)}

.cursor{
  display:inline-block;
  width:.6em;
  height:1em;
  background:var(--green);
  vertical-align:-2px;
  margin-left:2px;
  animation:mc-blink 1s steps(1) infinite;
}
@keyframes mc-blink{50%{opacity:0}}

.meter{
  border:1px solid var(--green-ghost);
  height:14px;
  position:relative;
  overflow:hidden;
  margin-bottom:8px;
}
.meter i{
  position:absolute;
  inset:0 auto 0 0;
  width:0;
  background:repeating-linear-gradient(90deg,var(--green) 0 6px, transparent 6px 9px);
  animation:mc-fill 4.5s ease-out forwards;
  opacity:.85;
}
@keyframes mc-fill{to{width:68%}}

.meterlabel{
  font-size:12px;
  color:var(--green-dim);
  letter-spacing:.05em;
  margin-bottom:26px;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  border-top:1px solid var(--green-ghost);
  padding-top:20px;
}
.actions:empty{display:none}

.btn{
  color:var(--green);
  text-decoration:none;
  border:1px solid var(--green-ghost);
  padding:9px 16px;
  font-size:13px;
  letter-spacing:.04em;
  transition:background .15s ease, border-color .15s ease;
}
.btn:hover,
.btn:focus-visible{
  background:rgba(0,255,65,.12);
  border-color:var(--green);
}
.btn:focus-visible{outline:2px solid var(--green); outline-offset:2px}

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

@media (max-width:480px){
  .panel{padding:22px 20px}
  .bar{font-size:11px}
  .bar span:last-child{display:none}
}

@media (prefers-reduced-motion: reduce){
  .meter i{animation:none; width:68%}
  .cursor{animation:none}
  .overlay{background:radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.85) 100%)}
}
