@import url("../assets/raven-obsidian-noir.css");
@font-face{font-family:NightPlex;src:url(../terminal-preview/assets/ibm-plex-arabic.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:Cinzel;src:url(../terminal-preview/assets/cinzel.woff2) format("woff2");font-weight:400 700;font-display:swap}
:root{
  color-scheme:dark;
  --night:#07080a;
  --surface:#101218;
  --wood:#171b24;
  --hover:#1f232e;
  --paper:#f2ece2;
  --gold:#d4a66a;
  --gold-hi:#ebd0a5;
  --crimson:#b84a41;
  --muted:#afa89c;
  --edge:#272b34;
  --edge-brass:rgba(212,166,106,.24);
  --control:#826a48;
  --sea:#86b3ad;
}
*{box-sizing:border-box}
body{
  margin:0;
  background:radial-gradient(ellipse 75% 36% at 50% -8%,rgba(212,166,106,.07) 0%,transparent 65%),var(--night);
  color:var(--paper);
  font-family:NightPlex,"Segoe UI",Tahoma,Arial,sans-serif;
  line-height:1.6;
  min-height:100svh;
  -webkit-font-smoothing:antialiased;
}
.night-wrap{width:min(1040px,calc(100% - 40px));margin-inline:auto}
.night-mast{
  position:sticky;top:0;z-index:20;
  border-bottom:1px solid var(--edge-brass);
  background:rgba(7,8,10,.88);
  backdrop-filter:blur(14px);
}
.night-bar,.night-foot{display:flex;align-items:center;gap:20px;min-height:60px}
.night-bar{direction:ltr;flex-wrap:wrap;padding-block:4px;min-height:3.75rem;gap:clamp(.6rem,2vw,1.5rem)}
.night-bar a,.night-foot a,.night-bench a{color:var(--gold);transition:color 180ms ease}
.night-bar a,.night-foot a{text-decoration:none}
.night-bar a{min-height:44px;display:inline-flex;align-items:center}
.night-brand{font-family:Cinzel,Georgia,serif;letter-spacing:.22em;font-size:1.4rem;font-weight:500;color:var(--paper)!important}
.night-wing{border-inline-start:1px solid var(--edge);padding-inline-start:clamp(.65rem,2vw,1.5rem);font-weight:400;color:var(--muted)!important}
.night-lang{margin-inline-start:auto;min-width:44px;background:transparent;border-color:transparent;color:var(--paper)}
.night-bar :is(a,button):hover,.night-foot a:hover{color:var(--gold-hi);text-decoration:underline;text-underline-offset:.3em}

#night-app{padding-block:28px 12px}
h1,h2,h3,p{overflow-wrap:break-word;text-wrap:pretty}
#night-app>h1,.night-heading h1{font-size:clamp(1.9rem,4vw,3.3rem);margin:0;line-height:1.25}
.night-intro{margin:.55rem 0 1.45rem;color:var(--muted);max-width:76ch;font-size:1.05rem}

button,input,select,textarea{font:inherit}
button,.night-cta,select,input:not([type=range]):not([type=checkbox]),textarea{
  color:var(--paper);
  background:var(--surface);
  border:1px solid var(--control);
  border-radius:3px;
  padding:8px 13px;
  min-height:44px;
  max-width:100%;
  transition:border-color 180ms ease,background-color 180ms ease,color 180ms ease,transform 180ms ease;
}
button,.night-cta{cursor:pointer}
button:hover:not(:disabled),.night-cta:hover{border-color:var(--gold);background:var(--wood)}
button:disabled{opacity:.48;cursor:default}
button[aria-pressed=true],button.primary,.night-cta{
  background:linear-gradient(135deg,#e0b67a 0%,#c69454 100%);
  color:#07080a;
  border-color:var(--gold);
  font-weight:700;
}
button[aria-pressed=true]:hover:not(:disabled),button.primary:hover:not(:disabled),.night-cta:hover{
  background:var(--gold-hi);
  border-color:var(--gold-hi);
  color:#07080a;
}
.night-bench a.night-cta{color:#07080a}
.night-cta{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:2px solid var(--gold-hi);outline-offset:3px;
}
img,video,canvas,svg{max-width:100%}
fieldset{min-width:0;border:1px solid var(--edge);border-radius:3px;background:rgba(16,18,24,.55)}
.night-notice{padding:13px 16px;border:1px solid var(--edge);border-inline-start:3px solid var(--gold);border-radius:3px;background:var(--surface);margin:14px 0}
.night-notice button{margin-inline-start:10px}
.night-foot{justify-content:space-between;flex-wrap:wrap;gap:.25rem 1rem;border-top:1px solid var(--edge-brass);margin-top:42px;padding-block:16px 5rem}
.night-foot a{display:inline-flex;align-items:center;min-height:44px}

.night-heading.with-location{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,32%);column-gap:clamp(14px,3vw,36px);
  align-content:center;margin-block-end:1.25rem;padding-block-end:1.1rem;border-block-end:1px solid var(--edge-brass)
}
.with-location h1{grid-area:1 / 1;align-self:end}
.with-location .night-intro{grid-area:2 / 1;align-self:start;margin-block-end:0}
.night-location{
  grid-area:1 / 2 / 3;align-self:stretch;display:block;width:100%;height:100%;
  max-height:172px;min-height:96px;object-fit:cover;
  border:1px solid var(--edge-brass);border-radius:3px;
}
html[lang=en] .night-heading h1{font-family:Cinzel,Georgia,serif;font-weight:400}

@media(max-width:550px){
  .night-wrap{width:calc(100% - 26px)}
  .night-bar,.night-foot{min-height:52px;gap:12px}
  .night-bar{min-height:3.25rem}
  #night-app{padding-top:18px}
  .night-intro{font-size:.98rem}
  .night-bench{min-width:0}
  .night-foot{padding-block:14px 2rem}
  .night-heading.with-location{grid-template-columns:minmax(0,1fr) clamp(74px,23vw,110px);column-gap:12px}
  .with-location .night-intro{grid-column:1 / -1;margin-block-start:.6rem}
  .night-location{grid-row:1;align-self:center;aspect-ratio:3 / 2;height:auto;min-height:0}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
