site.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  1. /* ==========================================================================
  2. Dark, minimal photography theme — shared by public site and admin.
  3. ========================================================================== */
  4. :root {
  5. --bg: #0b0b0c;
  6. --bg-raise: #151517;
  7. --fg: #f4f4f2;
  8. --muted: #9a9a96;
  9. --line: #29292c;
  10. --danger: #e05b4d;
  11. --ok: #6fbf8f;
  12. --nav-h: 64px;
  13. }
  14. * { box-sizing: border-box; margin: 0; padding: 0; }
  15. html { scroll-behavior: smooth; }
  16. body {
  17. background: var(--bg);
  18. color: var(--fg);
  19. font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  20. font-size: 16px;
  21. line-height: 1.6;
  22. -webkit-font-smoothing: antialiased;
  23. }
  24. img { max-width: 100%; display: block; }
  25. a { color: inherit; text-decoration: none; }
  26. /* --------------------------------------------------------------------------
  27. Public navigation — fixed, hides on scroll-down, returns on scroll-up
  28. -------------------------------------------------------------------------- */
  29. .nav {
  30. position: fixed;
  31. inset: 0 0 auto 0;
  32. height: var(--nav-h);
  33. display: flex;
  34. align-items: center;
  35. justify-content: space-between;
  36. padding: 0 clamp(1.25rem, 4vw, 3rem);
  37. z-index: 100;
  38. background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
  39. transition: transform .35s ease, opacity .35s ease;
  40. }
  41. .nav.nav-hidden {
  42. transform: translateY(-100%);
  43. opacity: 0;
  44. pointer-events: none;
  45. }
  46. .nav-brand {
  47. font-size: 1.05rem;
  48. letter-spacing: .18em;
  49. text-transform: uppercase;
  50. font-weight: 500;
  51. }
  52. /* The public brand is the artist's name (user content): show it exactly as
  53. typed rather than force-uppercased, so characters like ß are not expanded
  54. to SS by the browser. Admin/login brand keeps the uppercase styling. */
  55. .nav .nav-brand {
  56. text-transform: none;
  57. letter-spacing: .12em;
  58. }
  59. .nav-links {
  60. display: flex;
  61. gap: 2rem;
  62. }
  63. .nav-links a {
  64. font-size: .8rem;
  65. letter-spacing: .22em;
  66. text-transform: uppercase;
  67. color: var(--muted);
  68. transition: color .2s;
  69. }
  70. .nav-links a:hover, .nav-links a.active { color: var(--fg); }
  71. /* --------------------------------------------------------------------------
  72. Landing page
  73. -------------------------------------------------------------------------- */
  74. .hero {
  75. position: relative;
  76. height: 100svh;
  77. overflow: hidden;
  78. }
  79. .hero img {
  80. width: 100%;
  81. height: 100%;
  82. object-fit: cover;
  83. }
  84. .hero-placeholder {
  85. width: 100%;
  86. height: 100%;
  87. background: radial-gradient(120% 90% at 50% 20%, #1d1d21 0%, #0b0b0c 70%);
  88. }
  89. .hero-caption {
  90. position: absolute;
  91. inset: auto 0 0 0;
  92. padding: clamp(2rem, 8vh, 6rem) clamp(1.25rem, 4vw, 3rem);
  93. background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  94. }
  95. .hero-caption h1 {
  96. font-size: clamp(2.2rem, 6vw, 4.5rem);
  97. font-weight: 300;
  98. letter-spacing: .12em;
  99. /* Artist name shown as typed (see .nav .nav-brand) so ß stays ß. */
  100. }
  101. .hero-scroll-hint {
  102. position: absolute;
  103. bottom: 1.2rem;
  104. left: 50%;
  105. translate: -50% 0;
  106. color: rgba(255,255,255,.7);
  107. font-size: 1.4rem;
  108. animation: hint 2.2s ease-in-out infinite;
  109. }
  110. @keyframes hint {
  111. 0%, 100% { transform: translateY(0); opacity: .5; }
  112. 50% { transform: translateY(8px); opacity: 1; }
  113. }
  114. .intro {
  115. max-width: 42rem;
  116. margin: 0 auto;
  117. padding: clamp(4rem, 14vh, 9rem) 1.5rem;
  118. text-align: center;
  119. }
  120. .intro p {
  121. font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  122. font-weight: 300;
  123. color: var(--fg);
  124. white-space: pre-line;
  125. line-height: 1.9;
  126. }
  127. .intro .cta {
  128. display: inline-block;
  129. margin-top: 3rem;
  130. padding: .9rem 2.6rem;
  131. border: 1px solid var(--fg);
  132. font-size: .8rem;
  133. letter-spacing: .25em;
  134. text-transform: uppercase;
  135. transition: background .25s, color .25s;
  136. }
  137. .intro .cta:hover { background: var(--fg); color: var(--bg); }
  138. /* --------------------------------------------------------------------------
  139. Contact page — landing-style centered layout
  140. -------------------------------------------------------------------------- */
  141. .contact {
  142. min-height: 100svh;
  143. display: flex;
  144. flex-direction: column;
  145. justify-content: center;
  146. }
  147. .contact-title {
  148. font-size: clamp(1.8rem, 5vw, 3.2rem);
  149. font-weight: 300;
  150. letter-spacing: .1em;
  151. margin-bottom: 1.4rem;
  152. }
  153. .contact-methods {
  154. margin-top: 2.6rem;
  155. display: flex;
  156. flex-direction: column;
  157. align-items: center;
  158. gap: 1rem;
  159. }
  160. .contact-methods a {
  161. font-size: 1.05rem;
  162. letter-spacing: .05em;
  163. color: var(--fg);
  164. border-bottom: 1px solid var(--line);
  165. padding-bottom: .2rem;
  166. transition: border-color .25s;
  167. }
  168. .contact-methods a:hover { border-color: var(--fg); }
  169. /* --------------------------------------------------------------------------
  170. Prose — rendered Markdown for the legal pages (Impressum / Datenschutz)
  171. -------------------------------------------------------------------------- */
  172. .prose { max-width: 46rem; font-weight: 300; }
  173. .prose h1, .prose h2, .prose h3 { font-weight: 400; letter-spacing: .04em; margin: 2rem 0 .8rem; }
  174. .prose h1 { font-size: 1.5rem; }
  175. .prose h2 { font-size: 1.2rem; }
  176. .prose h3 { font-size: 1.05rem; }
  177. .prose p { margin-bottom: 1rem; }
  178. .prose ul { margin: 0 0 1rem 1.3rem; }
  179. .prose li { margin-bottom: .35rem; }
  180. .prose a { text-decoration: underline; }
  181. .prose a:hover { color: var(--muted); }
  182. .prose-empty { color: var(--muted); }
  183. /* --------------------------------------------------------------------------
  184. Showreel — one image per viewport, scroll snap
  185. -------------------------------------------------------------------------- */
  186. body.reel-page { scroll-snap-type: y mandatory; }
  187. .reel-slide {
  188. height: 100svh;
  189. scroll-snap-align: start;
  190. scroll-snap-stop: always;
  191. display: flex;
  192. align-items: center;
  193. justify-content: center;
  194. background: #000;
  195. }
  196. .reel-slide img {
  197. max-width: 100%;
  198. max-height: 100svh;
  199. width: auto;
  200. height: auto;
  201. object-fit: contain;
  202. }
  203. .reel-empty {
  204. height: 100svh;
  205. display: grid;
  206. place-items: center;
  207. color: var(--muted);
  208. letter-spacing: .1em;
  209. }
  210. /* --------------------------------------------------------------------------
  211. Gallery — password gate, thumbnail grid, lightbox
  212. -------------------------------------------------------------------------- */
  213. .page {
  214. max-width: 1400px;
  215. margin: 0 auto;
  216. padding: calc(var(--nav-h) + 3rem) clamp(1rem, 3vw, 2.5rem) 4rem;
  217. }
  218. .page-title {
  219. font-weight: 300;
  220. letter-spacing: .1em;
  221. /* Gallery title is user content — shown as typed so ß stays ß. */
  222. font-size: clamp(1.4rem, 3vw, 2.2rem);
  223. margin-bottom: .4rem;
  224. }
  225. .page-sub { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
  226. .gate {
  227. min-height: 100svh;
  228. display: grid;
  229. place-items: center;
  230. padding: 1.5rem;
  231. }
  232. .gate-card {
  233. width: 100%;
  234. max-width: 24rem;
  235. text-align: center;
  236. }
  237. .gate-card h1 {
  238. font-weight: 300;
  239. letter-spacing: .12em;
  240. /* Gallery title is user content — shown as typed so ß stays ß. */
  241. font-size: 1.4rem;
  242. margin-bottom: 1.8rem;
  243. }
  244. .grid {
  245. display: grid;
  246. grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  247. gap: 6px;
  248. }
  249. .grid a {
  250. position: relative;
  251. aspect-ratio: 3 / 2;
  252. overflow: hidden;
  253. background: var(--bg-raise);
  254. }
  255. .grid img {
  256. width: 100%;
  257. height: 100%;
  258. object-fit: cover;
  259. transition: transform .4s ease, opacity .4s;
  260. opacity: .92;
  261. }
  262. .grid a:hover img { transform: scale(1.03); opacity: 1; }
  263. /* Lightbox */
  264. .lightbox {
  265. position: fixed;
  266. inset: 0;
  267. z-index: 200;
  268. background: rgba(0,0,0,.96);
  269. display: none;
  270. align-items: center;
  271. justify-content: center;
  272. }
  273. .lightbox.open { display: flex; }
  274. .lightbox img {
  275. max-width: 96vw;
  276. max-height: 96svh;
  277. object-fit: contain;
  278. }
  279. .lightbox button {
  280. position: absolute;
  281. background: none;
  282. border: none;
  283. color: rgba(255,255,255,.75);
  284. font-size: 2rem;
  285. cursor: pointer;
  286. padding: 1rem;
  287. line-height: 1;
  288. transition: color .2s;
  289. }
  290. .lightbox button:hover { color: #fff; }
  291. .lb-close { top: .5rem; right: .8rem; }
  292. .lb-prev { left: .4rem; top: 50%; translate: 0 -50%; }
  293. .lb-next { right: .4rem; top: 50%; translate: 0 -50%; }
  294. .lb-count {
  295. position: absolute;
  296. bottom: 1rem;
  297. left: 50%;
  298. translate: -50% 0;
  299. color: var(--muted);
  300. font-size: .8rem;
  301. letter-spacing: .15em;
  302. }
  303. /* --------------------------------------------------------------------------
  304. Footer
  305. -------------------------------------------------------------------------- */
  306. .footer {
  307. padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  308. color: var(--muted);
  309. font-size: .75rem;
  310. letter-spacing: .15em;
  311. /* Contains the artist name — shown as typed so ß stays ß. */
  312. text-align: center;
  313. }
  314. .footer-links {
  315. display: flex;
  316. justify-content: center;
  317. gap: 1.6rem;
  318. margin-bottom: 1rem;
  319. }
  320. .footer-links a {
  321. text-transform: uppercase;
  322. color: var(--muted);
  323. transition: color .2s;
  324. }
  325. .footer-links a:hover { color: var(--fg); }
  326. /* --------------------------------------------------------------------------
  327. Forms (shared)
  328. -------------------------------------------------------------------------- */
  329. label { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .35rem; }
  330. input[type=text], input[type=password], input[type=date], textarea, select {
  331. width: 100%;
  332. padding: .7rem .9rem;
  333. background: var(--bg-raise);
  334. border: 1px solid var(--line);
  335. color: var(--fg);
  336. font: inherit;
  337. border-radius: 4px;
  338. }
  339. input:focus, textarea:focus { outline: 1px solid var(--muted); }
  340. textarea { min-height: 9rem; resize: vertical; }
  341. button, .btn {
  342. display: inline-block;
  343. margin-top: 1.4rem;
  344. padding: .75rem 1.8rem;
  345. background: var(--fg);
  346. color: var(--bg);
  347. border: none;
  348. font: inherit;
  349. font-size: .8rem;
  350. letter-spacing: .18em;
  351. text-transform: uppercase;
  352. cursor: pointer;
  353. border-radius: 4px;
  354. }
  355. .btn-ghost {
  356. background: none;
  357. color: var(--fg);
  358. border: 1px solid var(--line);
  359. }
  360. .btn-danger { background: var(--danger); color: #fff; }
  361. .flash { padding: .8rem 1.1rem; border-radius: 4px; margin-bottom: 1.5rem; font-size: .9rem; }
  362. .flash-ok { background: rgba(111,191,143,.12); border: 1px solid rgba(111,191,143,.4); color: var(--ok); }
  363. .flash-error { background: rgba(224,91,77,.12); border: 1px solid rgba(224,91,77,.4); color: var(--danger); }
  364. /* --------------------------------------------------------------------------
  365. Admin
  366. -------------------------------------------------------------------------- */
  367. body.admin { background: #101012; }
  368. .admin-nav {
  369. display: flex;
  370. align-items: center;
  371. justify-content: space-between;
  372. flex-wrap: wrap;
  373. gap: .8rem;
  374. padding: 1rem clamp(1rem, 3vw, 2rem);
  375. border-bottom: 1px solid var(--line);
  376. background: var(--bg);
  377. }
  378. .admin-nav .nav-links { flex-wrap: wrap; gap: 1.2rem; }
  379. .admin-main { max-width: 1000px; margin: 0 auto; padding: 2.5rem clamp(1rem, 3vw, 2rem) 5rem; }
  380. .admin-main h1 { font-weight: 400; font-size: 1.5rem; margin-bottom: 1.6rem; }
  381. .admin-main h2 { font-weight: 400; font-size: 1.1rem; margin: 2.2rem 0 1rem; }
  382. .card {
  383. background: var(--bg-raise);
  384. border: 1px solid var(--line);
  385. border-radius: 6px;
  386. padding: 1.5rem;
  387. margin-bottom: 1.5rem;
  388. }
  389. table { width: 100%; border-collapse: collapse; font-size: .92rem; }
  390. th, td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
  391. th { color: var(--muted); font-weight: 400; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
  392. .tag { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .72rem; border: 1px solid var(--line); color: var(--muted); }
  393. .tag-lock { border-color: rgba(111,191,143,.5); color: var(--ok); }
  394. .tag-expired{ border-color: rgba(224,91,77,.5); color: var(--danger); }
  395. .thumb-row { display: flex; flex-wrap: wrap; gap: 10px; }
  396. .thumb-row figure { position: relative; width: 140px; }
  397. .thumb-row img { width: 140px; height: 100px; object-fit: cover; border-radius: 4px; background: #000; }
  398. .thumb-row figcaption { font-size: .7rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .25rem; }
  399. .thumb-row form { position: absolute; top: 4px; right: 4px; }
  400. .thumb-row form button { margin: 0; padding: .15rem .5rem; font-size: .7rem; background: rgba(0,0,0,.65); color: #fff; border-radius: 3px; }
  401. /* Upload queue */
  402. .dropzone {
  403. border: 2px dashed var(--line);
  404. border-radius: 6px;
  405. padding: 2.5rem 1.5rem;
  406. text-align: center;
  407. color: var(--muted);
  408. cursor: pointer;
  409. transition: border-color .2s, color .2s;
  410. }
  411. .dropzone.drag { border-color: var(--fg); color: var(--fg); }
  412. .upload-list { margin-top: 1rem; font-size: .85rem; }
  413. .upload-item { display: flex; align-items: center; gap: .8rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
  414. .upload-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  415. .upload-item .state { color: var(--muted); min-width: 90px; text-align: right; }
  416. .upload-item .state.done { color: var(--ok); }
  417. .upload-item .state.error { color: var(--danger); }
  418. .upload-item .bar { width: 120px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
  419. .upload-item .bar i { display: block; height: 100%; width: 0; background: var(--fg); transition: width .2s; }
  420. .help { color: var(--muted); font-size: .85rem; margin-top: .5rem; }
  421. .login-wrap { min-height: 80svh; display: grid; place-items: center; padding: 1.5rem; }
  422. .login-card { width: 100%; max-width: 22rem; }
  423. .login-card h1 { text-align: center; font-weight: 300; letter-spacing: .15em; text-transform: uppercase; font-size: 1.2rem; }