/* Opravna Ampér (ukázkový web): prvky rozhraní z 90. let jako opotřebovaný fyzický hardware.
   Kovové desky se šrouby, znakové LCD, kontrolky, páčky. Blog vypadá jako výpis z jehličkové tiskárny. */
:root {
  --bg: #17181a; --metal1: #b4b2a9; --metal2: #85837a; --dark1: #3a3c40; --dark2: #26282b; --cream: #ebe3cc; --cream2: #d9cfb2;
  --ink: #1d1d1b; --muted: #55534c; --red: #b0201c; --red2: #6e100e; --gold: #d9a93a; --lcd: #a8b88d; --lcdink: #1c2813;
  --green: #74ff7f; --amber: #ffb000; --ledred: #ff3b2b; --hazard: #f2c230;
  --fd: "Big Shoulders Display", "Arial Narrow", sans-serif; --fs: "Big Shoulders Stencil Display", "Arial Narrow", sans-serif;
  --fb: "Archivo", system-ui, sans-serif; --fl: "VT323", ui-monospace, monospace; --fh: "Caveat", cursive; --fp: "Courier Prime", "Courier New", monospace;
  --wrap: min(1160px, 100% - 32px);
  color-scheme: dark;
}
* { box-sizing: border-box }
html { overflow-x: clip; background: var(--bg) }
body { margin: 0; min-height: 100svh; overflow-x: clip; color: #e9e6dc; font: 17px/1.6 var(--fb);
  background: radial-gradient(ellipse at 50% 0%, #2a2c30, var(--bg) 70%) }
a { color: inherit }
img { display: block; max-width: 100% }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px }
.wrap { width: var(--wrap); margin-inline: auto }
h1, h2, h3 { font-family: var(--fd); font-weight: 800; line-height: .95; margin: 0; text-transform: uppercase; letter-spacing: .01em }

/* Kovová deska se čtyřmi šrouby a kartáčovaným povrchem */
.plate { --s: radial-gradient(circle, #2a2a2a 0 1.5px, #d8d6cf 2px 3.6px, #6a685f 4px 4.6px, transparent 5px);
  position: relative; border-radius: 6px; color: var(--ink);
  background: var(--s) 7px 7px / 12px 12px no-repeat, var(--s) calc(100% - 7px) 7px / 12px 12px no-repeat, var(--s) 7px calc(100% - 7px) / 12px 12px no-repeat, var(--s) calc(100% - 7px) calc(100% - 7px) / 12px 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px), linear-gradient(165deg, var(--metal1), var(--metal2));
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .55), inset -1px -1px 0 rgba(0, 0, 0, .35), 0 3px 0 rgba(0, 0, 0, .55), 0 12px 26px rgba(0, 0, 0, .45);
  padding: clamp(20px, 3vw, 32px) }
.plate.dark { --metal1: var(--dark1); --metal2: var(--dark2); color: #e9e6dc }
.plate.cream { --metal1: var(--cream); --metal2: var(--cream2) }
.plate.red { --metal1: #c42822; --metal2: var(--red2); color: #fff3dc; box-shadow: inset 0 0 0 8px transparent, inset 0 0 0 9px var(--gold), inset 1px 1px 0 rgba(255, 255, 255, .4), 0 3px 0 rgba(0, 0, 0, .55), 0 12px 26px rgba(0, 0, 0, .45) }
.engrave { font: 700 13px/1 var(--fs); letter-spacing: .22em; text-transform: uppercase; color: rgba(0, 0, 0, .6); text-shadow: 0 1px 0 rgba(255, 255, 255, .45); margin: 0 }
.dark .engrave, .red .engrave { color: rgba(255, 255, 255, .55); text-shadow: 0 -1px 0 rgba(0, 0, 0, .6) }
.hazard { height: 12px; background: repeating-linear-gradient(-45deg, var(--hazard) 0 12px, #1b1b1b 12px 24px); border-radius: 2px; opacity: .9 }

/* Znakový LCD displej */
.lcd { display: inline-block; max-width: 100%; padding: 10px 14px; border-radius: 4px; background: radial-gradient(circle, rgba(0, 0, 0, .06) 1px, transparent 1.2px) 0 0 / 4px 4px, var(--lcd);
  color: var(--lcdink); font: clamp(22px, 2.6vw, 30px)/1.05 var(--fl); letter-spacing: .04em; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .45), 0 0 0 6px #1b1c1e, 0 0 0 7px #55575c; overflow-wrap: anywhere }
.lcd small { display: block; font-size: .6em; opacity: .7 }
.led { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--green)); box-shadow: 0 0 8px var(--c, var(--green)), inset 0 -2px 2px rgba(0, 0, 0, .35); flex: none }
.led.off { background: #3d2a28; box-shadow: inset 0 -2px 2px rgba(0, 0, 0, .5) }
.led.amber { --c: var(--amber) } .led.red { --c: var(--ledred) }
.blink { animation: blink 1.2s steps(1) infinite }
@keyframes blink { 50% { opacity: .25 } }

/* Fyzické tlačítko */
.push { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 8px; font: 800 22px/1 var(--fd); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: #fff;
  background: linear-gradient(#e0423a, #a51c18); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 6px 0 #5c0e0c, 0 10px 18px rgba(0, 0, 0, .5); border: 0; cursor: pointer; transition: transform .08s, box-shadow .08s }
.push:hover { filter: brightness(1.08) }
.push:active { transform: translateY(5px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 1px 0 #5c0e0c, 0 4px 8px rgba(0, 0, 0, .5) }
.push.gray { background: linear-gradient(#e2e0d8, #a9a79e); color: var(--ink); box-shadow: inset 0 2px 0 #fff, 0 6px 0 #5f5d55, 0 10px 18px rgba(0, 0, 0, .5) }
.tape { display: inline-block; padding: 3px 12px; background: #eadfb6; color: #222; font: 700 20px/1.2 var(--fh); transform: rotate(-2deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); clip-path: polygon(2% 0, 98% 4%, 100% 100%, 0 96%) }

/* Horní a dolní lišta */
.rackbar { margin-top: 14px; border-radius: 6px; padding: 12px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--fd); letter-spacing: .06em; text-transform: uppercase; margin-right: auto }
.logo svg { width: 30px; height: 30px }
.keys { display: flex; flex-wrap: wrap; gap: 8px }
.key { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--fs); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 9px 12px; border-radius: 4px;
  background: linear-gradient(#4a4c51, #2d2f33); color: #ddd; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 0 #111 }
.key .led { width: 7px; height: 7px }
.key:hover { color: #fff }
.key[aria-current] { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 0 #111 }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 26px 0 12px; font: 700 13px/1.4 var(--fs); letter-spacing: .14em; text-transform: uppercase; color: #8d8a80 }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap }

/* CRT monitor */
.crt { padding: 18px 18px 30px; border-radius: 14px; background: linear-gradient(160deg, #d8d4c4, #a8a391); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .6), inset -2px -2px 0 rgba(0, 0, 0, .25), 0 12px 26px rgba(0, 0, 0, .5); position: relative; margin: 0 }
.crt::after { content: ""; position: absolute; right: 22px; bottom: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green) }
.crt .glass { position: relative; overflow: hidden; border-radius: 22px / 16px; background: #000; box-shadow: inset 0 0 0 3px #2b2b2b, 0 0 0 4px #6b6858 }
.crt .glass .art { display: block; width: 100%; height: auto; background: #06120a }
.art .grid { stroke: rgba(116, 255, 127, .14); stroke-width: 1.5; fill: none }
.art .axis { stroke: rgba(116, 255, 127, .3); stroke-width: 2; fill: none }
.art .wave { stroke: var(--green); stroke-width: 4; fill: none; filter: drop-shadow(0 0 6px var(--green)) }
.art .face { fill: #c9c6bb; stroke: #6b6858; stroke-width: 3 }
.art .meter { fill: #f2d48a; stroke: #2a2925; stroke-width: 3 }
.art .needle { stroke: #b0201c; stroke-width: 4; stroke-linecap: round }
.art .knob { fill: #8a877c; stroke: #2a2925; stroke-width: 3 }
.art .slot { stroke: #6b6858; stroke-width: 4 }
.crt .glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .14) 2px 3px), radial-gradient(ellipse at 35% 25%, rgba(255, 255, 255, .16), transparent 45%), radial-gradient(ellipse, transparent 60%, rgba(0, 0, 0, .45)) }
.crt figcaption { position: absolute; left: 22px; bottom: 7px; font: 700 11px/1 var(--fs); letter-spacing: .2em; color: #57533f }

/* ===== Úvod ===== */
.hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(20px, 3vw, 34px); align-items: center; margin-top: 26px }
.hero h1 { font-size: clamp(50px, 7.6vw, 108px); margin: 14px 0 20px }
.hero h1 span { color: var(--red); display: block }
.hero .lead { font-size: clamp(18px, 1.8vw, 21px); margin: 0 0 24px; max-width: 32em }
.hero .ctl { display: flex; flex-wrap: wrap; gap: 22px; align-items: center }
.sec { margin-top: clamp(40px, 6vw, 64px) }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); color: #efece2 }
.sec-head .hazard { flex: 1 }
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
.module { display: grid; gap: 10px; align-content: start }
.module .top { display: flex; justify-content: space-between; align-items: center }
.module svg { width: 54px; height: 54px; stroke: #2a2925; fill: none; stroke-width: 2.4; opacity: .8 }
.module h3 { font-size: 28px }
.module p { margin: 0 }
.switches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px }
.sw { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start }
.lever { width: 54px; height: 86px; border-radius: 8px; background: linear-gradient(#2b2d31, #17181a); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .15); position: relative }
.lever::before { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #eee, #888) }
.lever::after { content: ""; position: absolute; left: 50%; width: 10px; height: 36px; margin-left: -5px; border-radius: 5px; background: linear-gradient(90deg, #888, #f2f2f2, #888); top: 6px }
.lever.down::after { top: auto; bottom: 6px }
.sw h3 { font-size: 26px; color: #efece2; margin-bottom: 6px }
.sw p { margin: 0; color: #c9c5b8 }
.sw .engrave { color: #8d8a80; text-shadow: none; margin-bottom: 6px }
.work { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: center; text-decoration: none }
.work h3 { font-size: 34px; margin: 8px 0 8px }
.work p { margin: 0 0 12px }
.dataplate { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 16px 0 0; font-size: 16px }
.dataplate dt { font: 700 13px/1.6 var(--fs); letter-spacing: .18em; text-transform: uppercase; color: rgba(0, 0, 0, .55) }
.dataplate dd { margin: 0 }
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center }
.contact h2 { font-size: clamp(40px, 6vw, 80px); color: #fff3dc; margin: 10px 0 14px }
.contact .lcd { font-size: clamp(20px, 3vw, 34px) }

/* ===== Blog: jehličková tiskárna ===== */
.printer { margin-top: 26px; border-radius: 10px 10px 0 0; padding: 14px 24px 26px; background: linear-gradient(#cfcbbd, #a29d8b); box-shadow: inset 0 1px 0 #fff, 0 10px 20px rgba(0, 0, 0, .45); color: var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; position: relative }
.printer::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 8px; height: 8px; border-radius: 4px; background: #1a1a1a }
.printer h1 { font-size: clamp(30px, 4vw, 44px) }
.printer .leds { display: flex; gap: 14px; font: 700 11px/1 var(--fs); letter-spacing: .14em; align-items: center }
.blog { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: start }
.paper { margin: 0 6%; padding: 18px 54px 30px; color: #222; font: 17px/1.7 var(--fp); position: relative;
  background: radial-gradient(circle, var(--bg) 0 6px, transparent 6.5px) 12px 6px / 24px 26px repeat-y, radial-gradient(circle, var(--bg) 0 6px, transparent 6.5px) calc(100% - 12px) 6px / 24px 26px repeat-y,
    linear-gradient(90deg, transparent 34px, rgba(0, 0, 0, .12) 34px 35px, transparent 35px calc(100% - 35px), rgba(0, 0, 0, .12) calc(100% - 35px) calc(100% - 34px), transparent calc(100% - 34px)),
    repeating-linear-gradient(transparent 0 86px, rgba(120, 190, 120, .2) 86px 172px), #f7f5ec;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .4) }
.paper.wide { margin: 0 }
.paper .ph { font: 22px/1.2 var(--fl); color: #555; border-bottom: 1px dashed #999; padding-bottom: 8px; margin-bottom: 14px; overflow-wrap: anywhere }
.entry { padding: 10px 0 18px; border-bottom: 1px dashed #aaa }
.entry h2 { font: 36px/1 var(--fl); text-transform: none; margin: 4px 0 6px }
.entry h2 a { text-decoration: none } .entry h2 a:hover { background: #222; color: #f7f5ec }
.entry .meta { font-size: 14px; color: #555 }
.entry p { margin: 6px 0 }
.entry .more { font-weight: 700 }
.pager { display: flex; gap: 10px; padding-top: 14px; font: 24px/1 var(--fl) }
.pager b { background: #222; color: #f7f5ec; padding: 0 6px; font-weight: 400 }
.side { display: grid; gap: 16px; padding-top: 18px }
.side .plate { padding: 18px 20px }
.side ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 15px; line-height: 2 }
.side ul a { text-decoration: none } .side ul a:hover { text-decoration: underline }
.side .row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 8px }
.side .lcd { font-size: 26px; margin-top: 10px }

/* Článek */
.article h1 { font: clamp(40px, 6vw, 60px)/1 var(--fl); text-transform: none; margin: 6px 0 10px }
.article .lead { font-style: italic; margin: 0 0 10px }
.article h2 { font: 32px/1 var(--fl); text-transform: none; margin: 26px 0 6px }
.article ul { padding-left: 0; list-style: none } .article li::before { content: "* " }
.article pre { font: 15px/1.6 var(--fp); border: 1px dashed #777; padding: 12px 14px; overflow-x: auto; background: rgba(0, 0, 0, .03) }
.article code { font-family: var(--fp); font-weight: 700 }
.article figure { margin: 20px 0; border: 1px dashed #777; padding: 10px }
.article figure svg { width: 100%; height: auto; stroke: #222; fill: none; stroke-width: 2; stroke-dasharray: 2 3 }
.article figcaption { font-size: 14px; color: #555 }
.comment { border-top: 1px dashed #aaa; padding: 10px 0 }
.comment b { font-weight: 700 }
.comment p { margin: 2px 0 0 }

/* Poznámka, že jde o ukázkový web */
.concepts { font: 700 12px/1.6 var(--fs); letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 6px 16px 26px; color: #8d8a80 }
.concepts a { margin: 0 6px; color: var(--amber) }

@media (max-width: 880px) {
  .hero, .work, .contact, .blog { grid-template-columns: 1fr }
  .hero .crt { max-width: 340px }
  .modules, .switches { grid-template-columns: 1fr }
  .paper { margin: 0; padding: 16px 40px 26px; font-size: 16px }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }
