/*
Theme Name: Site Under Construction
Theme URI: https://example.com
Author: Your Studio
Author URI: https://example.com
Description: A blueprint-styled "under construction" landing theme. Shows a single holding page with a hoisted sign, a live countdown to launch, and a permit-style notify form. Deactivate to reveal the real site underneath.
Version: 1.0.0
Requires at least: 6.0
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: under-construction
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root{
  --ink: #0D1526;
  --blueprint: #16264A;
  --blueprint-deep: #0F1B38;
  --line: #4FA8D8;
  --line-dim: rgba(79,168,216,0.28);
  --paper: #EDEDE3;
  --amber: #F2A93B;
  --amber-deep: #C9822A;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body.under-construction{
  background-color: var(--blueprint);
  background-image:
    repeating-linear-gradient(0deg, var(--line-dim) 0px, var(--line-dim) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(90deg, var(--line-dim) 0px, var(--line-dim) 1px, transparent 1px, transparent 32px);
  color: var(--paper);
  font-family: var(--font-mono);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.under-construction::before{
  content:"";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(79,168,216,0.18), transparent 55%);
  pointer-events: none;
}

.uc-wrap{
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 1;
}

/* Corner brackets + rivets, drafting-table framing */
.uc-frame{
  position: relative;
  border: 1px dashed var(--line-dim);
  padding: 40px 32px;
}
.uc-frame::before,
.uc-frame::after,
.uc-frame .rivet-tl,
.uc-frame .rivet-tr{ }

.uc-corner{
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--amber);
}
.uc-corner.tl{ top:-2px; left:-2px; border-right:none; border-bottom:none; }
.uc-corner.tr{ top:-2px; right:-2px; border-left:none; border-bottom:none; }
.uc-corner.bl{ bottom:-2px; left:-2px; border-right:none; border-top:none; }
.uc-corner.br{ bottom:-2px; right:-2px; border-left:none; border-top:none; }

/* ==========================================================================
   Header strip — permit / drawing title block
   ========================================================================== */
.uc-titleblock{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 16px;
  border-bottom: 1px solid var(--line-dim);
  padding-bottom: 14px;
  margin-bottom: 36px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--line);
  flex-wrap: wrap;
}
.uc-titleblock span{ opacity:.85; }
.uc-logo{ max-height: 40px; }
.uc-sitename{
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-transform: uppercase;
}

/* ==========================================================================
   Signature element — the crane hoisting the sign
   ========================================================================== */
.uc-crane-stage{
  position: relative;
  height: 220px;
  margin: 0 auto 8px;
  display:flex;
  justify-content:center;
}
.uc-crane-svg{ width: 100%; max-width: 480px; height: auto; overflow: visible; }

.uc-hookline{
  stroke: var(--line);
  stroke-width: 2;
  transform-origin: top center;
  animation: uc-lower 2.4s cubic-bezier(.2,.7,.2,1) both;
}
.uc-sign{
  animation: uc-lower-sign 2.4s cubic-bezier(.2,.7,.2,1) both, uc-sway 4.5s ease-in-out 2.4s infinite;
  transform-origin: top center;
}
.uc-sign-text{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

@keyframes uc-lower{
  0%{ transform: scaleY(0); opacity: 0; }
  100%{ transform: scaleY(1); opacity: 1; }
}
@keyframes uc-lower-sign{
  0%{ transform: translateY(-130px); opacity: 0; }
  100%{ transform: translateY(0); opacity: 1; }
}
@keyframes uc-sway{
  0%,100%{ transform: rotate(-1.2deg); }
  50%{ transform: rotate(1.2deg); }
}
@media (prefers-reduced-motion: reduce){
  .uc-hookline, .uc-sign{ animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* ==========================================================================
   Headline
   ========================================================================== */
.uc-headline{
  font-family: var(--font-display);
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--paper);
  margin: 8px 0 12px;
}
.uc-headline .amber{ color: var(--amber); }

.uc-message{
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
  color: rgba(237,237,227,0.75);
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   Countdown — measurement ticks
   ========================================================================== */
.uc-countdown{
  display:flex;
  justify-content:center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 auto 40px;
}
.uc-count-unit{
  text-align:center;
  min-width: 78px;
  padding: 12px 10px 10px;
  border: 1px solid var(--line-dim);
  border-top: 3px solid var(--amber);
  background: rgba(15,27,56,0.55);
}
.uc-count-num{
  display:block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--paper);
}
.uc-count-label{
  display:block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line);
  margin-top: 4px;
}

/* ==========================================================================
   Footer — social + progress stamp
   ========================================================================== */
.uc-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dim);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--line);
}
.uc-social a{
  color: var(--paper);
  text-decoration: none;
  margin-left: 14px;
  border-bottom: 1px dotted var(--line-dim);
}
.uc-social a:hover{ color: var(--amber); border-color: var(--amber); }
.uc-social a:first-child{ margin-left: 0; }

@media (max-width: 520px){
  .uc-titleblock{ font-size: 10px; }
  .uc-footer{ flex-direction: column; align-items: flex-start; }
  .uc-social{ margin-left: -14px; }
}
